/* V3/public/css/style.css */

/* --- Global Resets & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-sage: #9caf88; /* Main accent green */
    --deep-forest: #2d3e2a; /* Dark green/charcoal for text, headers */
    --warm-ivory: #f8f6f0; /* Soft background */
    --champagne-gold: #d4af37; /* Gold accent for highlights, links */
    --soft-cream: #faf8f4; /* Lighter background for sections */
    --sage-mist: #e8ede4; /* Lightest green for borders, subtle backgrounds */
    --charcoal: #2c2c2c; /* General text color */
    --warm-grey: #6b7562; /* Secondary text color */
    --pure-white: #ffffff; /* White for backgrounds */

    /* Shadows */
    --shadow-soft: 0 8px 32px rgba(45, 62, 42, 0.12);
    --shadow-hover: 0 16px 48px rgba(45, 62, 42, 0.18);
    --shadow-deep: 0 24px 64px rgba(45, 62, 42, 0.25);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-sage), var(--deep-forest));
    --gradient-gold: linear-gradient(135deg, var(--champagne-gold), #b8941f);
    --gradient-soft: linear-gradient(135deg, var(--soft-cream), var(--sage-mist));

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Playfair Display', serif; /* A more elegant serif for titles */
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--warm-ivory);
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Utility Classes --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(156, 175, 136, 0.1);
    color: var(--primary-sage);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem; /* Slightly larger */
    font-weight: 700;
    color: var(--deep-forest);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--warm-grey);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Header & Navigation --- */
.header {
    background: var(--pure-white);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(156, 175, 136, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-soft);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.logo-symbol {
    width: 48px;
    height: 48px;
    background: var(--gradient-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.logo-symbol:hover {
    transform: rotate(5deg) scale(1.05);
}

.logo-symbol::before {
    content: '✨'; /* Unicode character for sparkle */
    font-size: 24px;
    filter: brightness(1.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading); /* Use elegant font for logo */
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--deep-forest);
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--warm-grey);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--champagne-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-sage);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.professional-access {
    background: var(--gradient-primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.professional-access:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--charcoal);
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.cart-icon:hover {
    color: var(--primary-sage);
}

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

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 0.3; /* Subtle background effect */
}

/* SVG backgrounds for hero slides for better performance and scalability */
.hero-slide:nth-child(1) {
    background: linear-gradient(135deg, rgba(156, 175, 136, 0.8), rgba(45, 62, 42, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><rect fill="%23f8f6f0" width="1000" height="600"/><circle fill="%23d4af37" cx="300" cy="200" r="80" opacity="0.2"/><circle fill="%239caf88" cx="700" cy="350" r="120" opacity="0.1"/></svg>');
}

.hero-slide:nth-child(2) {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.8), rgba(184, 148, 31, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><rect fill="%23f8f6f0" width="1000" height="600"/><circle fill="%239caf88" cx="400" cy="300" r="90" opacity="0.2"/><circle fill="%23d4af37" cx="600" cy="150" r="110" opacity="0.1"/></svg>');
}

.hero-slide:nth-child(3) {
    background: linear-gradient(135deg, rgba(45, 62, 42, 0.8), rgba(156, 175, 136, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><rect fill="%23f8f6f0" width="1000" height="600"/><circle fill="%23d4af37" cx="500" cy="250" r="100" opacity="0.2"/><circle fill="%239caf88" cx="250" cy="400" r="70" opacity="0.1"/></svg>');
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><defs><radialGradient id="g1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23d4af37;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%23d4af37;stop-opacity:0"/></radialGradient></defs><circle cx="200" cy="150" r="120" fill="url(%23g1)"/><circle cx="800" cy="400" r="180" fill="url(%23g1)"/></svg>');
    background-size: cover;
    opacity: 0.6;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.18);
    color: #e8c96a;
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.55);
    backdrop-filter: blur(4px);
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--deep-forest);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--warm-grey);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--deep-forest);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-sage);
}

.btn-secondary:hover {
    background: var(--primary-sage);
    color: white;
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: 600px;
    background: var(--gradient-gold);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    cursor: pointer;
    transition: all 0.4s ease;
}

.hero-image:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 32px 80px rgba(45, 62, 42, 0.3);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(156, 175, 136, 0.9), rgba(212, 175, 55, 0.9));
    transition: opacity 0.4s ease;
}

