/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* ── Refined Brand Palette (premium organic) ──
       Primary  = deep golden-mustard, evokes pure cold-pressed oil
       Secondary = rich espresso for headings (less harsh than pure black)
       Accent    = forest-green, represents organic / agriculture
       Highlight = warm copper, premium accent for CTAs / sale tags
       Surface   = soft warm ivory for low eye-strain
    */
    --color-primary:        #B8860B;   /* dark goldenrod — confident & premium */
    --color-primary-dark:   #8C6508;
    --color-primary-light:  #E8C25A;
    --color-secondary:      #2B1810;   /* espresso */
    --color-secondary-light:#4A2C1B;
    --color-accent:         #2F5233;   /* forest green — organic */
    --color-accent-light:   #4F7B54;
    --color-highlight:      #C46B27;   /* warm copper for emphasis / sale */
    --color-bg:             #FBF7EE;   /* soft ivory base */
    --color-warm-white:     #FFFAF0;
    --color-surface:        #FFFFFF;
    --color-surface-soft:   #F8F2E5;
    --color-text:           #2B1810;
    --color-text-light:     #6B5C4A;
    --color-text-muted:     #8B7C68;
    --color-white:          #ffffff;
    --color-danger:         #B91C1C;
    --color-info:           #1E5DAB;
    --color-border:         #ECE3CF;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 4px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.13), 0 8px 20px rgba(0,0,0,0.05);
    --shadow-glow: 0 0 24px rgba(212, 160, 23, 0.18);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease;
    --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ===== Promo Banner ===== */
.promo-banner {
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-secondary-light) 50%, var(--color-secondary) 100%);
    color: var(--color-primary-light);
    text-align: center;
    padding: 9px 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1001;
}
.promo-banner strong { color: #FFE082; }
.promo-banner .promo-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    transition: var(--transition-fast);
}
.promo-banner .promo-close:hover { color: white; }

/* ===== Utilities ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.88rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.13);
    transform: translateX(-110%);
    transition: transform 0.4s ease;
}
.btn:hover::after { transform: translateX(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.40);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    color: var(--color-white);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.2;
}
.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    margin: 0.9rem auto 0;
    border-radius: 2px;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===== Navbar ===== */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(212, 160, 23, 0.10);
}
.navbar.scrolled {
    padding: 0.45rem 0;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.99);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 46px; transition: var(--transition); }
.navbar.scrolled .logo img { height: 38px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--color-secondary);
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after { width: 100%; }

.cart-icon {
    position: relative;
    font-size: 1.25rem;
    color: var(--color-secondary);
    padding: 9px 10px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-icon:hover {
    background: rgba(212, 160, 23, 0.09);
    color: var(--color-primary);
}
.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-primary), #E6A800);
    color: white;
    font-size: 0.62rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(212, 160, 23, 0.35);
}
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.cart-count.pulse { animation: cartPulse 0.4s ease; }

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, rgba(26,10,0,0.72) 0%, rgba(61,32,16,0.50) 50%, rgba(0,0,0,0.38) 100%), url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding: 0 1rem;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 130px;
    background: linear-gradient(to top, var(--color-bg), transparent);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    margin-bottom: 1.4rem;
    line-height: 1.13;
    text-shadow: 0 3px 12px rgba(0,0,0,0.35);
    animation: fadeInUp 1s ease forwards;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    line-height: 1.8;
}
.hero-content .btn {
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}
.hero-badge-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}
.hero-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #FFE082;
}
.hero-badge i { font-size: 1rem; color: #FFD700; }

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

/* ===== Trust Strip ===== */
.trust-strip {
    background: var(--color-secondary);
    padding: 14px 0;
}
.trust-strip-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary-light);
    font-size: 0.84rem;
    font-weight: 500;
}
.trust-item i { color: var(--color-primary); font-size: 1rem; }

