/* =====================================================================
   CRACKERS DEMO — Storefront Stylesheet
   Premium glassmorphic UI · Light + Dark mode · Fully responsive
   Developed by H-One Enterprises
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------- */
:root {
    /* Brand palette */
    --brand-1: #e63946;
    --brand-2: #ff6b35;
    --brand-3: #ffb703;
    --brand-4: #9d4edd;
    --brand-5: #06d6a0;
    --ink: #14161f;

    --grad-primary: linear-gradient(135deg, #e63946 0%, #ff6b35 55%, #ffb703 100%);
    --grad-purple: linear-gradient(135deg, #7209b7 0%, #9d4edd 50%, #4361ee 100%);
    --grad-gold: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    --grad-mint: linear-gradient(135deg, #06d6a0 0%, #1b9aaa 100%);
    --grad-night: linear-gradient(150deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);

    /* Surfaces (light) */
    --bg: #f6f7fb;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f2f4f9;
    --glass: rgba(255, 255, 255, .72);
    --glass-brd: rgba(255, 255, 255, .55);
    --text: #1c1f2b;
    --text-soft: #5b6274;
    --text-mute: #8b90a0;
    --border: #e6e9f2;

    /* Effects */
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;
    --shadow-sm: 0 2px 10px rgba(20, 22, 31, .06);
    --shadow: 0 10px 30px rgba(20, 22, 31, .08);
    --shadow-lg: 0 22px 60px rgba(20, 22, 31, .14);
    --shadow-brand: 0 14px 34px rgba(230, 57, 70, .32);
    --ease: cubic-bezier(.22, 1, .36, 1);

    --header-h: 78px;
    --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Dark mode */
[data-theme="dark"] {
    --bg: #0d1017;
    --bg-alt: #141824;
    --surface: #171b28;
    --surface-2: #1e2333;
    --glass: rgba(28, 33, 48, .72);
    --glass-brd: rgba(255, 255, 255, .08);
    --text: #eef1f8;
    --text-soft: #a8b0c4;
    --text-mute: #79819a;
    --border: #262c3d;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .4);
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, .6);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    /* Transition background-color, not the `background` shorthand — the
       shorthand leaves the body stuck on the previous theme colour. */
    transition: background-color .35s var(--ease), color .35s var(--ease);
}

/* Applied for one frame while the theme swaps (see main.js Theme.apply). */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after {
    transition: none !important;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.02em; }
a { text-decoration: none; transition: color .25s var(--ease); }
img { max-width: 100%; }

::selection { background: var(--brand-1); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--brand-1), var(--brand-2)); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-1); }

.container { max-width: 1280px; }

/* Utility */
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bg-soft { background: var(--surface-2); }
.fw-800 { font-weight: 800; }
.rounded-xl { border-radius: var(--radius-lg) !important; }
.divider-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-3); display: inline-block; }

/* Section heading */
.section { padding: 76px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--brand-1); background: rgba(230, 57, 70, .1);
    padding: 7px 18px; border-radius: 50px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.section-head p { color: var(--text-soft); max-width: 620px; margin: 0 auto; }

/* Glass card */
.glass {
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius-lg);
}

/* ---------------------------------------------------------------------
   3. Buttons
   ------------------------------------------------------------------- */
.btn {
    font-weight: 600; border-radius: 50px; padding: .72rem 1.7rem;
    transition: all .35s var(--ease); position: relative; overflow: hidden; border: none;
}
.btn-brand {
    background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-brand);
}
.btn-brand:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 42px rgba(230, 57, 70, .45); }
.btn-brand::after {
    content: ''; position: absolute; inset: 0; left: -120%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
    transition: left .7s var(--ease);
}
.btn-brand:hover::after { left: 120%; }

.btn-ghost {
    background: transparent; color: var(--text);
    border: 2px solid var(--border);
}
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-3px); }