.hero-image::after {
    content: '🌿 Premium Natural Aromatherapy Collection 🌿';
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.product-showcase {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.hero-image:hover .product-showcase {
    opacity: 1;
}

.parallax-element {
    position: absolute;
    pointer-events: none;
    transition: transform 0.1s ease-out; /* Slower transition for smoother parallax */
}

.parallax-element.depth-1 {
    transform: translateZ(0);
}

.parallax-element.depth-2 {
    transform: translateZ(-50px);
}

.parallax-element.depth-3 {
    transform: translateZ(-100px);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* --- Product Grid & Cards --- */
.collection-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    border: 2px solid var(--sage-mist);
    color: var(--charcoal);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-sage);
    color: white;
    border-color: var(--primary-sage);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(156, 175, 136, 0.1);
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px; /* For 3D transform */
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 0 20px 60px rgba(45, 62, 42, 0.2);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(156, 175, 136, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.pricing-tiers {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.tier-badge {
    background: rgba(156, 175, 136, 0.1);
    color: var(--primary-sage);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(156, 175, 136, 0.2);
    transition: all 0.3s ease;
}

.tier-badge:hover {
    background: var(--primary-sage);
    color: white;
    transform: scale(1.05);
}

.tier-badge.professional {
    background: rgba(212, 175, 55, 0.1);
    color: var(--champagne-gold);
    border-color: rgba(212, 175, 55, 0.3);
}

.tier-badge.bulk {
    background: rgba(45, 62, 42, 0.1);
    color: var(--deep-forest);
    border-color: rgba(45, 62, 42, 0.3);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--sage-mist);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--warm-grey);
}

.quantity-btn:hover {
    border-color: var(--primary-sage);
    background: var(--primary-sage);
    color: white;
    transform: scale(1.1);
}

.progressive-disclosure {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.progressive-disclosure.expanded {
    max-height: 500px; /* Increased max-height to accommodate more content */
    opacity: 1;
}

.expand-trigger {
    color: var(--champagne-gold);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem; /* Added margin for better spacing */
}

.expand-trigger:hover {
    color: var(--primary-sage);
}

.expand-trigger .icon {
    transition: transform 0.3s ease;
}

.expand-trigger.active .icon {
    transform: rotate(180deg);
}

/* engagement-metrics — suppressed (mass-market signal) */
.engagement-metrics,
.engagement-metrics.visible { display: none !important; }

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--warm-grey);
}

.metric-value {
    font-weight: 700;
    color: var(--deep-forest);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--champagne-gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(0.8); opacity: 1; }
}

.sticky-add-to-cart {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-deep);
    z-index: 200;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sticky-add-to-cart.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sticky-add-to-cart:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 15px 35px rgba(45, 62, 42, 0.3);
}

.interaction-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(212, 175, 55, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover .interaction-hint {
    opacity: 1;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 300px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-right: 1rem;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--champagne-gold);
    flex-shrink: 0; /* Prevent cards from shrinking */
}

.testimonial-text {
    font-style: italic;
    color: var(--warm-grey);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--deep-forest);
    font-size: 0.9rem;
}

.urgency-indicator {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    animation: urgencyPulse 2s infinite;
}

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

/* scarcity-meter — suppressed (mass-market signal) */
.scarcity-meter,
.scarcity-fill { display: none !important; }

/* progressive-pricing — suppressed on public view; visible only when logged in as professional */
.progressive-pricing { display: none !important; }
.pro-view .progressive-pricing {
    display: block !important;
    background: var(--soft-cream);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(156, 175, 136, 0.2);
}

.pricing-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(156, 175, 136, 0.1);
}

.pricing-tier:last-child {
    border-bottom: none;
}

.tier-volume {
    font-size: 0.9rem;
    color: var(--warm-grey);
}

.tier-price {
    font-weight: 600;
    color: var(--deep-forest);
}

/* tier-savings — suppressed on public view; visible only in .pro-view context */
.tier-savings { display: none !important; }
.pro-view .tier-savings { display: inline !important; }

.product-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--deep-forest);
    margin-bottom: 0.8rem;
}

.product-description {
    color: var(--warm-grey);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--deep-forest);
    margin-bottom: 1.5rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quantity-input {
    width: 60px;
    padding: 0.6rem;
    border: 2px solid var(--sage-mist);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.add-to-cart {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* professional-notice — suppressed on public site */
.professional-notice { display: none !important; }

.notice-content a {
    color: var(--champagne-gold);
    font-weight: 600;
    text-decoration: none;
}

.notice-content a:hover {
    text-decoration: underline;
}

/* --- Features Section --- */
.features-section {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    background: var(--soft-cream);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(156, 175, 136, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.2rem;
    color: var(--deep-forest);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-description {
    color: var(--warm-grey);
    line-height: 1.6;
}

/* --- Cart Sidebar --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 400px;
    max-width: 90vw; /* Responsive adjustment */
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--sage-mist);
}

.cart-total {
    background: var(--soft-cream);
    padding: 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--deep-forest);
    text-align: center;
}

.checkout-btn {
    background: var(--gradient-gold);
    color: white;
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #c19b26, #a67c1a);
    transform: translateY(-2px);
}
/* =============================================================================
   BUNDLE GENERATOR STYLES - Add to /public/css/style.css after chatbot styles
   ============================================================================= */

.bundle-modal .modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.bundle-content {
    padding: 2rem !important;
}

.bundle-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--sage-mist);
}

.bundle-header h2 {
    color: var(--deep-forest);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.bundle-header p {
    color: var(--warm-grey);
    font-size: 1.1rem;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warm-grey);
    font-weight: 500;
    position: relative;
}

