/*
Theme Name: Heaven Sent Bakery - WooCommerce Dark (with Logo)
Theme URI: https://heavensentbakery.com
Description: Premium dark mode WooCommerce theme with custom logo
Author: Heaven Sent Bakery
Template: Divi
Version: 1.0.1
WC tested up to: 8.5
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Cinzel:wght@400;600;900&display=swap');

:root {
    --void-black: #0a0e1a;
    --midnight-blue: #0f1729;
    --deep-navy: #131825;
    --dark-slate: #1a1f3a;
    --navy-card: #1e2847;
    --neon-teal: #5eead4;
    --gold-glow: #fcd34d;
    --gold-bright: #fbbf24;
    --gold-deep: #f59e0b;
    --ruby-red: #ef4444;
    --text-luminous: #f8fafc;
    --text-bright: #e2e8f0;
    --text-dim: #cbd5e1;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    background: var(--void-black) !important;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(94, 234, 212, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(252, 211, 77, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, var(--void-black) 0%, var(--midnight-blue) 50%, var(--deep-navy) 100%) !important;
    color: var(--text-luminous) !important;
    line-height: 1.7;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 25% 15%, rgba(94, 234, 212, 0.8), transparent),
        radial-gradient(1px 1px at 40% 30%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(252, 211, 77, 0.6), transparent),
        radial-gradient(1px 1px at 75% 45%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 85% 60%, rgba(94, 234, 212, 0.7), transparent);
    background-size: 200% 200%;
    animation: twinkle 10s ease-in-out infinite;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; background-position: 0% 0%; }
    50% { opacity: 0.6; background-position: 100% 100%; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif !important;
    color: var(--text-luminous) !important;
}

a {
    color: var(--neon-teal);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold-glow);
    text-shadow: 0 0 20px rgba(252, 211, 77, 0.6);
}

/* Header with Logo */
#main-header {
    background: rgba(26, 31, 58, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(94, 234, 212, 0.3) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
}

.logo_container {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

#logo {
    max-height: 100px !important;
    width: auto !important;
    filter: drop-shadow(0 0 20px rgba(94, 234, 212, 0.4)) 
            drop-shadow(0 0 40px rgba(252, 211, 77, 0.3));
    transition: all 0.4s ease !important;
}

#logo:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 0 30px rgba(94, 234, 212, 0.6)) 
            drop-shadow(0 0 60px rgba(252, 211, 77, 0.5));
}

/* Navigation */
#top-menu li a {
    color: var(--text-bright) !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    font-size: 0.95rem !important;
}

#top-menu li a:hover {
    color: var(--neon-teal) !important;
    text-shadow: 0 0 15px rgba(94, 234, 212, 0.6) !important;
}

/* WooCommerce Shop */
.woocommerce .page-title,
.woocommerce-products-header__title {
    font-family: 'Cinzel', serif !important;
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, var(--gold-glow), var(--gold-bright), var(--neon-teal));
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 0 30px rgba(252, 211, 77, 0.4));
    text-align: center;
    margin: 3rem 0 2rem !important;
    letter-spacing: 0.05em;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 2.5rem !important;
    margin-top: 2rem !important;
}

.woocommerce ul.products li.product {
    background: linear-gradient(135deg, rgba(30, 40, 71, 0.7), rgba(26, 31, 58, 0.9)) !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), inset 0 0 50px rgba(94, 234, 212, 0.03) !important;
    border: 2px solid rgba(94, 234, 212, 0.2) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    backdrop-filter: blur(10px);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-20px) scale(1.02) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 80px rgba(94, 234, 212, 0.5) !important;
    border-color: var(--neon-teal) !important;
}

.woocommerce ul.products li.product img {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.05), rgba(252, 211, 77, 0.05)) !important;
    padding: 3rem !important;
    transition: transform 0.5s ease !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.15) rotate(5deg) !important;
    filter: drop-shadow(0 0 30px rgba(94, 234, 212, 0.6)) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
    font-family: 'Cinzel', serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--text-luminous) !important;
    margin: 1.5rem 0 1rem !important;
    padding: 0 1.5rem !important;
    letter-spacing: 0.03em !important;
}