.btn-glass {
    background: rgba(255, 255, 255, .15); color: #fff;
    border: 2px solid rgba(255, 255, 255, .38); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .3); color: #fff; transform: translateY(-3px); }

.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1eb954; color: #fff; transform: translateY(-3px); }

.btn-sm { padding: .45rem 1.1rem; font-size: .85rem; }
.btn-lg { padding: .95rem 2.3rem; font-size: 1.02rem; }

/* ---------------------------------------------------------------------
   4. Top bar + Navbar
   ------------------------------------------------------------------- */
.topbar {
    background: var(--ink); color: #d9dce6; font-size: .82rem; padding: 8px 0;
}
.topbar a { color: #d9dce6; }
.topbar a:hover { color: var(--brand-3); }
.topbar .marquee-note { color: var(--brand-3); font-weight: 600; }

.navbar-main {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border);
    padding: .6rem 0;
    position: sticky; top: 0; z-index: 1030;
    transition: all .35s var(--ease);
}
.navbar-main.scrolled { box-shadow: var(--shadow); padding: .3rem 0; }

.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-logo .logo-mark {
    width: 46px; height: 46px; border-radius: 14px;
    background: var(--grad-primary); color: #fff;
    display: grid; place-items: center; font-size: 1.25rem;
    box-shadow: var(--shadow-brand);
    animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-6deg) scale(1.06); }
}
.brand-logo .logo-text { line-height: 1.1; }
.brand-logo .logo-text strong { font-size: 1.16rem; color: var(--text); display: block; }
.brand-logo .logo-text small { font-size: .68rem; color: var(--text-mute); letter-spacing: .13em; text-transform: uppercase; }
.brand-logo img.logo-img { height: 46px; width: auto; border-radius: 12px; }

.navbar-main .nav-link {
    font-weight: 600; color: var(--text-soft); padding: .55rem 1rem !important;
    border-radius: 50px; position: relative;
}
.navbar-main .nav-link:hover, .navbar-main .nav-link.active { color: var(--brand-1); }
.navbar-main .nav-link.active::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 18px; height: 3px; border-radius: 3px; background: var(--grad-primary);
}

.nav-icon-btn {
    width: 44px; height: 44px; border-radius: 14px;
    display: grid; place-items: center; position: relative;
    background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
    transition: all .3s var(--ease);
}
.nav-icon-btn:hover { background: var(--grad-primary); color: #fff; transform: translateY(-2px); }
.nav-icon-btn .count-badge {
    position: absolute; top: -6px; right: -6px; min-width: 21px; height: 21px;
    border-radius: 50px; background: var(--brand-1); color: #fff;
    font-size: .68rem; font-weight: 700; display: grid; place-items: center;
    border: 2px solid var(--bg); padding: 0 4px;
}
.count-badge.pop { animation: badgePop .45s var(--ease); }
@keyframes badgePop { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Search box */
.search-wrap { position: relative; flex: 1; max-width: 460px; }
.search-wrap input {
    width: 100%; border-radius: 50px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text);
    padding: .68rem 3rem .68rem 1.2rem; font-size: .92rem;
    transition: all .3s var(--ease);
}
.search-wrap input:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(230, 57, 70, .12); }
.search-wrap .search-btn {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; border: none;
    background: var(--grad-primary); color: #fff;
}
.search-results {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 1100;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto; display: none;
}
.search-results.show { display: block; animation: fadeSlide .25s var(--ease); }
.search-result-item {
    display: flex; gap: 12px; align-items: center; padding: 10px 14px;
    border-bottom: 1px solid var(--border); color: var(--text);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface-2); }
.search-result-item img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.search-result-item .sr-name { font-weight: 600; font-size: .9rem; }
.search-result-item .sr-cat { font-size: .74rem; color: var(--text-mute); }
.search-result-item .sr-price { font-weight: 700; color: var(--brand-1); margin-left: auto; }

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

