/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-color: #267F53;      /* Brand green */
    --accent-color: #FCCA59;       /* Brand yellow */
    --brand-orange: #F5793B;       /* Brand orange */
    --brand-pink: #F296BD;         /* Brand pink */
    --mpesa-green: #267F53;        /* Trust green */
    --mpesa-green-dark: #1d6844;
    --clay: #F5793B;               /* Accent orange for highlights */
    --ink: #1a1513;                /* Near-black text */
    --bg-cream: #fffaf5;           /* Warm off-white background */
    --paper: #fffaf5;              /* Receipt paper tone */
    --line-soft: rgba(38, 127, 83, 0.12);
    --white: #ffffff;
    --page-bg: #fffaf5;
    --page-text: #267F53;
    --page-heading: #267F53;
    --page-accent: #F296BD;
    --page-highlight: #FCCA59;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

    --transition-smooth: all 0.3s ease;
    --transition-drawer: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    --radius: 6px;

    /* Dark mode colors */
    --dark-bg: #1a1513;
    --dark-text: #fffaf5;
    --dark-card: #2a2420;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-cream);
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: transparent;
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 72px;
}

body:not(.home-page) {
    background: linear-gradient(135deg, var(--page-bg) 0%, var(--page-highlight) 100%);
    color: var(--page-text);
}

body:not(.home-page) h1,
body:not(.home-page) h2,
body:not(.home-page) h3,
body:not(.home-page) .section-title {
    color: var(--page-heading);
}

body:not(.home-page) a {
    color: var(--page-heading);
}

body:not(.home-page) .eyebrow {
    color: var(--page-accent);
}

body:not(.home-page) header {
    background-color: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
}

body:not(.home-page) header nav a,
body:not(.home-page) .cart-toggle,
body:not(.home-page) .menu-toggle .bar {
    color: var(--page-heading);
}

body:not(.home-page) .menu-toggle .bar {
    background-color: var(--page-heading);
}

body.home-page {
    position: relative;
    background-color: transparent;
}

.homepage-bg-slider {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.homepage-bg-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(20, 14, 11, 0.28), rgba(20, 14, 11, 0.28));
    z-index: 2;
    pointer-events: none;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateX(25%) scale(1.05);
    animation: slideShow 9s infinite cubic-bezier(0.4, 0.0, 0.2, 1), slidePan 18s infinite ease-in-out;
    will-change: transform, opacity, background-position;
}

.slide-one {
    background-image: url('../images/slide-one.jpg');
    background-image: image-set(
        url('../images/slide-one.webp') type('image/webp'),
        url('../images/slide-one.jpg') type('image/jpeg')
    );
    animation-delay: 0s;
}

.slide-two {
    background-image: url('../images/slide-two.jpg');
    background-image: image-set(
        url('../images/slide-two.webp') type('image/webp'),
        url('../images/slide-two.jpg') type('image/jpeg')
    );
    animation-delay: 3s;
}

.slide-three {
    background-image: url('../images/slide-three.jpg');
    background-image: image-set(
        url('../images/slide-three.webp') type('image/webp'),
        url('../images/slide-three.jpg') type('image/jpeg')
    );
    animation-delay: 6s;
}

@keyframes slideShow {
    0%, 33.33% {
        opacity: 1;
        transform: translateX(0) scale(1.03);
    }
    33.34%, 40% {
        opacity: 0;
        transform: translateX(-18%) scale(1.08);
    }
    100% {
        opacity: 0;
        transform: translateX(-18%) scale(1.08);
    }
}

@keyframes slidePan {
    0%, 100% {
        background-position: center 42%;
    }
    50% {
        background-position: center 58%;
    }
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 3px;
}