/* Hide Pricing */
.woocommerce ul.products li.product .price,
.woocommerce div.product .price,
.woocommerce-Price-amount,
span.price {
    display: none !important;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: linear-gradient(135deg, var(--gold-deep), var(--gold-bright), var(--gold-glow)) !important;
    color: var(--void-black) !important;
    border: 2px solid var(--gold-glow) !important;
    border-radius: 20px !important;
    padding: 1rem 2rem !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 8px 32px rgba(252, 211, 77, 0.4), 0 0 40px rgba(252, 211, 77, 0.3) !important;
    margin: 1rem 1.5rem 1.5rem !important;
    width: calc(100% - 3rem) !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce button.button:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 48px rgba(252, 211, 77, 0.7), 0 0 60px rgba(252, 211, 77, 0.6) !important;
    filter: brightness(1.2) !important;
}

.bestseller-badge {
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    background: linear-gradient(135deg, var(--ruby-red), #dc2626) !important;
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6) !important;
    z-index: 10 !important;
    animation: pulse-badge 2.5s ease-in-out infinite !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-tags {
    display: flex !important;
    gap: 0.75rem !important;
    padding: 0 1.5rem !important;
    margin-bottom: 1rem !important;
    flex-wrap: wrap !important;
}

.product-tag {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.2), rgba(94, 234, 212, 0.1)) !important;
    color: var(--neon-teal) !important;
    padding: 0.4rem 1rem !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: 1px solid rgba(94, 234, 212, 0.3) !important;
    transition: all 0.3s ease !important;
}

.product-tag:hover {
    background: var(--neon-teal) !important;
    color: var(--void-black) !important;
    transform: translateY(-2px) !important;
}

.product-details-text {
    color: var(--text-muted) !important;
    font-size: 0.95rem !important;
    padding: 0 1.5rem !important;
    margin-bottom: 1rem !important;
}

/* Single Product */
.woocommerce div.product {
    background: linear-gradient(135deg, rgba(30, 40, 71, 0.6), rgba(26, 31, 58, 0.8)) !important;
    border-radius: 40px !important;
    padding: 3rem !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6) !important;
    border: 2px solid rgba(94, 234, 212, 0.2) !important;
}

.woocommerce div.product .product_title {
    font-family: 'Cinzel', serif !important;
    font-size: 3rem !important;
    background: linear-gradient(135deg, var(--text-luminous), var(--neon-teal), var(--gold-glow));
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Cart & Checkout */
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout,
.woocommerce table.shop_table {
    background: linear-gradient(135deg, rgba(30, 40, 71, 0.7), rgba(26, 31, 58, 0.9)) !important;
    border-radius: 30px !important;
    padding: 2rem !important;
    border: 2px solid rgba(94, 234, 212, 0.2) !important;
}

.woocommerce table.shop_table {
    color: var(--text-luminous) !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    color: var(--text-luminous) !important;
    border: 1px solid rgba(94, 234, 212, 0.2) !important;
    padding: 1rem !important;
}

/* Forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: rgba(30, 40, 71, 0.6) !important;
    border: 2px solid rgba(94, 234, 212, 0.3) !important;
    border-radius: 15px !important;
    padding: 1rem !important;
    color: var(--text-luminous) !important;
}

.woocommerce form .form-row input.input-text:focus {
    border-color: var(--neon-teal) !important;
    box-shadow: 0 0 20px rgba(94, 234, 212, 0.3) !important;
}

/* Footer */
#main-footer {
    background: linear-gradient(180deg, transparent, rgba(10, 14, 26, 0.8)) !important;
    border-top: 2px solid rgba(94, 234, 212, 0.3) !important;
    padding: 3rem 0 !important;
}

@media (max-width: 768px) {
    #logo {
        max-height: 70px !important;
    }
    
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}