/* ---------------------------------------------------------------------
   5. Hero
   ------------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: var(--grad-night);
    padding: 96px 0 110px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(230, 57, 70, .45), transparent 42%),
        radial-gradient(circle at 82% 18%, rgba(255, 183, 3, .35), transparent 45%),
        radial-gradient(circle at 55% 92%, rgba(157, 78, 221, .38), transparent 45%);
    animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: scale(1) translateY(0); opacity: .9; }
    100% { transform: scale(1.14) translateY(-14px); opacity: 1; }
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.hero-particles span {
    position: absolute; display: block; border-radius: 50%;
    background: #fff; opacity: .55;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    12% { opacity: .8; }
    100% { transform: translateY(-620px) scale(.2); opacity: 0; }
}
.hero .container { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(10px); padding: 8px 20px; border-radius: 50px;
    font-size: .82rem; font-weight: 600; margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(2.1rem, 5.4vw, 3.85rem); line-height: 1.12; margin-bottom: 20px;
    text-shadow: 0 6px 32px rgba(0, 0, 0, .35);
}
.hero h1 .hl { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { color: rgba(255, 255, 255, .82); font-size: 1.05rem; max-width: 560px; margin-bottom: 30px; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 46px; }
.hero-stats .stat h3 { font-size: 1.9rem; margin: 0; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats .stat span { font-size: .8rem; color: rgba(255, 255, 255, .68); letter-spacing: .05em; }

.hero-visual { position: relative; }
.hero-card {
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(16px); border-radius: var(--radius-xl); padding: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.hero-card img { border-radius: var(--radius); width: 100%; }
.hero-float-chip {
    position: absolute; background: var(--surface); color: var(--text);
    border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 11px; font-size: .85rem; font-weight: 600;
}
.hero-float-chip i { font-size: 1.15rem; }
.chip-a { top: 8%; left: -18px; animation: floaty 5s ease-in-out infinite .4s; }
.chip-b { bottom: 10%; right: -14px; animation: floaty 5.5s ease-in-out infinite .9s; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; }
.hero-wave svg { width: 100%; height: 70px; display: block; }
.hero-wave path { fill: var(--bg); }

/* ---------------------------------------------------------------------
   6. Marquee strip
   ------------------------------------------------------------------- */
.marquee {
    background: var(--grad-primary); color: #fff; padding: 13px 0; overflow: hidden; white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 28s linear infinite; }
.marquee-track span { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------
   7. Category cards
   ------------------------------------------------------------------- */
.cat-card {
    display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    transition: all .4s var(--ease); height: 100%;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card .cat-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.cat-card .cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.12); }
.cat-card .cat-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .78));
}
.cat-card .cat-icon {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .18); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 1.05rem;
}
.cat-card .cat-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px; z-index: 2; color: #fff; }
.cat-card .cat-body h5 { font-size: 1.03rem; margin-bottom: 3px; }
.cat-card .cat-body span { font-size: .78rem; opacity: .82; }
.cat-card .cat-arrow {
    position: absolute; right: 16px; bottom: 18px; z-index: 3;
    width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink);
    display: grid; place-items: center; opacity: 0; transform: translateX(-8px);
    transition: all .35s var(--ease);
}
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

/* Compact pill categories (filter bar) */
.cat-pills { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.cat-pill {
    flex: 0 0 auto; padding: .55rem 1.25rem; border-radius: 50px; font-size: .87rem; font-weight: 600;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-soft);
    transition: all .3s var(--ease); white-space: nowrap;
}
.cat-pill:hover { border-color: var(--brand-1); color: var(--brand-1); }
.cat-pill.active { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }

/* ---------------------------------------------------------------------
   8. Product cards
   ------------------------------------------------------------------- */
.product-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    transition: all .4s var(--ease); position: relative;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(230, 57, 70, .28); }

.product-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.1); }

