/* ==========================================================================
   Chittagong Gadget — storefront theme (light, warm)
   White / warm-cream surfaces; the brand colour (blue by default) comes from Settings, orange for offers & buy CTAs.
   Colours come from Settings > Store & Appearance:
   --brand = primary (orange), --accent = sale/flash (flame), --dark = text (charcoal navy), --tech = icons.
   ========================================================================== */

:root {
    --brand: #086dce;
    --brand-rgb: 8, 109, 206;
    --dark: #202b3a;
    --dark-rgb: 32, 43, 58;
    --accent: #ff512f;
    --accent-rgb: 255, 81, 47;
    --tech: #086dce;
    --tech-rgb: 8, 109, 206;

    /* Tones for text/button fills that must meet WCAG AA with white text. */
    --brand-ink: #bf4f0e;
    --brand-ink-hover: #a1420b;
    --accent-ink: #c8331a;
    --accent-ink-hover: #a82a14;
    --tech-ink: #bf4f0e;
    --brand-light: #ff9a4d;

    --bg: #ffffff;
    --section: #fff7f0;
    --cream: #fffaf5;
    --card: #fff;
    --text: #2a3142;
    --muted: #677084;
    --border: #f0e4d9;
    --border-strong: #e6d3c3;
    --surface: #fff7f0;
    --radius: 16px;
    --radius-sm: 11px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(70, 35, 10, .05), 0 2px 6px rgba(70, 35, 10, .05);
    --shadow: 0 18px 40px -22px rgba(70, 35, 10, .3);
    --shadow-lg: 0 32px 64px -28px rgba(70, 35, 10, .36);
    --shadow-brand: 0 18px 36px -16px rgba(var(--brand-rgb), .55);
    --grad-brand: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 45%, var(--brand-ink) 100%);
    --grad-warm: linear-gradient(135deg, #fffdfb 0%, #fff4ea 55%, #ffe6d1 100%);
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --header-h: 84px;
    --sticky-top: 150px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);

    --bs-primary: var(--brand-ink);
    --bs-primary-rgb: var(--brand-rgb);
    --bs-link-color: var(--brand-ink);
    --bs-link-color-rgb: var(--brand-rgb);
    --bs-link-hover-color: var(--brand-ink-hover);
    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--text);
    --bs-body-bg: var(--bg);
    --bs-border-color: var(--border);
    --bs-focus-ring-color: rgba(var(--brand-rgb), .35);
}
@supports (color: color-mix(in srgb, red, blue)) {
    :root {
        /* Derived from the admin colours so a custom brand colour re-themes everything. */
        --brand-ink: color-mix(in srgb, var(--brand) 76%, #000);
        --brand-ink-hover: color-mix(in srgb, var(--brand) 64%, #000);
        --brand-light: color-mix(in srgb, var(--brand) 62%, #ffd9a8);
        --accent-ink: color-mix(in srgb, var(--accent) 84%, #000);
        --accent-ink-hover: color-mix(in srgb, var(--accent) 72%, #000);
        --tech-ink: color-mix(in srgb, var(--tech) 76%, #000);
    }
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, .font-head { font-family: var(--font-head); font-weight: 700; color: var(--dark); letter-spacing: -.02em; }
a { color: var(--brand-ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-ink-hover); }
img { max-width: 100%; }
::selection { background: rgba(var(--brand-rgb), .16); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn:focus-visible, .form-control:focus-visible { outline: none; }
.text-brand { color: var(--brand-ink) !important; }
.text-accent { color: var(--accent-ink) !important; }
.text-tech { color: var(--tech-ink) !important; }
.bg-brand { background: var(--brand-ink) !important; }
.bg-brand-soft { background: rgba(var(--brand-rgb), .07) !important; }
.text-muted { color: var(--muted) !important; }
.bg-surface { background: var(--section); }
.fw-600 { font-weight: 600; }
.min-w-0 { min-width: 0; }
.small-caps { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.container { --bs-gutter-x: 2rem; }
@media (max-width: 575.98px) { .container { --bs-gutter-x: 1.5rem; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* ---------- Buttons & forms ---------- */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .62rem 1.2rem; transition: background-color .25s, background-position .45s var(--ease), border-color .25s, color .25s, box-shadow .25s, transform .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-lg { padding: .85rem 1.65rem; border-radius: 14px; }
.btn-sm { padding: .36rem .8rem; border-radius: 9px; }
/* Orange gradient fills: the gradient slides on hover for a subtle sheen. */
.btn-primary, .btn-brand, .btn-cta {
    --bs-btn-bg: var(--brand-ink); --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: var(--brand-ink-hover); --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: var(--brand-ink-hover); --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-bg: var(--brand-ink); --bs-btn-disabled-border-color: transparent;
    --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; --bs-btn-disabled-color: #fff;
    --bs-btn-focus-shadow-rgb: var(--brand-rgb);
    background-image: linear-gradient(120deg, var(--brand) 0%, var(--brand-ink) 52%, var(--brand) 100%);
    background-size: 210% 100%; background-position: 0 0;
    text-shadow: 0 1px 1px rgba(80, 30, 0, .18);
    box-shadow: 0 10px 22px -12px rgba(var(--brand-rgb), .85);
}
.btn-primary:hover, .btn-brand:hover, .btn-cta:hover { background-position: 100% 0; box-shadow: var(--shadow-brand); transform: translateY(-1px); }
.btn-primary:active, .btn-brand:active, .btn-cta:active { transform: scale(.97); }
.btn-outline-primary {
    --bs-btn-color: var(--brand-ink); --bs-btn-border-color: rgba(var(--brand-rgb), .55);
    --bs-btn-hover-bg: var(--brand-ink); --bs-btn-hover-border-color: var(--brand-ink); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--brand-ink-hover); --bs-btn-active-border-color: var(--brand-ink-hover); --bs-btn-active-color: #fff;
}
.btn-dark { --bs-btn-bg: var(--dark); --bs-btn-border-color: var(--dark); --bs-btn-hover-bg: var(--brand-ink); --bs-btn-hover-border-color: var(--brand-ink); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--border); --bs-btn-hover-bg: var(--cream); --bs-btn-hover-border-color: rgba(var(--brand-rgb), .45); --bs-btn-color: var(--dark); --bs-btn-hover-color: var(--brand-ink); }
.btn-tech { --bs-btn-bg: var(--tech-ink); --bs-btn-border-color: var(--tech-ink); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--brand-ink-hover); --bs-btn-hover-border-color: var(--brand-ink-hover); --bs-btn-hover-color: #fff; }
.btn-soft { background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); border: 0; }
.btn-soft:hover { background: var(--brand-ink); color: #fff; }
.btn-icon { width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--border-strong); padding: .66rem .95rem; background-color: #fff; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: rgba(var(--brand-rgb), .75); box-shadow: 0 0 0 .22rem rgba(var(--brand-rgb), .16); }
.form-check-input:checked { background-color: var(--brand-ink); border-color: var(--brand-ink); }
.form-label { font-weight: 600; font-size: .875rem; color: var(--dark); }
.invalid-feedback { font-weight: 500; }
.badge { font-weight: 600; }
.badge.bg-brand { color: #fff; }

/* ---------- Announcement / utility bar (orange gradient band) ---------- */
.announcement { position: relative; background: linear-gradient(90deg, var(--brand-ink) 0%, var(--brand) 50%, var(--brand-ink) 100%); color: #fff; font-size: .8rem; padding: .5rem 0; overflow: hidden; }
.announcement::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .2) 50%, transparent 70%); transform: translateX(-100%); animation: barSheen 9s ease-in-out 2s infinite; pointer-events: none; }
@keyframes barSheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.announcement > .container { position: relative; z-index: 1; }
.announcement a { color: #fff; }
.announcement .announcement-text { font-weight: 600; letter-spacing: .01em; }
.announcement .announcement-text i { color: #fff1d6; }
.announcement .top-links a { color: rgba(255, 255, 255, .9); display: inline-flex; align-items: center; gap: .35rem; }
.announcement .top-links a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; transition: box-shadow .35s var(--ease), background-color .35s; }
.site-header.scrolled { box-shadow: 0 14px 34px -22px rgba(70, 35, 10, .38); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header.scrolled { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); }
    .site-header.scrolled .category-nav { background: transparent; }
}
.header-bar { border-bottom: 1px solid var(--border); }
.header-main { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand-logo { display: flex; align-items: center; flex-shrink: 0; min-width: 0; transition: transform .3s var(--ease); }
.brand-logo:hover { transform: translateY(-1px); }
.brand-logo img { height: 60px; width: auto; display: block; }

.header-search { position: relative; flex: 1; max-width: 660px; margin: 0 auto; }
.header-search .search-icon { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; z-index: 1; transition: color .2s; }
.header-search:focus-within .search-icon { color: var(--brand-ink); }
.header-search .form-control { height: 50px; border-radius: 999px; padding-left: 2.85rem; padding-right: 7.2rem; background: var(--cream); border: 1.5px solid var(--border-strong); font-size: .95rem; }
.header-search .form-control:hover { border-color: rgba(var(--brand-rgb), .4); }
.header-search .form-control:focus { background: #fff; border-color: rgba(var(--brand-rgb), .75); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12), 0 12px 28px -18px rgba(var(--brand-rgb), .6); }
.header-search .form-control::-webkit-search-cancel-button { display: none; }
.header-search .search-btn { position: absolute; right: 5px; top: 5px; height: 40px; padding: 0 1.4rem; border-radius: 999px; border: 0; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-ink) 100%); color: #fff; font-weight: 600; font-size: .9rem; transition: box-shadow .25s, transform .2s var(--ease), filter .2s; box-shadow: 0 8px 18px -10px rgba(var(--brand-rgb), .9); }
.header-search .search-btn:hover { filter: brightness(1.06); box-shadow: 0 12px 22px -10px rgba(var(--brand-rgb), .9); }
.header-search .search-btn:active { transform: scale(.96); }
.search-suggest { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); z-index: 1050; display: none; max-height: 70vh; overflow-y: auto; }
.search-suggest.show { display: block; animation: dropIn .22s var(--ease-out); }
.search-suggest .item { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; color: var(--text); }
.search-suggest .item:hover, .search-suggest .item.active { background: var(--section); }
.search-suggest .item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--section); }
.search-suggest .group-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .7rem 1rem .25rem; font-weight: 700; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.header-actions { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; margin-left: auto; }
.header-action { position: relative; display: inline-flex; align-items: center; gap: .55rem; height: 46px; min-width: 46px; padding: 0 .7rem; color: var(--dark); border-radius: 14px; background: none; border: 0; justify-content: center; transition: background .25s, color .25s; }
.header-action > i { font-size: 1.35rem; line-height: 1; transition: transform .3s var(--spring); }
.header-action:hover { background: var(--section); color: var(--brand-ink); }
.header-action:hover > i { transform: translateY(-2px); }
.header-action .action-text { flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.header-action .action-text small { font-size: .7rem; color: var(--muted); font-weight: 500; }
.header-action .action-text b { font-size: .84rem; font-weight: 700; }
.header-action .count { position: absolute; top: 2px; left: 27px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent-ink); color: #fff; font-size: .66rem; display: grid; place-items: center; font-weight: 700; border: 2px solid #fff; line-height: 1; animation: countPop .4s var(--spring); }
@keyframes countPop { from { transform: scale(.4); } to { transform: none; } }
.header-action .count:empty, .header-action .count[data-count="0"] { display: none; }
.cart-action > i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%); color: #fff; box-shadow: 0 10px 20px -10px rgba(var(--brand-rgb), .9); }
.cart-action:hover { color: var(--dark); }
.cart-action:hover > i { transform: translateY(-2px) rotate(-6deg); }
.cart-action { padding-left: .3rem; }
.cart-action .count { left: 32px; background: var(--dark); }

/* Category bar (white, orange accents) */
.category-nav { background: #fff; border-bottom: 1px solid var(--border); transition: background-color .35s; }
.category-nav .container { position: relative; }
.category-nav .nav { min-height: 56px; }
.category-nav .nav-link { color: var(--dark); font-weight: 600; font-size: .9rem; padding: 1.05rem .85rem; position: relative; display: inline-flex; align-items: center; gap: .35rem; transition: color .2s; }
.category-nav .nav-link .bi-chevron-down { font-size: .65rem; opacity: .6; transition: transform .25s var(--ease); }
.category-nav .nav-link:hover, .category-nav .nav-link.active { color: var(--brand-ink); }
.category-nav .nav-link::after { content: ''; position: absolute; left: .85rem; right: .85rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.category-nav .nav-link:hover::after, .category-nav .nav-link.active::after, .category-nav .nav-dropdown:focus-within > .nav-link::after { transform: scaleX(1); }
.category-nav .nav-dropdown:hover > .nav-link .bi-chevron-down { transform: rotate(180deg); }
.category-nav .deals-link { background: linear-gradient(120deg, var(--accent) 0%, var(--accent-ink) 100%); color: #fff !important; border-radius: 999px; padding: .45rem 1rem; margin: 0 .35rem; box-shadow: 0 8px 18px -10px rgba(var(--accent-rgb), .9); transition: transform .2s var(--ease), box-shadow .25s; }
.category-nav .deals-link::after { display: none; }
.category-nav .deals-link:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(var(--accent-rgb), .9); }
.category-nav .deals-link i { display: inline-block; animation: zap 2.6s ease-in-out infinite; }
@keyframes zap { 0%, 80%, 100% { transform: none; } 86% { transform: scale(1.25) rotate(-12deg); } 92% { transform: scale(.95) rotate(6deg); } }
.all-cats-btn { white-space: nowrap; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-ink) 100%); color: #fff !important; padding: 0 1.15rem !important; margin-right: .9rem; align-self: center; height: 42px; border-radius: 12px; gap: .55rem !important; box-shadow: 0 10px 20px -12px rgba(var(--brand-rgb), .9); transition: box-shadow .25s, filter .2s !important; }
.all-cats-btn::after { display: none; }
.all-cats-btn:hover { filter: brightness(1.06); box-shadow: var(--shadow-brand); }
.category-nav .nav-dropdown { position: relative; }
.category-nav .nav-dropdown.all-cats { position: static; } /* mega panel spans the container */
.category-nav .nav-dropdown > .dropdown-menu {
    display: block; top: 100%; left: 0; margin-top: 0; opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(10px); transition: opacity .22s ease, transform .3s var(--ease-out), visibility 0s linear .22s;
}
.category-nav .nav-dropdown:hover > .dropdown-menu, .category-nav .nav-dropdown:focus-within > .dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: .06s, .06s, 0s;
}
.category-nav .all-cats > .mega-panel { left: calc(var(--bs-gutter-x) * .5); right: calc(var(--bs-gutter-x) * .5); }
.mega-menu { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .6rem; min-width: 260px; }
.mega-menu .dropdown-item { border-radius: 9px; padding: .55rem .75rem; font-weight: 500; display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--text); transition: background .2s, color .2s, padding .2s; }
.mega-menu .dropdown-item:hover, .mega-menu .dropdown-item:focus { background: rgba(var(--brand-rgb), .08); color: var(--brand-ink); padding-left: .95rem; }
.mega-panel { border: 1px solid var(--border); border-top: 3px solid var(--brand); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.6rem 1.85rem 0; background: #fff; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.4rem 1.75rem; max-height: min(62vh, 560px); overflow-y: auto; padding-bottom: 1.25rem; }
.mega-col { display: flex; flex-direction: column; min-width: 0; }
.mega-title { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .92rem; color: var(--dark); margin-bottom: .45rem; }
.mega-title i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); flex-shrink: 0; transition: background .25s, color .25s, transform .3s var(--spring); }
.mega-title:hover { color: var(--brand-ink); }
.mega-title:hover i { background: var(--brand-ink); color: #fff; transform: rotate(-8deg) scale(1.06); }
.mega-link { color: var(--muted); font-size: .86rem; padding: .22rem 0 .22rem 2.6rem; transition: color .2s, transform .2s; }
.mega-link:hover { color: var(--brand-ink); transform: translateX(3px); }
.mega-foot { display: flex; gap: 1.5rem; border-top: 1px solid var(--border); margin: 0 -1.85rem; padding: .85rem 1.85rem; background: var(--section); font-size: .86rem; font-weight: 600; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Mobile header */
.menu-toggle > i { font-size: 1.65rem; }
.mobile-search { position: relative; padding: 0 0 .85rem; }
.mobile-search .form-control { height: 46px; padding-right: 3.4rem; }
.mobile-search .search-btn { height: 36px; width: 36px; padding: 0; display: grid; place-items: center; }
.mobile-search .search-icon { top: 23px; }
@media (max-width: 991.98px) {
    :root { --header-h: 68px; }
    /* On small screens the bottom navigation provides persistent access, so the header scrolls away. */
    .site-header { position: relative; }
    .header-main { gap: .5rem; }
    .brand-logo img { height: 54px; }
    .header-action { padding: 0 .45rem; min-width: 40px; }
    .header-action .count { left: auto; right: 0; top: 0; }
    .cart-action > i { width: 36px; height: 36px; font-size: 1.2rem; }
}
@media (max-width: 374.98px) { .brand-logo img { height: 42px; } }

/* Offcanvas menu */
.offcanvas-menu { max-width: 88vw; }
.offcanvas-menu .offcanvas-header .brand-logo img { height: 46px; }
.offcanvas-menu .menu-link { display: flex; align-items: center; justify-content: space-between; padding: .78rem 1rem; color: var(--dark); font-weight: 600; border-radius: 10px; min-height: 46px; }
.offcanvas-menu .menu-link:hover, .offcanvas-menu .menu-link[aria-expanded="true"] { background: var(--section); }
.offcanvas-menu .menu-link .bi-chevron-down { transition: transform .2s; }
.offcanvas-menu .menu-link[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.offcanvas-menu .menu-link.text-danger { color: var(--accent-ink) !important; }
.offcanvas-menu .sub-links { border-left: 2px solid rgba(var(--brand-rgb), .25); margin: .15rem 0 .35rem 1.6rem; }
.offcanvas-menu .sub-links a { display: block; padding: .55rem 1rem; color: var(--muted); font-size: .92rem; }
.offcanvas-menu .sub-links a:hover { color: var(--brand-ink); }

/* Mobile bottom navigation */
.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); display: flex; z-index: 1040; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 26px -20px rgba(70, 35, 10, .4); }
.mobile-bottom-nav a, .mobile-bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .45rem; font-size: .68rem; font-weight: 600; color: var(--muted); position: relative; background: none; border: 0; min-height: 56px; justify-content: center; }
.mobile-bottom-nav i { font-size: 1.25rem; }
.mobile-bottom-nav .active { color: var(--brand-ink); }
.mobile-bottom-nav .active::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.mobile-bottom-nav .count { position: absolute; top: 4px; left: calc(50% + 4px); min-width: 17px; height: 17px; border-radius: 999px; background: var(--accent-ink); color: #fff; font-size: .6rem; display: grid; place-items: center; padding: 0 4px; }
.mobile-bottom-nav .count[data-count="0"] { display: none; }
@media (max-width: 991.98px) { body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); } }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-sm { padding: 32px 0; }
@media (max-width: 767.98px) { .section { padding: 36px 0; } .section-sm { padding: 22px 0; } }
.section.bg-surface, .section-categories { background: var(--section); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem); margin: 0; font-weight: 800; position: relative; padding-left: .9rem; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--brand), var(--accent)); }
.section-head p { color: var(--muted); margin: .35rem 0 0; padding-left: .9rem; }
.section-head .view-all { font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--brand-ink); border: 1px solid rgba(var(--brand-rgb), .25); background: #fff; border-radius: 999px; padding: .42rem .95rem; transition: border-color .2s, color .2s, background .2s; }
.section-head .view-all:hover { color: #fff; background: var(--brand-ink); border-color: var(--brand-ink); }
.section-head .view-all i { transition: transform .2s; }
.section-head .view-all:hover i { transform: translateX(3px); }
@media (max-width: 575.98px) {
    .section-head { flex-wrap: nowrap; align-items: center; margin-bottom: 1.1rem; }
    .section-head > div { min-width: 0; }
    .section-head p { font-size: .84rem; }
    .section-head .view-all { font-size: .8rem; padding: .35rem .75rem; }
}
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); background: rgba(var(--brand-rgb), .08); padding: .3rem .75rem; border-radius: 999px; margin-bottom: .75rem; }