/* ===== Features / Why Us ===== */
.features { padding: 6rem 0; background-color: var(--color-surface); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.feature-card {
    text-align: center;
    padding: 2.5rem 1.8rem;
    background: var(--color-surface);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.08), rgba(212, 160, 23, 0.16));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--color-primary);
    margin: 0 auto 1.5rem;
    transition: var(--transition-spring);
}
.feature-card:hover .feature-icon {
    transform: scale(1.12) rotate(6deg);
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.16), rgba(212, 160, 23, 0.28));
}
.feature-card h3 { color: var(--color-secondary); margin-bottom: 0.8rem; font-size: 1.12rem; }
.feature-card p { color: var(--color-text-light); font-size: 0.92rem; }

/* ===== Product Section ===== */
.products { padding: 6rem 0; background: var(--color-bg); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}
.product-image {
    background: linear-gradient(145deg, #f8f6f0, #f0ece4);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
.product-image img {
    height: 260px;
    margin: 0 auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.product-card:hover .product-image img { transform: scale(1.09); }
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.product-info { padding: 1.4rem 1.8rem 1.8rem; text-align: center; }
.product-title {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    color: var(--color-secondary);
    margin-bottom: 0.4rem;
}
.product-price {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}
.product-price .original {
    color: #999;
    font-weight: 400;
    font-size: 0.95rem;
    text-decoration: line-through;
    margin-left: 6px;
}
.product-desc {
    font-size: 0.88rem;
    color: var(--color-text-light);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}
.product-card-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* ===== Process Section ===== */
.process-section {
    padding: 6rem 0;
    background: var(--color-white);
    text-align: center;
}
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
}
.process-step {
    flex: 1;
    min-width: 180px;
    max-width: 240px;
    position: relative;
}
.process-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.3);
    transition: var(--transition-spring);
    position: relative;
    z-index: 1;
}
.process-step-number {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 26px; height: 26px;
    background: var(--color-secondary);
    color: var(--color-primary-light);
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
}
.process-step:hover .process-icon {
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.4);
}
.process-step h3 { color: var(--color-secondary); margin-bottom: 0.5rem; font-size: 1.05rem; }
.process-step p { font-size: 0.88rem; color: var(--color-text-light); }

/* ===== Testimonials ===== */
.testimonials { padding: 6rem 0; background-color: var(--color-warm-white); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}
.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: var(--color-primary);
    opacity: 0.12;
    position: absolute;
    top: 8px; left: 18px;
    line-height: 1;
}
.testimonial-stars { color: #F59E0B; margin-bottom: 0.8rem; font-size: 0.92rem; }
.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.4rem;
    position: relative; z-index: 1;
    line-height: 1.75;
}
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.testimonial-name { color: var(--color-secondary); font-weight: 600; font-size: 0.95rem; }
.testimonial-badge {
    font-size: 0.75rem;
    color: var(--color-accent);
    display: flex; align-items: center; gap: 4px;
}

/* ===== Footer ===== */
footer {
    background: var(--color-secondary);
    color: #c9b89e;
    padding: 5rem 0 0;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-section h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-light);
    margin-bottom: 1.5rem;
    font-size: 1.12rem;
    position: relative;
}
.footer-section h3::after {
    content: '';
    display: block;
    width: 28px; height: 2px;
    background: var(--color-primary);
    margin-top: 8px;
    border-radius: 2px;
}
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: #9e8c77;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--color-primary-light); padding-left: 5px; }

.social-links { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.social-links a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    color: #bbb;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.09);
}
.social-links a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.newsletter-form { display: flex; margin-top: 1rem; border-radius: var(--radius-sm); overflow: hidden; }
.newsletter-form input {
    padding: 12px 14px;
    border: none; outline: none;
    flex: 1;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 0.88rem;
    font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: #666; }
.newsletter-form button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    padding: 0 18px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}
.newsletter-form button:hover { background: var(--color-primary-dark); }

.footer-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}
.footer-badge {
    background: rgba(212, 160, 23, 0.12);
    border: 1px solid rgba(212, 160, 23, 0.25);
    color: var(--color-primary-light);
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem 0;
}
.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #5c4d3c;
}
.copyright a { color: var(--color-primary); }

