/* ---------- assets/css/style.css ---------- */


/* ---------- Aquatic / Waters theme ---------- */

:root {
    --bg: #eef7f9;
    --surface: #ffffff;
    --ink: #0a2e36;
    --muted: #4a6a73;
    --accent: #00838f;
    --accent-dark: #006064;
    --accent-soft: #e0f2f4;
    --spice: #d48c2c;
    --danger: #b23b3b;
    --shadow: 0 18px 38px rgba(0, 72, 80, 0.12);
    --header-button-bg: #ffffff;
    --header-button-border: rgba(0, 131, 143, 0.25);
    --header-button-ink: var(--accent-dark);
    --header-button-hover-bg: var(--accent);
    --header-button-hover-ink: #ffffff;
    --header-button-shadow: 0 10px 18px rgba(0, 131, 143, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 12% 10%, rgba(0, 131, 143, 0.12), transparent 45%), radial-gradient(circle at 88% 20%, rgba(212, 140, 44, 0.1), transparent 42%), radial-gradient(circle at 20% 80%, rgba(0, 131, 143, 0.08), transparent 50%), linear-gradient(135deg, #f0fafc 0%, #e0f2f4 100%);
    min-height: 100vh;
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 12px 22px rgba(0, 131, 143, 0.22), 0 0 0 rgba(0, 131, 143, 0);
    }
    50% {
        box-shadow: 0 16px 28px rgba(0, 131, 143, 0.3), 0 0 18px var(--btn-glow, rgba(0, 131, 143, 0.35));
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .hamburger,
    .cart-button,
    .reset-btn,
    .mobile-menu-close,
    .hero-image-card,
    .hero-badge,
    .section-header,
    .product-card {
        animation: none !important;
        transition: none !important;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

.muted {
    color: var(--muted);
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 131, 143, 0.12);
    box-shadow: 0 2px 20px rgba(0, 96, 100, 0.08);
}

@media print {
    /* Hide the web header and footer */
    .site-header,
    .site-footer {
        display: none !important;
    }
    /* Ensure the print template appears */
    .print-header,
    .print-footer {
        display: block !important;
    }
}


/* Decorative river: thin stream from the brand pipe, widening & deepening to the header's edge */

.header-river {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.river-crest {
    animation: riverFlow 1.4s linear infinite;
}

.river-crest-2 {
    animation: riverFlow 2.2s linear infinite reverse;
}

@keyframes riverFlow {
    to {
        stroke-dashoffset: -36;
    }
}

.river-droplet {
    animation: dropletFall 1.6s ease-in infinite;
    opacity: 0;
}

.droplet-1 {
    animation-delay: 0s;
}

.droplet-2 {
    animation-delay: 0.5s;
}

.droplet-3 {
    animation-delay: 1s;
}

@keyframes dropletFall {
    0% {
        opacity: 0;
        transform: translate(0, -4px) scale(0.7);
    }
    15% {
        opacity: 1;
        transform: translate(2px, 2px) scale(1);
    }
    70% {
        opacity: 0.85;
        transform: translate(16px, 10px) scale(0.85);
    }
    100% {
        opacity: 0;
        transform: translate(26px, 14px) scale(0.5);
    }
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    min-height: 68px;
}


/* Right-hand cluster: search, nav links & actions, evenly spaced */

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 24px;
    min-width: 0;
}


/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    min-width: 0;
    text-decoration: none;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 131, 143, 0.18);
    box-shadow: 0 4px 12px rgba(0, 131, 143, 0.14);
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo .logo-fallback {
    color: var(--accent);
    font-size: 1.3rem;
    display: grid;
    place-items: center;
}

.logo .logo-fallback svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
}

.brand-text .primary {
    font-family: 'Fraunces', serif;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.brand-text .secondary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.7rem;
    font-style: italic;
    text-transform: lowercase;
    color: var(--accent);
    letter-spacing: 0.08em;
}

