/* ==========================================================================
   PREMIUM MOBILE STOREFRONT — DESIGN SYSTEM
   Mobile-first, app-like UI layer. Presentation only.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Nunito:wght@400;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   Variable names are kept stable (--primary, --accent, --dark, --light,
   --gray, --light-gray, --transition, --shadow, --shadow-hover) because
   existing inline styles across the PHP views reference them.
   -------------------------------------------------------------------------- */
:root {
    /* Brand — deep tech blue. Used for every interactive/branded surface. */
    --primary: #1D4ED8;
    --primary-dark: #1E3A8A;
    --primary-light: #3B82F6;
    --primary-soft: #DBEAFE;
    --primary-line: #BFDBFE;
    --secondary: #2563EB;
    /* Channel list so rgba() glows can be driven by the same token */
    --primary-rgb: 29, 78, 216;

    /* Accent — cyan. Highlights on dark surfaces, never body text on white. */
    --accent: #06B6D4;
    --accent-light: #ECFEFF;
    --accent-ink: #0E7490;
    --accent-rgb: 6, 182, 212;

    /* Offers — the one warm family, reserved for discounts and savings only.
       Keeping it off everything else is what makes a price cut jump out. */
    --offer: #F59E0B;
    --offer-dark: #D97706;
    --offer-soft: #FEF3C7;
    --offer-ink: #B45309;
    --offer-rgb: 245, 158, 11;

    /* Surfaces */
    --bg: #F1F5F9;
    --light: #F1F5F9;
    --surface: #FFFFFF;
    --surface-2: #EFF6FF;
    --dark: #0F172A;
    --ink: #0F172A;
    --ink-2: #334155;
    --gray: #64748B;
    --muted: #7B8CA3;
    --light-gray: #E2E8F0;
    --line: #E8EDF4;

    /* Status */
    --success: #10B981;
    --danger: #EF4444;
    --info: #0EA5E9;
    --whatsapp: #25D366;

    /* Gradients */
    --grad-brand: linear-gradient(135deg, #1D4ED8 0%, #2563EB 52%, #3B82F6 100%);
    --grad-brand-soft: linear-gradient(135deg, #EFF6FF 0%, #F7FAFF 100%);
    --grad-dark: linear-gradient(150deg, #1E293B 0%, #0F172A 100%);
    --grad-splash: radial-gradient(120% 90% at 50% 0%, #1E3A8A 0%, #14224A 45%, #070C1A 100%);

    /* Type */
    --font-heading: 'Poppins', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', 'Nunito', system-ui, sans-serif;

    /* Radii */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 26px;
    --r-pill: 999px;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 4px 16px rgba(15, 23, 42, .06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-hover: 0 14px 34px rgba(15, 23, 42, .12);
    --shadow-brand: 0 8px 20px rgba(var(--primary-rgb), .28);

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --transition: all .3s cubic-bezier(.22, .61, .36, 1);
    --dur-fast: .18s;
    --dur: .3s;

    /* Layout */
    --header-h: 60px;
    --bottomnav-h: 64px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Guard against any fixed overlay nudging the page sideways.
       `clip` (unlike `hidden`) keeps position: fixed working normally. */
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.006em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

a { text-decoration: none; }

img { max-width: 100%; }

::selection { background: var(--accent); color: var(--ink); }

/* Scrollbars — thin on desktop, invisible on rails */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Main content wrapper (opened in header.php, closed in footer.php) */
.app-main {
    display: block;
    min-height: 40vh;
    animation: pageEnter .42s var(--ease-out) both;
}

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

/* --------------------------------------------------------------------------
   3. UTILITIES + BOOTSTRAP COLOUR OVERRIDES
   -------------------------------------------------------------------------- */
.text-primary { color: var(--primary) !important; }
.bg-primary   { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

.text-accent  { color: var(--secondary) !important; }
.bg-accent    { background-color: var(--accent) !important; }
.border-accent { border-color: var(--accent) !important; }
.border-light-gray { border-color: var(--light-gray) !important; }
footer .text-accent { color: var(--accent) !important; }

.text-muted { color: var(--gray) !important; }
.text-dark  { color: var(--ink) !important; }
.bg-light   { background-color: var(--bg) !important; }
.bg-soft    { background: var(--grad-brand-soft); }
.text-grad {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fw-800 { font-weight: 800; }
.min-w-0 { min-width: 0; }
.lh-1 { line-height: 1.1; }
.rounded-xl { border-radius: var(--r-lg) !important; }
.shadow-soft { box-shadow: var(--shadow) !important; }

.clamp-1, .clamp-2, .clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clamp-1 { -webkit-line-clamp: 1; line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

.divider {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 0;
}

/* Glassmorphism surface */
.glass {
    background: rgba(255, 255, 255, .62);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: var(--shadow-md);
}
.glass-dark {
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .16);
}

/* Generic surface card */
.surface {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   4. SPLASH SCREEN
   -------------------------------------------------------------------------- */
.app-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--grad-splash);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity .55s var(--ease-out), visibility .55s var(--ease-out), transform .55s var(--ease-out);
}
/* Recedes inward on exit. An outward scale on a full-viewport fixed element
   pushes past the right edge and creates a horizontal scrollbar. */
.app-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(.97);
    pointer-events: none;
}

/* Ambient aurora glow */
.splash-aura {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), .40) 0%, rgba(var(--primary-rgb), .14) 45%, transparent 70%);
    filter: blur(10px);
    animation: auraPulse 3.4s ease-in-out infinite;
}
@keyframes auraPulse {
    0%, 100% { transform: scale(.86); opacity: .55; }
    50%      { transform: scale(1.06); opacity: 1; }
}

/* Particles */
.splash-particles { position: absolute; inset: 0; pointer-events: none; }
.splash-particles i {
    position: absolute;
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), .9);
    animation: particleRise linear infinite;
}
@keyframes particleRise {
    0%   { transform: translateY(30px) scale(.4); opacity: 0; }
    18%  { opacity: 1; }
    80%  { opacity: .7; }
    100% { transform: translateY(-160px) scale(1.15); opacity: 0; }
}

/* Logo mark */
.splash-mark {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: var(--grad-brand);
    color: #fff;
    font-size: 42px;
    box-shadow: 0 18px 44px rgba(var(--primary-rgb), .45);
    animation: markIn .85s var(--ease-out) both, markGlow 2.2s 0.85s ease-in-out infinite;
}
@keyframes markIn {
    0%   { transform: scale(.3) rotate(-14deg); opacity: 0; }
    55%  { transform: scale(1.12) rotate(4deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes markGlow {
    0%, 100% { box-shadow: 0 18px 44px rgba(var(--primary-rgb), .40); }
    50%      { box-shadow: 0 18px 62px rgba(var(--primary-rgb), .78), 0 0 0 10px rgba(var(--primary-rgb), .07); }
}

/* Halo ring sweep */
.splash-mark::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 36px;
    border: 2px solid rgba(var(--accent-rgb), .35);
    animation: ringOut 2.2s .7s ease-out infinite;
}
@keyframes ringOut {
    0%   { transform: scale(.85); opacity: .85; }
    100% { transform: scale(1.28); opacity: 0; }
}

.splash-name {
    position: relative;
    z-index: 2;
    margin-top: 26px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    color: #fff;
    letter-spacing: .01em;
    text-align: center;
    padding: 0 24px;
    opacity: 0;
    animation: fadeUp .7s .55s var(--ease-out) forwards;
}
.splash-name span { color: var(--accent); }

.splash-tagline {
    position: relative;
    z-index: 2;
    margin-top: 6px;
    font-size: 12.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    opacity: 0;
    animation: fadeUp .7s .8s var(--ease-out) forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.splash-progress {
    position: relative;
    z-index: 2;
    margin-top: 34px;
    width: 158px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
    opacity: 0;
    animation: fadeUp .5s 1s var(--ease-out) forwards;
}
.splash-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: progressFill 1.5s 1s var(--ease) forwards;
}
@keyframes progressFill {
    from { width: 0; }
    to   { width: 100%; }
}

/* --------------------------------------------------------------------------
   5. TOP UTILITY BAR + APP HEADER
   -------------------------------------------------------------------------- */

/* Slim dark strip above the header: contact details, delivery promise, links.
   On phones only the centre note survives — the rest lives in the footer. */
.topbar {
    background: var(--grad-dark);
    color: #CBD5E1;
    font-size: 12.5px;
    padding-top: var(--safe-t);
    /* Below the sticky header (1030) — the bar scrolls away underneath it. */
    position: relative;
    z-index: 1;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
    white-space: nowrap;
}
.topbar-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #CBD5E1;
    transition: color var(--dur-fast) var(--ease);
}
.topbar-links a:hover { color: var(--accent); }
.topbar-links i { font-size: 12px; color: var(--accent); }

.topbar-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: #fff;
    text-align: center;
}
.topbar-note i {
    color: var(--offer);
    animation: barTruck 3.2s var(--ease-out) infinite;
}
.topbar-note span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@keyframes barTruck {
    0%, 62%, 100% { transform: translateX(0); }
    30%           { transform: translateX(5px); }
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--line);
    padding-top: var(--safe-t);
    transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.app-header.is-scrolled {
    box-shadow: 0 6px 20px rgba(15, 23, 42, .07);
    background: rgba(255, 255, 255, .96);
}

.app-header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: -0.03em;
    white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand span { color: var(--primary); }
.brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--grad-brand);
    color: #fff;
    font-size: 15px;
    box-shadow: var(--shadow-brand);
}