/* ===== Toast Notification ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: var(--color-white);
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 290px;
    max-width: 380px;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 4px solid var(--color-primary);
    font-size: 0.9rem;
    pointer-events: all;
}
.toast.toast-success { border-left-color: #4CAF50; }
.toast.toast-error { border-left-color: var(--color-danger); }
.toast.toast-info { border-left-color: var(--color-info); }
.toast-icon { font-size: 1.25rem; flex-shrink: 0; }
.toast-icon.success { color: #4CAF50; }
.toast-icon.error { color: var(--color-danger); }
.toast-icon.info { color: var(--color-primary); }
.toast-message { flex: 1; color: var(--color-text); }
.toast-close {
    background: none; border: none; cursor: pointer;
    color: #bbb; font-size: 1rem; padding: 4px;
    transition: var(--transition-fast);
}
.toast-close:hover { color: var(--color-text); }
.toast.removing { animation: toastSlideOut 0.3s ease forwards; }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(60px) scale(0.94); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastSlideOut {
    to { opacity: 0; transform: translateX(60px) scale(0.94); }
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px; height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.7rem;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    z-index: 998;
    transition: var(--transition-spring);
}
.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}
.whatsapp-float { animation: waPulse 2.5s ease infinite; }

/* ===== Form Styles ===== */
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e0d8cc;
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--color-white);
    outline: none;
    color: var(--color-text);
}
.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}
.form-input::placeholder { color: #bba085; }

/* Floating label form groups */
.form-group-float {
    position: relative;
    margin-bottom: 1.4rem;
}
.form-group-float input,
.form-group-float textarea {
    width: 100%;
    padding: 16px 14px 8px;
    border: 1.5px solid #e0d8cc;
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--color-white);
    outline: none;
    color: var(--color-text);
}
.form-group-float input:focus,
.form-group-float textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}
.form-group-float label {
    position: absolute;
    top: 14px; left: 14px;
    font-size: 0.9rem;
    color: #999;
    transition: all 0.2s ease;
    pointer-events: none;
    background: transparent;
}
.form-group-float input:focus + label,
.form-group-float input:not(:placeholder-shown) + label,
.form-group-float textarea:focus + label,
.form-group-float textarea:not(:placeholder-shown) + label {
    top: 4px;
    font-size: 0.72rem;
    color: var(--color-primary);
    font-weight: 600;
}
.form-group-float .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #bba085;
    font-size: 0.95rem;
}

/* ===== Loading Spinner ===== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}
.spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(212, 160, 23, 0.15);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Auth Pages ===== */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-bg) 0%, #FFF5DC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(212, 160, 23, 0.08);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo img { height: 52px; margin: 0 auto 1rem; }
.auth-logo h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: 0.3rem;
}
.auth-logo p { color: var(--color-text-light); font-size: 0.92rem; }

.flash-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.flash-alert.error {
    background: #FFF5F5;
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.15);
}
.flash-alert.success {
    background: #F1F8F1;
    color: #2E7D32;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

/* ===== Password Strength ===== */
.pw-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #eee;
    margin-top: 6px;
    overflow: hidden;
}
.pw-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0%;
}
.pw-strength-text { font-size: 0.78rem; margin-top: 4px; font-weight: 500; }

/* ===== Profile Page ===== */
.profile-page { padding: 3rem 0 5rem; }
.profile-hero-card {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.profile-hero-card::after {
    content: '';
    position: absolute;
    bottom: -30px; right: -30px;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.08);
}
.profile-avatar-circle {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    font-weight: 700;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.profile-name { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 0.3rem; }
.profile-email { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 0.4rem; }
.profile-since { color: var(--color-primary-light); font-size: 0.82rem; }

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: white;
    padding: 1.4rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    font-weight: 700;
}
.stat-label { font-size: 0.78rem; color: var(--color-text-light); font-weight: 500; margin-top: 3px; }