/* ---------- Hero slider ----------
   Each slide = warm gradient backdrop (blobs, dot grid, outlined slide number) + copy + a floating product "stage"
   (rotating ring, glow, framed product photo, floor shadow, floating icon chips). Three compositions rotate
   by slide position (.hero-v0/1/2). Motion is transform/opacity only; JS feeds --mx/--my for pointer parallax. */
.hero { position: relative; background: var(--cream); isolation: isolate; }
.hero .carousel-inner { overflow: hidden; }
.hero .carousel-fade .carousel-item { transition: opacity .9s var(--ease); }
.hero-slide {
    --slide-base: #fff6ee;
    --slide-text: var(--dark);
    position: relative; min-height: clamp(540px, 44vw, 660px); display: flex; align-items: center; overflow: hidden; contain: paint;
    color: var(--slide-text);
    background:
        radial-gradient(60% 75% at 78% 45%, rgba(var(--brand-rgb), .22) 0%, rgba(var(--brand-rgb), 0) 70%),
        linear-gradient(125deg, #fffdfb 0%, var(--slide-base) 48%, #ffe4cc 100%);
}
@supports (color: color-mix(in srgb, red, blue)) {
    .hero-slide { background: radial-gradient(60% 75% at 78% 45%, rgba(var(--brand-rgb), .22) 0%, rgba(var(--brand-rgb), 0) 70%), linear-gradient(125deg, #fffdfb 0%, var(--slide-base) 48%, color-mix(in srgb, var(--slide-base) 55%, var(--brand-light)) 100%); }
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob { position: absolute; border-radius: 50%; will-change: transform; }
.hero-blob.b1 { width: 46vw; max-width: 720px; aspect-ratio: 1; right: -12vw; top: -22vw; background: radial-gradient(circle, rgba(var(--brand-rgb), .26) 0%, rgba(var(--brand-rgb), 0) 68%); animation: blobDrift 18s ease-in-out infinite alternate; }
.hero-blob.b2 { width: 34vw; max-width: 520px; aspect-ratio: 1; left: -10vw; bottom: -18vw; background: radial-gradient(circle, rgba(255, 186, 120, .38) 0%, rgba(255, 186, 120, 0) 68%); animation: blobDrift 22s ease-in-out -6s infinite alternate-reverse; }
@keyframes blobDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4%, 6%, 0) scale(1.08); } }
.hero-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(var(--dark-rgb), .13) 1px, transparent 1.5px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(70% 80% at 30% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 80% at 30% 50%, #000 0%, transparent 75%); opacity: .55; }
.hero-index { position: absolute; left: 41%; bottom: -.2em; font-family: var(--font-head); font-weight: 800; font-size: clamp(9rem, 20vw, 19rem); line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(var(--brand-rgb), .15); user-select: none; }
.hero-container { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(1.5rem, 4vw, 4.5rem); padding: 3.5rem 0 6.75rem; }

/* Copy */
.hero-content { max-width: 600px; }
.hero-sub { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; padding: .5rem 1rem .5rem .8rem; border-radius: 999px; margin-bottom: 1.35rem; background: rgba(255, 255, 255, .78); color: var(--brand-ink); border: 1px solid rgba(var(--brand-rgb), .25); box-shadow: 0 10px 24px -18px rgba(var(--brand-rgb), .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-sub::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .5); animation: dotPulse 2.4s ease-out infinite; }
@keyframes dotPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(var(--brand-rgb), 0); } }
.hero-title { color: inherit; font-size: clamp(2.35rem, 1.25rem + 3.3vw, 4.4rem); font-weight: 800; line-height: 1.03; letter-spacing: -.04em; margin-bottom: 1.15rem; text-wrap: balance; }
.hero-title em { font-style: normal; color: var(--brand-ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-title em { background: linear-gradient(100deg, var(--brand-light) 0%, var(--brand) 40%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
}
.hero-desc { font-size: 1.1rem; line-height: 1.65; color: rgba(var(--dark-rgb), .72); margin-bottom: 2.1rem; max-width: 500px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.6rem; }
.hero-cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .75rem; border-radius: 999px; padding: .95rem .95rem .95rem 1.75rem; font-size: 1rem; }
.hero-cta i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); transition: transform .35s var(--spring), background .25s; }
.hero-cta:hover i { transform: translateX(4px); background: rgba(255, 255, 255, .32); }
.hero-cta::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.hero-cta:hover::after { left: 130%; }
.hero-ghost { position: relative; font-weight: 700; color: var(--dark); padding: .35rem 0; }
.hero-ghost::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(.35); transform-origin: left; transition: transform .4s var(--ease-out); }
.hero-ghost:hover { color: var(--brand-ink); }
.hero-ghost:hover::after { transform: scaleX(1); }