/* Icon buttons in the header */
.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 13px;
    background: var(--surface-2);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 16px;
    transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.icon-btn:active { transform: scale(.9); }

.icon-btn .count-badge,
.count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--r-pill);
    background: var(--primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    font-family: var(--font-heading);
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    line-height: 1;
}
.count-badge.bump { animation: badgeBump .45s var(--ease-out); }
@keyframes badgeBump {
    0% { transform: scale(1); }
    45% { transform: scale(1.45); }
    100% { transform: scale(1); }
}

/* Desktop nav links */
.app-nav { display: flex; align-items: center; gap: 4px; }
.app-nav a {
    position: relative;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    font-weight: 500;
    font-size: 14.5px;
    color: var(--ink-2);
    transition: var(--transition);
}
.app-nav a:hover { color: var(--primary); background: var(--surface-2); }
.app-nav a.active { color: var(--primary); font-weight: 600; background: var(--surface-2); }

/* Sub-page title bar (back button + title) */
.page-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0 10px;
}
.page-bar h1 {
    font-size: 1.18rem;
    margin: 0;
    font-weight: 700;
}
.page-bar .sub { font-size: 12.5px; color: var(--gray); margin: 0; }

/* --------------------------------------------------------------------------
   6. SEARCH
   -------------------------------------------------------------------------- */
.search-container { position: relative; flex: 1 1 auto; min-width: 0; }

.search-field {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid transparent;
    transition: var(--transition);
}
.search-field:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .10);
}
.search-field i { color: var(--muted); font-size: 14px; flex: 0 0 auto; }
.search-field input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: var(--ink);
}
.search-field input::placeholder { color: var(--muted); }

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-hover);
    z-index: 1200;
    max-height: 62vh;
    overflow-y: auto;
    display: none;
    animation: fadeUp .22s var(--ease-out);
}
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease);
}
.suggestion-item:last-child { border-bottom: 0; }
a.suggestion-item { color: var(--ink); }
.suggestion-item:hover, .suggestion-item:active { background: var(--surface-2); }
.suggestion-item img,
.suggestion-thumb {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--grad-brand-soft);
    display: grid;
    place-items: center;
    color: var(--primary);
}
.suggestion-details { min-width: 0; }
.suggestion-details h6 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suggestion-details span { font-size: 12.5px; color: var(--primary); font-weight: 700; }

/* Recent / trending search chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    background: #fff;
    border: 1px solid var(--light-gray);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    transition: var(--transition);
}
.chip:hover, .chip.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface-2);
}
.chip i { font-size: 11px; opacity: .7; }

/* --------------------------------------------------------------------------
   7. BOTTOM NAVIGATION
   -------------------------------------------------------------------------- */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    height: calc(var(--bottomnav-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(15, 23, 42, .06);
}

.bn-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    transition: color var(--dur-fast) var(--ease);
}
.bn-item .bn-icon {
    position: relative;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    font-size: 19px;
    transition: transform .32s var(--ease-out);
}
.bn-item:active .bn-icon { transform: scale(.82); }
.bn-item.active { color: var(--primary); }
.bn-item.active .bn-icon { transform: translateY(-2px) scale(1.08); }

/* Animated active pill indicator */
.bn-item::before {
    content: '';
    position: absolute;
    top: 6px;
    width: 40px;
    height: 30px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    opacity: 0;
    transform: scale(.6);
    transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
    z-index: -1;
}
.bn-item.active::before { opacity: 1; transform: scale(1); }

/* Top sliding bar */
.bn-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    width: 26px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--grad-brand);
    animation: bnBar .32s var(--ease-out) both;
}
@keyframes bnBar {
    from { width: 0; opacity: 0; }
    to   { width: 26px; opacity: 1; }
}