.brand-text .secondary em {
    font-style: italic;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.brand-wave {
    width: 60px;
    height: 6px;
    stroke: var(--accent);
    stroke-width: 1;
    fill: none;
    opacity: 0.7;
}


/* Search bar */

.header-search {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.header-search-inner {
    display: flex;
    align-items: center;
    background: #f2f8f9;
    border: 1.5px solid rgba(0, 131, 143, 0.18);
    border-radius: 999px;
    padding: 0 14px 0 42px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search-inner:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 131, 143, 0.12);
    background: #fff;
}

.header-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    color: var(--ink);
    width: 100%;
    padding: 9px 0;
}

.header-search input::placeholder {
    color: var(--muted);
}

.header-search-clear {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0 0 0 8px;
    font-size: 0.78rem;
    display: none;
    line-height: 1;
}

.header-search-clear.visible {
    display: block;
}


/* Desktop nav */

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.nav-links a {
    color: var(--muted);
    padding: 6px 11px;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

.nav-links a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}


/* Header right actions */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-icon {
    width: var(--header-icon-size, 36px);
    height: var(--header-icon-size, 36px);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 131, 143, 0.2);
    background: #fff;
    color: var(--accent-dark);
    box-shadow: 0 3px 8px rgba(0, 131, 143, 0.1);
    cursor: pointer;
    font-size: 0.92rem;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
}

.nav-icon:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.profile-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.profile-toggle {
    border: 1px solid rgba(0, 131, 143, 0.25);
    background: #fff;
    width: var(--header-icon-size, 36px);
    height: var(--header-icon-size, 36px);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    box-shadow: 0 3px 8px rgba(0, 131, 143, 0.1);
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    font-size: 0.92rem;
}

.profile-toggle:focus-visible {
    outline: 2px solid rgba(0, 131, 143, 0.45);
    outline-offset: 2px;
}

.profile-menu.open .profile-toggle,
.profile-toggle:hover {
    background: var(--accent);
    color: #fff;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid rgba(34, 33, 31, 0.12);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 30;
}

.profile-menu.open .profile-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-mini-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 1rem;
    flex-shrink: 0;
}

.profile-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-mini-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.profile-mini-email {
    font-size: 0.75rem;
    color: var(--muted);
}