/* Product stage */
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-stage { position: relative; width: min(100%, 520px); aspect-ratio: 1; transform: translate3d(calc(var(--mx, 0) * 16px), calc(var(--my, 0) * 12px), 0); transition: transform .8s var(--ease-out); }
.hero-ring { position: absolute; inset: 1%; border-radius: 50%; border: 1.5px dashed rgba(var(--brand-rgb), .3); animation: spin 60s linear infinite; }
.hero-ring::before { content: ''; position: absolute; inset: 7%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(var(--brand-rgb), 0) 0 55%, rgba(var(--brand-rgb), .65) 80%, rgba(var(--brand-rgb), 0) 92%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); animation: spin 9s linear infinite reverse; }
.hero-ring::after { content: ''; position: absolute; top: 50%; left: -6px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(var(--brand-rgb), .18), 0 0 18px rgba(var(--brand-rgb), .7); }
.hero-halo { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--brand-rgb), .42) 0%, rgba(var(--brand-rgb), .14) 42%, rgba(var(--brand-rgb), 0) 70%); animation: haloPulse 6s ease-in-out infinite; }
@keyframes haloPulse { 0%, 100% { transform: scale(.94); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }
.hero-frame { position: absolute; inset: 15%; margin: 0; border-radius: 30px; overflow: hidden; background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .72), 0 42px 70px -30px rgba(70, 35, 10, .55), 0 18px 30px -18px rgba(var(--brand-rgb), .45); animation: frameFloat 7s ease-in-out infinite; will-change: transform; }
@keyframes frameFloat { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); } 50% { transform: translate3d(0, -14px, 0) rotate(-1.5deg); } }
.hero-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-floor { position: absolute; left: 24%; right: 24%; bottom: 5%; height: 7%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(70, 35, 10, .32) 0%, rgba(70, 35, 10, 0) 70%); animation: floorPulse 7s ease-in-out infinite; }
@keyframes floorPulse { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.84); opacity: .7; } }
.hero-chip { position: absolute; z-index: 2; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; font-size: 1.55rem; color: var(--brand-ink); background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 18px 34px -16px rgba(70, 35, 10, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: chipFloat 6s ease-in-out infinite; }
.hero-chip.c1 { top: 9%; left: 2%; }
.hero-chip.c2 { top: 20%; right: -1%; width: 70px; height: 70px; border-radius: 22px; font-size: 1.75rem; color: #fff; background: linear-gradient(135deg, var(--brand-light), var(--brand) 50%, var(--brand-ink)); border: 0; box-shadow: var(--shadow-brand); animation-delay: -2s; }
.hero-chip.c3 { bottom: 15%; left: 0; width: 54px; height: 54px; border-radius: 17px; font-size: 1.3rem; animation-delay: -4s; }
@keyframes chipFloat { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(0, -12px, 0) rotate(4deg); } }
.hero-spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 14px rgba(var(--brand-rgb), .8); animation: twinkle 3.2s ease-in-out infinite; }
.hero-spark.s1 { top: 4%; right: 26%; }
.hero-spark.s2 { bottom: 8%; right: 12%; width: 7px; height: 7px; animation-delay: -1.1s; }
.hero-spark.s3 { top: 46%; left: -3%; width: 6px; height: 6px; background: var(--accent); animation-delay: -2.2s; }
@keyframes twinkle { 0%, 100% { transform: scale(.6); opacity: .35; } 50% { transform: scale(1.2); opacity: 1; } }