.bn-item .count-badge { top: -2px; right: 0; }

/* --------------------------------------------------------------------------
   8. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: var(--r-pill);
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .35); outline-offset: 2px; }

.btn-premium {
    position: relative;
    overflow: hidden;
    background: var(--grad-brand);
    background-size: 160% 160%;
    color: #fff;
    border: 0;
    padding: 12px 26px;
    box-shadow: var(--shadow-brand);
}
.btn-premium:hover,
.btn-premium:focus {
    color: #fff;
    background-position: 100% 0;
    box-shadow: 0 12px 28px rgba(var(--primary-rgb), .38);
    transform: translateY(-1px);
}
.btn-premium:disabled { opacity: .6; box-shadow: none; }

.btn-outline-premium {
    background: transparent;
    border: 1.6px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
}
.btn-outline-premium:hover { background: var(--primary); color: #fff; }

.btn-soft {
    background: var(--surface-2);
    color: var(--primary);
    border: 1px solid var(--primary-line);
    padding: 10px 20px;
}
.btn-soft:hover { background: var(--primary-soft); color: var(--primary-dark); }

.btn-ghost {
    background: #fff;
    border: 1px solid var(--light-gray);
    color: var(--ink-2);
    padding: 10px 20px;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    border: 0;
    padding: 12px 24px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
}
.btn-whatsapp:hover { background: #1FBA59; color: #fff; }

/* Order-confirmed tick */
.confirm-tick {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(16, 185, 129, .12);
    color: var(--success);
    font-size: 26px;
    animation: tickPop .5s var(--ease-out) both;
}
@keyframes tickPop {
    from { transform: scale(.6); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}

/* Ripple */
.ripple-ink {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, .5);
    pointer-events: none;
    animation: rippleOut .62s var(--ease-out) forwards;
}
.ripple-host { position: relative; overflow: hidden; }
.ripple-host.ripple-dark .ripple-ink { background: rgba(var(--primary-rgb), .22); }
@keyframes rippleOut {
    to { transform: scale(2.6); opacity: 0; }
}

/* --------------------------------------------------------------------------
   9. SECTION HEADERS
   -------------------------------------------------------------------------- */
.section {
    padding: 26px 0;
}
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.section-header h2 {
    font-size: clamp(1.08rem, 4.6vw, 1.5rem);
    margin: 0 0 2px;
    font-weight: 700;
    color: var(--ink);
}
.section-header p {
    margin: 0;
    font-size: 12.8px;
    color: var(--gray);
    line-height: 1.45;
}
.section-header .see-all {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.section-header .see-all i { font-size: 11px; transition: transform var(--dur) var(--ease); }
.section-header .see-all:hover i { transform: translateX(3px); }

.section-header.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.section-header.center p { max-width: 560px; }

/* --------------------------------------------------------------------------
   10. HERO STAGE
   Full-bleed dark banner: headline + counters on the left, the admin-managed
   slider inside a glass frame on the right, floating trust chips over it and a
   wave cut-out that hands over to the page background.
   -------------------------------------------------------------------------- */
.hero-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    padding: 26px 0 66px;
    background:
        radial-gradient(115% 130% at 8% -10%, #21378C 0%, rgba(33, 55, 140, 0) 58%),
        radial-gradient(90% 110% at 100% 0%, #0E4F63 0%, rgba(14, 79, 99, 0) 52%),
        linear-gradient(145deg, #121E3D 0%, #0C1226 52%, #070B18 100%);
}
.hero-stage-inner { position: relative; z-index: 3; }

/* Ambient light blooms ---------------------------------------------------- */
.hero-glow {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}
.hero-glow-a {
    top: -22%;
    left: -12%;
    width: 46vw;
    max-width: 520px;
    aspect-ratio: 1;
    background: rgba(var(--primary-rgb), .55);
    animation: glowDrift 13s ease-in-out infinite;
}
.hero-glow-b {
    right: -14%;
    bottom: -30%;
    width: 42vw;
    max-width: 480px;
    aspect-ratio: 1;
    background: rgba(var(--accent-rgb), .34);
    animation: glowDrift 16s ease-in-out infinite reverse;
}
@keyframes glowDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .85; }
    50%      { transform: translate3d(28px, -22px, 0) scale(1.12); opacity: 1; }
}

/* Confetti sparks --------------------------------------------------------- */
.hero-sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-sparks .spark {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .5;
    box-shadow: 0 0 12px rgba(var(--accent-rgb), .8);
    animation: sparkFloat 7s ease-in-out infinite;
}
.spark-1 { top: 16%; left: 6%;  animation-delay: 0s;   }
.spark-2 { top: 68%; left: 13%; animation-delay: 1.1s; background: var(--offer); box-shadow: 0 0 12px rgba(var(--offer-rgb), .8); }
.spark-3 { top: 34%; left: 30%; animation-delay: 2.3s; width: 4px; height: 4px; }
.spark-4 { top: 82%; left: 38%; animation-delay: .6s;  }
.spark-5 { top: 10%; left: 52%; animation-delay: 3.1s; background: var(--offer); box-shadow: 0 0 12px rgba(var(--offer-rgb), .8); }
.spark-6 { top: 58%; left: 62%; animation-delay: 1.8s; width: 4px; height: 4px; }
.spark-7 { top: 24%; left: 78%; animation-delay: 2.7s; }
.spark-8 { top: 74%; left: 88%; animation-delay: .3s;  background: var(--offer); box-shadow: 0 0 12px rgba(var(--offer-rgb), .8); }
.spark-9 { top: 44%; left: 94%; animation-delay: 4s;   width: 4px; height: 4px; }
@keyframes sparkFloat {
    0%, 100% { transform: translateY(0) scale(.8);   opacity: .28; }
    50%      { transform: translateY(-18px) scale(1.25); opacity: .95; }
}

/* Layout ------------------------------------------------------------------ */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    align-items: center;
}

/* Copy -------------------------------------------------------------------- */
.hero-copy {
    text-align: center;
    animation: heroCopyIn .75s var(--ease-out) both;
}
@keyframes heroCopyIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 16px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}
.hero-badge i {
    font-size: 12px;
    color: var(--offer);
    animation: badgeSpin 6s linear infinite;
}
@keyframes badgeSpin { to { transform: rotate(360deg); } }