.btn.small {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.profile-dropdown .btn {
    width: 100%;
    justify-content: center;
}


/* Hamburger */

.hamburger {
    width: var(--header-hamburger-size, 38px);
    height: var(--header-hamburger-size, 38px);
    border-radius: 10px;
    border: 1px solid rgba(0, 131, 143, 0.2);
    background: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    color: var(--accent-dark);
    box-shadow: 0 3px 8px rgba(0, 131, 143, 0.1);
    transition: background 0.18s, color 0.18s;
    flex-shrink: 0;
}

.hamburger span {
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.hamburger:hover {
    background: var(--accent);
    color: #fff;
}

.hamburger:hover span,
.hamburger:focus-visible span {
    background: var(--header-button-hover-ink);
}

.cart-button {
    --btn-glow: rgba(0, 131, 143, 0.32);
    width: var(--header-cart-size, 44px);
    height: var(--header-cart-size, 44px);
    border-radius: 12px;
    border: 1px solid var(--header-button-border);
    background: var(--header-button-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--header-button-ink);
    box-shadow: var(--header-button-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    animation: glowPulse 4.8s ease-in-out infinite;
}

.cart-button:hover,
.cart-button:focus-visible {
    transform: translateY(-1px);
    background: var(--header-button-hover-bg);
    color: var(--header-button-hover-ink);
    border-color: rgba(0, 131, 143, 0.45);
}

.cart-button:hover .cart-count-badge,
.cart-button:focus-visible .cart-count-badge {
    background: var(--spice);
}

.cart-button i {
    font-size: 1.05rem;
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    line-height: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 14, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 35;
}

.mobile-menu-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 40;
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
    box-shadow: 12px 0 30px rgba(24, 20, 12, 0.18);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.mobile-menu-title {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
}

.mobile-menu-close {
    --btn-glow: rgba(0, 131, 143, 0.28);
    background: var(--header-button-bg);
    border: 1px solid var(--header-button-border);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: var(--header-button-ink);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 14px rgba(0, 131, 143, 0.14);
    animation: glowPulse 4.8s ease-in-out infinite;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus-visible {
    background: var(--header-button-hover-bg);
    color: var(--header-button-hover-ink);
    border-color: rgba(0, 131, 143, 0.45);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-weight: 600;
    color: var(--ink);
}

.mobile-nav a,
.mobile-menu-footer a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ink);
}

.mobile-menu-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-top: 16px;
    border-top: 1px solid rgba(34, 33, 31, 0.1);
}

.mobile-menu-footer .logout {
    color: var(--danger);
}

body.menu-open {
    overflow: hidden;
}

.brand-text .primary,
.brand-text .secondary,
.hero p,
.section-header p,
.product-title,
.order-summary,
.order-summary-meta,
.profile-row span,
.track-result,
.alert,
.cart-item h4,
.cart-item small {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.btn {
    --btn-glow: rgba(0, 131, 143, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 12px 22px rgba(0, 131, 143, 0.22), 0 0 0 rgba(0, 131, 143, 0);
    animation: glowPulse 4.8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(0, 131, 143, 0.28), 0 0 20px var(--btn-glow, rgba(0, 131, 143, 0.4));
}

.btn.secondary {
    background: var(--spice);
    --btn-glow: rgba(212, 140, 44, 0.35);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent);
    border: 1px solid rgba(0, 131, 143, 0.3);
    box-shadow: 0 10px 18px rgba(0, 131, 143, 0.16), 0 0 0 rgba(0, 131, 143, 0);
    --btn-glow: rgba(0, 131, 143, 0.22);
}


/* ========== HERO — full-width looping banner ========== */

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: min(88vh, 700px);
    background: var(--ink);
}


/* --- Banner track: all slides sit side-by-side, JS shifts translateX --- */

.hero-track {
    display: flex;
    height: 100%;
    width: 100%;
    will-change: transform;
    transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 8s linear;
}

.hero-slide.is-active img {
    transform: scale(1.06);
}


/* Dark gradient so overlay text reads clearly */

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient( 120deg, rgba(10, 46, 54, 0.62) 0%, rgba(10, 46, 54, 0.28) 55%, rgba(10, 46, 54, 0.12) 100%);
}


/* --- Centred text block overlaid on the banner --- */

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    pointer-events: none;
}

.hero-content>* {
    pointer-events: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.14;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
    max-width: 780px;
}

.hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 1.8vw, 1.12rem);
    margin-bottom: 28px;
    max-width: 560px;
    line-height: 1.6;
}

.hero-cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}


/* --- Slide caption (bottom-left of each slide) --- */

.hero-caption {
    position: absolute;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    background: rgba(10, 46, 54, 0.55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 30px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hero-slide.is-active .hero-caption {
    opacity: 1;
}


/* --- Navigation arrows --- */

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.32);
}

.hero-arrow.prev {
    left: 20px;
}

.hero-arrow.next {
    right: 20px;
}


/* --- Dot indicators --- */

.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    border: none;
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.active {
    width: 26px;
    background: #fff;
}


/* --- Responsive --- */

@media (max-width: 640px) {
    .hero {
        height: 88vw;
        min-height: 340px;
    }
    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    .hero-arrow.prev {
        left: 10px;
    }
    .hero-arrow.next {
        right: 10px;
    }
    .hero-caption {
        font-size: 0.72rem;
        bottom: 52px;
    }
}

.section {
    padding: 48px 0;
}

.section.alt {
    background: #f9f7f3;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 22px;
}

.section-header h2 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
}

