:root {
    /* Color Palette */
    --ivory: #FCFAF2;
    --blush: #F7E7E6;
    --dusty-rose: #D8AFA9;
    --sage: #A8B5A2;
    --gold: #D4AF37;
    --gold-soft: #E5C76B;
    --text-dark: #2C2C2C;
    --text-muted: #666666;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing & Effects */
    --section-padding: 80px 5%;
    --container-max-width: 1200px;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
}

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

body {
    background-color: var(--ivory);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-slow);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    background: var(--ivory);
    border-bottom: 1px solid var(--blush);
    transition: var(--transition-slow);
}

nav.scrolled {
    height: 70px;
    box-shadow: var(--shadow-soft);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-slow);
}

.logo:hover {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: var(--gold);
}

.product-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.mobile-menu-toggle {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    width: 0;
    opacity: 0;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid var(--gold);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-slow);
    outline: none;
}

.search-container.active .search-input {
    width: 200px;
    opacity: 1;
    padding: 8px 10px;
    margin-right: 10px;
}

.search-icon {
    cursor: pointer;
    transition: var(--transition-slow);
}

.search-icon:hover {
    color: var(--gold);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--gold);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/hero_v4.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1.2s forwards 0.3s;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1.2s forwards 0.6s;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gold);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border-radius: 2px;
    transition: var(--transition-slow);
    opacity: 0;
    animation: fadeIn 1.2s forwards 0.9s;
}

.btn:hover {
    background: var(--text-dark);
    transform: translateY(-5px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Sections --- */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-style: italic;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    padding: 15px;
    transition: var(--transition-slow);
    text-align: center;
    position: relative;
    border: 1px solid transparent;
}

.product-card:hover {
    border-color: var(--blush);
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--ivory);
    position: relative; /* Contain quick-add button within the photo */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.product-price {
    color: var(--gold);
    font-weight: 600;
}

/* --- Footer & Newsletter --- */
footer {
    background: #f8f8f8;
    padding: 80px 5% 40px;
    border-top: 1px solid var(--blush);
}

.newsletter {
    max-width: 500px;
    margin: 0 auto 60px;
    text-align: center;
}

.newsletter h3 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.newsletter p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--blush);
    background: transparent;
    font-family: var(--font-body);
}

.newsletter-form button {
    padding: 0 30px;
    background: var(--text-dark);
    color: white;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition-slow);
}

.social-icon:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

/* --- Lightbox --- */
#lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightboxImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 2100;
    transition: var(--transition-slow);
}

.lightbox-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
    pointer-events: none;
    width: 100%;
}

.lightbox-prev, .lightbox-next {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border: none;
    color: var(--text-dark);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: var(--transition-slow);
    z-index: 2200;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--gold);
    transform: scale(1.1);
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-arrow {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-soft);
}

.carousel-arrow:hover {
    background: white;
    color: var(--gold);
    transform: scale(1.1);
}

/* --- Cart Drawer --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--ivory);
    z-index: 2600;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 30px;
    border-bottom: 1px solid var(--blush);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.cart-close {
    font-size: 30px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-slow);
}

.cart-close:hover {
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--blush);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition-slow);
}

.quantity-btn:hover {
    background: var(--blush);
}

.cart-footer {
    padding: 30px;
    background: white;
    border-top: 1px solid var(--blush);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-checkout {
    width: 100%;
    background: var(--text-dark);
    color: white;
    padding: 18px;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-slow);
}

.btn-checkout:hover {
    background: #000;
}

/* --- Cart Count Badge --- */
.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

@media (max-width: 480px) {
    .cart-drawer { max-width: 100%; }
}

/* --- Quick Add Button (Image Overlay) --- */
.btn-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 15px;
    border: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100%); /* Slide up from the bottom of the image */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
    font-weight: 600;
}

.product-card:hover .btn-quick-add {
    opacity: 1;
    transform: translateY(0);
}

.btn-quick-add:hover {
    background: var(--text-dark);
    color: white;
}

/* --- FAQ Section --- */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    margin-top: 40px;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border: 1px solid var(--blush);
    transition: var(--transition-slow);
}

.faq-item:hover {
    box-shadow: var(--shadow-soft);
}

.faq-item summary {
    padding: 20px 30px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: serif;
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 30px 30px;
    line-height: 1.8;
    color: var(--text-muted);
}

.faq-answer p {
    margin: 0;
}

.faq-contact h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Join the Hive - Subscription Styles */
.hive-hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/garden_letter_cover_v4.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hive-hero h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hive-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.plan-card {
    background: white;
    padding: 40px;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.plan-card.featured {
    border: 2px solid var(--gold);
    transform: scale(1.05);
    z-index: 1;
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.plan-billing {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.plan-features {
    list-style: none;
    margin: 0 0 35px 0;
    padding: 0;
    text-align: left;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.plan-features li::before {
    content: '🐝';
    position: absolute;
    left: 0;
}

.plan-compliance {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

.hive-teaser {
    background: var(--text-dark);
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-top: 100px;
}

.hive-teaser h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hive-teaser .btn {
    margin-top: 30px;
    background: var(--gold);
    border-color: var(--gold);
    color: white;
}

.hive-teaser .btn:hover {
    background: white;
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Navbar & Mobile Menu */
    .mobile-menu-toggle {
        display: block !important;
        cursor: pointer;
        z-index: 9999; /* Max priority to ensure clickability */
        pointer-events: auto;
        padding: 10px;
        margin-left: 15px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--ivory);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9998;
        box-shadow: none;
    }

    .nav-links.active {
        right: 0;
        display: flex !important;
    }

    .nav-links li a {
        font-size: 1.5rem;
        font-family: var(--font-display);
        color: var(--text-dark);
    }

    /* Hero Sections */
    .hero {
        height: 80vh;
        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .hive-hero {
        height: 60vh;
        background-attachment: scroll; /* Better for mobile performance */
    }

    .hive-hero h1 {
        font-size: 2.5rem;
    }

    .hero-bg-text {
        font-size: 20vw;
        top: 40%;
        opacity: 0.05;
    }

    /* Standard Grids */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 5%;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    /* Product Page Grid (The fix for small photos) */
    .product-page-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        margin-top: 40px !important;
        display: flex !important;
        flex-direction: column;
    }

    .product-gallery {
        width: 100% !important;
        max-width: 100%;
    }

    .product-gallery .main-image img {
        width: 100%;
        height: auto;
    }

    .thumbnail-img {
        height: 50px !important;
    }

    .product-details {
        text-align: center;
        padding: 0 5%;
    }

    .product-details h1 {
        font-size: 2rem;
    }

    /* Hive Plans */
    .hive-plans {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 5%;
    }

    .plan-card.featured {
        transform: none;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Specific Tweak for very small screens */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .logo {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
}