.progress-step::before {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sage-mist);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active::before {
    background: var(--primary-sage);
    color: white;
}

.progress-step.completed::before {
    background: var(--champagne-gold);
    color: white;
    content: '✓';
}

.progress-step.active {
    color: var(--primary-sage);
}

.progress-step.completed {
    color: var(--champagne-gold);
}

/* Bundle Steps */
.bundle-steps {
    min-height: 400px;
    margin: 2rem 0;
}

.bundle-step {
    display: none;
    animation: stepFadeIn 0.3s ease;
}

.bundle-step.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bundle-step h3 {
    color: var(--deep-forest);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

/* Form Grid */
.form-grid {
    display: grid;
    gap: 1.5rem;
}

.bundle-step .form-group {
    margin-bottom: 1.5rem;
}

.bundle-step .form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--deep-forest);
    font-size: 1rem;
}

.bundle-step select,
.bundle-step textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--sage-mist);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.bundle-step select:focus,
.bundle-step textarea:focus {
    outline: none;
    border-color: var(--primary-sage);
}

.bundle-step select.error,
.bundle-step textarea.error {
    border-color: #e74c3c;
}

/* Checkbox Groups */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-group label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500 !important;
    color: var(--charcoal) !important;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-group label:hover {
    background: var(--sage-mist);
}

.checkbox-group input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

/* Scent Cards */
.scent-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.scent-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 2px solid var(--sage-mist);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.scent-card:hover {
    border-color: var(--primary-sage);
    transform: translateY(-2px);
}

.scent-card.selected {
    border-color: var(--primary-sage);
    background: rgba(156, 175, 136, 0.1);
}

.scent-card i {
    font-size: 2rem;
    color: var(--primary-sage);
}

.scent-card span {
    font-weight: 600;
    color: var(--charcoal);
}

/* Bundle Recommendations */
#bundle-recommendations {
    display: grid;
    gap: 1.5rem;
}

.loading-recommendations {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--sage-mist);
    border-top: 4px solid var(--primary-sage);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bundle Recommendation Cards */
.bundle-recommendation-card {
    border: 2px solid var(--sage-mist);
    border-radius: 20px;
    padding: 1.5rem;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.bundle-recommendation-card:hover {
    border-color: var(--primary-sage);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.bundle-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bundle-rank {
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bundle-info {
    flex: 1;
}

.bundle-info h4 {
    color: var(--deep-forest);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.bundle-reason {
    color: var(--warm-grey);
    font-size: 0.9rem;
    font-style: italic;
}

.bundle-price {
    text-align: right;
}

.price-from {
    color: var(--warm-grey);
    font-size: 0.8rem;
    display: block;
}

.price-amount {
    color: var(--primary-sage);
    font-size: 1.5rem;
    font-weight: 700;
}

.bundle-description {
    margin-bottom: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.bundle-benefits {
    margin-bottom: 1rem;
}

.bundle-benefits h5 {
    color: var(--deep-forest);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.benefit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.benefit-tag {
    background: rgba(156, 175, 136, 0.1);
    color: var(--primary-sage);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bundle-products {
    margin-bottom: 1.5rem;
}

.bundle-products h5 {
    color: var(--deep-forest);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.product-list {
    list-style: none;
    padding: 0;
    color: var(--charcoal);
}

.product-list li {
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--sage-mist);
}

.product-list li:last-child {
    border-bottom: none;
}

.bundle-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.bundle-actions button {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Bundle Navigation */
.bundle-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid var(--sage-mist);
    margin-top: 2rem;
}

.bundle-actions .btn-primary,
.bundle-actions .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Error States */
.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--warm-grey);
}

.error-message i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .bundle-modal .modal-content {
        width: 95%;
        padding: 1rem !important;
        margin: 1rem auto;
    }
    
    .progress-bar {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .progress-step::before {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .scent-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .bundle-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .bundle-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bundle-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Product Social Actions */
.product-social-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sage-mist);
}

.social-share-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.social-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-btn.instagram-share {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-btn.pinterest-share {
    background: #bd081c;
    color: white;
}

.social-btn.general-share {
    background: var(--primary-sage);
    color: white;
}

.social-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-soft);
}

/* Floating Social Bar */
.floating-social-bar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-100px);
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    padding: 1rem;
    z-index: 2000;
    transition: transform 0.3s ease;
    border: 2px solid var(--sage-mist);
}

.floating-social-bar.visible {
    transform: translateY(-50%) translateX(0);
}

.social-bar-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-bar-text {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 0.9rem;
}

.social-bar-buttons {
    display: flex;
    gap: 0.5rem;
}

.social-bar-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-bar-btn[data-platform="instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-bar-btn[data-platform="pinterest"] {
    background: #bd081c;
    color: white;
}

.social-bar-btn[data-platform="facebook"] {
    background: #1877f2;
    color: white;
}

.social-bar-btn[data-platform="twitter"] {
    background: #1da1f2;
    color: white;
}

.social-bar-btn:hover {
    transform: scale(1.1);
}

/* Social Share Modal */
.social-share-modal .modal-content {
    max-width: 600px;
}

.share-content {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.product-preview {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--sage-mist);
    border-radius: 12px;
}

.share-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.share-product-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--deep-forest);
}