/* Composition 2: product on an orange disc */
.hero-v1 { background: radial-gradient(55% 70% at 72% 52%, rgba(var(--brand-rgb), .2) 0%, rgba(var(--brand-rgb), 0) 70%), linear-gradient(200deg, #fffdfb 0%, var(--slide-base) 50%, #ffe8d6 100%); }
.hero-v1 .hero-halo { inset: 11%; background: linear-gradient(145deg, var(--brand-light) 0%, var(--brand) 45%, var(--accent) 100%); box-shadow: 0 40px 80px -30px rgba(var(--brand-rgb), .8), inset 0 -20px 40px rgba(120, 30, 0, .18); animation: none; }
.hero-v1 .hero-frame { inset: 20%; border-radius: 50%; box-shadow: 0 0 0 10px rgba(255, 255, 255, .9), 0 34px 60px -24px rgba(70, 35, 10, .6); }
@keyframes frameBob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
.hero-v1 .hero-frame { animation-name: frameBob; }
.hero-v1 .hero-ring::after { top: auto; bottom: 14%; left: 8%; }
.hero-v1 .hero-chip.c1 { top: 4%; left: 10%; }
.hero-v1 .hero-chip.c3 { bottom: 6%; left: auto; right: 10%; }
.hero-v1 .hero-index { left: auto; right: 2%; bottom: auto; top: -.14em; }

/* Composition 3: tall arch frame, sunset backdrop */
.hero-v2 { background: radial-gradient(50% 80% at 80% 30%, rgba(255, 170, 90, .35) 0%, rgba(255, 170, 90, 0) 70%), linear-gradient(160deg, #fffaf4 0%, var(--slide-base) 45%, #ffdcc0 100%); }
.hero-v2 .hero-frame { inset: 6% 22% 13% 22%; border-radius: 999px 999px 32px 32px; }
.hero-v2 .hero-halo { inset: 4% 12% 8%; border-radius: 999px 999px 40% 40%; }
.hero-v2 .hero-ring { inset: 8%; }
.hero-v2 .hero-chip.c1 { top: 16%; left: 6%; }
.hero-v2 .hero-chip.c2 { top: auto; bottom: 22%; right: 4%; }
.hero-v2 .hero-chip.c3 { bottom: auto; top: 50%; left: 4%; }

/* Dark cinematic variant (admin picked a light text colour) */
.hero-slide.is-dark { --slide-text: #fff; background: radial-gradient(55% 75% at 75% 45%, rgba(var(--brand-rgb), .38) 0%, rgba(var(--brand-rgb), 0) 70%), linear-gradient(135deg, #121722 0%, #1b2232 55%, #2c1a10 100%); }
.hero-slide.is-dark .hero-dots { background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.5px); }
.hero-slide.is-dark .hero-index { -webkit-text-stroke-color: rgba(255, 255, 255, .09); }
.hero-slide.is-dark .hero-desc { color: rgba(255, 255, 255, .74); }
.hero-slide.is-dark .hero-sub { background: rgba(255, 255, 255, .08); color: #ffd2ad; border-color: rgba(255, 255, 255, .18); }
.hero-slide.is-dark .hero-ghost { color: #fff; }
.hero-slide.is-dark .hero-chip:not(.c2) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #ffb37a; }

/* Entrance: the incoming slide animates while Bootstrap cross-fades it in (classes stay matched from -next to .active). */
.hero .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev) .hero-content > * { animation: heroIn .9s var(--ease-out) backwards; }
.hero .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev) .hero-content > :nth-child(1) { animation-delay: .15s; }
.hero .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev) .hero-content > :nth-child(2) { animation-delay: .25s; }
.hero .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev) .hero-content > :nth-child(3) { animation-delay: .37s; }
.hero .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev) .hero-content > :nth-child(4) { animation-delay: .49s; }
.hero .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev) .hero-visual { animation: heroStageIn 1.2s var(--ease-out) .1s backwards; }
.hero .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev) .hero-bg { animation: heroBgIn 1.6s var(--ease-out) backwards; }
.hero .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev) .hero-img { animation: heroZoom 7s ease-out backwards; }
@keyframes heroIn { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes heroStageIn { from { opacity: 0; transform: translate3d(60px, 10px, 0) scale(.9) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes heroBgIn { from { transform: scale(1.08); } to { transform: none; } }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
/* Outgoing slide drifts away underneath the incoming one. */
.hero .carousel-item.active:is(.carousel-item-start, .carousel-item-end) .hero-content { opacity: 0; transform: translate3d(-30px, 0, 0); transition: opacity .5s ease, transform .7s var(--ease); }
.hero .carousel-item.active:is(.carousel-item-start, .carousel-item-end) .hero-visual { opacity: 0; transform: translate3d(-40px, 0, 0) scale(.94); transition: opacity .5s ease, transform .7s var(--ease); }

/* Controls */
.hero-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none; }
.hero-ui-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.6rem; }
.hero-ui-row > * { pointer-events: auto; }
.hero-pager { display: inline-flex; align-items: center; gap: 1.1rem; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px; padding: .55rem 1.1rem; box-shadow: 0 16px 34px -22px rgba(70, 35, 10, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero-counter { display: inline-flex; align-items: baseline; gap: .3rem; font-family: var(--font-head); font-size: .8rem; color: var(--muted); letter-spacing: .04em; font-weight: 600; }
.hero-counter b { font-size: 1.15rem; color: var(--dark); font-weight: 800; min-width: 1.5em; }
.hero .carousel-indicators { position: static; margin: 0; justify-content: flex-start; gap: .45rem; }
.hero .carousel-indicators [data-bs-target] { position: relative; overflow: hidden; width: 26px; height: 5px; border-radius: 5px; border: 0; margin: 0; opacity: 1; background: rgba(var(--dark-rgb), .14); transition: width .45s var(--ease-out), background .3s; padding: 0; background-clip: border-box; text-indent: 0; }
.hero .carousel-indicators [data-bs-target]:hover { background: rgba(var(--brand-rgb), .4); }
.hero .carousel-indicators .active { width: 64px; background: rgba(var(--brand-rgb), .22); }
.hero .carousel-indicators [data-bs-target] > span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; }
.hero .carousel-indicators .active > span { transform: scaleX(1); }
.hero.is-playing .carousel-indicators .active > span { animation: heroProgress 6s linear forwards; }
.hero.is-playing:hover .carousel-indicators .active > span { animation-play-state: paused; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-nav { display: flex; gap: .55rem; }
.hero-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .78); color: var(--dark); display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 14px 30px -20px rgba(70, 35, 10, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .25s, color .25s, transform .3s var(--spring), box-shadow .25s; }
.hero-btn:hover { background: #fff; color: var(--brand-ink); transform: translateY(-2px); }
.hero-btn:active { transform: scale(.94); }
.hero-btn-next { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.hero-btn-next:hover { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%); color: #fff; }
.hero-btn i { transition: transform .3s var(--spring); }
.hero-btn[data-bs-slide="next"]:hover i { transform: translateX(3px); }
.hero-btn[data-bs-slide="prev"]:hover i { transform: translateX(-3px); }

/* Laptop / tablet landscape */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .hero-slide { min-height: clamp(480px, 52vw, 560px); }
    .hero-grid { padding: 2.5rem 0 6rem; }
    .hero-title { font-size: clamp(2rem, 1rem + 2.6vw, 2.9rem); }
    .hero-desc { font-size: 1rem; margin-bottom: 1.6rem; }
    .hero-chip { width: 52px; height: 52px; font-size: 1.3rem; border-radius: 16px; }
    .hero-chip.c2 { width: 58px; height: 58px; font-size: 1.45rem; }
}
/* Phones & small tablets: product on top, centred copy below, controls under the slide. */
@media (max-width: 767.98px) {
    .hero-slide { min-height: 0; align-items: stretch; }
    .hero-grid { grid-template-columns: 1fr; gap: .75rem; padding: 1.4rem 0 1.6rem; text-align: center; }
    .hero-visual { order: -1; }
    .hero-stage { width: min(60vw, 250px); }
    .hero-content { max-width: 520px; margin: 0 auto; }
    .hero-sub { font-size: .66rem; padding: .38rem .8rem .38rem .65rem; margin-bottom: .8rem; }
    .hero-title { font-size: clamp(1.75rem, 1.1rem + 3.4vw, 2.3rem); margin-bottom: .6rem; }
    .hero-desc { font-size: .92rem; line-height: 1.55; margin: 0 auto 1.15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-actions { justify-content: center; gap: .6rem 1.1rem; }
    .hero-cta { padding: .72rem .72rem .72rem 1.3rem; font-size: .92rem; }
    .hero-cta i { width: 28px; height: 28px; }
    .hero-ghost { font-size: .9rem; }
    .hero-index { display: none; }
    .hero-blob.b1 { width: 90vw; right: -40vw; top: -30vw; }
    .hero-blob.b2 { width: 80vw; left: -40vw; bottom: -30vw; }
    .hero-chip { width: 42px; height: 42px; font-size: 1.05rem; border-radius: 14px; }
    .hero-chip.c2 { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 15px; }
    .hero-frame { border-radius: 22px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .75), 0 26px 44px -22px rgba(70, 35, 10, .5); }
    .hero-ui { position: relative; background: var(--cream); }
    .hero-ui-row { padding-top: .7rem; padding-bottom: .9rem; }
    .hero-pager { padding: .45rem .85rem; gap: .75rem; background: #fff; border-color: var(--border); }
    .hero-btn { width: 42px; height: 42px; }
    .hero-btn:not(.hero-btn-next) { background: #fff; border-color: var(--border); }
    .hero-btn[data-hero-toggle] { display: none; }
    @keyframes heroStageIn { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.9); } to { opacity: 1; transform: none; } }
}
@media (max-width: 379.98px) {
    .hero-counter { display: none; }
    .hero-ghost { display: none; }
}
/* Pointer parallax only where it makes sense. */
@media (hover: none), (pointer: coarse) { .hero-stage { transform: none; } }

/* Features bar */
.features-bar .feature { display: flex; align-items: center; gap: .9rem; padding: 1.05rem 1.2rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); height: 100%; transition: border-color .25s, box-shadow .25s; }
.features-bar .feature:hover { border-color: rgba(var(--brand-rgb), .35); box-shadow: var(--shadow-sm); }
.features-bar .feature i { font-size: 1.45rem; color: var(--brand-ink); width: 48px; height: 48px; display: grid; place-items: center; background: rgba(var(--brand-rgb), .08); border-radius: 12px; flex-shrink: 0; }
.features-bar .feature strong { display: block; font-size: .92rem; color: var(--dark); }
.features-bar .feature span { font-size: .8rem; color: var(--muted); }

/* Promo cards (light) */
.promo-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 210px; display: flex; align-items: flex-end; background-size: cover; background-position: center; color: var(--dark); padding: 1.5rem; isolation: isolate; border: 1px solid var(--border); }
.promo-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .78) 40%, rgba(255, 255, 255, 0) 72%); }
.promo-card::after { content: ''; position: absolute; inset: 0; z-index: -2; background: inherit; background-size: cover; background-position: center; transition: transform .6s var(--ease); }
.promo-card:hover { color: var(--dark); box-shadow: var(--shadow); }
.promo-card:hover::after { transform: scale(1.06); }
.promo-card > div { max-width: 60%; }
.promo-card .small { color: var(--accent-ink); opacity: 1 !important; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.promo-card h3 { color: var(--dark); font-size: 1.3rem; margin-bottom: .45rem; }
.promo-card .link { font-weight: 700; font-size: .86rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--brand-ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* Wide promo (brand blue band) */
.wide-promo { border-radius: 20px; overflow: hidden; background-size: cover; background-position: center; position: relative; color: #fff; padding: 3.5rem; }
.wide-promo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--dark-rgb), .95) 0%, rgba(var(--dark-rgb), .8) 50%, rgba(var(--dark-rgb), .2) 100%); }
@media (max-width: 767.98px) { .wide-promo::before { background: rgba(var(--dark-rgb), .9); } .wide-promo { padding: 2rem 1.5rem; } }
.wide-promo > * { position: relative; }
.wide-promo h2 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); font-weight: 800; }
.wide-promo .btn-light { --bs-btn-color: var(--accent-ink); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--accent-ink); --bs-btn-hover-border-color: var(--accent-ink); }

/* ---------- Category card ---------- */
.category-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem .75rem 1.05rem; color: var(--dark); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.category-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transition: transform .35s var(--ease); }
.category-card .thumb { width: 100%; max-width: 132px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--section); margin-bottom: .8rem; display: grid; place-items: center; }
.category-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.category-card .thumb.no-image { background: linear-gradient(140deg, rgba(var(--brand-rgb), .1), rgba(var(--brand-rgb), .03)); }
.category-card .thumb.no-image i { font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.6rem); color: var(--brand-ink); transition: transform .35s var(--ease), color .25s; }
.category-card .cat-name { font-size: .9rem; font-weight: 700; margin: 0 0 .15rem; line-height: 1.3; color: var(--dark); transition: color .2s; }
.category-card small { color: var(--muted); font-size: .76rem; }
.category-card:hover { border-color: rgba(var(--brand-rgb), .45); box-shadow: var(--shadow); color: var(--dark); }
.category-card:hover::after { transform: scaleX(1); }
.category-card:hover .thumb img { transform: scale(1.08); }
.category-card:hover .thumb.no-image i { transform: scale(1.1); color: var(--accent-ink); }
.category-card:hover .cat-name { color: var(--brand-ink); }
@media (max-width: 767.98px) {
    .cat-scroller { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; }
    .cat-scroller::-webkit-scrollbar { display: none; }
    .cat-scroller > * { flex: 0 0 31%; max-width: 31%; scroll-snap-align: start; }
    .category-card { padding: .7rem .5rem .8rem; }
    .category-card .cat-name { font-size: .8rem; }
}
@media (min-width: 1200px) { .row-cols-xl-8 > * { flex: 0 0 auto; width: 12.5%; } }