/* Screen reader only text - hide visually but keep accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.eyebrow {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--brand-orange);
    margin-bottom: 0.9rem;
    display: block;
}

.eyebrow-center {
    text-align: center;
}

.related-links {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding: 0 1.5rem 3rem;
}

.related-links h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.related-link-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(38, 127, 83, 0.12);
    border-radius: 18px;
    padding: 1.25rem 1.1rem;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(26, 21, 19, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-link-card:hover,
.related-link-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(26, 21, 19, 0.08);
}

.related-link-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--page-heading);
}

.related-link-card span:last-child {
    color: var(--ink);
    opacity: 0.82;
    font-size: 0.95rem;
}

/* ==========================================================================
   2. NAVIGATION HEADER
   ========================================================================== */
header {
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 6%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.logo-mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.logo-ihua {
    color: var(--primary-color);
}

.logo-brew {
    color: var(--brand-orange);
    margin-left: 0.28em;
}

.logo-origin {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    color: #607786;
    margin-top: 0.3rem;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    order: 3;
}

header nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    margin-left: 2rem;
    transition: var(--transition-smooth);
}

header nav a:hover {
    color: var(--clay);
}

.nav-menu {
    order: 2;
}

/* Cart button */
.cart-toggle {
    position: relative;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background-color: var(--clay);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: transform 0.2s ease;
}

