:root {
    --bg-color: #FDFBF7;
    --text-color: #4A3B32;
    --accent-gold: #D4A017;
    --accent-terracotta: #CC5500;
    --action-green: #2E5936;
    --action-hover: #1e3b23;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    /* Changed from absolute to fixed */
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, background 0.3s ease, padding 0.3s ease;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(253, 251, 247, 0.9);
    /* Glassmorphism background */
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.site-header.hidden {
    transform: translateY(-100%);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

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

/* Section A: Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 5% 4rem;
}

.hero-image-container {
    width: 100%;
    max-width: 800px;
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(74, 59, 50, 0.1);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sub-headline {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--action-green);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s;
    margin-bottom: 0.5rem;
}

.cta-button:hover {
    background-color: var(--action-hover);
    transform: translateY(-2px);
}

.trust-signal {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Section B: Sensory Breakdown */
.sensory-section {
    padding: 6rem 5%;
    background-color: #fff;
}

.sensory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.sensory-image img {
    width: 100%;
    border-radius: 12px;
}

.sensory-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-terracotta);
}

@media (max-width: 768px) {
    .sensory-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sensory-grid> :first-child {
        order: 1;
        /* Image first on mobile? Prompt said visual on left, text on right, reverses on mobile. Wait, standard is stack vertical. If reverse, Text first? "Image on left, text on right (reverses on mobile)". Usually means Text then Image on mobile. Let's stick to simple stacking for now, Image Top is usually better for "Taste with eyes". Let's do Image Top. */
        order: 0;
    }
}

/* Section C: Scale */
.scale-section {
    padding: 6rem 5%;
    background-color: var(--bg-color);
    text-align: center;
}

.scale-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.scale-image {
    width: 100%;
    border-radius: 12px;
}

.scale-overlay {
    margin-top: 2rem;
}

.scale-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Section D: Shop */
.shop-section {
    padding: 6rem 5%;
    background-color: #fff;
    text-align: center;
}

.shop-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.product-card.highlight {
    border: 2px solid var(--accent-gold);
    background: #fff8eb;
}

.badge {
    position: absolute;
    top: -12px;
    background: var(--accent-gold);
    color: var(--text-color);
    font-weight: bold;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.product-card img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pack-desc {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

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

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.checkout-form-grid .form-group {
    margin-bottom: 0;
}

/* Make full width on mobile or specific rows */
.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #fdfdfd;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--action-green);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46, 89, 54, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--action-green);
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: auto;
    display: block;
    /* Default visible */
}

.add-to-cart-btn.hidden {
    display: none;
}

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

.add-to-cart-btn.primary {
    background: var(--action-green);
    border-color: var(--action-green);
    color: var(--white);
}

.add-to-cart-btn.primary:hover {
    background: var(--action-hover);
}

.card-qty-control {
    display: none;
    /* Default hidden */
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: auto;
}

.card-qty-control.visible {
    display: flex;
}

.card-qty-btn {
    width: 38px;
    /* Wider */
    height: 30px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 6px;
    /* Rounded rectangle */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 0;
    /* Fix alignment */
    padding-bottom: 3px;
    /* Visual optical center tweak */
    color: var(--action-green);
    transition: all 0.2s;
}

.card-qty-btn:hover {
    background: var(--action-green);
    color: var(--white);
    border-color: var(--action-green);
}

.card-qty-count {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Section E: Social Proof */
.social-proof-section {
    padding: 4rem 0;
    background: var(--accent-terracotta);
    color: var(--white);
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.testimonial {
    display: inline-block;
    vertical-align: middle;
    width: 300px;
    white-space: normal;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 0 1rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.testimonial span {
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background: var(--text-color);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Sticky Bar (Mobile) */
.sticky-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: none;
    /* JS will toggle this */
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-top: 1px solid #eee;
}

.sticky-image-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.sticky-info {
    display: flex;
    flex-direction: column;
}

.sticky-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.sticky-price {
    color: var(--action-green);
    font-size: 0.9rem;
}

.sticky-btn {
    background: var(--action-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {
    /* Sticky bar logic handled in JS, but ensure its hidden initially */
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transition: transform 0.2s;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
    /* Space for icon */
    height: 48px;
    /* Fixed height to prevent jumping */
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    /* Enforce consistent font */
    font-size: 1rem;
}

/* Make dots larger/more spaced when hidden */
.password-wrapper input[type="password"] {
    letter-spacing: 2px;
    font-weight: 900;
    /* Makes default dots appear bolder/larger */
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #666;
    user-select: none;
}

/* Toast Notification */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 100px;
        /* Above sticky bar */
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 600px;
    /* Slightly wider for wizard */
    padding: 2.5rem;
    border-radius: 1rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    z-index: 2;
}

/* Wizard Styles */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #eee;
    z-index: 0;
    transform: translateY(-50%);
}

.step-indicator {
    width: 30px;
    height: 30px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #999;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.step-indicator.active {
    background: var(--action-green);
    color: var(--white);
    transform: scale(1.1);
}

.step-indicator.completed {
    background: var(--action-green);
    color: var(--white);
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.wizard-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: var(--action-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-title {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #666;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 0;
    /* Fix alignment */
    padding-bottom: 2px;
    /* Visual optical center tweak */
    color: var(--text-color);
}

.qty-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}


.order-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
}