.hero-copy h1 {
    font-size: clamp(2.05rem, 9.4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
    color: #fff;
    margin: 0 0 14px;
}
.hero-word {
    background: linear-gradient(100deg, #FBBF24 0%, #F97316 46%, #FBBF24 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: wordShift 6s ease-in-out infinite;
}
@keyframes wordShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-copy p {
    font-size: clamp(.9rem, 3.6vw, 1.02rem);
    line-height: 1.62;
    color: rgba(255, 255, 255, .72);
    margin: 0 auto 22px;
    max-width: 46ch;
}

/* Calls to action --------------------------------------------------------- */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.hero-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: var(--r-pill);
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hero-btn:active { transform: translateY(0) scale(.98); }

.hero-btn-solid {
    background: linear-gradient(100deg, #F59E0B 0%, #F97316 100%);
    color: #22150A;
    box-shadow: 0 12px 28px rgba(var(--offer-rgb), .38);
}
.hero-btn-solid:hover,
.hero-btn-solid:focus-visible {
    color: #22150A;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(var(--offer-rgb), .48);
}
/* Light sweep across the primary CTA */
.hero-btn-solid::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    animation: ctaSweep 3.6s ease-in-out infinite;
}
@keyframes ctaSweep {
    0%, 62%  { left: -60%; }
    100%     { left: 130%; }
}

.hero-btn-ghost {
    background: rgba(255, 255, 255, .06);
    border: 1.5px solid rgba(255, 255, 255, .3);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-btn-ghost:hover,
.hero-btn-ghost:focus-visible {
    color: #0F172A;
    background: #fff;
    border-color: #fff;
    transform: translateY(-3px);
}

/* Counters ---------------------------------------------------------------- */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 30px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 6vw, 1.7rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--offer);
}
.hero-stat span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .62);
}

/* Slider frame ------------------------------------------------------------ */
.hero-visual {
    position: relative;
    animation: heroVisualIn .8s .12s var(--ease-out) both;
}
@keyframes heroVisualIn {
    from { opacity: 0; transform: translateY(26px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.hero-frame {
    position: relative;
    padding: 9px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 26px 60px rgba(3, 7, 18, .55);
}

.hero-slider { position: relative; }
.hero-slider .carousel-inner {
    border-radius: 19px;
    overflow: hidden;
}
.hero-slider .carousel-item { height: clamp(190px, 52vw, 260px); }

.hero-shot {
    --shot-bg: #0B1226;
    position: relative;
    height: 100%;
    overflow: hidden;
    background: var(--shot-bg);
}
.hero-shot-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(24px) saturate(1.25);
    transform: scale(1.25);
    opacity: .55;
    pointer-events: none;
}
/* Pinned to the frame rather than sized with height:100% — a percentage height
   on an in-flow image collapses to `auto` and lets tall artwork overflow. */
.hero-shot img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.hero-shot.fit-cover img   { object-fit: cover; }
.hero-shot.fit-stretch img { object-fit: fill; }

/* Caption — only rendered for slides saved with the "text + product" layout */
.hero-caption {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 18px 16px;
    text-align: left;
    background: linear-gradient(to top, rgba(6, 10, 22, .92) 0%, rgba(6, 10, 22, .68) 48%, rgba(6, 10, 22, 0) 100%);
}
.hero-caption h2 {
    font-size: clamp(1rem, 4.2vw, 1.25rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 3px;
    letter-spacing: -.02em;
}
.hero-caption p {
    font-size: 12.2px;
    color: rgba(255, 255, 255, .74);
    margin: 0 0 9px;
    line-height: 1.45;
}
.hero-caption-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: var(--r-pill);
    background: var(--grad-brand);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-brand);
    transition: transform var(--dur) var(--ease);
}
.hero-caption-cta:hover { color: #fff; transform: translateX(3px); }
.hero-caption-cta i { font-size: 10px; }

/* Slider controls --------------------------------------------------------- */
.hero-slider .carousel-indicators {
    bottom: 10px;
    margin: 0;
    z-index: 4;
    align-items: center;
}
.hero-slider .carousel-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    margin: 0 4px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    opacity: 1;
    transition: width .3s var(--ease-out), background .3s var(--ease);
}
.hero-slider .carousel-indicators .active {
    width: 22px;
    border-radius: 4px;
    background: var(--offer);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    z-index: 4;
    transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hero-slider .carousel-control-prev { left: 10px; }
.hero-slider .carousel-control-next { right: 10px; }
.hero-frame:hover .carousel-control-prev,
.hero-frame:hover .carousel-control-next { opacity: 1; }
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover { background: rgba(255, 255, 255, .34); }
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon { width: 14px; height: 14px; }

/* Floating trust chips ---------------------------------------------------- */
.float-chip {
    position: absolute;
    z-index: 5;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 34px rgba(3, 7, 18, .35);
    animation: chipBob 5s ease-in-out infinite;
}
.float-chip h6 {
    margin: 0;
    font-size: 12.8px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}
.float-chip p {
    margin: 1px 0 0;
    font-size: 11px;
    color: var(--gray);
    white-space: nowrap;
}
.chip-ico {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 15px;
}
.chip-ico-alt { background: var(--offer-soft); color: var(--offer-ink); }

.float-chip-a { top: -14px; left: -18px; }
.float-chip-b { bottom: -16px; right: -18px; animation-delay: 1.6s; }

@keyframes chipBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

/* Wave hand-off to the page background ------------------------------------ */
.hero-wave {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 54px;
    display: block;
}
.hero-wave path { fill: var(--bg); }

/* Breakpoints ------------------------------------------------------------- */
@media (min-width: 576px) {
    .hero-slider .carousel-item { height: 300px; }
    .float-chip { display: inline-flex; }
}

@media (min-width: 768px) {
    .hero-stage { padding: 40px 0 78px; }
    .hero-grid { gap: 34px; }
    .hero-slider .carousel-item { height: 330px; }
    .hero-wave { height: 66px; }
}

@media (min-width: 992px) {
    .hero-stage { padding: 56px 0 96px; }
    .hero-grid {
        grid-template-columns: 1.04fr .96fr;
        gap: 46px;
    }
    .hero-copy { text-align: left; }
    .hero-copy h1 { font-size: clamp(2.6rem, 4.1vw, 3.5rem); }
    .hero-copy p { margin-left: 0; margin-right: 0; }
    .hero-actions { justify-content: flex-start; }
    .hero-stats { justify-content: flex-start; gap: 16px 44px; }
    .hero-slider .carousel-item { height: 360px; }
    .float-chip-a { top: 22px; left: -34px; }
    .float-chip-b { bottom: 26px; right: -30px; }
    .hero-wave { height: 84px; }
}

@media (min-width: 1200px) {
    .hero-slider .carousel-item { height: 400px; }
}

/* Pulsing CTA */
.cta-pulse { animation: ctaPulse 2.6s ease-in-out infinite; }
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(var(--primary-rgb), .28); }
    50%      { box-shadow: 0 8px 20px rgba(var(--primary-rgb), .28), 0 0 0 12px rgba(var(--primary-rgb), 0); }
}