/* Order status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}
.status-pending { background: #FFF3CD; color: #856404; }
.status-ordered { background: #CCE5FF; color: #004085; }
.status-delivered { background: #D4EDDA; color: #155724; }
.status-cancelled { background: #F8D7DA; color: #721c24; }

/* ===== History Page ===== */
.order-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f5f0e8;
}
.order-id { font-family: var(--font-heading); color: var(--color-secondary); font-size: 1.1rem; }
.order-date { color: var(--color-text-light); font-size: 0.85rem; }
.order-items-list { margin-bottom: 1rem; }
.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px dashed #f0e8d8;
}
.order-item-row:last-child { border-bottom: none; }
.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #f5f0e8;
}
.order-total { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-primary); font-weight: 700; }

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero { min-height: 75vh; background-attachment: scroll; }
    .section-title { font-size: 2rem; }
    .hero-badge-row { gap: 0.8rem; }
    .hero-badge { font-size: 0.76rem; padding: 8px 13px; }
    .trust-strip-inner { gap: 1rem; }
    .trust-item { font-size: 0.78rem; }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(255,255,255,0.99);
        backdrop-filter: blur(20px);
        padding: 1.4rem 1.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: var(--shadow-lg);
        gap: 0;
        border-top: 1px solid rgba(0,0,0,0.05);
        z-index: 999;
    }
    .nav-links li { padding: 0.5rem 0; }
    .nav-links a { padding: 8px 0; display: block; font-size: 1rem; }
    .nav-links.active { display: flex; }
    .hamburger {
        display: block;
        font-size: 1.35rem;
        cursor: pointer;
        color: var(--color-secondary);
        padding: 9px;
        border-radius: var(--radius-sm);
        transition: var(--transition);
    }
    .hamburger:hover { background: rgba(0,0,0,0.05); }

    .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .process-steps { gap: 1.5rem; }
    .process-step { min-width: 140px; }
    .process-steps::before { display: none; }
    .footer-content { grid-template-columns: 1fr; }
    .toast { min-width: auto; left: 10px; right: 10px; }
    .profile-stats { grid-template-columns: 1fr 1fr; }
    .auth-card { padding: 2rem 1.5rem; }
    .copyright { flex-direction: column; text-align: center; }
}

@media (min-width: 769px) {
    .hamburger { display: none; }
}

/* ===== Dropdown ===== */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    background: var(--color-white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    border-radius: var(--radius-sm);
    right: 0;
    top: calc(100% + 8px);
    padding: 0.5rem 0;
    border: 1px solid rgba(0,0,0,0.06);
    animation: dropdownOpen 0.2s ease;
}
@keyframes dropdownOpen {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-content a {
    color: var(--color-text);
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.dropdown-content a:hover {
    background-color: rgba(212, 160, 23, 0.07);
    color: var(--color-primary);
}
.dropdown:hover .dropdown-content { display: block; }

/* ===== Loading skeleton ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f0ece4 25%, #e8e0d4 50%, #f0ece4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ===== About Page ===== */
.about-hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 50%, #5D3A1A 100%);
    padding: 6rem 0 5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(212,160,23,0.1)'/%3E%3C/svg%3E");
}
.about-hero h1 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 0.8rem; }
.about-hero p { opacity: 0.8; font-size: 1.15rem; max-width: 520px; margin: 0 auto; }

/* ===== Contact Page ===== */
.contact-hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    padding: 5.5rem 0 4rem;
    text-align: center;
    color: white;
}
.contact-hero h1 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 0.5rem; }
.contact-hero p { opacity: 0.8; font-size: 1.15rem; }

/* ===== Misc helpers ===== */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-muted { color: var(--color-text-light) !important; }
.bg-warm { background: var(--color-warm-white) !important; }
.card-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}
.card-section h3 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