.cart-badge.bump {
    transform: scale(1.3);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 0.85rem 2.1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    transition: var(--transition-smooth);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-accent:hover {
    background-color: var(--clay);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-mpesa {
    background-color: var(--mpesa-green);
    color: var(--white);
}

.btn-mpesa:hover {
    background-color: var(--mpesa-green-dark);
}

.btn-mpesa:disabled {
    background-color: #9bb99d;
    cursor: not-allowed;
    transform: none;
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-add-cart {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-add-cart:hover {
    background-color: var(--clay);
}

.btn-add-cart.added {
    background-color: var(--mpesa-green);
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 480px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
    overflow: hidden;
}

/* Signature: topographic contour lines evoking Mt. Kenya's volcanic slopes
   (fallback texture - hidden once the 3D mountain loads successfully) */
.hero-contour {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image:
        repeating-radial-gradient(circle at 15% 110%, transparent 0, transparent 38px, rgba(245, 121, 59, 0.18) 39px, transparent 40px);
    transition: opacity 0.6s ease;
}

.hero.js-3d-active .hero-contour {
    opacity: 0;
}

/* 3D mountain canvas mount point */
.hero-3d {
    position: absolute;
    right: 2%;
    bottom: 0;
    width: min(40vw, 480px);
    height: 78%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.1s ease;
}

.hero-3d.loaded {
    opacity: 1;
}

.hero-3d canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 900px) {
    .hero-3d {
        width: min(55vw, 360px);
        opacity: 0.6;
    }
}

@media (max-width: 640px) {
    /* Skip the 3D scene on small screens - keeps the mobile hero light and fast */
    .hero-3d {
        display: none;
    }
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-content h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.2rem;
    line-height: 1.15;
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2.2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.hero-secondary-link {
    align-self: center;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.7);
    padding-bottom: 0.15rem;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.hero-secondary-link:hover,
.hero-secondary-link:focus-visible {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.trust-strip {
    background-color: rgba(255,255,255,0.92);
    padding: 1.3rem 6%;
    margin-top: 2rem;
    border-radius: 18px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.trust-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.trust-item {
    display: grid;
    gap: 0.35rem;
    color: #2d3b4c;
    font-size: 0.95rem;
}

.trust-item strong {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
}

.origin-preview {
    padding: 2.5rem 6% 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.origin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.origin-card {
    background-color: rgba(255,255,255,0.95);
    padding: 1.8rem;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    color: #4d4239;
}

.origin-card h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.origin-card p {
    color: #44586a;
    line-height: 1.8;
}

@media (max-width: 640px) {
    .hero-content {
        padding: 0 0.75rem;
    }

    .hero-sub {
        max-width: 100%;
        font-size: 1rem;
    }

    .trust-strip,
    .origin-preview,
    .faq-preview,
    .feature-hub,
    .menu-preview,
    .about,
    .contact,
    .process,
    .brew-guide,
    .testimonials {
        padding-left: 4%;
        padding-right: 4%;
    }

    .trust-inner,
    .origin-grid,
    .faq-preview-grid,
    .feature-grid,
    .process-grid,
    .brew-grid,
    .testimonial-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .faq-preview-card {
        padding: 1.4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-secondary-link,
    .btn {
        width: 100%;
        text-align: center;
    }

    .header-actions {
        gap: 0.8rem;
    }
}

.hero .eyebrow {
    color: var(--accent-color);
    text-align: center;
}

/* ==========================================================================
   5. MENU / VARIETIES SHOWCASE
   ========================================================================== */
.menu-preview {
    padding: 5rem 6%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-preview h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    text-align: left;
}

.menu-item {
    background-color: var(--white);
    padding: 1.9rem 1.7rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, border-top-color 0.3s ease;
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    will-change: transform;
}

.menu-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-top-color: var(--accent-color);
}

.menu-item-media {
    display: block;
    margin: -1.9rem -1.7rem 1.3rem;
    background-color: var(--white);
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
    flex: 0 0 auto;
}

.menu-item-top {
    flex: 1 1 auto;
}

.menu-item-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.menu-item:hover .menu-item-media img {
    transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .menu-item-media img {
        transition: none;
    }

    .menu-item:hover .menu-item-media img {
        transform: none;
    }
}

.origin-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clay);
}

.menu-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0.5rem 0 0.6rem;
}

.tasting-note {
    color: #4a5d73;
    font-size: 0.92rem;
    margin-bottom: 1.4rem;
}

.menu-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid var(--line-soft);
    padding-top: 1rem;
}

.price {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--ink);
    font-size: 1.02rem;
}

.price-currency {
    font-size: 0.75em;
    color: #607786;
}

/* ==========================================================================
   5E. 3D TILT CARDS (mouse-tracking, pointer:fine only)
   ========================================================================== */
.tilt-card {
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.tilt-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--glare-x, 50%) var(--glare-y, 50%),
        rgba(255, 255, 255, 0.45),
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.tilt-card:hover .tilt-glare {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .tilt-card {
        transition: box-shadow 0.3s ease;
    }
}

/* ==========================================================================
   6. OUR STORY SECTION
   ========================================================================== */
.about {
    background-color: var(--white);
    padding: 5rem 6%;
    text-align: center;
}

.about-content {
    max-width: 680px;
    margin: 0 auto;
}

.about h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about p {
    color: #304259;
    font-size: 1.02rem;
}

/* ==========================================================================
   7. CONTACT SECTION
   ========================================================================== */
.contact {
    padding: 5rem 6%;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.contact h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.contact-item h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

.contact-item p {
    color: #4a5d73;
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--clay);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   5B. PROCESS SECTION
   ========================================================================== */
.process {
    background-color: var(--white);
    padding: 5rem 6%;
    text-align: center;
}

.process h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.process-step {
    text-align: left;
}

.process-number {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent-color);
    -webkit-text-stroke: 1px var(--primary-color);
    display: block;
    margin-bottom: 0.6rem;
}

.process-step h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.process-step p {
    color: #4a5d73;
    font-size: 0.92rem;
}

.faq-preview {
    background-color: var(--white);
    padding: 4rem 6%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.faq-preview-inner {
    max-width: 840px;
    margin: 0 auto;
}

.faq-preview h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.faq-preview-card {
    background-color: var(--bg-cream);
    padding: 1.65rem 1.5rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.faq-preview-card h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 0.65rem;
}

.faq-preview-card p {
    color: #44586a;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .faq-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   5C. BREW GUIDE SECTION
   ========================================================================== */
.brew-guide {
    padding: 5rem 6%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.brew-guide h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.brew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    text-align: left;
}

.brew-card {
    background-color: var(--white);
    padding: 1.9rem 1.7rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.brew-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.brew-ratio {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--clay);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
}

.brew-card p:last-child {
    color: #4a5d73;
    font-size: 0.92rem;
}

/* ==========================================================================
   5D. TESTIMONIALS SECTION
   ========================================================================== */
.testimonials {
    background-color: var(--white);
    padding: 5rem 6%;
    text-align: center;
}

.testimonials h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--bg-cream);
    padding: 1.9rem 1.7rem;
    border-radius: 8px;
    text-align: left;
    border-left: 4px solid var(--accent-color);
}

.testimonial p {
    color: var(--ink);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial footer {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--clay);
}

/* ==========================================================================
   6B. ABOUT STATS
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line-soft);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #607786;
    margin-top: 0.3rem;
}

/* ==========================================================================
   7B. FAQ SECTION
   ========================================================================== */
.faq {
    padding: 5rem 6%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.faq-list {
    text-align: left;
}

.faq-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--accent-color);
    -webkit-text-stroke: 1px var(--primary-color);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

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

.faq-item p {
    color: #4a5d73;
    font-size: 0.92rem;
    margin-top: 0.9rem;
}

/* ==========================================================================
   7C. NEWSLETTER SECTION
   ========================================================================== */
.newsletter {
    background-color: var(--primary-color);
    padding: 4rem 6%;
    text-align: center;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter h2 {
    color: var(--white);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 0.8rem;
}

.newsletter-content p {
    color: #dde9f8;
    font-size: 0.95rem;
    margin-bottom: 1.6rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 220px;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: none;
    font-family: var(--font-body);
    font-size: 0.92rem;
}

.newsletter-status {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-color);
    margin-top: 1rem;
    min-height: 1.2rem;
}

/* ==========================================================================
   8. AUTH PAGES
   ========================================================================== */
.nav-account-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--page-heading);
    font-weight: 600;
}