/* ---------- Product card ---------- */
.product-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .3s var(--ease), border-color .3s; container-type: inline-size; container-name: pcard; }
.product-card .media { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.product-card .media-link { position: absolute; inset: 0; display: block; }
.product-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform .7s var(--ease); backface-visibility: hidden; }
.product-card .media .img-hover { opacity: 0; transform: scale(1.04); will-change: opacity; }
.product-card .badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; z-index: 2; pointer-events: none; }
.p-badge { font-size: .7rem; font-weight: 700; padding: .3rem .55rem; border-radius: 6px; line-height: 1; color: #fff; letter-spacing: .02em; }
.p-badge.sale { background: var(--accent-ink); }
.p-badge.new { background: var(--brand-ink); }
.p-badge.hot { background: #ffb020; color: var(--dark); }
.p-badge.out { background: #5b6777; }
.product-card .actions { position: absolute; top: .7rem; right: .7rem; display: flex; flex-direction: column; gap: .4rem; z-index: 2; }
.product-card .actions button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--dark); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: opacity .25s ease, transform .25s var(--ease), background .2s, color .2s; }
.product-card .actions button:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.product-card .actions .wishlist-btn.active { color: var(--accent-ink); }
.product-card .actions .wishlist-btn.active:hover { color: #fff; background: var(--accent-ink); border-color: var(--accent-ink); }
.product-card .actions [data-compare].active { color: var(--brand-ink); }
.product-card .body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--border); }
.product-card .meta { font-size: .72rem; color: var(--brand-ink); margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.product-card .title { font-size: .94rem; font-weight: 600; color: var(--dark); margin-bottom: .45rem; line-height: 1.38; min-height: 2.76em; font-family: var(--font-body); letter-spacing: 0; }
.product-card .title a { color: inherit; }
.product-card .title a::before { content: ''; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable; buttons sit above */
.product-card .title a:hover { color: var(--brand-ink); }
.product-card .title a:focus-visible { outline: none; }
.product-card:has(.title a:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.product-card .rating { font-size: .78rem; color: var(--muted); margin-bottom: .45rem; display: flex; align-items: center; gap: .35rem; }
.product-card .price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem; margin-top: auto; }
.product-card .stock-note { font-size: .76rem; font-weight: 600; color: #b45309; margin-top: .2rem; }
.price { font-weight: 800; color: var(--dark); font-size: 1.1rem; font-family: var(--font-head); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .85rem; font-weight: 500; margin-left: .35rem; }
.product-card .price-old { margin-left: 0; }
/* Purchase actions: [Add to Cart] (blue, secondary) [Buy Now] (orange, primary) */
.product-card .card-actions { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .8rem; }
.product-card .card-btn { height: 42px; min-width: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; font-size: .84rem; white-space: nowrap; padding: 0 .5rem; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.product-card .card-btn i { font-size: .95rem; }
.product-card .card-btn .lbl-short { display: none; }
.product-card .btn-add { background: #fff; color: var(--brand-ink); border: 1.5px solid var(--brand-ink); }
.product-card .btn-add:hover { background: var(--brand-ink); color: #fff; }
.product-card .btn-buy { background: var(--accent-ink); color: #fff; border: 1.5px solid var(--accent-ink); box-shadow: 0 8px 16px -10px rgba(var(--accent-rgb), .8); }
.product-card .btn-buy:hover { background: var(--accent-ink-hover); border-color: var(--accent-ink-hover); }
.product-card .card-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.product-card .card-btn:disabled { cursor: not-allowed; }
.product-card .btn-out { grid-column: 1 / -1; background: var(--section); color: var(--muted); border: 1.5px solid var(--border); }
.product-card .card-btn .spinner-border { width: .95rem; height: .95rem; border-width: .14em; }
.product-card.is-sold-out .img-main { filter: grayscale(.35); opacity: .85; }
.stars { color: #f59e0b; display: inline-flex; gap: 1px; }
.stars .bi-star { color: #cbd5e1; }
/* Desktop hover: image crossfade + reveal actions. Whole-card hover avoids flicker over buttons. */
@media (hover: hover) and (pointer: fine) {
    .product-card:hover { border-color: rgba(var(--brand-rgb), .35); box-shadow: var(--shadow); }
    .product-card.has-hover-img:hover .img-hover { opacity: 1; transform: none; }
    .product-card:not(.has-hover-img):hover .img-main { transform: scale(1.05); }
    .product-card .actions button { opacity: 0; transform: translateX(10px); }
    .product-card .actions > :nth-child(2) { transition-delay: .03s; }
    .product-card .actions > :nth-child(3) { transition-delay: .06s; }
    .product-card:hover .actions button, .product-card:focus-within .actions button, .product-card .actions .wishlist-btn.active { opacity: 1; transform: none; }
}
@media (hover: none), (pointer: coarse) {
    .product-card .actions button { width: 34px; height: 34px; font-size: .88rem; }
}
@media (max-width: 575.98px) {
    .product-card .body { padding: .7rem .7rem .75rem; }
    .product-card .title { font-size: .84rem; }
    .product-card .meta { font-size: .66rem; }
    .price { font-size: 1rem; }
    .product-card .price-old { font-size: .76rem; }
    .product-card .card-actions { gap: .35rem; margin-top: .6rem; }
    .product-card .card-btn { height: 40px; }
    .product-card .badges { top: .5rem; left: .5rem; }
    .product-card .actions { top: .5rem; right: .5rem; gap: .3rem; }
    .product-card .actions button { width: 32px; height: 32px; }
}
/* Button labels adapt to the card's own width (works in every grid: 2-up mobile, 6-up "recently viewed", list view). */
@container pcard (max-width: 250px) {
    .product-card .card-btn { font-size: .78rem; gap: .3rem; padding: 0 .3rem; }
    .product-card .card-btn i { font-size: .85rem; }
    .product-card .card-btn .lbl-full { display: none; }
    .product-card .card-btn .lbl-short { display: inline; }
}
@container pcard (max-width: 185px) { .product-card .btn-buy i { display: none; } }
@container pcard (max-width: 150px) { .product-card .card-actions { grid-template-columns: 1fr; } .product-card .btn-buy i { display: inline; } }

/* List view */
.products-list .product-col { width: 100%; flex: 0 0 100%; max-width: 100%; }
.products-list .product-card { flex-direction: row; }
.products-list .product-card .media { width: 240px; flex-shrink: 0; aspect-ratio: auto; min-height: 220px; }
.products-list .product-card .body { padding: 1.25rem 1.5rem; border-top: 0; border-left: 1px solid var(--border); }
.products-list .product-card .title { font-size: 1.1rem; min-height: 0; }
.products-list .product-card .excerpt { display: block !important; }
.products-list .product-card .card-actions { grid-template-columns: repeat(2, minmax(130px, 170px)); }
@media (max-width: 575.98px) { .products-list .product-card .media { width: 130px; min-height: 160px; } .products-list .product-card .body { padding: .8rem; } }

/* Horizontal scroll rows on phones and tablets (one swipeable row instead of wrapped rows with orphan cards) */
@media (max-width: 991.98px) {
    .scroll-row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: none; overscroll-behavior-x: contain; }
    .scroll-row::-webkit-scrollbar { display: none; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .scroll-row > * { scroll-snap-align: start; flex: 0 0 31.5%; max-width: 31.5%; }
    .scroll-row > .wide { flex: 0 0 47%; max-width: 47%; }
}
@media (max-width: 767.98px) {
    .scroll-row > * { scroll-snap-align: start; flex: 0 0 47%; max-width: 47%; }
    .scroll-row > .wide { flex: 0 0 85%; max-width: 85%; }
    .row-cols-3.scroll-row > * { flex: 0 0 31%; max-width: 31%; }
}

/* ---------- Flash sale (light with orange accents) ---------- */
.flash-sale { background: linear-gradient(135deg, #fff4f1 0%, var(--section) 60%); border: 1px solid #ffe0d8; border-radius: 22px; padding: 2.25rem; position: relative; overflow: hidden; }
.flash-sale::before { content: ''; position: absolute; width: 420px; height: 420px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .18), transparent 70%); pointer-events: none; }
.flash-sale > * { position: relative; }
.flash-sale .countdown .unit { background: var(--accent-ink); }
@media (max-width: 767.98px) { .flash-sale { border-radius: 0; border-left: 0; border-right: 0; padding: 2rem 0; margin: 0 calc(var(--bs-gutter-x) * -.5); padding-left: calc(var(--bs-gutter-x) * .5); padding-right: calc(var(--bs-gutter-x) * .5); } }
.countdown { display: inline-flex; gap: .45rem; align-items: center; }
.countdown .unit { background: var(--dark); color: #fff; border-radius: 10px; min-width: 50px; text-align: center; padding: .4rem .5rem; line-height: 1.1; }
.countdown .unit b { display: block; font-size: 1.2rem; font-family: var(--font-head); }
.countdown .unit small { font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.countdown .sep { font-weight: 800; color: var(--dark); }
@media (max-width: 400px) {
    .countdown { gap: .3rem; }
    .countdown .unit { min-width: 42px; padding: .3rem .35rem; }
    .countdown .unit b { font-size: 1rem; }
}
.sale-progress { height: 6px; border-radius: 999px; background: rgba(var(--accent-rgb), .15); overflow: hidden; margin-top: .5rem; }
.sale-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ff9a5a); border-radius: inherit; }

/* ---------- Brands ---------- */
.brand-tile { display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; height: 96px; transition: filter .25s, opacity .25s, border-color .25s, box-shadow .25s; filter: grayscale(1); opacity: .75; }
.brand-tile:hover { filter: none; opacity: 1; box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .4); }
.brand-tile img { max-height: 56px; object-fit: contain; }

/* ---------- Why us ---------- */
.why-card { text-align: center; padding: 2rem 1.5rem; border-radius: 18px; background: #fff; border: 1px solid var(--border); height: 100%; transition: box-shadow .3s, border-color .3s; }
.why-card:hover { box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .35); }
.why-card .icon { width: 66px; height: 66px; border-radius: 18px; margin: 0 auto 1.1rem; display: grid; place-items: center; font-size: 1.7rem; color: var(--brand-ink); background: rgba(var(--brand-rgb), .09); }
.why-card h5 { font-size: 1.05rem; }
.why-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: 18px; padding: 1.75rem; border: 1px solid var(--border); height: 100%; position: relative; }
.testimonial-card::before { content: '\201C'; position: absolute; top: .5rem; right: 1.25rem; font-size: 5rem; line-height: 1; color: rgba(var(--brand-rgb), .14); font-family: Georgia, serif; }
.testimonial-card p { color: var(--text); font-size: .95rem; }
.testimonial-card img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ---------- Blog ---------- */
.blog-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border); height: 100%; display: flex; flex-direction: column; transition: box-shadow .3s, border-color .3s; }
.blog-card:hover { box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .3); }
.blog-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--section); }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card h5 { font-size: 1.05rem; line-height: 1.4; }
.blog-card h5 a { color: var(--dark); }
.blog-card h5 a:hover { color: var(--brand-ink); }
.blog-content { font-size: 1.05rem; line-height: 1.8; }
.blog-content h2, .blog-content h3 { margin-top: 2rem; }
.blog-content blockquote { border-left: 4px solid var(--brand); padding: .75rem 1.25rem; background: var(--section); border-radius: 0 12px 12px 0; font-style: italic; }
.blog-content img { border-radius: 12px; }

/* Instagram */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.insta-grid a { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: block; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.insta-grid a::after { content: '\F437'; font-family: 'bootstrap-icons'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: rgba(var(--brand-rgb), .55); opacity: 0; transition: opacity .3s; }
.insta-grid a:hover::after { opacity: 1; }
.insta-grid a:hover img { transform: scale(1.08); }
@media (max-width: 767.98px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }

/* Newsletter (brand blue band) */
.newsletter-band { background: linear-gradient(120deg, var(--brand-ink) 0%, var(--brand) 100%); border-radius: 22px; padding: 3.25rem; color: #fff; position: relative; overflow: hidden; }
.newsletter-band::before { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%); left: -160px; bottom: -280px; }
.newsletter-band::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .35), transparent 70%); right: -120px; top: -180px; }
.newsletter-band h2 { color: #fff; }
.newsletter-band .form-control { height: 52px; border-radius: 12px; border: 0; padding-left: 1.2rem; }
.newsletter-band .btn { border-radius: 12px; height: 52px; padding: 0 1.75rem; }
@media (max-width: 767.98px) { .newsletter-band { padding: 2rem 1.5rem; border-radius: 18px; } }

/* ---------- Footer (light) ---------- */
.site-footer { background: var(--section); color: var(--muted); padding-top: 56px; margin-top: 60px; font-size: .92rem; position: relative; border-top: 1px solid var(--border); }
.site-footer::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.site-footer h6 { color: var(--dark); font-size: .95rem; margin-bottom: 1.1rem; letter-spacing: .01em; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand-ink); }
.site-footer .brand-logo img { height: 72px; }
.site-footer .footer-links li { margin-bottom: .6rem; }
.site-footer .footer-links a { display: inline-block; transition: color .2s, transform .2s; }
.site-footer .footer-links a:hover { transform: translateX(3px); }
.site-footer .contact-list i { color: var(--brand-ink); }
.social-links a { width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--border); color: var(--brand-ink); transition: background .2s, color .2s, border-color .2s; }
.social-links a:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 0; margin-top: 3rem; font-size: .85rem; background: #fff; }
.pay-logos img { height: 28px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 3px 6px; }
@media (max-width: 991.98px) { .site-footer { margin-top: 40px; padding-top: 40px; } }