.filters {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.filters input,
.filters select {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(34, 33, 31, 0.12);
    background: #fff;
}

.filters .reset-btn {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--header-button-border);
    background: var(--header-button-bg);
    color: var(--header-button-ink);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--header-button-shadow);
    animation: glowPulse 4.8s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filters .reset-btn:hover {
    transform: translateY(-1px);
    background: var(--header-button-hover-bg);
    color: var(--header-button-hover-ink);
    box-shadow: 0 16px 28px rgba(0, 131, 143, 0.26), 0 0 18px rgba(0, 131, 143, 0.3);
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.category-rail {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    margin-bottom: 14px;
    scrollbar-width: thin;
}

.category-pill {
    border: 1px solid rgba(34, 33, 31, 0.12);
    background: #fff;
    color: #2f3c2d;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 131, 143, 0.35);
    box-shadow: 0 10px 18px rgba(0, 131, 143, 0.12);
}

.category-pill.active {
    background: linear-gradient(135deg, #00838f, #00a5b5);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(0, 131, 143, 0.26);
}

.category-rail-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.category-rail {
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
}

.category-rail::-webkit-scrollbar {
    height: 6px;
}

.category-rail::-webkit-scrollbar-thumb {
    background: rgba(47, 60, 45, 0.26);
    border-radius: 999px;
}

.category-pill {
    scroll-snap-align: start;
}

.category-rail-nav {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(34, 33, 31, 0.16);
    background: #ffffff;
    color: #2f3c2d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 8px 18px rgba(24, 20, 12, 0.1);
}

.category-rail-nav:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(24, 20, 12, 0.16);
}

.category-rail-nav[disabled] {
    opacity: 0.36;
    cursor: not-allowed;
    box-shadow: none;
}

.category-lane {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 251, 244, 0.92));
    border: 1px solid rgba(46, 72, 38, 0.08);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 12px 26px rgba(24, 20, 12, 0.08);
}

.category-lane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.category-lane-title {
    font-family: 'Fraunces', serif;
    font-size: 1.18rem;
    color: #263724;
}

.category-lane-meta {
    font-size: 0.82rem;
    color: #6a7467;
}

.highlight-lane {
    border-color: rgba(0, 131, 143, 0.24);
    background: linear-gradient(135deg, rgba(224, 242, 244, 0.95), rgba(252, 248, 239, 0.94));
}

.highlight-lane.best-deals {
    background: linear-gradient(135deg, rgba(255, 247, 229, 0.95), rgba(254, 240, 215, 0.93));
    border-color: rgba(168, 106, 25, 0.24);
}

.highlight-lane.new-arrivals {
    background: linear-gradient(135deg, rgba(227, 245, 240, 0.95), rgba(236, 248, 252, 0.94));
    border-color: rgba(26, 124, 102, 0.24);
}

.highlight-lane.most-ordered {
    background: linear-gradient(135deg, rgba(233, 243, 255, 0.95), rgba(245, 249, 255, 0.93));
    border-color: rgba(53, 96, 166, 0.24);
}

.highlight-lane .category-lane-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.highlight-lane .category-lane-title i {
    font-size: 0.9rem;
    color: #2f6f2e;
}

.highlight-lane.best-deals .category-lane-title i {
    color: #a86a19;
}

.highlight-lane.new-arrivals .category-lane-title i {
    color: #1a7c66;
}

.highlight-lane.most-ordered .category-lane-title i {
    color: #355fa6;
}

.lane-nav-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lane-nav {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(34, 33, 31, 0.12);
    background: #fff;
    color: #2f3c2d;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lane-nav:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(24, 20, 12, 0.12);
}

.lane-nav[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.lane-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 260px);
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.lane-track .product-card {
    scroll-snap-align: start;
    min-height: 100%;
}