/* --------------------------------------------------------------------------
   10b. ANNOUNCEMENT MARQUEE
   Two identical sets scroll as one track; shifting it by exactly -50% puts the
   second set where the first started, so the loop has no visible seam.
   -------------------------------------------------------------------------- */
.marquee-strip {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #D97706 0%, #F59E0B 26%, #FBBF24 50%, #F59E0B 74%, #D97706 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px rgba(217, 119, 6, .22);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeRun 36s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; }

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 0;
    margin-right: 46px;
    font-family: var(--font-heading);
    font-size: 12.6px;
    font-weight: 700;
    letter-spacing: .01em;
    color: #3B2206;
    white-space: nowrap;
}
.marquee-item i { font-size: 13.5px; opacity: .82; }

@keyframes marqueeRun {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@media (min-width: 992px) {
    .marquee-item { font-size: 13.6px; padding: 13px 0; margin-right: 60px; }
    .marquee-item i { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   11. USP STRIP
   -------------------------------------------------------------------------- */
.usp-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.usp-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--r-md);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}
.usp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.usp-ico {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--grad-brand-soft);
    color: var(--primary);
    font-size: 16px;
}
.usp-card h6 { margin: 0; font-size: 12.8px; font-weight: 700; line-height: 1.25; }
.usp-card p { margin: 1px 0 0; font-size: 11px; color: var(--gray); line-height: 1.3; }

/* --------------------------------------------------------------------------
   12. CATEGORY CARDS
   -------------------------------------------------------------------------- */
.cat-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.cat-pill {
    flex: 0 0 auto;
    width: 78px;
    scroll-snap-align: start;
    text-align: center;
}
.cat-pill .cat-ico {
    width: 66px;
    height: 66px;
    margin: 0 auto 7px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: var(--primary);
    background: var(--grad-brand-soft);
    border: 1px solid #FFE8D4;
    overflow: hidden;
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease);
}
.cat-pill .cat-ico img { width: 100%; height: 100%; object-fit: cover; }
.cat-pill:active .cat-ico { transform: scale(.92); }
.cat-pill:hover .cat-ico { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-pill span {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-2);
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Large category tile */
.category-card {
    position: relative;
    display: block;
    height: 150px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--grad-brand);
    box-shadow: var(--shadow);
    transition: var(--transition);
    isolation: isolate;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease-out);
}
.category-card:hover img { transform: scale(1.08); }
.category-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    background: linear-gradient(to top, rgba(15, 23, 42, .85) 0%, rgba(15, 23, 42, .25) 55%, transparent 100%);
    color: #fff;
}
.category-overlay h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.category-overlay .meta { font-size: 11.5px; color: rgba(255, 255, 255, .78); }

/* --------------------------------------------------------------------------
   13. PRODUCT CARDS
   -------------------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.product-rail > .product-card {
    flex: 0 0 auto;
    width: 158px;
    scroll-snap-align: start;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-line);
}
.product-card:active { transform: scale(.985); }

.product-img-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--grad-brand-soft);
    display: grid;
    place-items: center;
}
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s var(--ease-out);
}
.product-card:hover .product-img-wrapper img,
.product-card:active .product-img-wrapper img { transform: scale(1.09); }

.product-img-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: clamp(28px, 9vw, 44px);
    color: var(--primary);
    opacity: .38;
}

/* Badges */
.product-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: var(--r-pill);
    background: var(--grad-brand);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(var(--primary-rgb), .3);
}
/* Deeper than --offer so 9.5px uppercase still clears AA on white text */
.product-badge.discount { background: var(--offer-ink); box-shadow: none; }
.product-badge.deal { background: var(--danger); box-shadow: none; }

.stock-badge {
    position: absolute;
    bottom: 9px;
    left: 9px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    background: rgba(16, 185, 129, .14);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, .28);
    backdrop-filter: blur(4px);
}
.stock-badge.low { background: rgba(var(--offer-rgb), .16); color: var(--offer-ink); border-color: rgba(var(--offer-rgb), .3); }
.stock-badge.out { background: rgba(239, 68, 68, .14); color: #B91C1C; border-color: rgba(239, 68, 68, .28); }

/* Wishlist heart */
.product-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    color: var(--gray);
    font-size: 13px;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease-out), color .25s var(--ease);
    border: 0;
}
.product-wishlist-btn:active { transform: scale(.82); }
.product-wishlist-btn.is-active,
.product-wishlist-btn:hover { color: #EF4444; }
.product-wishlist-btn.is-active i { animation: heartPop .42s var(--ease-out); }
@keyframes heartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.45); }
    70% { transform: scale(.9); }
    100% { transform: scale(1); }
}

/* Details */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    padding: 10px 11px 11px;
}
.product-cat {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.product-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-title a { color: var(--ink); }
.product-title a:hover { color: var(--primary); }

.product-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}
.offer-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.actual-price {
    font-size: 11.5px;
    color: var(--muted);
    text-decoration: line-through;
}
.save-pct {
    font-size: 11px;
    font-weight: 700;
    color: var(--offer-ink);
}

.product-actions { display: flex; gap: 6px; align-items: center; }
.btn-add-to-cart {
    flex: 1 1 auto;
    padding: 8px 10px;
    font-size: 12.5px;
    border-radius: var(--r-sm);
    min-height: 36px;
}
.product-rail .btn-add-to-cart i { margin-right: 4px; }

/* Wide/list card (wishlist, order summary rows) */
.line-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
}
.line-thumb {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--grad-brand-soft);
    display: grid;
    place-items: center;
    color: var(--primary);
}
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   14. QUANTITY STEPPER
   -------------------------------------------------------------------------- */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--light-gray);
    border-radius: var(--r-pill);
    background: #fff;
    overflow: hidden;
    height: 36px;
}
.qty-stepper button {
    width: 34px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    display: grid;
    place-items: center;
    transition: background var(--dur-fast) var(--ease);
}
.qty-stepper button:hover { background: var(--surface-2); }
.qty-stepper button:active { transform: scale(.88); }
.qty-stepper button:disabled { color: var(--muted); }
.qty-stepper input {
    width: 40px;
    height: 100%;
    border: 0;
    outline: 0;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--ink);
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input.flash { animation: qtyFlash .4s var(--ease-out); }
@keyframes qtyFlash {
    0% { transform: scale(1); color: var(--ink); }
    45% { transform: scale(1.3); color: var(--primary); }
    100% { transform: scale(1); color: var(--ink); }
}

/* --------------------------------------------------------------------------
   15. FORMS
   -------------------------------------------------------------------------- */