.nav-account-link svg {
    flex-shrink: 0;
}

.header-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--page-heading, var(--primary-color));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.header-account-link:hover {
    color: var(--page-accent, var(--accent-color));
}

.auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    padding: 3rem 1.25rem 4rem;
}

.auth-card {
    width: min(100%, 620px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(38, 127, 83, 0.16);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(20, 16, 10, 0.12);
    padding: 2rem;
}

.auth-card h1,
.auth-card h2 {
    margin-bottom: 0.75rem;
}

.auth-card p {
    margin-bottom: 1rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--page-text);
}

.auth-form input {
    width: 100%;
    border: 1px solid rgba(38, 127, 83, 0.28);
    border-radius: 999px;
    padding: 0.9rem 1rem;
    font: inherit;
    color: var(--ink);
    background: var(--white);
}

.auth-form input:focus {
    outline: 2px solid var(--page-accent);
    outline-offset: 2px;
    border-color: var(--page-accent);
}

.auth-strength {
    font-size: 0.9rem;
    color: var(--page-text);
    margin-top: -0.25rem;
}

.auth-strength.score-1 {
    color: #1f5d7a;
}

.auth-strength.score-2 {
    color: #4c7bf3;
}

.auth-strength.score-3 {
    color: #4c7bf3;
}

.auth-strength.score-4 {
    color: #267f53;
}