.share-product-info p {
    margin: 0;
    font-weight: 600;
    color: var(--primary-sage);
}

.share-text label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--deep-forest);
}

.share-text textarea {
    width: 100%;
    height: 120px;
    padding: 1rem;
    border: 2px solid var(--sage-mist);
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
}

.copy-content-btn {
    background: var(--primary-sage);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.share-instructions {
    background: var(--warm-ivory);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--champagne-gold);
}

.share-instructions p {
    margin: 0.5rem 0;
    color: var(--charcoal);
}

.share-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--sage-mist);
}

/* Instagram Feed */
.instagram-feed-container {
    text-align: center;
    padding: 3rem 0;
}

.instagram-feed-container h3 {
    color: var(--deep-forest);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.instagram-post {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.instagram-post:hover {
    transform: scale(1.05);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.instagram-post:hover .instagram-overlay {
    transform: translateY(0);
}

.instagram-follow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.instagram-follow:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Social Platform Badges */
.social-platform-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.social-platform-badge.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-platform-badge.facebook {
    background: #1877f2;
}

.social-platform-badge.google {
    background: #ea4335;
}

/* Influencer Badges */
.influencer-badges {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.badges-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(156, 175, 136, 0.2);
    text-align: center;
}

.badges-label {
    display: block;
    font-size: 0.8rem;
    color: var(--warm-grey);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.platform-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--charcoal);
    font-weight: 500;
}

.platform-badge i {
    font-size: 16px;
}

.platform-badge:nth-child(1) i { color: #E4405F; }
.platform-badge:nth-child(2) i { color: #FF0000; }
.platform-badge:nth-child(3) i { color: #000000; }

/* Social Proof Elements */
.social-proof-section {
    background: var(--sage-mist);
    padding: 3rem 0;
    text-align: center;
}

.social-proof-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.social-stat {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.social-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-sage);
    display: block;
}

.social-stat-label {
    color: var(--warm-grey);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-social-bar {
        left: 10px;
        padding: 0.5rem;
    }
    
    .social-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-bar-text {
        font-size: 0.8rem;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-badges {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .influencer-badges {
        position: static;
        transform: none;
        margin-top: 2rem;
    }
    
    .badges-container {
        margin: 0 1rem;
    }
    
    .social-proof-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .social-stat {
        padding: 1.5rem;
    }
    
    .social-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .floating-social-bar.visible {
        transform: translateY(-50%) translateX(-10px);
    }
    
    .social-share-buttons {
        justify-content: space-around;
    }
    
    .share-actions {
        flex-direction: column;
    }
    
    .instagram-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   MOBILE OPTIMIZATION STYLES - Add to /public/css/style.css after social commerce styles
   ============================================================================= */

/* Mobile-First Variables */
:root {
    --vh: 1vh; /* Dynamic viewport height */
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-left: env(safe-area-inset-left);
    --safe-area-inset-right: env(safe-area-inset-right);
}

/* Touch Interactions */
.touch-feedback {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.touch-feedback::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Quick Actions */
.quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    animation: quickActionsSlide 0.3s ease;
    z-index: 10;
}

@keyframes quickActionsSlide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--primary-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.quick-action-btn:hover,
.quick-action-btn:active {
    transform: scale(1.1);
    background: var(--primary-sage);
    color: white;
}

.quick-action-btn.favorited {
    background: #e74c3c;
    color: white;
}

/* Install Banner */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    z-index: 4000;
    animation: installSlideUp 0.3s ease;
    padding-bottom: calc(1rem + var(--safe-area-inset-bottom));
}

@keyframes installSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.install-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto;
}

.install-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.install-info i {
    font-size: 2rem;
    opacity: 0.9;
}

.install-info div {
    flex: 1;
}

.install-info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.install-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.install-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.install-btn {
    background: white;
    color: var(--primary-sage);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.install-btn:hover {
    transform: scale(1.05);
}

.dismiss-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.dismiss-btn:hover {
    opacity: 1;
}

/* Pull to Refresh */
.pull-refresh-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-sage);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 3000;
    animation: pullIndicatorBounce 0.3s ease;
}

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

.pull-refresh-indicator i {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

/* Bottom Navigation */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--sage-mist);
    display: flex;
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + var(--safe-area-inset-bottom));
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.bottom-nav-item:active {
    background: var(--sage-mist);
    border-radius: 8px;
}

.bottom-nav-item.active {
    color: var(--primary-sage);
}

.bottom-nav-item i {
    font-size: 1.2rem;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

.cart-badge {
    position: absolute;
    top: 0.2rem;
    right: 1rem;
    background: var(--champagne-gold);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Keyboard Adjustments */
.keyboard-open {
    padding-bottom: 0;
}

.keyboard-open .bottom-navigation {
    display: none;
}

.keyboard-open .floating-social-bar {
    display: none;
}

.keyboard-open .chatbot-float {
    display: none;
}

/* Offline State */
.offline {
    filter: grayscale(0.3);
}

.offline::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f39c12;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    z-index: 5000;
}

.offline::after {
    content: '📡 You\'re offline - Some features may not work';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f39c12;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    z-index: 5001;
}

/* Mobile-Specific Product Cards */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .product-card {
        position: relative;
        overflow: visible;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
    
    /* Mobile Cart Sidebar */
    .cart-sidebar {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .cart-sidebar.open {
        animation: mobileCartSlide 0.3s ease;
    }
    
    @keyframes mobileCartSlide {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }
    
    /* Mobile Modals */
    .modal-content {
        width: 95vw;
        max-width: none;
        margin: 1rem auto;
        max-height: calc(100vh - 2rem);
        border-radius: 16px;
    }
    
    /* Mobile Navigation */
    .nav-menu {
        display: none;
    }
    
    .header {
        padding: 0.35rem 1rem;
    }

    .nav-container {
        padding: 0.35rem 1rem;
    }

    .logo-symbol {
        width: 38px;
        height: 38px;
    }

    .logo-main {
        font-size: 1.25rem;
    }

    .logo-tagline {
        display: none; /* hide tagline on mobile — logo text alone is sufficient */
    }

    /* Mobile Hero — badge may wrap; padding-top must clear header + badge height */
    .hero {
        padding: 6.5rem 1rem 5rem;
        text-align: center;
        align-items: flex-start;
    }

    /* Badge: cap width, center, ensure single or wrapped line clears header */
    .hero-badge {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        display: block;
        text-align: center;
        white-space: normal;
        line-height: 1.4;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        padding: 0.45rem 1rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    /* Mobile Footer */
    .footer {
        padding-bottom: calc(4rem + var(--safe-area-inset-bottom));
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        gap: 6px;
    }
    
    .quick-action-btn {
        width: 35px;
        height: 35px;
    }
    
    .install-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .install-actions {
        justify-content: center;
    }
    
    /* Adjust chatbot for small screens */
    .chatbot-window {
        width: calc(100vw - 20px);
        height: 70vh;
        right: 10px;
        bottom: 70px;
    }
    
    /* Bundle modal adjustments */
    .bundle-modal .modal-content {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        max-height: none;
    }
    
    .scent-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .scent-card {
        padding: 1rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 4rem 0 6rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .chatbot-window {
        width: 400px;
        height: 60vh;
    }
    
    .bundle-modal .modal-content {
        width: 90vw;
        height: 90vh;
        margin: 5vh auto;
        border-radius: 16px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn-primary,
    .btn-secondary,
    .social-btn,
    .tab-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    /* Add active states instead */
    .product-card:active {
        transform: scale(0.98);
    }
    
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-symbol::before {
        font-size: 28px;
    }
    
    .social-btn i,
    .quick-action-btn i {
        font-size: 16px;
    }
}

/* Notch Support (iPhone X and newer) */
@supports (padding: max(0px)) {
    .header {
        padding-top: max(1rem, var(--safe-area-inset-top));
        padding-left: max(2rem, var(--safe-area-inset-left));
        padding-right: max(2rem, var(--safe-area-inset-right));
    }
    
    .bottom-navigation {
        padding-left: max(0, var(--safe-area-inset-left));
        padding-right: max(0, var(--safe-area-inset-right));
        padding-bottom: max(0.5rem, var(--safe-area-inset-bottom));
    }
    
    .install-banner {
        padding-left: max(1rem, var(--safe-area-inset-left));
        padding-right: max(1rem, var(--safe-area-inset-right));
        padding-bottom: max(1rem, var(--safe-area-inset-bottom));
    }
}

/* Accessibility Improvements for Mobile */
@media (prefers-reduced-motion: reduce) {
    .quick-actions,
    .install-banner,
    .ripple,
    .touch-feedback::after {
        animation: none;
    }
    
    .product-card:active {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bottom-navigation {
        background: var(--charcoal);
        border-top-color: var(--warm-grey);
    }
    
    .bottom-nav-item {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .bottom-nav-item.active {
        color: var(--champagne-gold);
    }
    
    .quick-action-btn {
        background: rgba(44, 44, 44, 0.9);
        color: white;
    }
}

/* =============================================================================
   CHATBOT INTERFACE STYLES - Add to /public/css/style.css after line 2000
   ============================================================================= */

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 5000;
    font-family: 'Inter', sans-serif;
}

/* Floating Button */
.chatbot-float {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    animation: pulse 2s infinite;
}

.chatbot-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.chatbot-float.active {
    background: var(--deep-forest);
}

.chatbot-float i {
    color: white;
    font-size: 24px;
}

.chat-notification {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    padding: 12px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    max-width: 200px;
    font-size: 14px;
    color: var(--charcoal);
    border: 2px solid var(--sage-mist);
    animation: slideInUp 0.3s ease;
}

.chat-notification::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 8px solid transparent;
    border-top-color: white;
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Window */
.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-deep);
    border: 1px solid var(--sage-mist);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.chatbot-window.open {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Header */
.chatbot-header {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-avatar i {
    font-size: 18px;
    color: white;
}

.chatbot-info {
    flex: 1;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.status-indicator {
    font-size: 12px;
    opacity: 0.9;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--warm-ivory);
}

.message {
    display: flex;
    max-width: 80%;
    animation: messageSlideIn 0.3s ease;
}

.user-message {
    align-self: flex-end;
}

.bot-message {
    align-self: flex-start;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
    background: var(--primary-sage);
    color: white;
    border-bottom-right-radius: 6px;
}

.bot-message .message-content {
    background: white;
    color: var(--charcoal);
    border-bottom-left-radius: 6px;
    border: 1px solid var(--sage-mist);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quick Replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-reply-btn {
    background: transparent;
    border: 2px solid var(--primary-sage);
    color: var(--primary-sage);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.quick-reply-btn:hover {
    background: var(--primary-sage);
    color: white;
}

/* Typing Indicator */
.typing-indicator .message-content {
    padding: 16px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--warm-grey);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Input Area */
.chatbot-input {
    padding: 16px 20px;
    border-top: 1px solid var(--sage-mist);
    display: flex;
    gap: 12px;
    align-items: center;
    background: white;
}

.chatbot-input input {
    flex: 1;
    border: 2px solid var(--sage-mist);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    resize: none;
    max-height: 120px;
    min-height: 40px;
}

.chatbot-input input:focus {
    border-color: var(--primary-sage);
}

.chatbot-send-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-sage);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-send-btn:hover {
    background: var(--deep-forest);
    transform: scale(1.05);
}

.chatbot-send-btn:disabled {
    background: var(--warm-grey);
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }
    
    .chatbot-window {
        width: calc(100vw - 30px);
        height: 70vh;
        max-width: 350px;
        bottom: 70px;
    }
    
    .chat-notification {
        max-width: 180px;
        font-size: 13px;
    }
    
    .chatbot-float {
        width: 55px;
        height: 55px;
    }
    
    .chatbot-float i {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 20px);
        height: 65vh;
        right: 10px;
        bottom: 75px;
    }
    
    .chatbot-messages {
        padding: 15px;
        gap: 12px;
    }
    
    .message-content {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .quick-reply-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .chatbot-window {
        border: 3px solid var(--charcoal);
    }
    
    .message-content {
        border: 2px solid var(--charcoal);
    }
    
    .quick-reply-btn {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .chatbot-float {
        animation: none;
    }
    
    .pulse,
    .slideInUp,
    .messageSlideIn,
    .typingBounce {
        animation: none;
    }
    
    .chatbot-window {
        transition: none;
    }
    
    .message {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .chatbot-window {
        background: var(--charcoal);
        border-color: var(--warm-grey);
    }
    
    .chatbot-messages {
        background: var(--charcoal);
    }
    
    .bot-message .message-content {
        background: var(--warm-grey);
        color: white;
        border-color: var(--charcoal);
    }
    
    .chat-notification {
        background: var(--charcoal);
        color: white;
        border-color: var(--warm-grey);
    }
    
    .chat-notification::after {
        border-top-color: var(--charcoal);
    }
    
    .chatbot-input {
        background: var(--charcoal);
        border-top-color: var(--warm-grey);
    }
    
    .chatbot-input input {
        background: var(--warm-grey);
        color: white;
        border-color: var(--charcoal);
    }
}

/* Chatbot Deployment Modal Styles */
#chatbot-deployment-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

#chatbot-deployment-modal .modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.4s ease;
    position: relative;
}

#chatbot-deployment-modal h2 {
    color: var(--deep-forest);
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
}

#chatbot-deployment-modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--warm-grey);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

#chatbot-deployment-modal .close:hover {
    color: var(--sunset-orange);
}

/* Deployment Status Section */
.deployment-status {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.status-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.status-item i {
    margin-right: 12px;
    font-size: 18px;
    width: 20px;
}

.status-item.completed i {
    color: #28a745;
}

.status-item.pending i {
    color: #ffc107;
    animation: pulse 2s infinite;
}

.status-item span {
    font-weight: 500;
    color: var(--charcoal);
}

/* Chatbot Features Section */
.chatbot-features {
    background: linear-gradient(135deg, var(--soft-mint) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.chatbot-features h3 {
    color: var(--deep-forest);
    margin-bottom: 15px;
    font-size: 18px;
}

.chatbot-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chatbot-features li {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--charcoal);
}

/* Deployment Actions */
.deployment-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.deployment-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--deep-forest) 0%, var(--forest-green) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 114, 88, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Deployment Notes */
.deployment-notes {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #ffc107;
}

.deployment-notes h4 {
    color: #856404;
    margin-bottom: 12px;
    font-size: 16px;
}

.deployment-notes p {
    margin-bottom: 6px;
    color: #856404;
    font-size: 14px;
}

.deployment-notes p:last-child {
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Performance Testing Results Styles */
.performance-results {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.performance-results h3 {
    color: var(--deep-forest);
    margin-bottom: 15px;
}

.test-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-grey);
}

.test-result:last-child {
    border-bottom: none;
}

.test-name {
    font-weight: 500;
    color: var(--charcoal);
}

.test-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-status.passed {
    color: #28a745;
}

.test-status.failed {
    color: #dc3545;
}

.response-time {
    font-size: 14px;
    color: var(--warm-grey);
}

/* Business Validation Styles */
.validation-result {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border-left: 4px solid;
}

.validation-result.valid {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.validation-result.invalid {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.validation-result.pending {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #chatbot-deployment-modal .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .deployment-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .deployment-actions button {
        width: 100%;
        max-width: 250px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    #chatbot-deployment-modal .modal-content {
        border: 3px solid var(--charcoal);
    }
    
    .status-item,
    .test-result {
        border-bottom-color: var(--charcoal);
    }
}

/* --- Footer --- */
.footer {
    background: var(--deep-forest);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--champagne-gold);
    font-weight: 700;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--champagne-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* --- Modals (Login, Register, Checkout) --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    animation: modalFadeIn 0.3s ease forwards; /* Use forwards to keep final state */
    overflow-y: auto; /* Enable scrolling for long forms on small screens */
    padding: 20px 0; /* Add padding for content not to stick to top/bottom */
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 3rem auto;
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-deep);
    animation: modalSlideUp 0.3s ease forwards; /* Use forwards to keep final state */
}

@keyframes modalFadeIn {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(8px); }
}

@keyframes modalSlideUp {
    from { transform: translateY(50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--warm-grey);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--sage-mist);
    color: var(--deep-forest);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--deep-forest);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--sage-mist);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-sage);
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.success-message,
.error-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 500;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    display: none;
    text-align: center;
    color: var(--primary-sage);
    font-weight: 600;
}

/* --- Scroll to Top Button --- */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 100;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.scroll-to-top.visible {
    display: flex;
}

/* --- Animations --- */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes productCardFloat {
    0%, 100% { transform: translateY(0) rotateX(0deg); } /* Reset rotation */
    50% { transform: translateY(-5px) rotateX(2deg); } /* Subtle float with slight tilt */
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

.heartbeat-animation {
    animation: heartbeat 2s infinite;
}

/* Apply productCardFloat animation only on hover for consistency with existing logic */
.product-card:hover {
    animation: none; /* Disable previous animation if any */
    transform: translateY(-12px) rotateX(5deg); /* Keep existing hover transform */
    box-shadow: 0 20px 60px rgba(45, 62, 42, 0.2);
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem; /* Reduce gap for smaller desktops */
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust for slightly smaller screens */
    }
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide navigation menu on smaller screens */
    }

    .hero-container {
        grid-template-columns: 1fr; /* Stack content on mobile */
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        height: 400px;
        max-width: 350px;
        margin: 0 auto; /* Center image */
    }

    .product-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .cart-sidebar {
        width: 100vw;
        right: -100vw; /* Hide completely off-screen */
    }

    .professional-notice {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem; /* Reduce padding */
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem; /* Adjust padding */
    }

    .modal-content {
        margin: 1.5rem auto; /* Adjust margin for better fit on small screens */
        padding: 2rem; /* Reduce padding */
    }

    .footer-content {
        grid-template-columns: 1fr; /* Stack footer sections */
        gap: 2rem;
        text-align: center;
    }
    .footer-section h3 {
        margin-bottom: 0.8rem; /* Reduce space after heading */
    }
    .footer-section a {
        margin-bottom: 0.5rem; /* Reduce space between links */
    }

    .engagement-metrics {
        right: 10px; /* Adjust position for smaller screens */
        padding: 0.8rem;
    }
    .metric-item {
        font-size: 0.7rem;
    }
    .sticky-add-to-cart {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }
    .logo-main {
        font-size: 1.5rem;
    }
    .logo-symbol {
        width: 40px;
        height: 40px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .product-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   HAMBURGER BUTTON
   ========================================================================== */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--deep-forest);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ==========================================================================
   DRAWER OVERLAY
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 40, 28, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1090;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ==========================================================================
   CATALOG DRAWER
   ========================================================================== */
.catalog-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 95vw;
    height: 100dvh;
    background: var(--pure-white);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(30, 40, 28, 0.18);
    overflow: hidden;
}
.catalog-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--sage-mist);
    flex-shrink: 0;
    background: var(--soft-cream);
}
.drawer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.drawer-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--warm-grey);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.drawer-close:hover {
    color: var(--deep-forest);
    background: var(--sage-mist);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem 0 2rem;
    -webkit-overflow-scrolling: touch;
}

.drawer-section {
    padding: 1.25rem 1.25rem 0.5rem;
    border-bottom: 1px solid var(--sage-mist);
}
.drawer-section:last-of-type {
    border-bottom: none;
}

.drawer-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--warm-grey);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.drawer-section-sub {
    font-size: 0.82rem;
    color: var(--warm-grey);
    margin: -0.4rem 0 0.75rem;
    line-height: 1.4;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--charcoal);
    cursor: pointer;
    transition: background 0.18s;
    margin-bottom: 2px;
}
.drawer-item:hover {
    background: var(--sage-mist);
}