.form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 5px;
}
.form-control, .form-select {
    border-radius: var(--r-md);
    border: 1px solid var(--light-gray);
    padding: 11px 14px;
    font-size: 14.5px;
    color: var(--ink);
    background-color: #fff;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .10);
}
.form-control::placeholder { color: var(--muted); }
.form-control-lg { padding: 13px 16px; font-size: 15.5px; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15); }

/* Selectable option cards (payment / delivery) */
.option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 14px;
    border-radius: var(--r-md);
    border: 1.5px solid var(--light-gray);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
}
.option-card:hover { border-color: #FFD3AE; }
.option-card.selected {
    border-color: var(--primary);
    background: var(--surface-2);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .08);
}
.option-card h6 { margin: 0; font-size: 13.5px; font-weight: 700; }
.option-card small { color: var(--gray); font-size: 11.5px; }
.option-ico {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--grad-brand-soft);
    color: var(--primary);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   16. CART
   -------------------------------------------------------------------------- */
.cart-item {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--danger);
    margin-bottom: 10px;
}
.cart-item-inner {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    will-change: transform;
    transition: transform .28s var(--ease-out);
    touch-action: pan-y;
}
.cart-item.swiping .cart-item-inner { transition: none; }
.cart-swipe-action {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-heading);
    pointer-events: none;
}
.cart-swipe-action i { font-size: 16px; }
.cart-item.removing { animation: rowOut .34s var(--ease) forwards; }
@keyframes rowOut {
    to { opacity: 0; transform: translateX(-40px); max-height: 0; margin: 0; padding: 0; }
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    padding: 5px 0;
}
.summary-row .label { color: var(--gray); }
.summary-row .value { font-weight: 600; color: var(--ink); }
.summary-row.total {
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px dashed var(--light-gray);
    font-size: 16px;
}
.summary-row.total .label { color: var(--ink); font-weight: 700; font-family: var(--font-heading); }
.summary-row.total .value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
}

/* Sticky action bar above bottom nav */
.sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--bottomnav-h) + var(--safe-b));
    z-index: 1035;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 22px rgba(15, 23, 42, .07);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: barUp .4s var(--ease-out) both;
}
@keyframes barUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.sticky-bar .bar-price { line-height: 1.15; }
.sticky-bar .bar-price small { display: block; font-size: 10.5px; color: var(--gray); }
.sticky-bar .bar-price strong {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--ink);
}
/* Every sticky action bar in this storefront is mobile-only (.hide-desktop),
   so the clearance it needs is scoped to the same breakpoint. */
@media (max-width: 991.98px) {
    .has-sticky-bar { padding-bottom: 76px; }
}

/* Coupon */
.coupon-box {
    display: flex;
    gap: 8px;
    align-items: center;
}
.coupon-box .form-control { border-radius: var(--r-pill); }
.coupon-applied {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--r-md);
    background: rgba(16, 185, 129, .08);
    border: 1px dashed rgba(16, 185, 129, .45);
    color: #047857;
    font-size: 12.5px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   17. PRODUCT DETAIL
   -------------------------------------------------------------------------- */
.pdp-gallery {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--grad-brand-soft);
}
.pdp-gallery .carousel-item {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}
.pdp-gallery .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s var(--ease-out);
}
.pdp-gallery.zoomed .carousel-item.active img { transform: scale(1.7); }
.pdp-gallery .zoom-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(6px);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
}
.pdp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; }
.pdp-thumb {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: var(--grad-brand-soft);
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); }

.price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}
.price-block .now {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
}
.price-block .was { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.price-block .off {
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--offer-soft);
    color: var(--offer-ink);
    font-size: 12px;
    font-weight: 700;
}

.spec-table { width: 100%; font-size: 13.5px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table td { padding: 10px 0; vertical-align: top; }
.spec-table td:first-child { color: var(--gray); width: 42%; font-weight: 500; }
.spec-table td:last-child { color: var(--ink); font-weight: 600; }

/* Accordion */
.accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
    padding: 14px 4px;
    background: transparent;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) { color: var(--primary); background: transparent; }
.accordion-button::after {
    background-image: none;
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: var(--gray);
    width: auto;
    height: auto;
    transition: transform var(--dur) var(--ease);
}
.accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.accordion-body { padding: 0 4px 16px; font-size: 13.8px; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   18. ORDER TRACKER
   -------------------------------------------------------------------------- */
.tracker { position: relative; padding-left: 34px; }
.tracker::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--light-gray);
    border-radius: 2px;
}
.tracker-fill {
    position: absolute;
    left: 15px;
    top: 12px;
    width: 2px;
    background: var(--grad-brand);
    border-radius: 2px;
    transition: height .8s var(--ease-out);
}
/* Fixed step height keeps the progress fill pixel-accurate. */
.tracker-step {
    position: relative;
    padding: 0 0 22px;
    min-height: 62px;
}
.tracker-step:last-child { padding-bottom: 0; min-height: 40px; }
.tracker-step .dot {
    position: absolute;
    left: -34px;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 2px solid var(--light-gray);
    color: var(--muted);
    font-size: 12px;
    z-index: 2;
    transition: var(--transition);
}
.tracker-step.done .dot {
    background: var(--grad-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.tracker-step.current .dot { animation: dotPing 2s ease-in-out infinite; }
@keyframes dotPing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), .45); }
    50%      { box-shadow: 0 0 0 9px rgba(var(--primary-rgb), 0); }
}
.tracker-step h6 { margin: 5px 0 1px; font-size: 13.5px; font-weight: 700; }
.tracker-step.done h6 { color: var(--ink); }
.tracker-step p { margin: 0; font-size: 11.8px; color: var(--gray); }

/* --------------------------------------------------------------------------
   19. PROFILE
   -------------------------------------------------------------------------- */
.profile-hero {
    position: relative;
    border-radius: var(--r-xl);
    padding: 22px 18px;
    background: var(--grad-brand);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-brand);
}
.profile-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -50px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.profile-hero::before {
    content: '';
    position: absolute;
    right: 30px;
    bottom: -60px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
}
.avatar-ring {
    position: relative;
    z-index: 2;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .2);
    border: 2px solid rgba(255, 255, 255, .55);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(6px);
}
.profile-stat {
    flex: 1 1 0;
    text-align: center;
    padding: 10px 6px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .2);
}
.profile-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 19px;
    line-height: 1.15;
}
.profile-stat span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; opacity: .82; }