.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.pbadge {
    font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 5px 11px; border-radius: 50px; color: #fff; backdrop-filter: blur(6px);
}
.pbadge-off { background: var(--grad-primary); box-shadow: 0 6px 16px rgba(230, 57, 70, .35); }
.pbadge-new { background: linear-gradient(135deg, #06d6a0, #1b9aaa); }
.pbadge-best { background: linear-gradient(135deg, #f7971e, #ffd200); color: #4a3200; }
.pbadge-trend { background: var(--grad-purple); }

.product-actions {
    position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 3;
    opacity: 0; transform: translateX(14px); transition: all .35s var(--ease);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-actions button, .product-actions a {
    width: 38px; height: 38px; border-radius: 12px; border: none;
    background: rgba(255, 255, 255, .92); color: var(--ink);
    display: grid; place-items: center; box-shadow: var(--shadow-sm);
    transition: all .25s var(--ease);
}
.product-actions button:hover, .product-actions a:hover { background: var(--brand-1); color: #fff; transform: scale(1.08); }

.stock-tag {
    position: absolute; bottom: 12px; left: 12px; z-index: 3;
    font-size: .7rem; font-weight: 600; padding: 5px 11px; border-radius: 50px;
    background: rgba(6, 214, 160, .92); color: #fff;
}
.stock-tag.low { background: rgba(245, 158, 11, .95); }
.stock-tag.out { background: rgba(239, 68, 68, .95); }

.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-1); margin-bottom: 6px; }
.product-title {
    font-size: .98rem; font-weight: 600; line-height: 1.4; margin-bottom: 10px; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.75em;
}
.product-title:hover { color: var(--brand-1); }

.price-row { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px; }
.price-now { font-size: 1.24rem; font-weight: 800; color: var(--text); }
.price-was { font-size: .86rem; color: var(--text-mute); text-decoration: line-through; }
.price-save { font-size: .74rem; color: var(--brand-5); font-weight: 600; margin-bottom: 12px; }

.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 50px; overflow: hidden; background: var(--surface-2); }
.qty-box button {
    width: 32px; height: 34px; border: none; background: transparent; color: var(--text-soft); font-size: .85rem;
    transition: all .2s var(--ease);
}
.qty-box button:hover { background: var(--brand-1); color: #fff; }
.qty-box input {
    width: 38px; text-align: center; border: none; background: transparent; color: var(--text);
    font-weight: 700; font-size: .9rem; -moz-appearance: textfield;
}
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-foot { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.btn-cart { flex: 1; border-radius: 50px; padding: .55rem 1rem; font-size: .87rem; font-weight: 600; background: var(--grad-primary); color: #fff; border: none; transition: all .3s var(--ease); }
.btn-cart:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn-cart:disabled { background: var(--surface-2); color: var(--text-mute); box-shadow: none; transform: none; cursor: not-allowed; }

/* Skeleton loader */
.skeleton { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.skel-line, .skel-media {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%);
    background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
}
.skel-media { aspect-ratio: 1/1; }
.skel-line { height: 12px; border-radius: 6px; margin: 10px 16px; }
.skel-line.w-60 { width: 60%; }
.skel-line.w-40 { width: 40%; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------------------------------------------------------------
   9. Offer / festival banners
   ------------------------------------------------------------------- */
.offer-slide {
    position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 260px;
    display: flex; align-items: center; color: #fff; padding: 42px;
    background: var(--grad-purple);
}
.offer-slide.alt { background: var(--grad-primary); }
.offer-slide::after {
    content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
    border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.offer-slide::before {
    content: ''; position: absolute; right: 40px; bottom: -80px; width: 180px; height: 180px;
    border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.offer-slide .offer-inner { position: relative; z-index: 2; max-width: 560px; }
.offer-slide h3 { font-size: clamp(1.4rem, 3vw, 2.15rem); margin-bottom: 10px; }
.offer-slide p { opacity: .88; margin-bottom: 20px; }

.festival-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px;
    display: flex; align-items: flex-end; color: #fff; transition: all .4s var(--ease);
}
.festival-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.festival-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.festival-card:hover img { transform: scale(1.09); }
.festival-card .fc-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1) 30%, rgba(0, 0, 0, .82)); }
.festival-card .fc-body { position: relative; z-index: 2; padding: 26px; }
.festival-card .fc-body h4 { font-size: 1.28rem; margin-bottom: 6px; }
.festival-card .fc-body p { font-size: .88rem; opacity: .84; margin-bottom: 14px; }

/* Countdown */
.countdown { display: flex; gap: 12px; }
.countdown .cd-box {
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 14px; padding: 10px 14px; text-align: center; min-width: 62px; backdrop-filter: blur(8px);
}
.countdown .cd-box b { display: block; font-size: 1.35rem; line-height: 1; }
.countdown .cd-box span { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }

/* ---------------------------------------------------------------------
   10. Feature strip
   ------------------------------------------------------------------- */
.feature-item {
    display: flex; gap: 15px; align-items: center; padding: 22px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    transition: all .35s var(--ease); height: 100%;
}
.feature-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.feature-item .fi-icon {
    width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.25rem; color: #fff; background: var(--grad-primary);
}
.feature-item:nth-child(2n) .fi-icon { background: var(--grad-purple); }
.feature-item:nth-child(3n) .fi-icon { background: var(--grad-mint); }
.feature-item:nth-child(4n) .fi-icon { background: var(--grad-gold); color: #4a3200; }
.feature-item h6 { margin: 0 0 3px; font-size: .96rem; }
.feature-item p { margin: 0; font-size: .8rem; color: var(--text-mute); }

/* ---------------------------------------------------------------------
   11. Floating buttons
   ------------------------------------------------------------------- */
.float-stack { position: fixed; right: 22px; bottom: 26px; z-index: 1040; display: flex; flex-direction: column; gap: 14px; }
.float-btn {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; font-size: 1.35rem; border: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    position: relative; transition: all .35s var(--ease);
}
.float-btn:hover { color: #fff; transform: scale(1.1) translateY(-3px); }
.float-wa { background: #25d366; }
.float-wa::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366;
    animation: ripple 2.2s ease-out infinite; z-index: -1;
}
@keyframes ripple { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }
.float-cart { background: var(--grad-primary); }
.float-cart .count-badge {
    position: absolute; top: -4px; right: -4px; min-width: 23px; height: 23px; padding: 0 5px;
    border-radius: 50px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700;
    display: grid; place-items: center; border: 2px solid var(--bg);
}
.float-top { background: var(--ink); opacity: 0; pointer-events: none; }
.float-top.show { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------------
   12. Cart offcanvas
   ------------------------------------------------------------------- */
.offcanvas { background: var(--surface); color: var(--text); border-left: 1px solid var(--border); }
.offcanvas-header { border-bottom: 1px solid var(--border); }
.cart-line { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-line img { width: 68px; height: 68px; border-radius: 14px; object-fit: cover; flex: 0 0 68px; }
.cart-line .cl-name { font-size: .89rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.cart-line .cl-price { font-size: .82rem; color: var(--brand-1); font-weight: 700; }
.cart-line .cl-remove { border: none; background: transparent; color: var(--text-mute); font-size: .9rem; }
.cart-line .cl-remove:hover { color: var(--brand-1); }
.cart-empty { text-align: center; padding: 46px 20px; color: var(--text-mute); }
.cart-empty i { font-size: 3.2rem; opacity: .3; margin-bottom: 14px; display: block; }

.cart-summary { border-top: 1px solid var(--border); padding-top: 16px; }
.cart-summary .row-line { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .9rem; color: var(--text-soft); }
.cart-summary .row-line.total { font-size: 1.15rem; font-weight: 800; color: var(--text); border-top: 1px dashed var(--border); padding-top: 12px; margin-top: 12px; }

/* ---------------------------------------------------------------------
   13. Page header / breadcrumbs
   ------------------------------------------------------------------- */
.page-hero {
    position: relative; color: #fff; padding: 68px 0 58px; overflow: hidden;
    background: var(--grad-night);
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(230, 57, 70, .4), transparent 45%),
                radial-gradient(circle at 80% 70%, rgba(157, 78, 221, .4), transparent 45%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 8px; }
.page-hero .breadcrumb { margin: 0; justify-content: center; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255, 255, 255, .78); font-size: .88rem; }
.page-hero .breadcrumb-item.active { color: var(--brand-3); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .4); }

/* ---------------------------------------------------------------------
   14. Forms & filters
   ------------------------------------------------------------------- */
.filter-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.filter-card h6 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }

.form-control, .form-select {
    border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
    padding: .7rem 1rem; font-size: .92rem; transition: all .3s var(--ease);
}
.form-control:focus, .form-select:focus {
    background: var(--surface); border-color: var(--brand-1); color: var(--text);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, .1);
}
.form-control::placeholder { color: var(--text-mute); }
.form-label { font-size: .85rem; font-weight: 600; color: var(--text-soft); margin-bottom: .4rem; }
textarea.form-control { min-height: 110px; }

.form-check-input:checked { background-color: var(--brand-1); border-color: var(--brand-1); }

/* Range slider */
.form-range::-webkit-slider-thumb { background: var(--brand-1); }
.form-range::-moz-range-thumb { background: var(--brand-1); }

/* ---------------------------------------------------------------------
   15. Checkout / cart page
   ------------------------------------------------------------------- */
.checkout-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.summary-sticky { position: sticky; top: calc(var(--header-h) + 16px); }

.step-badge {
    width: 30px; height: 30px; border-radius: 50%; background: var(--grad-primary); color: #fff;
    display: inline-grid; place-items: center; font-size: .82rem; font-weight: 700; margin-right: 10px;
}

.order-success-icon {
    width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 22px;
    background: var(--grad-mint); color: #fff; display: grid; place-items: center; font-size: 2.6rem;
    animation: popIn .6s var(--ease);
}
@keyframes popIn { 0% { transform: scale(0); } 65% { transform: scale(1.16); } 100% { transform: scale(1); } }

.wa-preview {
    background: #e5ddd5; border-radius: var(--radius); padding: 18px; max-height: 380px; overflow-y: auto;
}
[data-theme="dark"] .wa-preview { background: #0b141a; }
.wa-bubble {
    background: #dcf8c6; border-radius: 12px 12px 12px 2px; padding: 14px 16px;
    font-family: 'Segoe UI', sans-serif; font-size: .84rem; white-space: pre-wrap; color: #111b21;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15); word-break: break-word;
}

/* ---------------------------------------------------------------------
   16. FAQ / content pages
   ------------------------------------------------------------------- */
.accordion-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius) !important; margin-bottom: 12px; overflow: hidden; }
.accordion-button {
    background: var(--surface); color: var(--text); font-weight: 600; font-size: .96rem; padding: 1.05rem 1.3rem;
}
.accordion-button:not(.collapsed) { background: rgba(230, 57, 70, .07); color: var(--brand-1); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--border); }
.accordion-button::after { filter: var(--acc-icon-filter, none); }
[data-theme="dark"] .accordion-button::after { filter: invert(1) brightness(1.6); }
.accordion-body { color: var(--text-soft); font-size: .92rem; line-height: 1.75; }

.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; }
.content-card h4 { margin-top: 26px; margin-bottom: 12px; font-size: 1.12rem; }
.content-card h4:first-child { margin-top: 0; }
.content-card p, .content-card li { color: var(--text-soft); line-height: 1.85; font-size: .94rem; }
.content-card ul { padding-left: 20px; }

.info-tile {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; text-align: center; height: 100%; transition: all .35s var(--ease);
}
.info-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.info-tile .it-icon {
    width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 16px; display: grid; place-items: center;
    font-size: 1.4rem; color: #fff; background: var(--grad-primary);
}
.info-tile h6 { margin-bottom: 6px; }
.info-tile p, .info-tile a { color: var(--text-soft); font-size: .9rem; margin: 0; }
.info-tile a:hover { color: var(--brand-1); }

/* Gallery grid */
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gi-cap {
    position: absolute; inset: auto 0 0 0; padding: 14px; color: #fff; font-size: .88rem; font-weight: 600;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}

/* Timeline (about page) */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item::before {
    content: ''; position: absolute; left: -30px; top: 5px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--grad-primary); border: 3px solid var(--bg);
}
.timeline-item h6 { margin-bottom: 4px; }
.timeline-item p { color: var(--text-soft); font-size: .9rem; margin: 0; }

/* ---------------------------------------------------------------------
   17. Footer
   ------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b9bfd0; padding-top: 66px; margin-top: 30px; position: relative; overflow: hidden; }
.site-footer::before {
    content: ''; position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
    width: 620px; height: 280px; background: radial-gradient(circle, rgba(230, 57, 70, .28), transparent 70%);
}
.site-footer .container { position: relative; z-index: 2; }
.site-footer h6 { color: #fff; font-size: .95rem; margin-bottom: 18px; letter-spacing: .04em; }
.site-footer a { color: #b9bfd0; font-size: .9rem; }
.site-footer a:hover { color: var(--brand-3); padding-left: 4px; }
.footer-links li { margin-bottom: 10px; }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 13px; font-size: .9rem; align-items: flex-start; }
.footer-contact i { color: var(--brand-2); margin-top: 4px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
    width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07);
    display: grid; place-items: center; color: #fff; transition: all .3s var(--ease);
}
.social-row a:hover { background: var(--grad-primary); transform: translateY(-3px); padding-left: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 46px; padding: 20px 0; font-size: .85rem; }
.dev-credit {
    display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    padding: 9px 18px; border-radius: 50px;
}
.dev-credit strong { color: #fff; }
.dev-credit a { color: var(--brand-3); font-weight: 600; }

/* ---------------------------------------------------------------------
   18. Misc
   ------------------------------------------------------------------- */
/* Page loader */
#page-loader {
    position: fixed; inset: 0; z-index: 9999; background: var(--bg);
    display: grid; place-items: center; transition: opacity .5s var(--ease), visibility .5s;
}
#page-loader.hide { opacity: 0; visibility: hidden; }
.loader-burst { position: relative; width: 78px; height: 78px; }
.loader-burst span {
    position: absolute; top: 50%; left: 50%; width: 4px; height: 24px; border-radius: 4px;
    background: var(--grad-primary); transform-origin: center -14px;
    animation: burst 1.1s ease-in-out infinite;
}
.loader-burst span:nth-child(1) { transform: rotate(0deg); animation-delay: 0s; }
.loader-burst span:nth-child(2) { transform: rotate(45deg); animation-delay: .1s; }
.loader-burst span:nth-child(3) { transform: rotate(90deg); animation-delay: .2s; }
.loader-burst span:nth-child(4) { transform: rotate(135deg); animation-delay: .3s; }
.loader-burst span:nth-child(5) { transform: rotate(180deg); animation-delay: .4s; }
.loader-burst span:nth-child(6) { transform: rotate(225deg); animation-delay: .5s; }
.loader-burst span:nth-child(7) { transform: rotate(270deg); animation-delay: .6s; }
.loader-burst span:nth-child(8) { transform: rotate(315deg); animation-delay: .7s; }
@keyframes burst { 0%, 100% { opacity: .25; transform-origin: center -14px; } 50% { opacity: 1; } }
.loader-text { margin-top: 88px; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-mute); position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }

/* Toast */
.toast-stack { position: fixed; top: 92px; right: 20px; z-index: 1080; display: flex; flex-direction: column; gap: 10px; }
.toast-item {
    display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 340px;
    background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand-5);
    border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow-lg); color: var(--text);
    animation: toastIn .4s var(--ease);
}
.toast-item.error { border-left-color: var(--brand-1); }
.toast-item.warning { border-left-color: #f59e0b; }
.toast-item.info { border-left-color: #3a86ff; }
.toast-item i { font-size: 1.1rem; }
.toast-item.success i { color: var(--brand-5); }
.toast-item.error i { color: var(--brand-1); }
.toast-item.warning i { color: #f59e0b; }
.toast-item.info i { color: #3a86ff; }
.toast-item span { font-size: .88rem; font-weight: 500; }
.toast-item.out { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }

/* Theme toggle */
.theme-toggle i { transition: transform .5s var(--ease); }
.theme-toggle:hover i { transform: rotate(35deg); }

/* Quick view modal */
.modal-content { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.modal-header { border-bottom: 1px solid var(--border); }
.modal-footer { border-top: 1px solid var(--border); }
[data-theme="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(2); }

.qv-thumb { width: 100%; border-radius: var(--radius); }
.qv-feature { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; color: var(--text-soft); margin-bottom: 8px; }
.qv-feature i { color: var(--brand-5); margin-top: 4px; }

/* Empty state */
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state i { font-size: 3.6rem; color: var(--text-mute); opacity: .35; margin-bottom: 18px; }
.empty-state h5 { margin-bottom: 8px; }
.empty-state p { color: var(--text-mute); }

/* Pagination */
.pagination .page-link {
    border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
    margin: 0 4px; border-radius: 12px !important; min-width: 42px; text-align: center; font-weight: 600;
}
.pagination .page-link:hover { background: var(--surface-2); color: var(--brand-1); }
.pagination .page-item.active .page-link { background: var(--grad-primary); border-color: transparent; color: #fff; }
.pagination .page-item.disabled .page-link { opacity: .45; }

/* Badges */
.badge-status { font-weight: 600; padding: .42em .85em; border-radius: 50px; font-size: .74rem; }
.badge-warning { background: rgba(245, 158, 11, .15); color: #d97706; }
.badge-info { background: rgba(14, 165, 233, .15); color: #0284c7; }
.badge-primary { background: rgba(99, 102, 241, .15); color: #4f46e5; }
.badge-purple { background: rgba(168, 85, 247, .15); color: #9333ea; }
.badge-success { background: rgba(16, 185, 129, .15); color: #059669; }
.badge-danger { background: rgba(239, 68, 68, .15); color: #dc2626; }
.badge-secondary { background: rgba(107, 114, 128, .15); color: #6b7280; }

/* Map */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); height: 100%; min-height: 320px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------------------------------------------------------------------
   19. Responsive
   ------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .hero { padding: 62px 0 84px; }
    .hero-stats { gap: 24px; }
    .navbar-collapse {
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius); padding: 16px; margin-top: 12px; box-shadow: var(--shadow);
    }
    .search-wrap { max-width: 100%; margin: 12px 0; }
    .offer-slide { padding: 30px; min-height: 230px; }
}

@media (max-width: 767.98px) {
    .section { padding: 52px 0; }
    .hero-float-chip { display: none; }
    .float-stack { right: 14px; bottom: 16px; gap: 11px; }
    .float-btn { width: 50px; height: 50px; font-size: 1.18rem; }
    .toast-stack { top: auto; bottom: 90px; right: 12px; left: 12px; }
    .toast-item { min-width: auto; max-width: 100%; }
    .content-card { padding: 22px; }
    .checkout-card { padding: 20px; }
    .product-actions { opacity: 1; transform: none; }
}

@media (max-width: 575.98px) {
    .product-body { padding: 12px; }
    .price-now { font-size: 1.08rem; }
    .product-title { font-size: .9rem; }
    .hero-stats .stat h3 { font-size: 1.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* Print (invoice pages) */
@media print {
    .no-print, .navbar-main, .topbar, .site-footer, .float-stack { display: none !important; }
    body { background: #fff; color: #000; }
}