.auth-status {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-status.error {
    color: #b42318;
}

.auth-status.success {
    color: #267f53;
}

.auth-toggle-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.auth-toggle-btn {
    flex: 1;
    border: 1px solid rgba(38, 127, 83, 0.2);
    background: #f7f2e9;
    color: var(--page-text);
    border-radius: 999px;
    padding: 0.8rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-toggle-btn.active {
    background: var(--page-heading);
    color: var(--white);
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.auth-switch {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--page-heading);
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-full {
    width: 100%;
}

.btn-accent {
    background: var(--page-heading);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--page-accent);
    color: var(--white);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
footer {
    background-color: var(--primary-color);
    color: #dfeaf5;
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    font-size: 0.85rem;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-secure {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #dfeaf5;
    text-decoration: none;
    font-size: 0.82rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ==========================================================================
   9. CART DRAWER
   ========================================================================== */
.cart-backdrop,
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(20, 14, 11, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1400;
}

.cart-backdrop.active,
.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, 100%);
    background-color: var(--bg-cream);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: var(--transition-drawer);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--line-soft);
}

.cart-drawer-header h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--primary-color);
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-empty {
    color: #607786;
    font-size: 0.92rem;
    text-align: center;
    margin-top: 2rem;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.cart-line-name {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
}

.cart-line-unit {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #607786;
    margin-top: 0.2rem;
}

.cart-line-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.qty-value {
    font-family: var(--font-mono);
    min-width: 1.2rem;
    text-align: center;
    font-size: 0.9rem;
}

.cart-line-total {
    font-family: var(--font-mono);
    font-weight: 600;
    white-space: nowrap;
}

.cart-drawer-footer {
    padding: 1.25rem 1.5rem 1.75rem;
    border-top: 1px solid var(--line-soft);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    color: var(--primary-color);
}

.cart-total-value {
    font-family: var(--font-mono);
}

/* ==========================================================================
   10. CHECKOUT MODAL - "RECEIPT SLIP" SIGNATURE ELEMENT
   ========================================================================== */
.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    z-index: 1600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    width: min(420px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.receipt {
    position: relative;
    background-color: var(--paper);
    padding: 2.2rem 1.8rem 1.6rem;
    box-shadow: 0 20px 50px rgba(20, 14, 11, 0.3);
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 27px,
        rgba(26, 21, 19, 0.035) 28px
    );
}

/* Torn / perforated bottom edge, like a paper receipt */
.receipt::before,
.receipt::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 14px;
    background: radial-gradient(circle at 10px 0, transparent 8px, var(--bg-cream) 8px);
    background-size: 20px 14px;
    background-repeat: repeat-x;
}

.receipt::before {
    top: -1px;
    transform: rotate(180deg);
}

.receipt::after {
    bottom: -1px;
}

.checkout-close {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary-color);
    cursor: pointer;
}

.receipt-header {
    text-align: center;
    margin-bottom: 1.4rem;
}

.receipt-brand {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--clay);
    display: block;
    margin-bottom: 0.5rem;
}

.receipt-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.receipt-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #607786;
    display: block;
    margin-top: 0.3rem;
}

.receipt-lines {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    color: #2d3b4c;
}

.receipt-divider {
    border-top: 1px dashed rgba(74, 52, 41, 0.4);
    margin: 0.9rem 0;
}

.receipt-total-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1.4rem;
}

.pay-tabs {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    margin-bottom: 1.2rem;
}

.pay-tab {
    flex: 1;
    padding: 0.7rem;
    background: var(--white);
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    color: #607786;
    transition: var(--transition-smooth);
}

.pay-tab.active {
    background: var(--primary-color);
    color: var(--white);
}

.pay-panel label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.pay-panel input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(74, 52, 41, 0.25);
    border-radius: var(--radius);
    background: var(--white);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

.mpesa-input {
    display: flex;
    align-items: stretch;
    margin-bottom: 0.3rem;
}

.mpesa-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.7rem;
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(74, 52, 41, 0.25);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: var(--font-mono);
    color: var(--mpesa-green-dark);
    font-size: 0.9rem;
}

.mpesa-input input {
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 0;
}

.pay-hint {
    font-size: 0.78rem;
    color: #607786;
    margin-bottom: 1rem;
}

.pay-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.receipt-status {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    margin-top: 1rem;
    min-height: 1.2rem;
    color: var(--mpesa-green-dark);
}

.receipt-status.error {
    color: var(--clay);
}

.receipt-perforation {
    display: none;
}

.pay-button-label.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   10B. 3D TILT CARDS (mouse-tracking, hover-capable devices only)
   ========================================================================== */
.tilt-card {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, 0.55),
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.tilt-card.tilt-active::after {
    opacity: 1;
}