.product-card {
    background: var(--surface);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(24, 20, 12, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-image {
    background: #f0eee8;
    height: 180px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    font-family: 'Manrope', sans-serif;
}

.product-title {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    color: #1f2a1e;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    white-space: normal;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #5f6b5f;
    font-size: 0.9rem;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent-dark);
}

.price .strike {
    color: #8b948a;
    text-decoration: line-through;
    font-weight: 500;
    margin-left: 6px;
    font-size: 0.9rem;
}

.stock {
    font-size: 0.85rem;
    color: var(--muted);
}

.variation-select {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.variation-select select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(34, 33, 31, 0.15);
    background: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.product-actions input {
    width: 60px;
    padding: 8px 6px;
    border-radius: 10px;
    border: 1px solid rgba(34, 33, 31, 0.2);
}

.product-actions .btn {
    padding: 10px 12px;
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
}

.product-actions .btn.ghost {
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-dark);
    border: 1px solid rgba(0, 131, 143, 0.28);
    box-shadow: 0 10px 18px rgba(0, 131, 143, 0.12);
}

.empty {
    display: none;
    padding: 20px;
    background: var(--surface);
    border-radius: 14px;
    text-align: center;
    color: var(--muted);
}

.cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
}

.cart-panel {
    background: var(--surface);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(34, 33, 31, 0.08);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.cart-item small {
    color: var(--muted);
}

.cart-item input {
    width: 70px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(34, 33, 31, 0.2);
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-summary div {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.cart-summary .total {
    font-size: 1.2rem;
    color: var(--accent-dark);
}


/* ── Enhanced Checkout Section ── */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.checkout-card {
    background: var(--surface);
    border-radius: 18px;
    border: 1px solid rgba(0, 131, 143, .12);
    box-shadow: 0 8px 24px rgba(0, 96, 100, .08);
    overflow: hidden;
    margin-bottom: 16px;
}

.checkout-card-head {
    padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(0, 131, 143, .1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: .95rem;
    flex-shrink: 0;
}

.checkout-card-head h3 {
    font-size: 1rem;
    font-weight: 700;
}

.checkout-card-head p {
    font-size: .8rem;
    color: var(--muted);
    margin-top: 2px;
}

.checkout-card-body {
    padding: 20px;
}

.checkout-form {
    display: grid;
    gap: 12px;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(34, 33, 31, .2);
    font-family: inherit;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus {
    border-color: rgba(0, 131, 143, .5);
    box-shadow: 0 0 0 3px rgba(0, 131, 143, .14);
}

.checkout-form .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 520px) {
    .checkout-form .field-row {
        grid-template-columns: 1fr;
    }
}

.checkout-section-label {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
    margin-top: 4px;
}

.checkout-divider {
    border: none;
    border-top: 1px dashed rgba(0, 131, 143, .15);
    margin: 14px 0;
}


/* payment pills */

.payment-options {
    display: grid;
    gap: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1.5px solid rgba(34, 33, 31, .14);
    background: #fff;
    cursor: pointer;
    transition: border-color .18s, background .18s;
}

.payment-option:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.payment-option.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.payment-option input[type=radio] {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.payment-option-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: .88rem;
    flex-shrink: 0;
}

.payment-option-label {
    font-weight: 600;
    font-size: .9rem;
}

.payment-option-desc {
    font-size: .75rem;
    color: var(--muted);
}

.mpesa-info {
    display: none;
    margin-top: 10px;
    background: var(--accent-soft);
    border: 1px solid rgba(0, 131, 143, .2);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .84rem;
}

.mpesa-info.show {
    display: block;
}

.mpesa-info strong {
    color: var(--accent);
}


/* order summary panel */

.checkout-summary-sticky {
    position: sticky;
    top: 88px;
}

.co-cart-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 0 20px;
}

.co-cart-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(0, 131, 143, .08);
}

.co-cart-item:last-child {
    border-bottom: none;
}

.co-item-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--accent-soft);
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: var(--muted);
    border: 1px solid rgba(0, 131, 143, .1);
}

.co-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.co-item-name {
    font-weight: 600;
    font-size: .88rem;
    line-height: 1.3;
}

.co-item-meta {
    font-size: .74rem;
    color: var(--muted);
    margin-top: 1px;
}