.drawer-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--sage-mist);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-forest);
    font-size: 0.95rem;
    flex-shrink: 0;
    position: relative;
}

.drawer-item-text {
    flex: 1;
    min-width: 0;
}
.drawer-item-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--deep-forest);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.drawer-item-text span {
    font-size: 0.76rem;
    color: var(--warm-grey);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.drawer-arrow {
    color: var(--warm-grey);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.drawer-footer {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    flex-wrap: wrap;
}
.drawer-footer a {
    font-size: 0.82rem;
    color: var(--warm-grey);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.drawer-footer a:hover {
    color: var(--champagne-gold);
}

/* ==========================================================================
   SYNERGY INFO BUTTON + TOOLTIP
   ========================================================================== */
.synergy-info-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--champagne-gold);
    font-size: 0.85rem;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s;
}
.synergy-info-btn:hover { transform: scale(1.15); }
.synergy-info-btn.inline { margin-left: 0.25rem; }

/* Absolute position for icon within drawer-item-icon --*/
.drawer-item-icon .synergy-info-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    background: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.synergy-tooltip {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    width: 320px;
    max-width: calc(100vw - 2rem);
    background: var(--deep-forest);
    color: rgba(255,255,255,0.9);
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
    z-index: 1200;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-size: 0.875rem;
    line-height: 1.55;
}
.synergy-tooltip.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.synergy-tooltip h4 {
    color: var(--champagne-gold);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}
.synergy-tooltip strong { color: #fff; }
.synergy-tooltip em { color: var(--primary-sage); font-style: normal; }
.synergy-tooltip-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.7);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.synergy-tooltip-close:hover { background: rgba(255,255,255,0.2); }

/* ==========================================================================
   CHAKRA / ENERGETIC SYNERGY GRID
   ========================================================================== */
.chakra-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
}
.chakra-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0,0,0,0.04);
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    color: var(--charcoal);
    white-space: nowrap;
}
.chakra-chip:hover {
    background: var(--chip-color, #9caf88);
    border-color: var(--chip-color, #9caf88);
    color: #fff;
}
.chakra-chip:hover .chakra-dot { background: #fff; }
.chakra-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--chip-color, #9caf88);
    flex-shrink: 0;
    transition: background 0.2s;
}

/* ==========================================================================
   HERITAGE EDITORIAL LAYOUT — Luxury Brand Upgrade
   ========================================================================== */

.heritage-section { background: var(--deep-forest, #1a2f1e); color: white; }

.heritage-editorial {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 5rem;
    align-items: start;
    padding: 4rem 0;
}

.heritage-statement {
    max-width: 640px;
}

.heritage-statement p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.82);
    margin-bottom: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.heritage-statement p:first-child {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
}

.heritage-statement em {
    font-style: italic;
    color: rgba(255,255,255,1);
}

.heritage-markers {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0.5rem;
    border-left: 1px solid rgba(212,175,55,0.25);
    padding-left: 3rem;
}

.heritage-marker {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.marker-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--champagne-gold, #c9a96e);
    letter-spacing: -0.02em;
    line-height: 1;
    font-family: var(--font-serif, Georgia, serif);
}

.marker-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

@media (max-width: 900px) {
    .heritage-editorial {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem 0;
    }
    .heritage-markers {
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        border-top: 1px solid rgba(212,175,55,0.25);
        padding-left: 0;
        padding-top: 2rem;
        gap: 1.5rem 2.5rem;
    }
    .marker-number { font-size: 1.6rem; }
}

/* ==========================================================================
   PRODUCT CARD — Quantity selector hidden on card (modal only)
   ========================================================================== */

/* Hide quantity input on public card view — modal handles this */
.product-card .quantity-selector { display: none !important; }

/* Hide expand trigger — click card opens modal */
.product-card .expand-trigger { display: none !important; }

/* Remove progressive disclosure height on card */
.product-card .progressive-disclosure { display: none !important; }

/* Tighten product card padding for cleaner look */
.product-card {
    padding: 2.2rem 2rem 1.8rem;
}

/* Flatten the 3D hover — luxury feels level, not animated */
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(45, 62, 42, 0.15);
}

/* Product price — larger, cleaner */
.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--deep-forest);
    margin: 1rem 0 1.2rem;
    letter-spacing: -0.01em;
}

/* Section title — remove badge from collections and guides */
#collections .section-badge,
#wellness .section-badge { display: none; }

/* Section header spacing for badgeless titles */
#collections .section-header h2,
#wellness .section-header h2 {
    margin-top: 0;
}

/* Signature grid — slightly wider cards, more breathing room */
#collections .product-grid[data-collection="signature"] {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
}