/* ==========================================================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    header {
        padding: 0.9rem 5%;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 72px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - 72px);
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    header nav a {
        display: block;
        margin: 2rem 0;
        font-size: 1.2rem;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .cart-drawer {
        width: 100%;
    }

    .pay-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   12. ACCESSIBILITY: SKIP LINK
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -60px;
    left: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* ==========================================================================
   13. ANCHOR SCROLL OFFSET (accounts for fixed header)
   ========================================================================== */
section[id] {
    scroll-margin-top: 88px;
}

/* ==========================================================================
   14. ACTIVE NAV LINK (scrollspy)
   ========================================================================== */
header nav a.active {
    color: var(--clay);
    font-weight: 700;
}

/* ==========================================================================
   15. SECURE PAYMENT NOTE (checkout modal)
   ========================================================================== */
.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #607786;
    margin-top: 0.9rem;
}

/* ==========================================================================
   16. SCROLL-REVEAL (fade-in-on-scroll for sections)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   17. SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
    z-index: 900;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--clay);
}

/* ==========================================================================
   18. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 2000;
    pointer-events: none;
    width: 100%;
    max-width: 92vw;
}

.toast {
    background-color: var(--ink);
    color: var(--white);
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-check {
    color: var(--accent-color);
    font-weight: 700;
}

/* ==========================================================================
   19. LEGAL / STATIC PAGE LAYOUT (privacy, terms, returns, 404)
   ========================================================================== */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 4rem 6% 6rem;
}

.legal-page h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.legal-updated {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #607786;
    margin-bottom: 2.5rem;
    display: block;
}

.legal-page h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 2.2rem;
    margin-bottom: 0.8rem;
}

.legal-page p,
.legal-page li {
    color: #2d3b4c;
    font-size: 0.98rem;
    margin-bottom: 0.9rem;
}

.legal-page ul {
    padding-left: 1.4rem;
}

.legal-disclaimer {
    background-color: var(--paper);
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 2rem 0;
}

.not-found {
    text-align: center;
    padding: 7rem 6%;
}

.not-found .eyebrow-center {
    display: block;
}

.not-found h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.not-found p {
    color: #4a5d73;
    margin-bottom: 2rem;
}

/* ==========================================================================
   20. COMPACT HERO (landing hub - no full viewport, no scroll needed)
   ========================================================================== */
.hero-compact {
    height: auto;
    min-height: 0;
    padding: 3.5rem 1.5rem;
}

.hero-compact .hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero-compact .hero-sub {
    margin-bottom: 0;
}

/* ==========================================================================
   21. FEATURE HUB (tap-through cards - the core of the landing page)
   ========================================================================== */
.feature-hub {
    /* Sits directly under the hero, so the trust strip's own top margin
       supplies the gap below - no extra bottom padding needed here. */
    padding: 3rem 6% 1.5rem;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-hub h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--primary-color);
    margin-bottom: 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth), transform 0.25s ease;
    position: relative;
    border-top: 4px solid transparent;
}

.feature-card:hover,
.feature-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent-color);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-cream);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.feature-desc {
    color: #4a5d73;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.feature-arrow {
    margin-top: auto;
    align-self: flex-end;
    font-size: 1.3rem;
    color: var(--clay);
    transition: transform 0.2s ease;
}

.feature-card:hover .feature-arrow,
.feature-card:focus-visible .feature-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   22. BREADCRUMB (inner pages)
   ========================================================================== */
.breadcrumb {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.25rem 6% 0;
    font-size: 0.82rem;
    color: #607786;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--clay);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span[aria-current] {
    color: var(--ink);
    font-weight: 600;
}

/* ==========================================================================
   23. PRINT STYLES (clean receipt if someone prints/saves as PDF)
   ========================================================================== */