.co-item-price {
    font-weight: 700;
    font-size: .88rem;
    white-space: nowrap;
}

.co-item-qty {
    font-size: .72rem;
    color: var(--muted);
    text-align: right;
}

.co-totals {
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(0, 131, 143, .1);
}

.co-line {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    color: var(--muted);
    padding: 5px 0;
}

.co-line.grand {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
    border-top: 2px solid rgba(0, 131, 143, .15);
    margin-top: 6px;
    padding-top: 11px;
}

.co-savings-badge {
    display: none;
    align-items: center;
    gap: 6px;
    background: #e2f5e2;
    border: 1px solid rgba(30, 100, 30, .18);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: .8rem;
    font-weight: 600;
    color: #1f5d1f;
    margin-top: 8px;
}

.co-savings-badge.show {
    display: flex;
}


/* trust row */

.co-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(0, 131, 143, .15);
}

.co-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--muted);
}

.co-trust-badge i {
    color: var(--accent);
}


/* submit btn upgrade */

.co-submit-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: .96rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 22px rgba(0, 131, 143, .3);
    transition: transform .2s, box-shadow .2s, background .2s;
}

.co-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 131, 143, .36);
    background: var(--accent-dark);
}

.co-submit-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.co-submit-btn .co-spinner {
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: coSpin .7s linear infinite;
    display: none;
}

.co-submit-btn.loading .co-spinner {
    display: block;
}

.co-submit-btn.loading .co-btn-txt {
    opacity: .6;
}

@keyframes coSpin {
    to {
        transform: rotate(360deg);
    }
}

.track-form {
    display: grid;
    gap: 12px;
    max-width: 520px;
}

.track-form input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(34, 33, 31, 0.2);
    font-family: inherit;
}

.track-result {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.track-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(34, 33, 31, 0.08);
    box-shadow: 0 12px 24px rgba(24, 20, 12, 0.08);
}

.track-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.track-banner {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    background: #fde8e8;
    color: #8f2f2f;
    border: 1px solid #f5c2c2;
}

.track-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
    position: relative;
}

.track-step {
    position: relative;
    text-align: center;
    padding-top: 4px;
}

.track-step::after {
    content: '';
    position: absolute;
    top: 18px;
    right: -6px;
    width: calc(100% + 12px);
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.track-step:last-child::after {
    display: none;
}

.step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1;
    position: relative;
    background: #e5e7eb;
    color: #9aa0a6;
}

.track-step.done .step-dot {
    background: #2e7d32;
    color: #fff;
}

.track-step.current .step-dot {
    background: #f59e0b;
    color: #fff;
}

.track-step.pending .step-dot {
    background: #e5e7eb;
    color: #9aa0a6;
}

.track-step.cancelled .step-dot {
    background: #b23b3b;
    color: #fff;
}

.track-step.done::after {
    background: #2e7d32;
}

.track-step.current::after {
    background: #f59e0b;
}

.track-step.cancelled::after {
    background: #b23b3b;
}

.step-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f1f1f;
}

.step-desc {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 4px;
}

.track-details {
    margin-top: 14px;
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--muted);
}

.status-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #e9f0fb;
    color: #2b4f7a;
}

.status-pill.success {
    background: #e2f5e2;
    color: #1f5d1f;
}

.status-pill.warning {
    background: #fff3e0;
    color: #b45309;
}

.status-pill.danger {
    background: #fde8e8;
    color: #8f2f2f;
}

.track-list {
    margin-top: 10px;
    display: grid;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--muted);
}

.track-items {
    margin-top: 12px;
    display: grid;
    gap: 6px;
    font-size: 0.92rem;
}

.orders-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.orders-section,
.profile-section {
    background: var(--surface);
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(34, 33, 31, 0.08);
    box-shadow: 0 12px 24px rgba(24, 20, 12, 0.08);
}