/* ---------- Page header / breadcrumb ---------- */
.page-header { background: var(--section); padding: 1.75rem 0 1.6rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); position: relative; }
.page-header::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: linear-gradient(90deg, var(--brand) 0, var(--brand) 60px, var(--accent) 60px, var(--accent) 100px, transparent 100px); }
.page-header h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem); margin: .4rem 0 0; font-weight: 800; }
.page-header .btn-light.rounded-pill { font-size: .82rem; }
.page-header .btn-light.rounded-pill:hover { border-color: rgba(var(--brand-rgb), .5); color: var(--brand-ink); }
@media (max-width: 991.98px) {
    .page-header { padding: 1.1rem 0; margin-bottom: 1rem; }
    .shop-sidebar-col { margin-top: 0 !important; padding-top: 0; }
}
@media (max-width: 575.98px) {
    .features-bar .feature { flex-direction: column; align-items: flex-start; gap: .6rem; padding: .9rem; }
    .features-bar .feature i { width: 40px; height: 40px; font-size: 1.25rem; }
}
.breadcrumb { font-size: .84rem; margin: 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-ink); }
.breadcrumb-item.active { color: var(--dark); font-weight: 500; }
.breadcrumb-item + .breadcrumb-item::before { content: '\F285'; font-family: 'bootstrap-icons'; font-size: .65rem; vertical-align: middle; color: #a3aab5; }

/* ---------- Shop ---------- */
.filter-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; background: #fff; }
.filter-card h6 { font-size: .9rem; margin-bottom: .85rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.filter-list { max-height: 260px; overflow-y: auto; }
.filter-list .form-check { padding: .22rem 0 .22rem 1.75rem; }
.filter-list .form-check-label { font-size: .9rem; display: flex; justify-content: space-between; width: 100%; cursor: pointer; }
.filter-list .count { color: var(--muted); font-size: .8rem; }
.swatch-option { display: inline-block; }
.swatch-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-option span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 38px; padding: 0 .75rem; border: 1.5px solid var(--border); border-radius: 9px; font-size: .84rem; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s, box-shadow .15s; margin: 0 .35rem .45rem 0; background: #fff; }
.swatch-option span:hover { border-color: rgba(var(--brand-rgb), .5); }
.swatch-option span.color { width: 32px; min-width: 32px; height: 32px; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; }
.swatch-option input:checked + span { border-color: var(--brand-ink); color: var(--brand-ink); background: rgba(var(--brand-rgb), .06); box-shadow: 0 0 0 2px rgba(var(--brand-rgb), .25); }
.swatch-option input:checked + span.color { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--brand-ink); }
.swatch-option input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .7rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1.25rem; background: #fff; }
.view-toggle .btn { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border-radius: 8px; }
.view-toggle .btn.active { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.active-filters .chip { display: inline-flex; align-items: center; gap: .35rem; background: rgba(var(--brand-rgb), .08); color: var(--brand-ink); border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; font-weight: 600; margin: 0 .35rem .35rem 0; }
.results-loading { position: relative; pointer-events: none; }
.results-loading::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .65); border-radius: var(--radius); }
.results-loading::before { content: ''; position: absolute; z-index: 2; left: 50%; top: 120px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; border: 3px solid rgba(var(--brand-rgb), .2); border-top-color: var(--brand-ink); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 4rem 1.5rem; }
.empty-state .icon { width: 96px; height: 96px; border-radius: 50%; background: rgba(var(--brand-rgb), .08); color: var(--brand-ink); display: grid; place-items: center; font-size: 2.6rem; margin: 0 auto 1.25rem; }
.cat-sidebar-banner { border-radius: var(--radius); overflow: hidden; display: block; position: relative; aspect-ratio: 3 / 4; background-size: cover; background-position: center; color: #fff; padding: 1.5rem; }
.cat-sidebar-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(var(--dark-rgb), .85)); }
.cat-sidebar-banner > * { position: relative; }
.cat-sidebar-banner:hover { color: #fff; }
.pagination { --bs-pagination-border-radius: 10px; --bs-pagination-active-bg: var(--brand-ink); --bs-pagination-active-border-color: var(--brand-ink); --bs-pagination-color: var(--dark); --bs-pagination-hover-color: var(--brand-ink); --bs-pagination-focus-color: var(--brand-ink); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .2); gap: .35rem; flex-wrap: wrap; }
.pagination .page-link { border-radius: 10px !important; min-width: 40px; height: 40px; display: grid; place-items: center; }

/* Category index page */
.cat-index-card { display: flex; gap: 1rem; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; transition: border-color .25s, box-shadow .25s; }
.cat-index-card:hover { border-color: rgba(var(--brand-rgb), .4); box-shadow: var(--shadow); }
.cat-index-card .cat-thumb { width: 88px; height: 88px; flex-shrink: 0; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(140deg, rgba(var(--brand-rgb), .1), rgba(var(--brand-rgb), .03)); }
.cat-index-card .cat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-index-card:hover .cat-thumb img { transform: scale(1.07); }
.cat-index-card .cat-thumb i { font-size: 2rem; color: var(--brand-ink); }
.cat-index-card h2 { font-size: 1.05rem; margin-bottom: .2rem; }
.cat-index-card h2 a { color: var(--dark); }
.cat-index-card h2 a:hover { color: var(--brand-ink); }
.sub-chip { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--text); background: var(--section); border-radius: 999px; padding: .28rem .7rem; margin: 0 .3rem .35rem 0; transition: background .2s, color .2s; }
.sub-chip:hover { background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); }