.menu-list {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.menu-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: background var(--dur-fast) var(--ease);
    background: #fff;
    width: 100%;
    border-left: 0; border-right: 0; border-top: 0;
    text-align: left;
}
.menu-row:last-child { border-bottom: 0; }
.menu-row:hover, .menu-row:active { background: var(--surface-2); color: var(--ink); }
.menu-row .m-ico {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--grad-brand-soft);
    color: var(--primary);
    font-size: 14px;
}
.menu-row .m-txt { flex: 1 1 auto; min-width: 0; }
.menu-row .m-txt strong { display: block; font-size: 14px; font-weight: 600; }
.menu-row .m-txt small { color: var(--gray); font-size: 11.5px; }
.menu-row .fa-chevron-right { color: var(--muted); font-size: 11px; }
.menu-row.danger .m-ico { background: rgba(239, 68, 68, .1); color: var(--danger); }
.menu-row.danger strong { color: var(--danger); }

/* --------------------------------------------------------------------------
   20. REVIEWS
   -------------------------------------------------------------------------- */
.review-rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 10px; scroll-snap-type: x mandatory; }
.review-card {
    flex: 0 0 auto;
    width: min(280px, 82vw);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: var(--shadow-xs);
}
.review-card p { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin: 10px 0 14px; }
.stars { color: #FBBF24; font-size: 12px; letter-spacing: 1px; }
.review-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: var(--grad-brand);
}

/* --------------------------------------------------------------------------
   21. PROMO / OFFER BANNERS
   -------------------------------------------------------------------------- */
.promo-banner {
    position: relative;
    border-radius: var(--r-xl);
    padding: 24px 20px;
    background: var(--grad-dark);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.promo-banner::before,
.promo-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}
.promo-banner::before {
    width: 200px; height: 200px;
    right: -60px; top: -70px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), .55), transparent 68%);
}
.promo-banner::after {
    width: 160px; height: 160px;
    left: -50px; bottom: -70px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), .32), transparent 68%);
}
.promo-banner h3 {
    color: #fff;
    font-size: clamp(1.1rem, 5vw, 1.6rem);
    margin: 0 0 6px;
}
.promo-banner p { font-size: 13px; color: rgba(255, 255, 255, .76); margin: 0 0 14px; }
.promo-code {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px dashed var(--accent);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: .09em;
    font-size: 13px;
}

.festival-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--r-lg);
    padding: 16px;
    background: linear-gradient(120deg, #EFF6FF 0%, #E8F3FC 100%);
    border: 1px solid var(--primary-line);
}
.festival-banner .f-ico {
    width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 15px;
    display: grid; place-items: center;
    background: var(--grad-brand);
    color: #fff;
    font-size: 19px;
    box-shadow: var(--shadow-brand);
}
.festival-banner h6 { margin: 0; font-size: 14px; font-weight: 700; }
.festival-banner p { margin: 1px 0 0; font-size: 12px; color: var(--ink-2); }

/* WhatsApp CTA card */
.wa-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--r-lg);
    padding: 16px;
    background: linear-gradient(120deg, #E8FBF0 0%, #F2FFF7 100%);
    border: 1px solid #C7EFD8;
}
.wa-cta .wa-ico {
    width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 15px;
    display: grid; place-items: center;
    background: var(--whatsapp);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(37, 211, 102, .32);
}

/* --------------------------------------------------------------------------
   22. EMPTY STATES
   -------------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 46px 20px;
}
.empty-ico {
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    border-radius: 30px;
    display: grid;
    place-items: center;
    font-size: 36px;
    color: var(--primary);
    background: var(--grad-brand-soft);
    animation: floatY 3.4s ease-in-out infinite;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}
.empty-state h5 { font-size: 17px; margin-bottom: 6px; }
.empty-state p { color: var(--gray); font-size: 13.5px; max-width: 340px; margin: 0 auto 18px; }

/* --------------------------------------------------------------------------
   23. SKELETONS + LAZY IMAGES
   -------------------------------------------------------------------------- */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #EDEFF2;
    border-radius: var(--r-sm);
}
.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
    100% { transform: translateX(100%); }
}
.sk-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.sk-img { aspect-ratio: 1/1; }
.sk-line { height: 10px; border-radius: 6px; margin: 8px 11px; }
.sk-line.w-60 { width: 60%; }
.sk-line.w-40 { width: 40%; }

img.lazy-img {
    opacity: 0;
    transition: opacity .45s var(--ease);
}
img.lazy-img.loaded { opacity: 1; }

/* --------------------------------------------------------------------------
   24. TOASTS + ALERTS
   -------------------------------------------------------------------------- */
.toast-stack {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: calc(var(--safe-t) + 12px);
    z-index: 2000;
    width: min(420px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.app-toast {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    background: rgba(31, 41, 55, .96);
    backdrop-filter: blur(14px);
    color: #fff;
    box-shadow: var(--shadow-hover);
    pointer-events: auto;
    animation: toastIn .38s var(--ease-out) both;
}
.app-toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-16px) scale(.96); }
    to   { opacity: 1; transform: none; }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(-14px) scale(.97); }
}
.app-toast .t-ico {
    width: 26px; height: 26px; flex: 0 0 26px;
    border-radius: 9px;
    display: grid; place-items: center;
    background: var(--grad-brand);
    font-size: 12px;
}
.app-toast.is-error .t-ico { background: var(--danger); }
.app-toast.is-success .t-ico { background: var(--success); }
.app-toast strong { display: block; font-size: 13px; font-weight: 700; font-family: var(--font-heading); }
.app-toast span { font-size: 12.3px; color: rgba(255, 255, 255, .8); line-height: 1.42; }