.orders-section summary,
.profile-section summary {
    list-style: none;
    cursor: pointer;
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.orders-section summary::-webkit-details-marker,
.profile-section summary::-webkit-details-marker {
    display: none;
}

.orders-section summary::after,
.profile-section summary::after {
    content: 'View';
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.orders-section[open] summary::after {
    content: 'Hide';
    color: var(--accent);
}

.orders-panel,
.profile-panel {
    margin-top: 14px;
}

.order-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(34, 33, 31, 0.08);
    box-shadow: 0 12px 24px rgba(24, 20, 12, 0.08);
}

.order-number {
    font-family: "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.order-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.order-card summary::-webkit-details-marker {
    display: none;
}

.order-summary-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.order-toggle {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    white-space: nowrap;
}

.order-card[open] .order-toggle {
    color: var(--accent);
}

.order-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.alert {
    display: none;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.alert.success {
    background: #e2f5e2;
    color: #1f5d1f;
}

.alert.error {
    background: #fde8e8;
    color: #8f2f2f;
}

.alert.info {
    background: #e9f0fb;
    color: #2b4f7a;
}

.alert.warning {
    background: #fff3cd;
    color: #7a5a12;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.profile-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(34, 33, 31, 0.08);
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
}

.profile-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
}

.profile-summary {
    display: grid;
    gap: 10px;
    font-size: 0.95rem;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(34, 33, 31, 0.1);
}

.profile-row span:first-child {
    color: var(--muted);
}

.profile-row span:last-child {
    font-weight: 600;
    text-align: right;
}

.profile-form {
    display: grid;
    gap: 12px;
}

.profile-form input {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(34, 33, 31, 0.2);
}

.profile-form .profile-columns {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.profile-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.profile-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #efe9dd;
    border: 2px solid rgba(0, 131, 143, 0.2);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-fallback {
    font-size: 2rem;
    color: var(--accent);
}

.profile-upload label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.profile-upload input[type="file"] {
    width: 100%;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(34, 33, 31, 0.2);
    background: #fff;
}

.sabbath-audio {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(34, 33, 31, 0.12);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(24, 20, 12, 0.12);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 30;
}

.sabbath-audio .track-name {
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Eye icon view-details button */

.btn-eye-icon {
    flex: 0 0 auto !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
}


/* Floating WhatsApp Button with optional logo */

.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1000;
    background-color: #25D366;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    text-decoration: none;
    overflow: hidden;
    border: 2px solid white;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.whatsapp-float i {
    font-size: 24px;
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 72px;
        width: 40px;
        height: 40px;
        right: 14px;
    }
    .whatsapp-float i {
        font-size: 20px;
    }
}


/* Floating Call/Phone Button with glow effect */

.phone-float {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 1000;
    background-color: var(--accent);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    border: 2px solid white;
    animation: phoneGlowPulse 2.4s infinite;
}

.phone-float i {
    font-size: 22px;
    color: white;
}

.phone-float:hover {
    transform: scale(1.08);
}

@keyframes phoneGlowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 131, 143, 0.6), 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(0, 131, 143, 0), 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 131, 143, 0), 0 4px 10px rgba(0, 0, 0, 0.3);
    }
}


/* On small screens: stack below the WhatsApp button, same side */

@media (max-width: 600px) {
    .phone-float {
        left: auto;
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
    }
    .phone-float i {
        font-size: 18px;
    }
}

@media (max-width: 980px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: inline-flex;
    }
    .header-inner {
        padding: 10px 0;
    }
    .header-right {
        gap: 12px;
    }
    .header-search {
        max-width: 260px;
    }
}


/* Tighter header for tablets/phones: search & tagline give way to the brand + actions */

@media (max-width: 640px) {
    .header-inner {
        gap: 10px;
        min-height: 60px;
    }
    .header-search {
        display: none;
    }
    .brand-text .secondary {
        display: none;
    }
    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }
    .header-right {
        flex: 0 0 auto;
        gap: 8px;
    }
    .header-actions {
        gap: 8px;
    }
    .logo {
        width: 38px;
        height: 38px;
    }
     :root {
        --header-icon-size: 34px;
        --header-cart-size: 40px;
        --header-hamburger-size: 34px;
    }
}