/* ---------- Product detail ---------- */
.gallery-main { position: relative; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--border); aspect-ratio: 1; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .15s ease-out, opacity .25s ease; transform-origin: center; }
.gallery-main img.is-swapping { opacity: 0; }
.gallery-main.zooming img { transform: scale(2); }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.gallery-thumbs button { width: 78px; height: 78px; flex-shrink: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--border); padding: 0; background: #fff; transition: border-color .2s; }
.gallery-thumbs button:hover { border-color: rgba(var(--brand-rgb), .5); }
.gallery-thumbs button.active { border-color: var(--brand-ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.75rem; box-shadow: var(--shadow-sm); }
@media (max-width: 575.98px) { .product-detail-card { padding: 1.1rem; border-radius: 14px; } }
.product-info h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.25; font-weight: 800; }
.product-info .small-caps { color: var(--brand-ink); }
.product-price { font-size: 2rem; font-weight: 800; color: var(--dark); font-family: var(--font-head); }
.product-price .price-old { font-size: 1.1rem; }
.save-badge { background: rgba(var(--accent-rgb), .1); color: var(--accent-ink); font-weight: 700; border-radius: 8px; padding: .3rem .6rem; font-size: .85rem; }
.stock-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; }
.stock-pill.in { background: #dcfce7; color: #15803d; }
.stock-pill.low { background: #fef3c7; color: #b45309; }
.stock-pill.out { background: #fee2e2; color: #b91c1c; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.qty-stepper button { width: 44px; height: 48px; border: 0; background: none; font-size: 1.1rem; color: var(--dark); transition: background .15s, color .15s; }
.qty-stepper button:hover { background: var(--section); color: var(--brand-ink); }
.qty-stepper input { width: 52px; height: 48px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-stepper.sm button { width: 34px; height: 36px; }
.qty-stepper.sm input { width: 40px; height: 36px; font-size: .9rem; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .75rem; padding: .8rem 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list i { color: var(--brand-ink); font-size: 1.2rem; }
.product-tabs-wrap { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 0 1.5rem; }
@media (max-width: 575.98px) { .product-tabs-wrap { padding: 0 1rem; border-radius: 14px; } }
.product-tabs .nav-link { color: var(--muted); font-weight: 600; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 1rem 1.1rem; white-space: nowrap; }
.product-tabs .nav-link:hover { color: var(--brand-ink); }
.product-tabs .nav-link.active { color: var(--brand-ink); border-bottom-color: var(--brand); background: none; }
.product-tabs { border-bottom: 1px solid var(--border); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.spec-table th { width: 35%; background: var(--section); font-weight: 600; color: var(--dark); }
.rating-bar { height: 8px; background: var(--section); border-radius: 999px; overflow: hidden; flex: 1; }
.rating-bar span { display: block; height: 100%; background: #f59e0b; border-radius: inherit; }
.review-item { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.review-item img.review-img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 1.7rem; color: #cbd5e1; cursor: pointer; transition: color .15s; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f59e0b; }
.rating-input input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.share-links a { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--section); color: var(--brand-ink); transition: background .2s, color .2s; }
.share-links a:hover { background: var(--brand-ink); color: #fff; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); padding: .6rem 1rem; z-index: 1035; box-shadow: 0 -10px 24px -18px rgba(70, 35, 10, .4); transform: translateY(150%); transition: transform .3s; }
.sticky-buy.show { transform: none; }

/* ---------- Cart / checkout ---------- */
.cart-item { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--section); flex-shrink: 0; border: 1px solid var(--border); }
.cart-item .name { font-weight: 600; color: var(--dark); }
.cart-item .name:hover { color: var(--brand-ink); }
@media (max-width: 575.98px) { .cart-item { gap: .75rem; align-items: flex-start; } .cart-item img { width: 72px; height: 72px; } }
.summary-card { border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; background: #fff; position: sticky; top: var(--sticky-top); box-shadow: var(--shadow-sm); }
@media (max-width: 991.98px) { .summary-card { position: static; } }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .95rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: 1rem; font-size: 1.15rem; font-weight: 800; color: var(--dark); }
.free-ship-bar { background: rgba(var(--brand-rgb), .07); border-radius: 12px; padding: .8rem 1rem; font-size: .88rem; }
.free-ship-bar .progress { height: 6px; margin-top: .5rem; background: rgba(var(--brand-rgb), .15); }
.free-ship-bar .progress-bar { background: var(--brand-ink); }
.checkout-card { border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; margin-bottom: 1.25rem; background: #fff; }
@media (max-width: 575.98px) { .checkout-card, .summary-card { padding: 1.1rem; border-radius: 14px; } }
.checkout-card .step-title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; font-size: 1.1rem; }
.checkout-card .step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-ink); color: #fff; display: grid; place-items: center; font-size: .9rem; font-weight: 700; flex-shrink: 0; }
.option-card { position: relative; display: block; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; }
.option-card .inner { border: 1.5px solid var(--border); border-radius: 14px; padding: .9rem 1rem; display: flex; align-items: center; gap: .85rem; transition: border-color .2s, background .2s, box-shadow .2s; height: 100%; background: #fff; }
.option-card:hover .inner { border-color: rgba(var(--brand-rgb), .45); }
.option-card .inner img { height: 30px; width: 48px; object-fit: contain; }
.option-card input:checked + .inner { border-color: var(--brand-ink); background: rgba(var(--brand-rgb), .04); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12); }
.option-card input:focus-visible + .inner { outline: 2px solid var(--brand); outline-offset: 2px; }
.option-card input:checked + .inner .check { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.option-card .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); margin-left: auto; display: grid; place-items: center; font-size: .7rem; color: transparent; flex-shrink: 0; }
.checkout-steps { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2rem; font-size: .85rem; font-weight: 600; flex-wrap: wrap; }
.checkout-steps span { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.checkout-steps span.done, .checkout-steps span.current { color: var(--brand-ink); }
.checkout-steps .line { width: 40px; height: 2px; background: var(--border); align-self: center; }
@media (max-width: 400px) { .checkout-steps .line { width: 16px; } }
.mini-item { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; }
.mini-item .img-wrap { position: relative; }
.mini-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--section); border: 1px solid var(--border); }
.mini-item .qty-badge { position: absolute; top: -6px; right: -6px; background: var(--brand-ink); color: #fff; border-radius: 999px; font-size: .68rem; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }
.success-icon { width: 96px; height: 96px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 3rem; display: grid; place-items: center; margin: 0 auto 1.25rem; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
#miniCart .offcanvas-header { background: var(--brand-ink); color: #fff; }
#miniCart .offcanvas-title { color: #fff; }
#miniCart .btn-close { filter: invert(1) grayscale(1) brightness(2); }

/* ---------- Account ---------- */
.account-nav { border: 1px solid var(--border); border-radius: 18px; padding: .75rem; background: #fff; }
.account-nav .nav-link { color: var(--text); font-weight: 500; border-radius: 10px; padding: .7rem 1rem; display: flex; align-items: center; gap: .75rem; }
.account-nav .nav-link i { font-size: 1.1rem; color: var(--muted); }
.account-nav .nav-link:hover { background: var(--section); }
.account-nav .nav-link.active { background: rgba(var(--brand-rgb), .08); color: var(--brand-ink); font-weight: 600; }
.account-nav .nav-link.active i { color: var(--brand-ink); }
.account-user { display: flex; align-items: center; gap: .85rem; padding: .75rem 1rem 1rem; border-bottom: 1px solid var(--border); margin-bottom: .5rem; }
.account-user img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
@media (max-width: 991.98px) {
    .account-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: .4rem; border-radius: 14px; scrollbar-width: none; }
    .account-nav .account-user { display: none; }
    .account-nav .nav-link { white-space: nowrap; padding: .55rem .85rem; font-size: .88rem; }
}
.stat-tile { border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; background: #fff; height: 100%; }
.stat-tile .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: .75rem; }
.stat-tile .value { font-size: 1.5rem; font-weight: 800; color: var(--dark); font-family: var(--font-head); }
.panel { border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.panel-head { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.panel-head h5 { margin: 0; font-size: 1.05rem; }
.panel-body { padding: 1.4rem; }
@media (max-width: 575.98px) { .panel-head { padding: .9rem 1rem; } .panel-body { padding: 1rem; } }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.25rem 2rem; }
.timeline li::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-ink); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15); }
.timeline li:not(:first-child) .dot { background: #cbd5e1; box-shadow: none; }
.order-progress { display: flex; justify-content: space-between; position: relative; margin: 1.5rem 0 1rem; }
.order-progress::before { content: ''; position: absolute; top: 17px; left: 5%; right: 5%; height: 3px; background: var(--border); }
.order-progress .bar { position: absolute; top: 17px; left: 5%; height: 3px; background: var(--brand-ink); transition: width .6s; }
.order-progress .step { position: relative; text-align: center; flex: 1; font-size: .75rem; font-weight: 600; color: var(--muted); }
.order-progress .step i { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 3px solid var(--border); display: grid; place-items: center; margin: 0 auto .4rem; font-size: 1rem; }
.order-progress .step.done { color: var(--brand-ink); }
.order-progress .step.done i { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
@media (max-width: 575.98px) { .order-progress .step span { display: none; } }

/* Status badges */
.badge-soft-warning { background: #fef3c7; color: #b45309; }
.badge-soft-info { background: #e0f2fe; color: #0369a1; }
.badge-soft-primary { background: rgba(var(--brand-rgb), .12); color: var(--brand-ink); }
.badge-soft-indigo { background: #e0e7ff; color: #4338ca; }
.badge-soft-purple { background: #f3e8ff; color: #7e22ce; }
.badge-soft-teal { background: #ccfbf1; color: #0f766e; }
.badge-soft-success { background: #dcfce7; color: #15803d; }
.badge-soft-danger { background: #fee2e2; color: #b91c1c; }
.badge-soft-secondary { background: #f1f5f9; color: #475569; }
.badge-soft-dark { background: #e2e8f0; color: #0f172a; }
[class*="badge-soft-"] { padding: .4em .7em; border-radius: 999px; font-size: .75rem; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 320px); display: flex; align-items: center; padding: 3rem 0; background: var(--section); }
.auth-card { max-width: 460px; margin: 0 auto; border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: 20px; padding: 2.5rem; background: #fff; box-shadow: var(--shadow); width: 100%; }
@media (max-width: 575.98px) { .auth-wrap { padding: 1.5rem 0; } .auth-card { padding: 1.75rem 1.25rem; border-radius: 16px; } }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .form-control { padding-left: 2.6rem; }
.toggle-password { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: .35rem .5rem; }

/* Tables that become stacked cards on phones (cells need data-label). */
@media (max-width: 575.98px) {
    .table-stack thead { display: none; }
    .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
    .table-stack tr { padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
    .table-stack td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .3rem 0 !important; border: 0; text-align: right; }
    .table-stack td[data-label]::before { content: attr(data-label); font-size: .78rem; font-weight: 600; color: var(--muted); text-align: left; }
    .table-stack td:last-child { justify-content: flex-end; padding-top: .55rem !important; }
}

/* ---------- Toasts & misc ---------- */
.toast-stack { position: fixed; top: 90px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: .6rem; max-width: calc(100vw - 2rem); width: 380px; }
.toast-item { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: .9rem 1rem; display: flex; gap: .75rem; align-items: flex-start; border-left: 4px solid var(--brand); animation: toastIn .35s var(--ease); font-size: .92rem; }
.toast-item.success { border-color: #16a34a; }
.toast-item.error { border-color: #dc2626; }
.toast-item.info { border-color: var(--brand); }
.toast-item.warning { border-color: #d97706; }
.toast-item i { font-size: 1.2rem; }
.toast-item.success i { color: #16a34a; }
.toast-item.error i { color: #dc2626; }
.toast-item.info i { color: var(--brand-ink); }
.toast-item.warning i { color: #d97706; }
.toast-item.hide { animation: toastOut .3s forwards; }
@keyframes toastIn { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateY(-14px); opacity: 0; } }
@media (max-width: 575.98px) { .toast-stack { top: auto; bottom: 76px; right: .75rem; left: .75rem; width: auto; transform: none; } }
.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-ink); color: #fff; border: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .2s; z-index: 1020; box-shadow: var(--shadow); }
.back-to-top:hover { background: var(--accent-ink); }
.back-to-top.show { opacity: 1; visibility: visible; }
.whatsapp-float { position: fixed; left: 1.25rem; bottom: 1.25rem; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; z-index: 1020; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }
@media (max-width: 991.98px) { .back-to-top { bottom: 80px; right: .9rem; width: 40px; height: 40px; } .whatsapp-float { bottom: 80px; right: .9rem; left: auto; width: 44px; height: 44px; font-size: 1.3rem; } .back-to-top.show ~ .whatsapp-float, .whatsapp-float.shift { bottom: 130px; } }
.content-body { line-height: 1.8; }
.content-body h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.content-body img { max-width: 100%; height: auto; border-radius: 12px; }
.content-body table { width: 100%; display: block; overflow-x: auto; }
.table-responsive { border-radius: var(--radius); }
.table > :not(caption) > * > * { padding: .75rem .85rem; }
.modal-content { border-radius: 18px; border: 0; }
.offcanvas { --bs-offcanvas-width: 380px; }
.spinner-inline { width: 1rem; height: 1rem; border-width: .15em; }
.lazy-fade { opacity: 0; transition: opacity .4s; }
.lazy-fade.loaded { opacity: 1; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 3000; background: var(--brand-ink); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
.compare-table th, .compare-table td { min-width: 180px; vertical-align: top; }
.compare-table img { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; }

/* Content-entrance: sections fade in once as they scroll into view (JS adds .reveal only when motion is allowed). */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s var(--ease); }
.reveal.revealed { opacity: 1; transform: none; }


/* ==========================================================================
   Premium layer — warm surfaces, lift-on-hover cards, orange micro-interactions.
   Kept after the base rules so it reads as one place to tune the 2026 look.
   ========================================================================== */

/* Section rhythm */
.section.bg-surface, .section-categories { background: linear-gradient(180deg, var(--section) 0%, var(--cream) 100%); }
.section-head h2 { letter-spacing: -.03em; }
.section-head h2::before { width: 5px; background: linear-gradient(180deg, var(--brand-light), var(--brand) 50%, var(--accent)); }
.section-head .view-all { border-color: rgba(var(--brand-rgb), .3); }
.section-head .view-all:hover { background: linear-gradient(120deg, var(--brand), var(--brand-ink)); border-color: transparent; box-shadow: 0 10px 20px -12px rgba(var(--brand-rgb), .9); }
.eyebrow { background: rgba(var(--brand-rgb), .1); }

/* Features bar */
.features-bar .feature { border-radius: 18px; transition: border-color .3s, box-shadow .3s, transform .35s var(--ease-out); }
.features-bar .feature i { border-radius: 14px; background: linear-gradient(140deg, rgba(var(--brand-rgb), .14), rgba(var(--brand-rgb), .05)); transition: background .3s, color .3s, transform .4s var(--spring); }
.features-bar .feature:hover { transform: translateY(-3px); border-color: rgba(var(--brand-rgb), .35); box-shadow: var(--shadow); }
.features-bar .feature:hover i { background: linear-gradient(135deg, var(--brand), var(--brand-ink)); color: #fff; transform: rotate(-6deg) scale(1.05); }

/* Category cards */
.category-card { border-radius: 20px; transition: border-color .3s, box-shadow .35s, transform .4s var(--ease-out); }
.category-card .thumb { border-radius: 16px; background: radial-gradient(circle at 50% 35%, #fff 0%, var(--section) 70%); }
.category-card .thumb.no-image { background: radial-gradient(circle at 50% 40%, rgba(var(--brand-rgb), .16) 0%, rgba(var(--brand-rgb), .04) 65%, var(--cream) 100%); }
.category-card:hover { transform: translateY(-5px); border-color: rgba(var(--brand-rgb), .4); box-shadow: 0 22px 40px -24px rgba(var(--brand-rgb), .55); }
.category-card:hover .thumb.no-image i { transform: scale(1.12) rotate(-6deg); color: var(--brand-ink); }
.category-card::after { height: 4px; background: linear-gradient(90deg, var(--brand-light), var(--brand), var(--accent)); }

/* Product cards */
.product-card { border-radius: 20px; transition: box-shadow .4s var(--ease-out), border-color .3s, transform .45s var(--ease-out); }
.product-card .body { border-top-color: rgba(240, 228, 217, .7); }
.product-card .meta { color: var(--brand-ink); }
.p-badge { border-radius: 999px; padding: .34rem .62rem; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .35); }
.p-badge.sale { background: linear-gradient(120deg, var(--accent), var(--accent-ink)); }
.p-badge.new { background: var(--dark); }
.p-badge.hot { background: linear-gradient(120deg, #ffc247, #ff9a1f); color: #3b1d00; }
.product-card .actions button:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.product-card .card-btn { border-radius: 12px; }
.product-card .btn-add { background: rgba(var(--brand-rgb), .08); color: var(--brand-ink); border: 1.5px solid rgba(var(--brand-rgb), .3); }
.product-card .btn-add:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.product-card .btn-buy { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-ink) 100%); border-color: transparent; text-shadow: 0 1px 1px rgba(80, 30, 0, .18); box-shadow: 0 10px 18px -10px rgba(var(--brand-rgb), .9); }
.product-card .btn-buy:hover { background: linear-gradient(120deg, var(--brand-ink) 0%, var(--brand-ink-hover) 100%); border-color: transparent; }
.product-card .card-btn:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
    .product-card:hover { transform: translateY(-6px); border-color: rgba(var(--brand-rgb), .35); box-shadow: 0 28px 50px -30px rgba(70, 35, 10, .45), 0 10px 24px -18px rgba(var(--brand-rgb), .45); }
    .product-card:not(.has-hover-img):hover .img-main { transform: scale(1.06); }
}

/* Promo cards & bands */
.promo-card { border-radius: 20px; transition: box-shadow .35s, transform .45s var(--ease-out); }
.promo-card::before { background: linear-gradient(90deg, rgba(255, 250, 245, .96) 0%, rgba(255, 250, 245, .8) 40%, rgba(255, 250, 245, 0) 72%); }
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-card .link { color: var(--brand-ink); border-bottom-color: var(--brand); }
.promo-card .link i { transition: transform .3s var(--spring); }
.promo-card:hover .link i { transform: translateX(4px); }
.wide-promo { border-radius: var(--radius-lg); }
.wide-promo::before { background: linear-gradient(90deg, rgba(var(--dark-rgb), .95) 0%, rgba(var(--dark-rgb), .82) 45%, rgba(var(--brand-rgb), .35) 100%); }
@media (max-width: 767.98px) { .wide-promo::before { background: linear-gradient(160deg, rgba(var(--dark-rgb), .92), rgba(var(--dark-rgb), .8) 60%, rgba(var(--brand-rgb), .6)); } }
.wide-promo .btn-light { --bs-btn-color: var(--brand-ink); --bs-btn-hover-bg: var(--brand-ink); --bs-btn-hover-border-color: var(--brand-ink); }
.newsletter-band { background: linear-gradient(120deg, var(--brand-ink) 0%, var(--brand) 55%, var(--brand-light) 100%); border-radius: var(--radius-lg); }
.newsletter-band::after { background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); }
.newsletter-band .btn-primary, .newsletter-band .btn-cta, .newsletter-band .btn-brand { background-image: none; --bs-btn-bg: var(--dark); --bs-btn-hover-bg: #000; text-shadow: none; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .6); }
.flash-sale { background: linear-gradient(135deg, #fff3ea 0%, var(--cream) 60%); border-color: #ffdcc7; border-radius: var(--radius-lg); }
.flash-sale .countdown .unit { background: linear-gradient(160deg, var(--accent), var(--accent-ink)); box-shadow: 0 10px 18px -12px rgba(var(--accent-rgb), .9); }
.brand-tile { border-radius: 18px; }
.why-card, .testimonial-card, .blog-card { border-radius: 20px; transition: box-shadow .35s, border-color .3s, transform .45s var(--ease-out); }
.why-card:hover, .blog-card:hover { transform: translateY(-4px); }
.why-card .icon { background: linear-gradient(140deg, rgba(var(--brand-rgb), .16), rgba(var(--brand-rgb), .05)); transition: transform .4s var(--spring), background .3s, color .3s; }
.why-card:hover .icon { background: linear-gradient(135deg, var(--brand), var(--brand-ink)); color: #fff; transform: rotate(-6deg); }

/* Page header */
.page-header { background: radial-gradient(40% 140% at 100% 0%, rgba(var(--brand-rgb), .12) 0%, transparent 70%), linear-gradient(180deg, var(--section), var(--cream)); }
.page-header::after { background: linear-gradient(90deg, var(--brand) 0, var(--brand) 64px, var(--accent) 64px, var(--accent) 104px, transparent 104px); }

/* Footer */
.site-footer { background: linear-gradient(180deg, var(--cream) 0%, var(--section) 100%); }
.site-footer::before { height: 4px; background: linear-gradient(90deg, var(--brand-light), var(--brand), var(--accent)); }
.social-links a { border-radius: 12px; transition: background .25s, color .25s, border-color .25s, transform .3s var(--spring); }
.social-links a:hover { background: linear-gradient(135deg, var(--brand), var(--brand-ink)); border-color: transparent; transform: translateY(-3px); }

/* Floating utilities */
#miniCart .offcanvas-header { background: linear-gradient(120deg, var(--brand-ink), var(--brand)); }
.back-to-top { background: linear-gradient(135deg, var(--brand), var(--brand-ink)); box-shadow: var(--shadow-brand); transition: opacity .3s, visibility .3s, transform .3s var(--spring); }
.back-to-top:hover { background: linear-gradient(135deg, var(--brand), var(--brand-ink)); transform: translateY(-3px); }
.mobile-bottom-nav { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-top-color: var(--border); }
.mobile-bottom-nav .active::before { background: linear-gradient(90deg, var(--brand), var(--accent)); }
.mobile-bottom-nav .active i { transform: translateY(-1px); }
.mobile-bottom-nav i { transition: transform .3s var(--spring); }
.auth-card { border-top: 4px solid var(--brand); border-radius: var(--radius-lg); }

/* Coupon pill on the wide promo band */
.promo-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .42rem .95rem; border-radius: 999px; font-weight: 700; font-size: .82rem; letter-spacing: .02em; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.promo-pill i { color: var(--brand-light); }

/* ---------- Phones ---------- */
@media (max-width: 767.98px) {
    /* Why-us: compact 2-up tiles instead of four tall stacked cards. */
    .why-card { padding: 1.1rem .8rem; border-radius: 16px; }
    .why-card .icon { width: 48px; height: 48px; border-radius: 14px; font-size: 1.3rem; margin-bottom: .7rem; }
    .why-card h5 { font-size: .9rem; margin-bottom: .3rem; }
    .why-card p { font-size: .78rem; line-height: 1.45; }
    /* Blog: swipeable row of compact cards. */
    .blog-card .body { padding: 1rem; }
    .blog-card h5 { font-size: .98rem; }
    .scroll-row > .wide { flex-basis: 82%; max-width: 82%; }
    /* Bands & promos */
    .wide-promo h2 { font-size: 1.6rem; }
    .wide-promo .btn-lg { padding: .72rem 1.3rem; font-size: .95rem; }
    .promo-pill { font-size: .72rem; padding: .36rem .8rem; }
    .promo-card { min-height: 170px; padding: 1.15rem; }
    .promo-card h3 { font-size: 1.15rem; }
    .newsletter-band h2 { font-size: 1.5rem; }
    .text-center > h2 { font-size: clamp(1.35rem, 1.1rem + 1.4vw, 1.75rem); }
    /* Tighter section heads so long subtitles don't push the "View all" pill around. */
    .section-head h2 { font-size: 1.3rem; }
    .section-head .view-all { flex-shrink: 0; }
    .testimonial-card { padding: 1.35rem; }
    .brand-tile { height: 76px; padding: .75rem; }
    .insta-grid { gap: .35rem; }
    .insta-grid a { border-radius: 10px; }
}
/* Floating WhatsApp: on phones it waits until the shopper scrolls, so it never covers the hero controls. */
@media (max-width: 991.98px) {
    .whatsapp-float { opacity: 0; visibility: hidden; transform: scale(.6); transition: opacity .3s, visibility .3s, transform .35s var(--spring), bottom .3s; }
    .whatsapp-float.show { opacity: 1; visibility: visible; transform: none; }
}

/* Scroll reveal: whole sections fade up, then their grid items follow in a short stagger. */
.reveal .row > * { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .6s ease, transform .7s var(--ease-out); }
.reveal.revealed .row > * { opacity: 1; transform: none; }
.reveal.revealed .row > :nth-child(2) { transition-delay: .06s; }
.reveal.revealed .row > :nth-child(3) { transition-delay: .12s; }
.reveal.revealed .row > :nth-child(4) { transition-delay: .18s; }
.reveal.revealed .row > :nth-child(5) { transition-delay: .24s; }
.reveal.revealed .row > :nth-child(6) { transition-delay: .3s; }
.reveal.revealed .row > :nth-child(n+7) { transition-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .hero-blob, .hero-ring, .hero-ring::before, .hero-halo, .hero-frame, .hero-floor, .hero-chip, .hero-spark, .hero-sub::before, .announcement::after, .category-nav .deals-link i { animation: none !important; }
    .hero-stage { transform: none !important; }
    .reveal .row > * { opacity: 1; transform: none; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .mobile-bottom-nav, .announcement, .back-to-top, .whatsapp-float, .no-print { display: none !important; }
    body { padding: 0; background: #fff; }
}