.alert {
    border: 0;
    border-radius: var(--r-md);
    font-size: 13.5px;
    padding: 12px 16px;
    box-shadow: var(--shadow-xs);
}
.alert-success { background: rgba(16, 185, 129, .1); color: #047857; }
.alert-danger  { background: rgba(239, 68, 68, .1); color: #B91C1C; }
.alert-warning { background: rgba(var(--offer-rgb), .12); color: var(--offer-ink); }
.alert-info    { background: rgba(14, 165, 233, .12); color: #0369A1; }

/* Bootstrap badge tune-up */
.badge {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: .02em;
    border-radius: var(--r-pill);
    padding: .38em .8em;
}

/* --------------------------------------------------------------------------
   25. BOTTOM SHEET (filters etc.)
   -------------------------------------------------------------------------- */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.sheet-backdrop.open { opacity: 1; visibility: visible; }

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    max-height: 86vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 8px 18px calc(22px + var(--safe-b));
    transform: translateY(100%);
    transition: transform .38s var(--ease-out);
    box-shadow: 0 -12px 40px rgba(15, 23, 42, .18);
}
.bottom-sheet.open { transform: none; }
.sheet-grip {
    width: 42px;
    height: 4px;
    border-radius: 4px;
    background: var(--light-gray);
    margin: 8px auto 14px;
}
.sheet-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.sheet-title h5 { margin: 0; font-size: 16px; }

/* Filter panel: a bottom sheet on mobile, a docked sidebar from lg up. */
@media (min-width: 992px) {
    .filter-panel.bottom-sheet {
        position: sticky;
        top: calc(var(--header-h) + 16px);
        transform: none;
        max-height: none;
        overflow: visible;
        border-radius: var(--r-lg);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 18px;
        z-index: 1;
    }
    .filter-panel .sheet-grip,
    .filter-panel [data-sheet-close] { display: none !important; }
}

.filter-group + .filter-group { margin-top: 18px; }
.filter-group > h6 {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 9px;
}
.filter-link {
    display: block;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    font-size: 13.8px;
    color: var(--ink-2);
    transition: var(--transition);
}
.filter-link:hover { background: var(--surface-2); color: var(--primary); }
.filter-link.active { background: var(--surface-2); color: var(--primary); font-weight: 600; }

/* Sticky toolbar on the catalogue */
.catalog-toolbar {
    position: sticky;
    top: calc(var(--header-h) + var(--safe-t));
    z-index: 1020;
    background: rgba(248, 249, 250, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 10px 0;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
}
.toolbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
}
.toolbar-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    background: #fff;
    border: 1px solid var(--light-gray);
    font-size: 12.8px;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
}
.toolbar-btn.is-on { border-color: var(--primary); color: var(--primary); background: var(--surface-2); }
.toolbar-select {
    height: 34px;
    padding: 0 30px 0 14px;
    border-radius: var(--r-pill);
    border: 1px solid var(--light-gray);
    font-size: 12.8px;
    font-weight: 600;
    color: var(--ink-2);
    background-color: #fff;
    width: auto;
    flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   26. FLOATING WHATSAPP
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: calc(var(--bottomnav-h) + var(--safe-b) + 14px);
    z-index: 1035;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--whatsapp);
    color: #fff;
    font-size: 25px;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .42);
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease);
    animation: floatY 3.6s ease-in-out infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.whatsapp-float:active { transform: scale(.9); }
body.has-sticky-bar .whatsapp-float { bottom: calc(var(--bottomnav-h) + var(--safe-b) + 74px); }

/* --------------------------------------------------------------------------
   27. FOOTER
   -------------------------------------------------------------------------- */
footer.site-footer {
    background: var(--grad-dark);
    color: #CBD5E1;
    padding: 40px 0 24px;
    margin-top: 34px;
}
footer.site-footer h5 {
    color: #fff;
    font-size: 14.5px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
footer.site-footer a { color: #94A3B8; font-size: 13.5px; transition: var(--transition); }
footer.site-footer a:hover { color: var(--accent); }
footer.site-footer p { font-size: 13px; color: #94A3B8; line-height: 1.7; }
.footer-social {
    width: 36px; height: 36px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .07);
    color: #CBD5E1 !important;
    font-size: 14px;
    transition: var(--transition);
}
.footer-social:hover { background: var(--primary); color: #fff !important; transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 26px;
    padding-top: 18px;
    font-size: 12px;
    color: #64748B;
}

/* Accordion-style footer on mobile */
.footer-collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    color: #fff;
}

/* --------------------------------------------------------------------------
   28. SCROLL REVEAL
   -------------------------------------------------------------------------- */
.reveal-fade {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
    will-change: opacity, transform;
}
.reveal-fade.visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   29. BREADCRUMB
   -------------------------------------------------------------------------- */
.breadcrumb {
    font-size: 12px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--light-gray); }
.breadcrumb-item.active { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   30. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Very small phones (Galaxy Fold / iPhone SE 1) */
@media (max-width: 359px) {
    body { font-size: 14px; }
    :root { --bottomnav-h: 60px; }
    .product-grid { gap: 9px; }
    .product-rail > .product-card { width: 142px; }
    .cat-pill { width: 68px; }
    .cat-pill .cat-ico { width: 58px; height: 58px; border-radius: 19px; font-size: 21px; }
    .bn-item { font-size: 9.5px; }
    .brand { font-size: .95rem; }
    .usp-strip { grid-template-columns: 1fr; }
}

/* Mobile-only layout rules */
@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(var(--bottomnav-h) + var(--safe-b));
    }
    .container, .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }
    .my-5 { margin-top: 1.1rem !important; margin-bottom: 1.1rem !important; }
    .py-5 { padding-top: 1.4rem !important; padding-bottom: 1.4rem !important; }
    .mt-5 { margin-top: 1.4rem !important; }
    .g-5 { --bs-gutter-y: 1rem; --bs-gutter-x: 1rem; }
    .g-4 { --bs-gutter-y: .75rem; --bs-gutter-x: .75rem; }

    .hide-mobile { display: none !important; }

    /* Full-bleed sections inside a padded container */
    .bleed {
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Tablet */
@media (min-width: 576px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .product-rail > .product-card { width: 176px; }
    .usp-strip { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
    :root { --header-h: 68px; }
    .section { padding: 34px 0; }
}

/* Desktop */
@media (min-width: 992px) {
    body { font-size: 15.5px; }
    .hide-desktop { display: none !important; }

    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
    .product-rail > .product-card { width: 216px; }
    .product-title { font-size: 14px; }
    .offer-price { font-size: 16.5px; }
    .product-details { padding: 13px 14px 14px; }

    .cat-pill { width: 96px; }
    .cat-pill .cat-ico { width: 84px; height: 84px; border-radius: 28px; font-size: 30px; }
    .cat-pill span { font-size: 12.5px; }

    .category-card { height: 200px; }

    .section { padding: 42px 0; }
    .section-header { margin-bottom: 20px; }

    .sticky-bar {
        bottom: 0;
        padding: 12px 0;
    }
    .sticky-bar > .container { display: flex; align-items: center; gap: 14px; }
    .whatsapp-float { right: 26px; bottom: 26px; width: 58px; height: 58px; font-size: 28px; }
    body.has-sticky-bar .whatsapp-float { bottom: 26px; }

    .review-card { width: 340px; }
    footer.site-footer { padding: 60px 0 26px; }
}

@media (min-width: 1200px) {
    .product-grid { gap: 20px; }
}

/* --------------------------------------------------------------------------
   31. ACCESSIBILITY / MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-fade { opacity: 1; transform: none; }
}

@media print {
    .app-header, .bottom-nav, .whatsapp-float, .sticky-bar, .app-splash, .toast-stack { display: none !important; }
    body { padding-bottom: 0; background: #fff; }
}