/* ═══════════════════════════════════════════════════
   MOBILE BOTTOM QUICK-BAR  (≤768 px only)
   Injected by main.js on every page via injectMobileBar()
═══════════════════════════════════════════════════ */
.mob-bar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 998;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: stretch;
    font-family: 'Inter', sans-serif;
}
.mob-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 8px;
    color: #6b5a3a;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    position: relative;
    transition: background 0.15s;
}
.mob-bar a:active { background: rgba(197, 145, 5, 0.08); }
.mob-bar a.active { color: var(--color-primary, #C59105); }
.mob-bar a i { font-size: 19px; line-height: 1; }
.mob-bar a .mob-count {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    background: #e53935;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.mob-bar a .mob-count.show { display: inline-flex; }

/* Activate only on small screens & leave room at bottom so footer isn't hidden */
@media (max-width: 768px) {
    .mob-bar { display: flex; }
    body { padding-bottom: 70px; }               /* reserve space for fixed bar */
    .whatsapp-float { display: none !important; } /* bottom bar already has WhatsApp */
}

/* Extra tightening for very small phones */
@media (max-width: 480px) {
    .product-card .product-price { font-size: 1.15rem; }
    .product-card .btn { padding: 10px 12px !important; font-size: 0.82rem !important; }
    .home-products-grid, .products-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.9rem !important;
    }
    .product-card .product-image img { max-height: 150px; object-fit: contain; }
    .product-card .product-info { padding: 0.8rem !important; }
    .product-card .product-title { font-size: 0.95rem !important; }
    .product-card .product-desc { font-size: 0.78rem !important; line-height: 1.4; }
    .hero-content h1 { font-size: 1.8rem !important; }
    .hero-content p { font-size: 0.95rem !important; }
    .section-title { font-size: 1.65rem !important; }
    /* Tap targets */
    .btn, button.btn { min-height: 44px; }
}

/* Even smaller (e.g. 320px iPhone SE portrait) */
@media (max-width: 360px) {
    .mob-bar a { font-size: 9px; }
    .mob-bar a i { font-size: 17px; }
    .home-products-grid, .products-grid { grid-template-columns: 1fr !important; }
}

/* ===== Refined palette overrides + mobile polish ============================ */
.btn-primary, .btn.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.28);
}
.btn-primary:hover, .btn.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
    transform: translateY(-1px);
}
.btn-outline {
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}
a { color: var(--color-primary-dark); }
a:hover { color: var(--color-highlight); }

/* Cards with smoother surface */
.card, .product-card, .feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.card:hover, .product-card:hover { box-shadow: var(--shadow-md); border-color: rgba(184, 134, 11, 0.3); }

/* ===== Mobile polish (≤768) — already used elsewhere; consolidate here ===== */
@media (max-width: 768px) {
    body { font-size: 15.5px; line-height: 1.65; }
    .container { padding-left: 16px; padding-right: 16px; }
    h1 { font-size: 1.85rem; line-height: 1.2; }
    h2 { font-size: 1.45rem; line-height: 1.25; }
    h3 { font-size: 1.1rem; }
    .promo-banner { font-size: 0.78rem; padding: 8px 12px; }
    .promo-banner .promo-close { right: 8px; font-size: 0.9rem; }
    .navbar .nav-container { padding: 8px 12px; }
    /* Make all CTAs at least 44px tall (Apple HIG / Google touch target) */
    .btn, .btn-primary, .btn-outline, button:not(.qty-ctrl):not(.ps-modal-close):not(.ps-chat-close) {
        min-height: 44px;
    }
    /* Stack filter rows */
    .filters-row { flex-direction: column; gap: 8px; }
    /* Image-heavy hero — keep tighter */
    .hero, .home-hero { padding: 1.5rem 0 2rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    .btn { padding: 11px 18px; font-size: 0.94rem; }
    /* Don't let the chat & prebook FABs push above mobile bottom-bar */
    .mob-bar { z-index: 99970; }
}

/* iOS-safe-area for bottom widgets */
@supports (padding: env(safe-area-inset-bottom)) {
    .ps-chat-fab { bottom: calc(14px + env(safe-area-inset-bottom)); }
    .ps-prebook-fab { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