/* Phones: shave a little more off so nothing collides or overflows */

@media (max-width: 480px) {
    .container {
        width: min(1200px, 94vw);
    }
    .header-inner {
        gap: 8px;
        padding: 8px 0;
        min-height: 56px;
    }
    .brand {
        gap: 8px;
    }
    .logo {
        width: 36px;
        height: 36px;
    }
    .brand-text .primary {
        font-size: 0.86rem;
    }
    .header-right {
        gap: 6px;
    }
    .header-actions {
        gap: 6px;
    }
     :root {
        --header-icon-size: 32px;
        --header-cart-size: 38px;
        --header-hamburger-size: 32px;
    }
    .cart-button i {
        font-size: 0.95rem;
    }
    .cart-count-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.62rem;
        line-height: 16px;
    }
}


/* Very small phones (e.g. 320–360px) */

@media (max-width: 360px) {
    .brand {
        gap: 6px;
    }
    .logo {
        width: 32px;
        height: 32px;
    }
    .brand-text .primary {
        font-size: 0.76rem;
        letter-spacing: 0.02em;
    }
    .header-right {
        gap: 4px;
    }
    .header-actions {
        gap: 4px;
    }
     :root {
        --header-icon-size: 30px;
        --header-cart-size: 36px;
        --header-hamburger-size: 30px;
    }
    .hamburger span {
        width: 15px;
    }
}

@media (max-width: 640px) {
    .filters {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        gap: 8px;
    }
    .filters input,
    .filters select,
    .filters .reset-btn {
        padding: 10px 16px;
        border-radius: 12px;
        border: 1px solid var(--header-button-border);
        background: var(--header-button-bg);
        color: var(--header-button-ink);
        font-weight: 600;
        cursor: pointer;
        box-shadow: var(--header-button-shadow);
        animation: glowPulse 4.8s ease-in-out infinite;
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    }
    .filters .reset-btn:hover {
        transform: translateY(-1px);
        background: var(--header-button-hover-bg);
        color: var(--header-button-hover-ink);
        box-shadow: 0 16px 28px rgba(0, 131, 143, 0.26), 0 0 18px rgba(0, 131, 143, 0.3);
    }
}

@media (max-width: 640px) {
    .category-rail-shell {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }
    .category-rail-nav[data-rail-nav='prev'] {
        display: none;
    }
    .category-rail {
        padding-bottom: 10px;
    }
}

@media (max-width: 420px) {
    .filters {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .filters .reset-btn {
        width: 100%;
    }
}


/* Nature polish */

@keyframes floatLeaf {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgeGlow {
    0%,
    100% {
        box-shadow: 0 8px 18px rgba(0, 131, 143, 0.18);
    }
    50% {
        box-shadow: 0 12px 26px rgba(0, 131, 143, 0.28);
    }
}

.hero-badge {
    animation: badgeGlow 6s ease-in-out infinite;
}

.section-header {
    animation: fadeUp 0.7s ease both;
}

.product-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf4 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(24, 20, 12, 0.14);
}

.product-image {
    background: linear-gradient(135deg, #eef5ea 0%, #f8f1e4 100%);
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    animation: shimmer 1.4s infinite;
    z-index: 1;
}

.product-image img {
    position: relative;
    z-index: 2;
}

.product-image img[src] {
    /* once src is set the shimmer sits behind the real image */
}

@keyframes shimmer {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.product-title {
    flex: 1 1 auto;
    min-width: 0;
}

.price {
    margin-left: auto;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .product-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .price {
        margin-left: 0;
    }
    .category-lane {
        padding: 12px;
        border-radius: 16px;
    }
    .lane-track {
        grid-auto-columns: minmax(198px, 220px);
    }
    .lane-nav-wrap {
        display: none;
    }
}


/* ── Sign-in nudge banner ── */


}