@media print {
    header, footer, .cart-drawer, .cart-backdrop, .scroll-top,
    .toast-container, .skip-link, .breadcrumb, .feature-hub, .contact-fab {
        display: none !important;
    }

    .checkout-modal {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        width: 100% !important;
        max-height: none !important;
    }

    .modal-backdrop {
        display: none !important;
    }

    .receipt {
        box-shadow: none !important;
    }

    .checkout-close, .pay-tabs, #checkout-form, .receipt-status {
        display: none !important;
    }
}

/* ==========================================================================
   24. RESPONSIVE: feature grid / breadcrumb
   ========================================================================== */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   25. FLOATING CONTACT WIDGET (call / WhatsApp / email)
   Injected on every page by js/script.js, the same way the header account
   button is. Anchored bottom-left so it never collides with the
   bottom-right scroll-to-top button; same z-index layer, so both stay
   underneath the header, cart drawer and checkout modal.
   ========================================================================== */
.contact-fab {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 900;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-fab-toggle {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: background-color 0.2s ease, transform 0.25s ease;
}

.contact-fab-toggle:hover {
    background-color: var(--clay);
    transform: translateY(-2px);
}

.contact-fab-toggle:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* Cross-fade the chat glyph into a close glyph as the stack opens. */
.contact-fab-toggle svg {
    position: absolute;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.contact-fab-toggle .contact-fab-close-icon,
.contact-fab.open .contact-fab-toggle .contact-fab-open-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

.contact-fab.open .contact-fab-toggle .contact-fab-close-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Gentle attention ring, suppressed once the stack is open. */
.contact-fab-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: contact-fab-pulse 2.8s ease-out infinite;
    pointer-events: none;
}

.contact-fab.open .contact-fab-toggle::after {
    animation: none;
    opacity: 0;
}

@keyframes contact-fab-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

.contact-fab-actions {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.7rem;
}

/* Scoped under .contact-fab to outrank `body:not(.home-page) a`. */
.contact-fab .contact-fab-action {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.9);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.contact-fab.open .contact-fab-action {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Stagger outward from the toggle. */
.contact-fab.open .contact-fab-action:nth-child(1) { transition-delay: 0.04s; }
.contact-fab.open .contact-fab-action:nth-child(2) { transition-delay: 0.09s; }
.contact-fab.open .contact-fab-action:nth-child(3) { transition-delay: 0.14s; }

.contact-fab .contact-fab-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease;
}

.contact-fab .contact-fab-action:hover .contact-fab-icon,
.contact-fab .contact-fab-action:focus-visible .contact-fab-icon {
    transform: scale(1.08);
}

.contact-fab .contact-fab-action:focus-visible .contact-fab-icon {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* Official brand colours for the brand marks; the call button keeps the
   site's own green since a phone glyph has no brand of its own. */
.contact-fab .contact-fab-whatsapp .contact-fab-icon { background-color: #25D366; }
.contact-fab .contact-fab-call .contact-fab-icon     { background-color: var(--primary-color); }
.contact-fab .contact-fab-email .contact-fab-icon    { background-color: #EA4335; }

.contact-fab .contact-fab-label {
    background-color: var(--ink);
    color: var(--white);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    /* The global reduced-motion rule shortens durations, which would make an
       infinite pulse flicker - drop the ring entirely instead. */
    .contact-fab-toggle::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .contact-fab {
        left: 1rem;
        bottom: 1rem;
        gap: 0.6rem;
    }

    .contact-fab-toggle {
        width: 48px;
        height: 48px;
    }

    .contact-fab .contact-fab-icon {
        width: 42px;
        height: 42px;
    }

    .contact-fab .contact-fab-label {
        font-size: 0.72rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ==========================================================================
   20. PRODUCT RATINGS
   ========================================================================== */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.rating-stars {
    display: flex;
    gap: 0.15rem;
}

.star {
    color: var(--accent-color);
    font-size: 0.9rem;
    line-height: 1;
}

.star.empty {
    opacity: 0.25;
}

.rating-count {
    font-size: 0.78rem;
    color: #607786;
    font-family: var(--font-mono);
}

/* ==========================================================================
   21. BACK-TO-TOP BUTTON
   ========================================================================== */
#scroll-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 900;
}

#scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-top:hover {
    background-color: var(--clay);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* ==========================================================================
   22. DARK MODE TOGGLE
   ========================================================================== */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: transform 0.2s ease, color 0.2s ease;
}

.dark-mode-toggle:hover {
    color: var(--clay);
    transform: rotate(20deg);
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-mode header {
    background-color: #2a2420;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .white,
body.dark-mode .bg-cream {
    background-color: var(--dark-card);
    color: var(--dark-text);
}

body.dark-mode .ink {
    color: var(--dark-text);
}

body.dark-mode footer {
    background-color: #1a1513;
}

/* ==========================================================================
   23. IMAGE LIGHTBOX
   ========================================================================== */
.lightbox-trigger {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.lightbox-trigger:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.lightbox-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

/* ==========================================================================
   24. SEARCH BOX
   ========================================================================== */
#search-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#search-modal.active {
    display: flex;
    opacity: 1;
}

.search-container {
    width: 90%;
    max-width: 500px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--line-soft);
}

.search-icon {
    color: #607786;
    margin-right: 0.7rem;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--ink);
    outline: none;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--line-soft);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: var(--bg-cream);
}

.search-result-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.search-result-desc {
    font-size: 0.9rem;
    color: #607786;
}

.search-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: #607786;
    font-style: italic;
}

/* ==========================================================================
   25. LIVE CHAT WIDGET
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 800;
}

.chat-bubble {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.chat-bubble:hover {
    transform: scale(1.1);
    background-color: var(--clay);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 420px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--line-soft);
}

.chat-window.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px 8px 0 0;
}

.chat-header-title {
    font-weight: 600;
    margin: 0 0 0.2rem;
}

.chat-header-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.chat-message {
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
}

.chat-message.bot {
    background-color: var(--bg-cream);
    color: var(--ink);
    align-self: flex-start;
}

.chat-message.user {
    background-color: var(--primary-color);
    color: var(--white);
    align-self: flex-end;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    padding: 0.8rem;
    border-top: 1px solid var(--line-soft);
}

.chat-input {
    flex: 1;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 0.6rem 0.8rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
}

.chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(38, 127, 83, 0.1);
}

.chat-send-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-send-btn:hover {
    background-color: var(--clay);
}

/* ==========================================================================
   26. SMOOTH FADE-IN ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease;
}

/* ==========================================================================
   27. FEATURE HUB CARDS
   ========================================================================== */
.feature-hub {
    padding: 5rem 6%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-hub h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--ink);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-top: 3px solid var(--accent-color);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-cream);
    border-radius: 8px;
    color: var(--primary-color);
}

.feature-card:hover .feature-icon {
    background-color: var(--accent-color);
    color: var(--white);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.feature-desc {
    font-size: 0.92rem;
    color: #607786;
    line-height: 1.6;
    flex-grow: 1;
}

.feature-arrow {
    font-size: 1.4rem;
    color: var(--clay);
    transition: transform 0.2s ease;
}

.feature-card:hover .feature-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   28. BREADCRUMB NAVIGATION
   ========================================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 6%;
    font-size: 0.9rem;
    color: #607786;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--clay);
}

.breadcrumb span[aria-current] {
    color: var(--ink);
    font-weight: 600;
}

/* ==========================================================================
   29. LOADING SPINNER
   ========================================================================== */
.spinner {
    border: 3px solid var(--line-soft);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   30. TRUST BADGES
   ========================================================================== */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 6%;
    max-width: 1000px;
    margin: 0 auto;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.badge-text {
    text-align: center;
    color: #4a5d73;
}

/* ==========================================================================
   31. BORDER EFFECTS
   ========================================================================== */
.border-top-accent {
    border-top: 3px solid var(--accent-color);
}

.border-left-accent {
    border-left: 4px solid var(--accent-color);
}

.border-bottom-accent {
    border-bottom: 2px solid var(--accent-color);
}
