/* =====================================================================
   Dana Fresh — Customer Storefront CSS
   Path: public_html/assets/css/shop.css
   Mobile-first · App-like · RTL-ready · Bengali-aware
   ================================================================     */

:root {
    --shop-primary:        #0B6E4F;
    --shop-primary-dark:  #0a5c42;
    --shop-primary-light: #e8f5f0;
    --shop-accent:        #10b981;
    --shop-offer:         #f59e0b;
    --shop-offer-bg:      #fef3c7;
    --shop-danger:        #ef4444;
    --shop-danger-bg:     #fee2e2;

    --shop-bg:            #f7faf8;
    --shop-surface:       #ffffff;
    --shop-border:        #e5e9ef;
    --shop-border-2:      #eef1f5;

    --shop-text:          #0f172a;
    --shop-text-2:        #334155;
    --shop-muted:         #64748b;
    --shop-muted-2:       #94a3b8;

    --radius-sm:  8px;
    --radius:     12px;
    --radius-lg:  16px;
    --radius-full: 999px;

    --shadow-sm:  0 1px 2px rgba(15,23,42,.04);
    --shadow:     0 2px 8px rgba(15,23,42,.06);
    --shadow-lg:  0 8px 24px rgba(15,23,42,.10);

    --header-h:   130px;
    --bottomnav-h: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top:    env(safe-area-inset-top, 0px);
}

/* ═══════════════════════════════════════════════════════════════
   NIGHT / DARK MODE GLOBAL VARIABLES & OVERRIDES
   ═══════════════════════════════════════════════════════════════ */
html[data-theme="dark"],
body.dark-mode,
body.shop-body.dark-mode {
    --shop-bg: #0b1310 !important;
    --shop-surface: #13221c !important;
    --shop-border: #22382f !important;
    --shop-border-2: #1b2e26 !important;

    --shop-text: #f0fdf4 !important;
    --shop-text-2: #cbd5e1 !important;
    --shop-muted: #94a3b8 !important;
    --shop-muted-2: #64748b !important;

    --shop-primary-light: rgba(16, 185, 129, 0.15) !important;
}

html[data-theme="dark"] body,
body.shop-body.dark-mode {
    background-color: var(--shop-bg) !important;
    color: var(--shop-text) !important;
}

/* গ্লোবাল ট্রানজিশন স্মুথ করার জন্য */
html, body, .app-header, .app-footer, .prod-card, .deal-card, .hpkg-card-anim,
.cat-curved-card, .prod-detail, .prod-price-block, .pkgs-section, .pkg-card,
.bottom-nav, .modal-dialog, .auth-card, .cart-summary, .ck-section, .order-card,
.acct-stat, .acct-link, .ws-benefit, .ws-form-section, .ws-details, .notif-list,
.prod-desc-card, .prod-specs-card, input, select, textarea {
    transition: background-color .3s cubic-bezier(.16,1,.3,1), 
                color .3s cubic-bezier(.16,1,.3,1), 
                border-color .3s cubic-bezier(.16,1,.3,1), 
                box-shadow .3s cubic-bezier(.16,1,.3,1) !important;
}

/* ডার্ক মোডে কার্ড, ব্যাকগ্রাউন্ড ও ফর্ম এলিমেন্টস ফিক্স */
html[data-theme="dark"] .app-header {
    background: linear-gradient(135deg, #064e3b 0%, #064030 100%) !important;
}

html[data-theme="dark"] .bottom-nav,
html[data-theme="dark"] .prod-card,
html[data-theme="dark"] .page-head,
html[data-theme="dark"] .crumbs-bar,
html[data-theme="dark"] .filters-details,
html[data-theme="dark"] .cart-list,
html[data-theme="dark"] .coupon-box,
html[data-theme="dark"] .cart-summary,
html[data-theme="dark"] .ck-section,
html[data-theme="dark"] .addr-card,
html[data-theme="dark"] .slot-card,
html[data-theme="dark"] .pay-card,
html[data-theme="dark"] .order-card,
html[data-theme="dark"] .order-row,
html[data-theme="dark"] .acct-stat,
html[data-theme="dark"] .acct-link,
html[data-theme="dark"] .ws-benefit,
html[data-theme="dark"] .ws-status-card,
html[data-theme="dark"] .ws-form-section,
html[data-theme="dark"] .ws-details,
html[data-theme="dark"] .notif-list,
html[data-theme="dark"] .prod-desc-card,
html[data-theme="dark"] .prod-specs-card,
html[data-theme="dark"] .mobile-cart-bar,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .wish-card,
html[data-theme="dark"] .trust-bar,
html[data-theme="dark"] .contact-cta,
html[data-theme="dark"] .input,
html[data-theme="dark"] .auth-field input,
html[data-theme="dark"] .search-form {
    background: var(--shop-surface) !important;
    color: var(--shop-text) !important;
    border-color: var(--shop-border) !important;
}

html[data-theme="dark"] .input,
html[data-theme="dark"] .auth-field input,
html[data-theme="dark"] .search-form input {
    color: var(--shop-text) !important;
}

html[data-theme="dark"] .lang-menu {
    background: #13221c !important;
    color: var(--shop-text) !important;
    border-color: var(--shop-border) !important;
}

html[data-theme="dark"] .lang-item:hover {
    background: rgba(16,185,129,0.2) !important;
    color: var(--shop-accent) !important;
}

html[data-theme="dark"] .variant-chip {
    background: var(--shop-surface) !important;
    border-color: var(--shop-border) !important;
    color: var(--shop-text) !important;
}

html[data-theme="dark"] .qty-control {
    background: var(--shop-surface) !important;
    border-color: var(--shop-border) !important;
}

html[data-theme="dark"] .qty-control input {
    color: var(--shop-text) !important;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.shop-body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--shop-bg);
    color: var(--shop-text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 8px);
    overflow-x: hidden;
}

body.shop-body[data-lang="bn"] {
    font-family: 'Noto Serif Bengali', 'Inter', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}
body.shop-body[data-lang="ar"] {
    font-family: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif;
}

body.shop-body.is-rtl { direction: rtl; }

a { color: var(--shop-primary); text-decoration: none; }
a:hover { color: var(--shop-primary-dark); }

img { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; }

/* ── Shell ─────────────────────────────────────────────── */

.app-shell { min-height: 100vh; }
.app-main { padding: 16px; max-width: 1400px; margin: 0 auto; }

@media (min-width: 768px) {
    body.shop-body { padding-bottom: 24px; }
    .app-main { padding: 24px; }
}

/* ── Header ────────────────────────────────────────────── */

.app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--shop-primary);
    color: #fff;
    padding-top: var(--safe-top);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.app-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 6px;
    gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }

.brand-logo {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0B6E4F 0%, #10b981 100%);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -.5px;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.header-right .brand-logo { background: rgba(255,255,255,.12); }

.brand-text { font-weight: 700; font-size: 17px; letter-spacing: -.2px; }
.brand-text em { font-style: italic; font-weight: 600; opacity: .9; }

.header-right { display: flex; align-items: center; gap: 6px; }

.icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: var(--radius);
    color: #fff;
    background: rgba(255,255,255,.08);
    transition: background .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.16); color: #fff; }

.icon-btn-badge .badge {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--shop-offer);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}

/* Language dropdown */
.lang-drop { position: relative; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(255,255,255,.08);
    border: 0;
    border-radius: var(--radius);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.lang-btn:hover { background: rgba(255,255,255,.16); }
.lang-code { font-size: 12px; }

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    background: #fff;
    color: var(--shop-text);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 50;
}
.lang-drop.is-open .lang-menu { display: block; }

.lang-item {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--shop-text);
}
.lang-item:hover { background: var(--shop-bg); color: var(--shop-primary); }
.lang-item.is-active { background: var(--shop-primary-light); color: var(--shop-primary); font-weight: 600; }

/* Search */
.app-header-search { padding: 6px 16px 10px; }

.search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 0 12px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.search-icon { color: var(--shop-muted); display: grid; place-items: center; }
.search-form input {
    flex: 1;
    height: 100%;
    border: 0;
    outline: none;
    font-size: 15px;
    padding: 0 10px;
    background: transparent;
    color: var(--shop-text);
    min-width: 0;
}
.search-form input::placeholder { color: var(--shop-muted-2); }
.search-clear {
    background: transparent;
    border: 0;
    color: var(--shop-muted);
    font-size: 20px;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
}

.header-location {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px 10px;
    font-size: 12.5px;
    color: rgba(255,255,255,.85);
}
.loc-icon { opacity: .8; }
.loc-text { font-weight: 500; }
.loc-phone { opacity: .75; }

/* ── Bottom nav (app-like) ─────────────────────────────── */

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--bottomnav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: #fff;
    border-top: 1px solid var(--shop-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 50;
    box-shadow: 0 -2px 12px rgba(0,0,0,.04);
}

.bn-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: var(--bottomnav-h);
    color: var(--shop-muted);
    font-size: 10.5px;
    font-weight: 500;
    transition: color .15s;
}
.bn-tab:hover { color: var(--shop-primary); }
.bn-tab.is-active { color: var(--shop-primary); }
.bn-tab.is-active .bn-icon { transform: translateY(-1px); }

.bn-icon { position: relative; display: grid; place-items: center; }
.bn-badge {
    position: absolute;
    top: -4px; right: -8px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    background: var(--shop-offer);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}
.bn-label { font-weight: 600; letter-spacing: .1px; }

@media (min-width: 768px) {
    .bottom-nav { display: none; }
}

/* ── Footer ────────────────────────────────────────────── */

.app-footer {
    background: #0d1b2a;
    color: #cbd5e1;
    padding: 32px 20px 24px;
    margin-top: 40px;
    border-radius: 20px 20px 0 0;
}
.app-footer a { color: #cbd5e1; }
.app-footer a:hover { color: #fff; }

.footer-cols {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 700px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 17px; margin-bottom: 10px; }
.footer-blurb { font-size: 13px; line-height: 1.6; color: #94a3b8; margin: 0; }

.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: #94a3b8; margin: 0 0 12px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; padding: 4px 0; margin: 0; }

.footer-social {
    max-width: 1200px; margin: 24px auto 0;
    display: flex; gap: 16px; flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
}

.footer-bottom {
    max-width: 1200px; margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: 12px; color: #64748b;
}

/* ── Buttons ───────────────────────────────────────────── */

.btn-primary, .btn-ghost, .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform .1s, background .15s, color .15s;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
}
.btn-primary { background: var(--shop-primary); color: #fff; }
.btn-primary:hover { background: var(--shop-primary-dark); color: #fff; }
.btn-primary:active { transform: scale(.98); }
.btn-primary[disabled] { background: var(--shop-muted-2); cursor: not-allowed; }

.btn-ghost { background: #fff; color: var(--shop-text); border-color: var(--shop-border); }
.btn-ghost:hover { background: var(--shop-bg); color: var(--shop-text); }

.btn-whatsapp { background: #25d366; color: #fff; width: 100%; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }

.btn-lg { padding: 14px 24px; font-size: 15px; width: 100%; }
@media (min-width: 640px) { .btn-lg { width: auto; } }

.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── Sections ──────────────────────────────────────────── */

.section { margin: 24px 0; }
.section-tight { margin: 14px 0; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 14px;
    gap: 12px;
}
.section-head h2 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.2px;
    margin: 0;
}
.section-h2 { font-size: 17px; font-weight: 700; margin: 0 0 12px; }

.link { font-size: 13px; font-weight: 600; color: var(--shop-primary); }
.link:hover { color: var(--shop-primary-dark); }

/* ── Legacy Hero ──────────────────────────────────────── */

.hero { margin: 0 0 20px; }
.hero-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}
.hero-slider::-webkit-scrollbar { display: none; }

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-accent) 100%);
    color: #fff;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 16px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 100%);
    color: #fff;
}
.hero-caption h2 { font-size: 20px; margin: 0 0 4px; font-weight: 700; letter-spacing: -.3px; }
.hero-caption p { margin: 0; font-size: 13.5px; opacity: .9; }

@media (min-width: 768px) {
    .hero-slide { flex: 0 0 calc(50% - 6px); }
}
@media (min-width: 1100px) {
    .hero-slide { flex: 0 0 calc(33.333% - 8px); }
}

.hero-fallback { padding: 40px 24px; border-radius: var(--radius-lg); text-align: center; color: #fff; }
.hero-inner h1 { font-size: 24px; margin: 0 0 8px; letter-spacing: -.3px; }
.hero-inner p { margin: 0 0 18px; opacity: .9; }
.hero-inner .btn-primary { background: #fff; color: var(--shop-primary); }
.hero-inner .btn-primary:hover { background: #f1f5f9; color: var(--shop-primary); }

/* ── Categories strip ─────────────────────────────────── */

.cat-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 8px;
    scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }

.cat-tile {
    flex: 0 0 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--shop-text);
    transition: transform .15s;
}
.cat-tile:hover { color: var(--shop-primary); transform: translateY(-1px); }

.cat-img {
    display: grid;
    place-items: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--shop-surface);
    border: 2px solid var(--shop-border);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-emoji { font-size: 26px; font-weight: 700; color: var(--shop-primary); }

.cat-name { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.cat-count { font-size: 10.5px; color: var(--shop-muted); margin-top: 2px; }

@media (min-width: 768px) {
    .cat-tile { flex: 0 0 110px; }
    .cat-img { width: 88px; height: 88px; }
    .cat-name { font-size: 13.5px; }
}

.subcat-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.subcat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--shop-text);
    transition: all .15s;
}
.subcat-pill:hover { border-color: var(--shop-primary); color: var(--shop-primary); }
.subcat-pill em { font-style: normal; color: var(--shop-muted); font-size: 11.5px; }

/* ── Product grid (legacy) ────────────────────────────── */

.prod-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 480px) { .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 768px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1320px) { .prod-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1560px) { .prod-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1800px) { .prod-grid { grid-template-columns: repeat(7, 1fr); } }
@media (min-width: 2000px) { .prod-grid { grid-template-columns: repeat(8, 1fr); } }

/* ── Product card ─────────────────────────────────────── */

.prod-card {
    position: relative;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s, box-shadow .15s;
}
.prod-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.prod-card:active { transform: scale(.99); }

.prod-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
    display: block;
}
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.prod-card:hover .prod-media img { transform: scale(1.03); }

.prod-placeholder {
    display: grid; place-items: center;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--shop-primary-light), #d1fae5);
    color: var(--shop-primary);
    font-weight: 800;
    font-size: 40px;
}
.prod-placeholder-lg { font-size: 80px; }

.prod-flag {
    position: absolute;
    top: 8px; left: 8px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #fff;
    text-transform: uppercase;
}
.prod-flag-offer { background: var(--shop-danger); }
.prod-flag-new   { background: var(--shop-primary); }
.prod-flag-best  { background: var(--shop-offer); }
.prod-flag-lg    { font-size: 12.5px; padding: 5px 10px; }

.prod-fav {
    position: absolute;
    top: 6px; right: 6px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    border: 0;
    color: var(--shop-muted);
    display: grid; place-items: center;
    box-shadow: var(--shadow-sm);
    transition: color .15s, transform .15s;
    z-index: 2;
}
.prod-fav:hover { color: var(--shop-danger); transform: scale(1.05); }
.prod-fav.is-active { color: var(--shop-danger); }
.prod-fav.is-active svg { fill: var(--shop-danger); }

.prod-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.prod-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--shop-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}
.prod-name:hover { color: var(--shop-primary); }

.prod-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--shop-muted);
}
.prod-unit { background: var(--shop-bg); padding: 2px 6px; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.prod-tag  { color: var(--shop-offer); font-weight: 700; }

.prod-foot {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding-top: 4px;
}
.prod-price { display: flex; flex-direction: column; line-height: 1.1; }
.prod-price strong { font-size: 15px; font-weight: 700; color: var(--shop-text); }
.prod-price s { font-size: 11.5px; color: var(--shop-muted-2); margin-top: 2px; }

.prod-add {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--shop-primary);
    color: #fff;
    border: 0;
    transition: background .15s, transform .1s;
    flex-shrink: 0;
}
.prod-add:hover { background: var(--shop-primary-dark); }
.prod-add:active { transform: scale(.9); }
.prod-add.is-disabled { background: var(--shop-muted-2); cursor: not-allowed; }
.prod-add.is-loading { background: var(--shop-muted); pointer-events: none; }

/* ── Page header ──────────────────────────────────────── */

.page-head {
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 16px;
}
.page-head-simple { padding: 16px 18px; }
.page-head-inner {
    display: flex;
    gap: 16px;
    align-items: center;
}
.page-head-img {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
    border: 1px solid var(--shop-border);
}
.page-title { font-size: 20px; font-weight: 700; margin: 4px 0 4px; letter-spacing: -.3px; }
.page-desc  { color: var(--shop-muted); font-size: 13px; margin: 4px 0; }
.page-count { color: var(--shop-muted); font-size: 12.5px; margin: 2px 0; }

.crumbs { font-size: 12px; color: var(--shop-muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--shop-muted); }
.crumbs a:hover { color: var(--shop-primary); }
.crumbs .current { color: var(--shop-text); font-weight: 600; }
.crumbs-bar {
    background: var(--shop-surface);
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--shop-border);
    margin-bottom: 16px;
}

/* ── Sort bar / filters ───────────────────────────────── */

.sort-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    padding: 10px 4px;
    margin-bottom: 12px;
    scrollbar-width: none;
}
.sort-bar::-webkit-scrollbar { display: none; }
.sort-label { font-size: 12.5px; color: var(--shop-muted); font-weight: 600; flex-shrink: 0; }
.sort-chip {
    display: inline-block;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: #fff;
    border: 1px solid var(--shop-border);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--shop-text);
    flex-shrink: 0;
}
.sort-chip:hover { border-color: var(--shop-primary); color: var(--shop-primary); }
.sort-chip.is-active { background: var(--shop-primary); color: #fff; border-color: var(--shop-primary); }

.filters-details {
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}
.filters-details > summary {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.filters-details > summary::-webkit-details-marker { display: none; }
.filters-summary-hint { font-size: 12px; color: var(--shop-muted); font-weight: 400; }

.filters-form { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.filter-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .filter-row { grid-template-columns: 1fr 1fr; } }
.filter-row-inline { display: flex; gap: 16px; flex-wrap: wrap; }

.filter-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--shop-text-2); }
.filter-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.filter-check input { width: 16px; height: 16px; accent-color: var(--shop-primary); }

.input {
    padding: 10px 12px;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--shop-text);
    width: 100%;
}
.input:focus { outline: none; border-color: var(--shop-primary); box-shadow: 0 0 0 3px rgba(11,110,79,.1); }

.filter-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 4px; }

/* ── Product detail ───────────────────────────────────── */

.prod-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (min-width: 900px) {
    .prod-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}

.prod-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--shop-border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    background: #fff;
    padding: 0;
    cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--shop-primary); }

.prod-info { display: flex; flex-direction: column; gap: 14px; }
.prod-title { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -.3px; line-height: 1.25; }
.prod-rating { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.stars { color: var(--shop-offer); font-weight: 700; }
.muted { color: var(--shop-muted); }

.prod-short { font-size: 13.5px; color: var(--shop-text-2); margin: 0; line-height: 1.55; }

.prod-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.prod-price-big { display: flex; align-items: baseline; gap: 10px; }
.prod-price-big strong { font-size: 26px; font-weight: 800; color: var(--shop-primary); letter-spacing: -.5px; }
.prod-price-big s { font-size: 14px; color: var(--shop-muted-2); }
.prod-unit-pill {
    font-size: 12px;
    color: var(--shop-muted);
    background: var(--shop-bg);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
}
.prod-save {
    display: inline-block;
    background: var(--shop-danger-bg);
    color: #991b1b;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    width: max-content;
}

.prod-wholesale {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    color: #065f46;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}

.stock-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 600;
    width: max-content;
}
.stock-in  { background: #d1fae5; color: #065f46; }
.stock-low { background: var(--shop-offer-bg); color: #92400e; }
.stock-out { background: var(--shop-danger-bg); color: #991b1b; }

.block-label { font-size: 12.5px; font-weight: 600; color: var(--shop-text-2); display: block; margin-bottom: 6px; }

.variant-block, .qty-block { display: flex; flex-direction: column; gap: 4px; }
.variant-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-chip {
    background: #fff;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--radius);
    padding: 8px 14px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    transition: all .15s;
    min-width: 90px;
}
.variant-chip:hover { border-color: var(--shop-primary); }
.variant-chip.is-active { border-color: var(--shop-primary); background: var(--shop-primary-light); }
.vc-name  { font-size: 13px; font-weight: 600; color: var(--shop-text); }
.vc-price { font-size: 11.5px; color: var(--shop-primary); font-weight: 700; }

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    width: max-content;
}
.qty-btn {
    width: 42px; height: 42px;
    background: transparent;
    border: 0;
    font-size: 20px;
    color: var(--shop-primary);
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}
.qty-btn:hover { background: var(--shop-bg); }
.qty-control input {
    width: 56px;
    height: 42px;
    border: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    background: transparent;
    outline: none;
    color: var(--shop-text);
    -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.prod-actions { display: flex; gap: 10px; flex-direction: column; }
@media (min-width: 640px) { .prod-actions { flex-direction: row; flex-wrap: wrap; } }
.prod-actions .btn-primary { flex: 1; min-width: 180px; }
.prod-actions .btn-ghost   { flex: 0 0 auto; }

.tier-block { margin-top: 8px; border-top: 1px solid var(--shop-border-2); padding-top: 12px; }
.tier-block > summary {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--shop-primary);
    cursor: pointer;
    list-style: none;
}
.tier-block > summary::-webkit-details-marker { display: none; }
.tier-block > summary::after { content: ' ▾'; }
.tier-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.tier-table th, .tier-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--shop-border-2); }
.tier-table th { color: var(--shop-muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; }
.is-rtl .tier-table th, .is-rtl .tier-table td { text-align: right; }

.prod-longdesc { font-size: 14px; line-height: 1.7; color: var(--shop-text-2); }
.prod-longdesc img { border-radius: var(--radius); margin: 12px 0; }
.prod-longdesc p { margin: 0 0 12px; }
.prod-longdesc ul, .prod-longdesc ol { padding-left: 22px; margin: 0 0 12px; }
.is-rtl .prod-longdesc ul, .is-rtl .prod-longdesc ol { padding-left: 0; padding-right: 22px; }

/* ── Empty states ─────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    margin: 20px 0;
}
.empty-state-lg { padding: 72px 24px; }
.empty-icon { font-size: 56px; display: block; margin-bottom: 14px; opacity: .7; }
.empty-state h2, .empty-state h3 { margin: 0 0 8px; font-weight: 700; letter-spacing: -.2px; }
.empty-state h2 { font-size: 22px; }
.empty-state h3 { font-size: 18px; }
.empty-state p { color: var(--shop-muted); font-size: 14px; margin: 0 0 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.quick-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.quick-tag {
    background: var(--shop-bg);
    border: 1px solid var(--shop-border);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    color: var(--shop-text);
    font-weight: 600;
}
.quick-tag:hover { background: var(--shop-primary); color: #fff; border-color: var(--shop-primary); }

/* ── Pagination ───────────────────────────────────────── */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 8px;
}
.pg-btn {
    padding: 9px 16px;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--shop-text);
}
.pg-btn:hover { border-color: var(--shop-primary); color: var(--shop-primary); }
.pg-btn.is-disabled { opacity: .4; pointer-events: none; }
.pg-info { font-size: 13px; color: var(--shop-muted); font-weight: 600; }

/* ── Wholesale CTA (legacy small) ─────────────────────── */

.wholesale-cta {
    background: linear-gradient(135deg, #0d1b2a 0%, #0B6E4F 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    padding: 22px 20px;
    margin: 24px 0;
}
.wc-inner { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (min-width: 640px) { .wc-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.wc-inner h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.2px; }
.wc-inner p { margin: 0; font-size: 13px; opacity: .85; }
.wc-inner .btn-primary { background: #fff; color: var(--shop-primary); }
.wc-inner .btn-primary:hover { background: #f1f5f9; }

/* ── WhatsApp float ───────────────────────────────────── */

.wa-float {
    position: fixed;
    bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 16px);
    right: 16px;
    z-index: 45;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px rgba(37,211,102,.35);
    transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

.is-rtl .wa-float { right: auto; left: 16px; }

@media (min-width: 768px) {
    .wa-float { bottom: 24px; }
}

/* ── Install banner ───────────────────────────────────── */

.install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 12px);
    background: #0d1b2a;
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 60;
    animation: ibIn .3s ease-out;
}
@media (min-width: 640px) {
    .install-banner {
        left: auto;
        right: 20px;
        bottom: 20px;
        width: 360px;
        flex-direction: row;
        align-items: center;
    }
    .install-banner .ib-actions { flex-shrink: 0; }
}
@keyframes ibIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ib-body { display: flex; align-items: center; gap: 10px; flex: 1; }
.ib-icon { font-size: 26px; }
.ib-text { display: flex; flex-direction: column; line-height: 1.3; }
.ib-text strong { font-size: 14px; }
.ib-text span { font-size: 11.5px; opacity: .75; }
.ib-actions { display: flex; gap: 8px; }
.install-banner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.install-banner .btn-primary { background: var(--shop-accent); }

/* ── Utility ──────────────────────────────────────────── */

.link-more { font-size: 13px; font-weight: 600; }

/* ── RTL adjustments ──────────────────────────────────── */

.is-rtl .prod-flag { left: auto; right: 8px; }
.is-rtl .prod-fav  { right: auto; left: 6px; }
.is-rtl .search-form .search-icon { order: 2; }
.is-rtl .search-form input { text-align: right; }
.is-rtl .header-right { flex-direction: row-reverse; }
.is-rtl .footer-cols { text-align: right; }

/* ── Prefers reduced motion ───────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   Phase 4 — Cart / Checkout / Orders CSS
   ═══════════════════════════════════════════════════════════ */

.cart-head { margin-bottom: 18px; }

.cart-layout, .checkout-layout, .order-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (min-width: 900px) {
    .cart-layout   { grid-template-columns: 1fr 340px; }
    .checkout-layout { grid-template-columns: 1fr 340px; }
    .order-layout  { grid-template-columns: 1fr 320px; }
}
.checkout-main, .order-main { display: flex; flex-direction: column; gap: 16px; }
.cart-main { display: flex; flex-direction: column; gap: 14px; }

.cart-list {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.cart-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--shop-border-2);
    align-items: start;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item.has-issue { background: #fffbeb; }

.cart-item-img {
    width: 74px; height: 74px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f8fafc;
    display: block;
    border: 1px solid var(--shop-border);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; color: var(--shop-text); line-height: 1.35; }
.cart-item-name:hover { color: var(--shop-primary); }
.cart-item-variant { font-size: 12px; color: var(--shop-muted); }
.cart-item-unit { font-size: 11.5px; color: var(--shop-muted-2); }
.cart-item-issue { font-size: 12px; color: #92400e; font-weight: 600; }
.cart-item-price { font-size: 13.5px; display: flex; gap: 6px; align-items: baseline; margin-top: 4px; flex-wrap: wrap; }
.cart-item-price strong { color: var(--shop-primary); font-size: 15px; }
.cart-item-line-total { color: var(--shop-muted); }

.cart-item-actions {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
@media (min-width: 640px) {
    .cart-item { grid-template-columns: 84px 1fr auto; }
    .cart-item-img { width: 84px; height: 84px; }
    .cart-item-actions { grid-column: 3; flex-direction: column; align-items: flex-end; }
}

.qty-control-sm .qty-btn { width: 32px; height: 32px; font-size: 16px; }
.qty-control-sm input { width: 42px; height: 32px; font-size: 14px; }

.cart-qty-save, .cart-remove-btn {
    background: transparent;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-sm);
    color: var(--shop-muted);
    padding: 4px 8px;
    cursor: pointer;
    font-size: 13px;
}
.cart-remove-btn { color: var(--shop-danger); border-color: var(--shop-danger-bg); }

.cart-item-qty { display: flex; gap: 6px; align-items: center; }

.coupon-box {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    padding: 12px 14px;
}
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input { flex: 1; }
.coupon-active { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.coupon-chip {
    display: inline-block;
    background: var(--shop-primary-light);
    color: var(--shop-primary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .5px;
}
.coupon-label { font-size: 13px; color: var(--shop-primary); font-weight: 600; margin-left: 8px; }

.cart-summary {
    position: sticky;
    top: 90px;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    height: max-content;
}
.cart-summary h2 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13.5px;
    color: var(--shop-text-2);
}
.summary-row strong { color: var(--shop-text); }
.summary-row-discount { color: #065f46; }
.summary-row-discount strong { color: #065f46; }
.summary-row-muted { color: var(--shop-muted); font-size: 12.5px; }
.summary-row-total {
    border-top: 1px solid var(--shop-border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 15px;
}
.summary-row-total strong { font-size: 18px; color: var(--shop-primary); }

.summary-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 4px;
}
.summary-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 8px;
    padding: 5px 0;
    font-size: 12.5px;
    color: var(--shop-text-2);
}
.si-qty { color: var(--shop-primary); font-weight: 700; }
.si-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-total { font-weight: 600; color: var(--shop-text); }

.ck-section {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    padding: 18px;
}
.ck-heading { font-size: 15px; font-weight: 700; margin: 0 0 14px; letter-spacing: -.1px; }
.ck-optional { color: var(--shop-muted); font-weight: 500; font-size: 12px; }

.ck-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
@media (min-width: 640px) { .ck-grid { grid-template-columns: 1fr 1fr; } }

.ck-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--shop-text-2); }
.ck-field span { color: var(--shop-muted); }
.ck-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--shop-text-2); }
.ck-check input { accent-color: var(--shop-primary); width: 16px; height: 16px; }

.addr-list { display: grid; gap: 10px; }
.addr-card {
    display: block;
    padding: 12px 14px;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--radius);
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, background .15s;
}
.addr-card:hover { border-color: var(--shop-primary); }
.addr-card.is-selected { border-color: var(--shop-primary); background: var(--shop-primary-light); }
.addr-card input[type=radio] { accent-color: var(--shop-primary); margin-right: 8px; }
.addr-info { display: inline-block; vertical-align: top; }
.addr-label { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.addr-name { font-size: 12.5px; color: var(--shop-muted); margin-bottom: 4px; }
.addr-text { font-size: 13px; color: var(--shop-text-2); }
.addr-instructions { font-size: 12px; color: var(--shop-muted); margin-top: 4px; font-style: italic; }
.badge-default {
    background: var(--shop-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.addr-add-btn {
    background: transparent;
    border: 1.5px dashed var(--shop-border);
    border-radius: var(--radius);
    padding: 12px;
    color: var(--shop-primary);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: background .15s;
}
.addr-add-btn:hover { background: var(--shop-primary-light); }

.addr-form { display: flex; flex-direction: column; gap: 10px; }

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.slot-card {
    display: block;
    padding: 12px;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    background: #fff;
    transition: all .15s;
}
.slot-card:hover { border-color: var(--shop-primary); }
.slot-card.is-selected { border-color: var(--shop-primary); background: var(--shop-primary-light); }
.slot-card input[type=radio] { display: none; }
.slot-time { display: block; font-weight: 600; font-size: 13px; color: var(--shop-text); }
.slot-range { display: block; font-size: 11.5px; color: var(--shop-muted); margin-top: 2px; }

.pay-grid { display: grid; gap: 10px; }
.pay-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--radius);
    cursor: pointer;
    background: #fff;
    transition: all .15s;
}
.pay-card:hover { border-color: var(--shop-primary); }
.pay-card.is-selected { border-color: var(--shop-primary); background: var(--shop-primary-light); }
.pay-card input[type=radio] { accent-color: var(--shop-primary); margin-top: 3px; }
.pay-info strong { display: block; font-size: 14px; }
.pay-info span { display: block; font-size: 12px; color: var(--shop-muted); margin-top: 2px; }

.success-banner {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.sb-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--shop-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}
.success-banner h2 { margin: 0 0 2px; font-size: 16px; color: #065f46; }
.success-banner p { margin: 0; font-size: 13px; color: #065f46; opacity: .85; }

.order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 4px;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    padding: 14px 8px;
    margin-bottom: 18px;
    overflow-x: auto;
}
.timeline-terminal { display: block; padding: 16px 20px; }
.tl-status strong { display: block; font-size: 15px; }
.tl-status span { font-size: 12.5px; color: var(--shop-muted); margin-top: 2px; display: block; }

.tl-step {
    text-align: center;
    padding: 4px 4px;
    position: relative;
    min-width: 80px;
}
.tl-step::after {
    content: '';
    position: absolute;
    top: 13px;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--shop-border);
    z-index: 1;
}
.tl-step:last-child::after { display: none; }

.tl-dot {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--shop-border);
    color: #fff;
    font-size: 12px;
    margin: 0 auto 6px;
    font-weight: 700;
}
.tl-step.is-done .tl-dot { background: var(--shop-primary); border-color: var(--shop-primary); }
.tl-step.is-active .tl-dot { box-shadow: 0 0 0 4px rgba(11,110,79,.15); }
.tl-step.is-done::after { background: var(--shop-primary); }

.tl-label { font-size: 11.5px; font-weight: 600; color: var(--shop-muted); }
.tl-step.is-done .tl-label { color: var(--shop-text); }
.tl-time { display: block; font-size: 10.5px; color: var(--shop-muted-2); margin-top: 2px; }

.order-card {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 16px;
}
.order-card-head { font-size: 14px; font-weight: 700; margin: 0 0 12px; letter-spacing: -.1px; }

.order-items { display: flex; flex-direction: column; }
.oi-row {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--shop-border-2);
    align-items: center;
}
.oi-row:last-child { border-bottom: 0; }
.oi-img {
    width: 54px; height: 54px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--shop-border);
}
.oi-img img { width: 100%; height: 100%; object-fit: cover; }
.oi-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oi-name { font-size: 13.5px; font-weight: 600; color: var(--shop-text); }
.oi-name:hover { color: var(--shop-primary); }
.oi-variant { font-size: 11.5px; color: var(--shop-muted); }
.oi-price { font-size: 12px; color: var(--shop-muted); }
.oi-total { font-weight: 700; font-size: 14px; }

.order-totals { border-top: 1px solid var(--shop-border); margin-top: 10px; padding-top: 10px; }
.ot-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13.5px;
    color: var(--shop-text-2);
}
.ot-discount span:last-child { color: #065f46; }
.ot-total { border-top: 1px solid var(--shop-border-2); margin-top: 6px; padding-top: 10px; font-size: 15px; }
.ot-total strong { color: var(--shop-primary); font-size: 18px; }

.os-strong { font-weight: 700; margin: 0 0 2px; font-size: 14px; }
.os-muted { color: var(--shop-muted); font-size: 12.5px; margin: 0 0 6px; }
.os-text { font-size: 13px; color: var(--shop-text-2); margin: 0 0 4px; line-height: 1.5; }
.os-note { font-size: 12.5px; color: var(--shop-muted); margin: 8px 0 0; font-style: italic; }

.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    color: var(--shop-text);
    transition: border-color .15s, transform .1s;
}
.order-row:hover { border-color: var(--shop-primary); transform: translateY(-1px); color: var(--shop-text); }
.or-top { display: flex; align-items: center; gap: 10px; grid-column: 1; }
.or-no { font-size: 14px; font-weight: 700; letter-spacing: -.2px; }
.or-meta { grid-column: 1; display: flex; gap: 6px; font-size: 12px; color: var(--shop-muted); }
.or-total { grid-column: 2; grid-row: 1 / 3; font-size: 16px; font-weight: 800; color: var(--shop-primary); align-self: center; }

.acct-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
@media (min-width: 640px) { .acct-stats { grid-template-columns: repeat(4, 1fr); } }
.acct-stat {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    padding: 14px 12px;
    text-align: center;
}
.as-value { display: block; font-size: 18px; font-weight: 800; color: var(--shop-primary); letter-spacing: -.5px; }
.as-label { display: block; font-size: 11.5px; color: var(--shop-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .5px; }

.acct-section { margin-bottom: 20px; }

.acct-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .acct-links { grid-template-columns: repeat(4, 1fr); } }
.acct-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    color: var(--shop-text);
    transition: border-color .15s, transform .1s;
}
.acct-link:hover { border-color: var(--shop-primary); transform: translateY(-1px); color: var(--shop-text); }
.al-icon { font-size: 24px; }
.al-text strong { display: block; font-size: 13.5px; font-weight: 700; }
.al-text span { display: block; font-size: 11.5px; color: var(--shop-muted); margin-top: 2px; }

.df-status {
    display: inline-block;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    background: #e5e9ef;
    color: var(--shop-text-2);
}
.df-status-pending            { background: #fef3c7; color: #92400e; }
.df-status-confirmed          { background: #dbeafe; color: #1e40af; }
.df-status-processing         { background: #ede9fe; color: #5b21b6; }
.df-status-packed             { background: #cffafe; color: #155e75; }
.df-status-ready_for_delivery { background: #e0f2fe; color: #075985; }
.df-status-out_for_delivery   { background: #ffedd5; color: #9a3412; }
.df-status-delivered          { background: #d1fae5; color: #065f46; }
.df-status-cancelled          { background: #fee2e2; color: #991b1b; }
.df-status-returned           { background: #ffe4e6; color: #9f1239; }
.df-status-refunded           { background: #e5e7eb; color: #374151; }

@media (max-width: 899px) {
    .cart-summary, .checkout-summary { position: static; }
}

/* ═══════════════════════════════════════════════════════════
   Phase 5 — Wholesale CSS (legacy small pages)
   ═══════════════════════════════════════════════════════════ */

.ws-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #0B6E4F 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    margin-bottom: 22px;
    text-align: center;
}
.ws-hero-inner { max-width: 720px; margin: 0 auto; }
.ws-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.14);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    margin-bottom: 14px;
}
.ws-hero h1 { font-size: 24px; margin: 0 0 10px; letter-spacing: -.4px; line-height: 1.25; }
.ws-hero p { margin: 0; font-size: 14px; line-height: 1.6; opacity: .9; }

@media (min-width: 768px) {
    .ws-hero { padding: 48px 32px; }
    .ws-hero h1 { font-size: 32px; }
}

.ws-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
@media (min-width: 768px) { .ws-benefits { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.ws-benefit {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.wb-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.ws-benefit h3 { font-size: 14px; margin: 0 0 6px; font-weight: 700; letter-spacing: -.1px; }
.ws-benefit p { font-size: 12.5px; color: var(--shop-muted); margin: 0; line-height: 1.5; }

.ws-status-card {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin-bottom: 22px;
    text-align: center;
}
.ws-status-approved { border-color: #a7f3d0; background: #f0fdf4; }
.ws-status-pending  { border-color: #fde68a; background: #fffbeb; }
.ws-status-info     { border-color: #bfdbfe; background: #eff6ff; }
.ws-status-rejected { border-color: #fecaca; background: #fef2f2; }

.ws-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 14px;
    background: rgba(11,110,79,.1);
    color: var(--shop-primary);
}
.ws-status-approved .ws-badge { background: #d1fae5; color: #065f46; }
.ws-status-pending  .ws-badge { background: #fef3c7; color: #92400e; }
.ws-status-info     .ws-badge { background: #dbeafe; color: #1e40af; }
.ws-status-rejected .ws-badge { background: #fee2e2; color: #991b1b; }

.ws-status-card h2 { font-size: 20px; margin: 0 0 8px; letter-spacing: -.3px; }
.ws-status-card p  { font-size: 14px; color: var(--shop-text-2); line-height: 1.55; margin: 0 0 16px; max-width: 560px; margin-left: auto; margin-right: auto; }
.ws-meta { color: var(--shop-muted) !important; font-size: 12.5px !important; margin-top: 4px !important; }

.ws-note {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 14px auto;
    max-width: 560px;
    text-align: left;
    font-size: 13px;
    color: var(--shop-text-2);
}

.ws-form-section {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    margin-bottom: 20px;
}
.ws-form-section h2 { font-size: 20px; margin: 0 0 6px; letter-spacing: -.2px; }
.ws-form-lead { color: var(--shop-muted); font-size: 13.5px; margin: 0 0 18px; line-height: 1.55; }

.ws-form { display: flex; flex-direction: column; gap: 14px; }
.ws-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 640px) { .ws-grid { grid-template-columns: 1fr 1fr; } }

.ws-cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ws-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all .15s;
    background: #fff;
}
.ws-chip:hover { border-color: var(--shop-primary); }
.ws-chip input { display: none; }
.ws-chip:has(input:checked) {
    background: var(--shop-primary);
    color: #fff;
    border-color: var(--shop-primary);
}

.ws-details {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    margin-bottom: 20px;
}
.ws-details h2 { font-size: 16px; margin: 0 0 14px; }

.ws-dl { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.ws-dl > div { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; padding-bottom: 8px; border-bottom: 1px solid var(--shop-border-2); }
.ws-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ws-dl dt { color: var(--shop-muted); font-weight: 500; }
.ws-dl dd { margin: 0; font-weight: 600; text-align: right; }

.ws-user-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0B6E4F, #10b981);
    color: #fff;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════
   Phase 6 — Customer Notifications CSS
   ═══════════════════════════════════════════════════════════ */

.notif-list {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.notif-row {
    display: grid;
    grid-template-columns: 44px 1fr 12px;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--shop-border-2);
    align-items: start;
    position: relative;
}
.notif-row:last-child { border-bottom: 0; }
.notif-row.is-unread { background: #f0fdf4; }

.notif-icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--shop-primary-light);
    font-size: 20px;
}
.notif-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notif-title { font-weight: 700; font-size: 14px; color: var(--shop-text); }
.notif-text { font-size: 13px; color: var(--shop-text-2); line-height: 1.5; }
.notif-meta { font-size: 11.5px; color: var(--shop-muted); margin-top: 2px; }
.notif-link { font-size: 12.5px; font-weight: 600; color: var(--shop-primary); margin-top: 4px; }
.notif-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--shop-primary);
    align-self: center;
}

/* ═══════════════════════════════════════════════════════════
   Product Detail Page — Enhanced
   ═══════════════════════════════════════════════════════════ */

.prod-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.prod-title { flex: 1; margin: 0; }

.prod-fav-lg {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--shop-border);
    display: grid;
    place-items: center;
    color: var(--shop-muted);
    transition: color .15s, transform .15s;
    cursor: pointer;
}
.prod-fav-lg:hover { color: var(--shop-danger); transform: scale(1.05); }
.prod-fav-lg.is-active { color: var(--shop-danger); border-color: var(--shop-danger); }
.prod-fav-lg.is-active svg { fill: var(--shop-danger); }

.rating-num { font-weight: 700; color: var(--shop-text); }
.rating-dot { color: var(--shop-muted-2); }
.sold-count { color: var(--shop-muted); font-size: 12.5px; }

.prod-price-block {
    padding: 16px 0;
    border-top: 1px solid var(--shop-border-2);
    border-bottom: 1px solid var(--shop-border-2);
}

.prod-wholesale {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius);
    padding: 12px 14px;
    color: #065f46;
}
.pw-icon { font-size: 22px; }
.pw-text { display: flex; flex-direction: column; gap: 2px; }
.pw-text strong { font-size: 14px; }
.pw-text span { font-size: 12px; opacity: .85; }

.stock-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.sku-text { font-size: 12px; color: var(--shop-muted); }
.sku-text code {
    background: var(--shop-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11.5px;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.qty-unit { font-size: 13px; color: var(--shop-muted); }
.qty-total {
    font-size: 13.5px;
    color: var(--shop-text-2);
    padding-top: 6px;
}
.qty-total strong { color: var(--shop-primary); font-size: 15px; }

.prod-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.prod-actions .btn-primary,
.prod-actions .btn-ghost {
    flex: 1 1 auto;
    min-width: 140px;
}
.prod-add-btn { font-size: 15px; padding: 14px 24px; }

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 13px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14.5px;
    width: 100%;
    text-align: center;
    margin-top: 6px;
}
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }

.prod-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    margin-top: 14px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--shop-primary-light);
    color: var(--shop-primary);
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
}
.trust-text { display: flex; flex-direction: column; gap: 1px; }
.trust-text strong { font-size: 13px; }
.trust-text span { font-size: 11.5px; color: var(--shop-muted); }

.prod-delivery-info {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}
.di-row { display: flex; gap: 12px; align-items: flex-start; }
.di-icon { font-size: 20px; flex-shrink: 0; }
.di-text { display: flex; flex-direction: column; gap: 2px; }
.di-text strong { font-size: 13px; }
.di-text span { font-size: 12px; color: var(--shop-muted); line-height: 1.4; }
.di-text a { color: var(--shop-primary); font-weight: 600; }

.tier-block {
    margin-top: 10px;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}
.tier-block > summary {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    list-style: none;
    background: #f0fdf4;
    color: var(--shop-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tier-block > summary::-webkit-details-marker { display: none; }
.tier-block > summary::after { content: '▾'; transition: transform .2s; }
.tier-block[open] > summary::after { transform: rotate(180deg); }

.tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.tier-table th, .tier-table td {
    padding: 10px 16px;
    text-align: left;
    border-top: 1px solid var(--shop-border-2);
}
.tier-table th {
    color: var(--shop-muted);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: #fafbfc;
}
.tier-save {
    background: #dcfce7;
    color: #065f46;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
}
.is-rtl .tier-table th, .is-rtl .tier-table td { text-align: right; }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.55);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.prod-desc-card, .prod-specs-card {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    padding: 22px 22px;
}
.prod-longdesc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--shop-text-2);
}
.prod-longdesc img { border-radius: var(--radius); margin: 12px 0; max-width: 100%; }
.prod-longdesc p { margin: 0 0 12px; }
.prod-longdesc ul, .prod-longdesc ol { padding-left: 22px; margin: 0 0 12px; }

.specs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
}
@media (min-width: 640px) {
    .specs-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
.spec-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--shop-border-2);
    font-size: 13.5px;
}
.spec-item dt { color: var(--shop-muted); font-weight: 500; }
.spec-item dd { margin: 0; font-weight: 600; text-align: right; }
.is-rtl .spec-item dd { text-align: left; }

.mobile-cart-bar {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(var(--bottomnav-h) + var(--safe-bottom));
    z-index: 45;
    background: #fff;
    border-top: 1px solid var(--shop-border);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -4px 16px rgba(15,23,42,.06);
}
@media (min-width: 768px) {
    .mobile-cart-bar { display: none; }
}
.mcb-price {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.mcb-price strong {
    font-size: 18px;
    color: var(--shop-primary);
    font-weight: 800;
    letter-spacing: -.3px;
}
.mcb-price .muted { font-size: 11px; }
.mcb-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14.5px;
    border-radius: var(--radius);
}

body.product-page { padding-bottom: calc(var(--bottomnav-h) + 72px + var(--safe-bottom)); }
@media (min-width: 768px) { body.product-page { padding-bottom: 24px; } }

.gallery-thumb { width: 72px; height: 72px; }
@media (min-width: 640px) { .gallery-thumb { width: 84px; height: 84px; } }

.variant-chip.is-disabled { opacity: .4; cursor: not-allowed; }
.vc-out {
    font-size: 10px;
    color: var(--shop-danger);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════
   NEW HOMEPAGE — Premium Design System
   ═══════════════════════════════════════════════════════════ */

:root {
    --new-primary:      #0B6E4F;
    --new-primary-2:    #10b981;
    --new-primary-3:    #e8f5f0;
    --new-ink:          #0a1a14;
    --new-ink-2:        #1e293b;
    --new-muted:        #64748b;
    --new-muted-2:      #94a3b8;
    --new-bg:           #f7faf8;
    --new-surface:      #ffffff;
    --new-border:       #e6ece8;
    --new-offer:        #f97316;
    --new-danger:       #ef4444;
    --new-radius:       16px;
    --new-radius-lg:    24px;
    --new-shadow-sm:    0 1px 2px rgba(10,26,20,.04);
    --new-shadow:       0 4px 16px rgba(10,26,20,.06);
    --new-shadow-lg:    0 20px 60px rgba(10,26,20,.10);
}

[data-reveal].reveal-init {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
}
[data-reveal].reveal-in {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   HERO SLIDER — Aspect Ratio driven by Admin Settings
   ═══════════════════════════════════════════════════════════ */
.hero-new {
    position: relative;
    margin: 0 0 24px;
    border-radius: var(--new-radius-lg);
    overflow: hidden;
    box-shadow: var(--new-shadow-lg);
}

.hero-new-slider {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: var(--hero-pt, 56.25%);
    max-height: var(--hero-max-h, 560px);
    overflow: hidden;
    background: var(--new-primary);
}

@media (max-width: 639px) {
    .hero-new-slider {
        padding-top: var(--hero-mob-pt, var(--hero-pt, 56.25%));
        max-height: none;
    }
}

.hero-new-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
    pointer-events: none;
    text-decoration: none;
    color: #fff;
}
.hero-new-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.hero-new-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 8s ease-out;
}
.hero-new-slide.is-active img { transform: scale(1); }

.hero-new-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,26,20,.15) 0%, rgba(10,26,20,.55) 60%, rgba(10,26,20,.8) 100%);
}

.hero-new-caption {
    position: absolute;
    left: 24px; right: 24px;
    bottom: 32px;
    max-width: 640px;
    z-index: 2;
    color: #fff;
}
@media (min-width: 768px) {
    .hero-new-caption { left: 56px; right: auto; bottom: 56px; }
}

.hero-new-title {
    font-size: clamp(24px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.8px;
    margin: 0 0 12px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-new-subtitle {
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.5;
    margin: 0 0 20px;
    color: rgba(255,255,255,.92);
    max-width: 520px;
}
.hero-new-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--new-primary);
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hero-new-slide:hover .hero-new-cta {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

.hero-new-dots {
    position: absolute;
    bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 5;
}
.hero-new-dot {
    width: 24px; height: 4px;
    border-radius: 4px;
    border: 0;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background .25s, width .25s;
}
.hero-new-dot.is-active {
    background: #fff;
    width: 36px;
}

.hero-new-fallback {
    position: relative;
    padding: 68px 24px 72px;
    text-align: center;
    background: radial-gradient(circle at 30% 20%, #0B6E4F 0%, #082a1e 100%);
    color: #fff;
    overflow: hidden;
}
.hero-new-fallback-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(16,185,129,.25) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(11,110,79,.35) 0%, transparent 55%);
    animation: pulseBg 10s ease-in-out infinite alternate;
}
@keyframes pulseBg {
    from { opacity: .7; transform: scale(1); }
    to   { opacity: 1;  transform: scale(1.08); }
}
.hero-new-fallback-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hero-new-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .4px;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}
.hero-new-fallback h1 {
    font-size: clamp(28px, 5.5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 16px;
}
.hero-new-fallback h1 em {
    font-style: italic;
    background: linear-gradient(90deg, #6ee7b7, #34d399, #6ee7b7);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s ease infinite;
}
@keyframes gradientMove {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}
.hero-new-fallback p {
    font-size: 16px;
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto 28px;
    opacity: .9;
}
.hero-new-actions {
    display: flex; gap: 12px; justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary, .btn-hero-ghost, .btn-hero-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
    border: 1.5px solid transparent;
    font-family: inherit;
    line-height: 1.3;
}
.btn-hero-primary {
    background: #fff;
    color: var(--new-primary);
    box-shadow: 0 8px 22px rgba(0,0,0,.14);
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    color: var(--new-primary);
}
.btn-hero-ghost {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.35);
    backdrop-filter: blur(6px);
}
.btn-hero-ghost:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
    transform: translateY(-2px);
}
.btn-hero-wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37,211,102,.35);
}
.btn-hero-wa:hover {
    background: #1ebe5a;
    color: #fff;
    transform: translateY(-2px);
}

.trust-bar {
    background: #fff;
    border: 1px solid var(--new-border);
    border-radius: var(--new-radius);
    padding: 16px 20px;
    margin-bottom: 32px;
    box-shadow: var(--new-shadow-sm);
}
.trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 700px) { .trust-bar-inner { grid-template-columns: repeat(4, 1fr); } }

.trust-bar-item {
    display: flex; align-items: center; gap: 12px;
}
.tb-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    display: grid; place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}
.tb-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-text strong { font-size: 13.5px; font-weight: 700; color: var(--new-ink); }
.tb-text span   { font-size: 11.5px; color: var(--new-muted); }

.section-new { margin: 48px 0; }
.section-new-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 22px;
}
.section-new-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--new-primary);
    margin-bottom: 6px;
}
.eyebrow-offer { color: var(--new-offer); }

.section-new-title {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.15;
    margin: 0;
    color: var(--new-ink);
}
.section-new-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--new-primary);
    white-space: nowrap;
    transition: transform .15s ease;
}
.section-new-link:hover { transform: translateX(3px); color: var(--new-primary); }

.section-new-offer {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: var(--new-radius-lg);
    padding: 32px 20px;
    border: 1px solid #fed7aa;
}

.cat-new-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) { .cat-new-strip { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 900px) { .cat-new-strip { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.cat-new-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--new-border);
    border-radius: var(--new-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--new-ink);
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.cat-new-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(10,26,20,.12);
    border-color: #a7f3d0;
    color: var(--new-ink);
}

.cat-new-media {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    display: grid; place-items: center;
    overflow: hidden;
}
.cat-new-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.cat-new-card:hover .cat-new-media img { transform: scale(1.08); }
.cat-new-emoji {
    font-size: 44px;
    font-weight: 800;
    color: var(--new-primary);
    opacity: .7;
}

.cat-new-body {
    padding: 12px 14px 14px;
    display: flex; flex-direction: column; gap: 3px;
}
.cat-new-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--new-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-new-count {
    font-size: 12px;
    color: var(--new-muted);
}

.prod-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 640px) { .prod-grid-new { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 900px) { .prod-grid-new { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.prod-grid-new .prod-card {
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
    border-radius: var(--new-radius);
}
.prod-grid-new .prod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10,26,20,.10);
}

.why-us {
    margin: 56px 0;
    padding: 0;
}
.why-us-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdfa 100%);
    border: 1px solid #a7f3d0;
    border-radius: var(--new-radius-lg);
    padding: 36px 28px;
    overflow: hidden;
    position: relative;
}
@media (min-width: 900px) {
    .why-us-inner {
        grid-template-columns: 1.1fr .9fr;
        padding: 56px 48px;
        gap: 48px;
    }
}

.why-us-text h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    letter-spacing: -.6px;
    line-height: 1.15;
    margin: 6px 0 14px;
    color: var(--new-ink);
}
.why-us-text p {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 20px;
    max-width: 480px;
}

.why-us-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.why-us-list li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--new-ink-2);
}
.why-us-list strong { color: var(--new-ink); font-weight: 700; }
.wu-check {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--new-primary);
    color: #fff;
    display: grid; place-items: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(11,110,79,.25);
}

.why-us-visual {
    position: relative;
    min-height: 280px;
}
.wu-blob {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,.25) 0%, transparent 70%);
    animation: blobFloat 8s ease-in-out infinite;
}
@keyframes blobFloat {
    0%,100% { transform: translate(-50%,-50%) scale(1); }
    50%     { transform: translate(-50%,-55%) scale(1.08); }
}

.wu-card {
    position: absolute;
    background: #fff;
    border: 1px solid var(--new-border);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex; flex-direction: column; gap: 4px;
    box-shadow: 0 12px 32px rgba(10,26,20,.08);
    min-width: 165px;
    z-index: 2;
    animation: floatCard 6s ease-in-out infinite;
}
.wu-card-1 { top: 6%;  left: 6%;  animation-delay: 0s; }
.wu-card-2 { top: 42%; right: 4%; animation-delay: 1.5s; }
.wu-card-3 { bottom: 6%; left: 16%; animation-delay: 3s; }
@keyframes floatCard {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-8px); }
}
.wu-emoji { font-size: 24px; margin-bottom: 2px; }
.wu-card strong { font-size: 14px; font-weight: 700; color: var(--new-ink); }
.wu-card span   { font-size: 12px; color: var(--new-muted); }

.wholesale-banner {
    margin: 56px 0;
    background: linear-gradient(135deg, #082a1e 0%, #0B6E4F 55%, #10b981 100%);
    border-radius: var(--new-radius-lg);
    padding: 44px 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.wholesale-banner::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 60%);
    animation: blobFloat 12s ease-in-out infinite;
}
.wholesale-banner::after {
    content: '';
    position: absolute;
    bottom: -60%; left: -10%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110,231,183,.15) 0%, transparent 65%);
    animation: blobFloat 14s ease-in-out infinite reverse;
}

.wb-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 900px) {
    .wb-inner {
        grid-template-columns: 1.4fr 1fr;
        padding: 0 20px;
        align-items: center;
    }
}

.wb-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.24);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 16px;
}
.wb-content h2 {
    font-size: clamp(22px, 3.2vw, 34px);
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.2;
    margin: 0 0 14px;
}
.wb-content p {
    font-size: 15px;
    line-height: 1.65;
    max-width: 520px;
    margin: 0 0 24px;
    opacity: .92;
}
.wb-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.wb-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}
@media (min-width: 900px) { .wb-stats { grid-template-columns: 1fr; gap: 18px; text-align: left; } }
.wb-stat {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    padding: 18px 12px;
    backdrop-filter: blur(6px);
}
.wb-stat strong {
    display: block;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    letter-spacing: -.5px;
    background: linear-gradient(90deg, #ffffff, #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.wb-stat span {
    display: block;
    font-size: 11.5px;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-top: 4px;
    font-weight: 600;
}

.contact-cta {
    margin: 48px 0 24px;
    background: #fff;
    border: 1px solid var(--new-border);
    border-radius: var(--new-radius-lg);
    padding: 32px 24px;
    box-shadow: var(--new-shadow-sm);
}
.cc-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}
@media (min-width: 700px) {
    .cc-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
    }
}
.cc-text h2 {
    font-size: clamp(19px, 2.4vw, 24px);
    font-weight: 800;
    letter-spacing: -.4px;
    margin: 0 0 6px;
    color: var(--new-ink);
}
.cc-text p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--new-muted);
    margin: 0;
    max-width: 520px;
}
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

body.shop-body h1,
body.shop-body h2,
body.shop-body h3 {
    color: var(--new-ink);
}

body.shop-body {
    background:
        radial-gradient(circle at 0% 0%, rgba(16,185,129,.03) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(11,110,79,.03) 0%, transparent 40%),
        var(--new-bg);
    background-attachment: fixed;
}

.hero-new-slide img,
.cat-new-media img {
    background: linear-gradient(90deg, #f0fdf4 0%, #e6f9ef 50%, #f0fdf4 100%);
    background-size: 200% 100%;
    animation: imgShimmer 1.8s linear infinite;
}
@keyframes imgShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    [data-reveal].reveal-init { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
    .section-new { margin: 36px 0; }
    .section-new-head { margin-bottom: 18px; }
    .hero-new-caption { bottom: 24px; left: 18px; right: 18px; }
    .hero-new-cta { padding: 11px 20px; font-size: 13px; }
    .wholesale-banner { padding: 32px 20px; }
    .why-us-inner { padding: 26px 20px; }
}

/* ═══════════════════════════════════════════════════════════
   HEADER v2 — Premium Animated Design
   ═══════════════════════════════════════════════════════════ */

.app-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(135deg, #0B6E4F 0%, #0a5c42 45%, #0d7a56 100%);
    color: #fff;
    padding-top: var(--safe-top, 0px);
    transition:
        padding .35s cubic-bezier(.16,1,.3,1),
        box-shadow .35s ease,
        background .35s ease;
    overflow: hidden;
    isolation: isolate;
}
.app-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,.35) 20%,
        rgba(255,255,255,.65) 50%,
        rgba(255,255,255,.35) 80%,
        transparent 100%);
    opacity: .6;
}

.header-aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.header-aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    animation: auroraFloat 18s ease-in-out infinite;
}
.header-aurora span:nth-child(1) {
    width: 320px; height: 320px;
    background: #10b981;
    top: -160px; left: 5%;
    animation-delay: 0s;
}
.header-aurora span:nth-child(2) {
    width: 280px; height: 280px;
    background: #34d399;
    bottom: -180px; right: 15%;
    animation-delay: -6s;
}
.header-aurora span:nth-child(3) {
    width: 240px; height: 240px;
    background: #6ee7b7;
    top: -120px; right: 35%;
    animation-delay: -12s;
    opacity: .4;
}
@keyframes auroraFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33%     { transform: translate(40px,-20px) scale(1.15); }
    66%     { transform: translate(-30px,20px) scale(.95); }
}

.app-header[data-scrolled="true"] {
    box-shadow: 0 8px 30px rgba(10,26,20,.25);
}
.app-header[data-scrolled="true"] .app-header-top {
    padding-top: 6px;
    padding-bottom: 6px;
}
.app-header[data-scrolled="true"] .header-location {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    transition: max-height .35s ease, opacity .25s ease, padding .3s ease;
}

.app-header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 14px 22px 8px;
    transition: padding .35s ease;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.brand:hover { color: #fff; transform: translateY(-1px); }

.brand-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    flex-shrink: 0;
}
.brand-logo-inner {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%; height: 100%;
    border-radius: 13px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -.5px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.2),
        0 6px 18px rgba(0,0,0,.2);
    transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.brand:hover .brand-logo-inner {
    transform: rotate(-6deg) scale(1.05);
}
.brand-logo-ring {
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    background: conic-gradient(from 0deg,
        transparent 0deg,
        rgba(255,255,255,.7) 60deg,
        transparent 120deg,
        transparent 360deg);
    z-index: 1;
    animation: logoRingSpin 4s linear infinite;
    opacity: 0;
    transition: opacity .3s ease;
}
.brand:hover .brand-logo-ring { opacity: 1; }
@keyframes logoRingSpin {
    to { transform: rotate(360deg); }
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    font-weight: 700;
}
.brand-text strong {
    font-size: 18px;
    letter-spacing: -.5px;
    color: #fff;
}
.brand-text em {
    font-style: italic;
    font-weight: 600;
    font-size: 15px;
    background: linear-gradient(90deg, #6ee7b7, #34d399, #a7f3d0, #6ee7b7);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brandGradient 5s linear infinite;
}
@keyframes brandGradient {
    to { background-position: 300% center; }
}

.app-header-search {
    display: flex;
    justify-content: center;
    max-width: 640px;
    width: 100%;
    justify-self: center;
}
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    background: rgba(255,255,255,.14);
    border: 1.5px solid rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 0 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.search-form:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.28);
}
.search-form:focus-within {
    background: #fff;
    border-color: #fff;
    color: #0a1a14;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0,0,0,.18), 0 0 0 4px rgba(16,185,129,.15);
}
.search-icon {
    display: grid; place-items: center;
    color: rgba(255,255,255,.75);
    transition: color .2s ease, transform .25s ease;
    flex-shrink: 0;
}
.search-form:focus-within .search-icon {
    color: #0B6E4F;
    transform: scale(1.1);
}
.search-form input {
    flex: 1;
    height: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 14.5px;
    padding: 0 12px;
    outline: none;
    font-family: inherit;
    min-width: 0;
    transition: color .2s ease;
}
.search-form:focus-within input { color: #0a1a14; }
.search-form input::placeholder {
    color: rgba(255,255,255,.7);
    transition: color .2s ease;
}
.search-form:focus-within input::placeholder { color: #94a3b8; }

.search-clear {
    background: rgba(255,255,255,.15);
    border: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    width: 26px; height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.search-clear:hover { background: rgba(255,255,255,.25); }
.search-form:focus-within .search-clear {
    background: #f1f5f9;
    color: #64748b;
}
.search-form:focus-within .search-clear:hover {
    background: #fee2e2;
    color: #ef4444;
}

.search-kbd {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.75);
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.search-form:focus-within .search-kbd {
    opacity: 0;
    pointer-events: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
}

.icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    transition: background .2s ease, transform .2s cubic-bezier(.16,1,.3,1), border-color .2s ease;
    flex-shrink: 0;
}
.icon-btn:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.22);
}
.icon-btn:active { transform: translateY(0) scale(.96); }

.icon-btn-wa {
    background: rgba(37,211,102,.18);
    border-color: rgba(37,211,102,.35);
    color: #fff;
}
.icon-btn-wa:hover {
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 8px 22px rgba(37,211,102,.4);
}

.icon-btn-wish:hover svg { animation: heartBeat .6s ease; }
@keyframes heartBeat {
    0%,100% { transform: scale(1); }
    25%     { transform: scale(1.2); }
    50%     { transform: scale(.95); }
    75%     { transform: scale(1.1); }
}

.icon-btn-cart:hover svg {
    animation: cartBump .55s cubic-bezier(.16,1,.3,1);
}
@keyframes cartBump {
    0%,100% { transform: translateX(0); }
    25%     { transform: translateX(-3px) rotate(-6deg); }
    75%     { transform: translateX(3px) rotate(6deg); }
}

.icon-btn .badge {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    display: grid;
    place-items: center;
    line-height: 1;
    border: 2px solid #0B6E4F;
    box-shadow: 0 2px 8px rgba(239,68,68,.4);
    animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
    0%,100% { transform: scale(1); }
    50%     { transform: scale(1.08); }
}
.icon-btn .badge.badge-wish {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    box-shadow: 0 2px 8px rgba(244,63,94,.4);
}
.icon-btn .badge.is-bumped {
    animation: badgeBump .5s cubic-bezier(.16,1,.3,1);
}
@keyframes badgeBump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4) rotate(-8deg); }
    70%  { transform: scale(.9) rotate(4deg); }
    100% { transform: scale(1) rotate(0); }
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    height: 42px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.account-chip:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
    transform: translateY(-2px);
}
.account-avatar {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    flex-shrink: 0;
}
.account-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-drop { position: relative; }
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
    cursor: pointer;
    font-family: inherit;
}
.lang-btn:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.25);
    transform: translateY(-2px);
}
.lang-globe {
    font-size: 15px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}
.lang-code { letter-spacing: .5px; }
.lang-caret {
    transition: transform .25s ease;
    opacity: .8;
}
.lang-drop.is-open .lang-caret { transform: rotate(180deg); }
.lang-drop.is-open .lang-btn {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.35);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #fff;
    color: #0a1a14;
    border-radius: 14px;
    padding: 6px;
    box-shadow:
        0 20px 50px rgba(0,0,0,.22),
        0 0 0 1px rgba(10,26,20,.04);
    z-index: 70;
    opacity: 0;
    transform: translateY(-8px) scale(.96);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .2s ease, transform .25s cubic-bezier(.16,1,.3,1);
}
.lang-drop.is-open .lang-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.lang-item {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #0a1a14;
    font-size: 13.5px;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
}
.lang-item:hover {
    background: #f0fdf4;
    color: #0B6E4F;
}
.lang-item.is-active {
    background: #ecfdf5;
    color: #0B6E4F;
}
.lang-flag { font-size: 17px; text-align: center; }
.lang-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-check {
    color: #0B6E4F;
    font-weight: 800;
    font-size: 13px;
}

.header-location {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 4px 22px 12px;
    color: rgba(255,255,255,.82);
    font-size: 12.5px;
    max-height: 48px;
    overflow: hidden;
    transition: max-height .35s ease, opacity .25s ease, padding .3s ease;
}
.loc-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.loc-icon {
    display: grid;
    place-items: center;
    width: 20px; height: 20px;
    border-radius: 6px;
    background: rgba(255,255,255,.12);
    color: #a7f3d0;
    flex-shrink: 0;
}
.loc-text {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}
.loc-label {
    color: rgba(255,255,255,.68);
    font-size: 12px;
}
.loc-text strong {
    color: #fff;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.loc-right {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.loc-phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a7f3d0;
    font-weight: 600;
    transition: color .15s ease;
}
.loc-phone:hover { color: #fff; }
.loc-hours {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,.15);
}

@media (max-width: 1023px) {
    .app-header-top {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 12px 16px 4px;
    }
    .brand { grid-row: 1; grid-column: 1; }
    .header-right { grid-row: 1; grid-column: 2; }
    .app-header-search {
        grid-row: 2;
        grid-column: 1 / -1;
        max-width: none;
    }
    .search-kbd { display: none; }
    .loc-hours { display: none; }
    .header-location {
        padding: 2px 16px 12px;
    }
}

@media (max-width: 640px) {
    .app-header-top { padding: 10px 14px 4px; gap: 10px; }
    .brand-logo { width: 38px; height: 38px; }
    .brand-logo-inner { font-size: 14px; border-radius: 12px; }
    .brand-text strong { font-size: 16px; }
    .brand-text em { font-size: 13px; }
    .icon-btn { width: 38px; height: 38px; border-radius: 10px; }
    .icon-btn svg { width: 19px; height: 19px; }
    .lang-btn { height: 38px; padding: 0 10px; }
    .lang-code { display: none; }
    .account-name { display: none; }
    .account-chip { padding: 2px; width: 38px; height: 38px; justify-content: center; border-radius: 50%; }
    .account-avatar { width: 32px; height: 32px; font-size: 13px; }
    .header-right { gap: 4px; }
    .header-location { padding: 2px 14px 10px; font-size: 11.5px; }
    .loc-label { display: none; }
    .loc-text strong { font-size: 12px; }
}

@media (max-width: 480px) {
    .icon-btn-wa { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .header-aurora span,
    .brand-logo-ring,
    .brand-text em,
    .icon-btn .badge,
    .icon-btn-cart:hover svg,
    .icon-btn-wish:hover svg { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   Wishlist Page
   ═══════════════════════════════════════════════════════════ */

.wishlist-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.wishlist-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: var(--shop-danger, #ef4444);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s, border-color .15s;
}
.wishlist-clear-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 640px) { .wishlist-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px) { .wishlist-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.wish-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--shop-border, #e5e9ef);
    border-radius: var(--radius, 12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, border-color .25s ease;
}
.wish-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10,26,20,.10);
    border-color: #a7f3d0;
}
.wish-card.is-out { opacity: .7; }

.wish-media {
    display: block;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    overflow: hidden;
    position: relative;
}
.wish-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.wish-card:hover .wish-media img { transform: scale(1.06); }

.wish-media .prod-placeholder {
    display: grid;
    place-items: center;
    width: 100%; height: 100%;
    color: var(--shop-primary, #0B6E4F);
    font-size: 44px;
    font-weight: 800;
    opacity: .55;
}

.wish-flag {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--shop-danger, #ef4444);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .3px;
}

.wish-oos {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.55);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wish-remove {
    position: absolute;
    top: 8px; right: 8px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    border: 0;
    color: var(--shop-muted, #64748b);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: color .15s, transform .15s, background .15s;
}
.wish-remove:hover {
    color: var(--shop-danger, #ef4444);
    background: #fff;
    transform: scale(1.1) rotate(90deg);
}

.wish-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.wish-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--shop-text, #0f172a);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}
.wish-name:hover { color: var(--shop-primary, #0B6E4F); }

.wish-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--shop-muted, #64748b);
}
.wish-unit {
    background: var(--shop-bg, #f7faf8);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.wish-rating { color: #f59e0b; font-weight: 700; }

.wish-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}
.wish-price strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--shop-primary, #0B6E4F);
    letter-spacing: -.3px;
}
.wish-price s {
    font-size: 12px;
    color: var(--shop-muted-2, #94a3b8);
}

.wish-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
}

.wish-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, color .15s, transform .1s;
    white-space: nowrap;
}
.wish-btn:active { transform: scale(.97); }

.wish-btn-primary {
    background: var(--shop-primary, #0B6E4F);
    color: #fff;
}
.wish-btn-primary:hover { background: var(--shop-primary-dark, #0a5c42); color: #fff; }

.wish-btn-disabled {
    background: #e5e9ef;
    color: var(--shop-muted, #64748b);
    cursor: not-allowed;
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   Authentication Pages
   ═══════════════════════════════════════════════════════════ */

.auth-wrap {
    display: grid;
    place-items: center;
    padding: 32px 16px 48px;
    min-height: 60vh;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--shop-border, #e5e9ef);
    border-radius: 20px;
    padding: 36px 32px 30px;
    box-shadow: 0 20px 60px rgba(10,26,20,.08), 0 2px 8px rgba(10,26,20,.04);
}

.auth-head {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo {
    display: inline-grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0B6E4F, #10b981);
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.5px;
    box-shadow: 0 8px 24px rgba(11,110,79,.3);
    margin-bottom: 16px;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.4px;
    margin: 0 0 6px;
    color: var(--shop-text, #0f172a);
}

.auth-sub {
    font-size: 13.5px;
    color: var(--shop-muted, #64748b);
    margin: 0;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--shop-text-2, #334155);
}

.auth-req { color: #ef4444; }

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--shop-border, #e5e9ef);
    border-radius: 11px;
    font-size: 14.5px;
    font-family: inherit;
    background: #fff;
    color: var(--shop-text, #0f172a);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.auth-field input:focus {
    border-color: var(--shop-primary, #0B6E4F);
    box-shadow: 0 0 0 4px rgba(11,110,79,.12);
}

.auth-help {
    font-size: 11.5px;
    color: var(--shop-muted-2, #94a3b8);
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--shop-text-2, #334155);
    cursor: pointer;
}

.auth-check input {
    width: 16px; height: 16px;
    accent-color: var(--shop-primary, #0B6E4F);
}

.auth-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    margin-top: 4px;
}

.auth-alert {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.auth-alert-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.auth-alert-success { background: #f0fdf4; color: #065f46; border-color: #a7f3d0; }
.auth-alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.auth-alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

.auth-switch {
    text-align: center;
    margin: 22px 0 0;
    font-size: 13.5px;
    color: var(--shop-muted, #64748b);
}
.auth-link {
    font-weight: 700;
    color: var(--shop-primary, #0B6E4F);
}
.auth-link:hover { color: var(--shop-primary-dark, #0a5c42); }

.auth-hint {
    text-align: center;
    margin: 10px 0 0;
    font-size: 12.5px;
}
.auth-link-muted {
    color: var(--shop-muted-2, #94a3b8);
    text-decoration: underline;
}
.auth-link-muted:hover { color: var(--shop-primary, #0B6E4F); }

@media (max-width: 480px) {
    .auth-card { padding: 28px 22px 24px; border-radius: 16px; }
    .auth-title { font-size: 21px; }
}

/* ═══════════════════════════════════════════════════════════
   Header Brand Logo (Dynamic from settings)
   ═══════════════════════════════════════════════════════════ */

.brand-logo-img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.18));
    transition: transform .3s cubic-bezier(.16,1,.3,1);
    background: transparent;
}

.brand:hover .brand-logo-img {
    transform: scale(1.04);
}

.brand-fallback {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-header[data-scrolled="true"] .brand-logo-img {
    height: 40px;
    transition: height .35s ease;
}

@media (max-width: 768px) {
    .brand-logo-img {
        height: 40px;
        max-width: 180px;
    }
    .app-header[data-scrolled="true"] .brand-logo-img {
        height: 34px;
    }
}

@media (max-width: 480px) {
    .brand-logo-img {
        height: 36px;
        max-width: 150px;
    }
    .app-header[data-scrolled="true"] .brand-logo-img {
        height: 30px;
    }
}

.brand-logo,
.brand-fallback .brand-logo {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   Compact Category Auto-Slider
   ═══════════════════════════════════════════════════════════ */

.section-cat-compact {
    margin-top: 32px;
    margin-bottom: 32px;
}

.section-head-compact {
    margin-bottom: 12px;
}

.cat-compact-wrap {
    position: relative;
    padding: 0 4px;
}

.cat-compact-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 6px 4px 10px;
    -webkit-overflow-scrolling: touch;
}
.cat-compact-scroll::-webkit-scrollbar { display: none; }

.cat-compact-track {
    display: flex;
    gap: 10px;
    width: max-content;
    padding-right: 8px;
}

.cat-mini-card {
    flex: 0 0 auto;
    width: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--shop-text, #0f172a);
    transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.cat-mini-card:hover {
    transform: translateY(-3px);
    color: var(--shop-primary, #0B6E4F);
}

.cat-mini-media {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    display: grid;
    place-items: center;
    border: 2px solid #e6ece8;
    box-shadow: 0 2px 8px rgba(10,26,20,.06);
    transition: border-color .25s, box-shadow .25s, transform .3s;
}
.cat-mini-card:hover .cat-mini-media {
    border-color: var(--shop-primary, #0B6E4F);
    box-shadow: 0 8px 20px rgba(11,110,79,.18);
    transform: scale(1.04);
}
.cat-mini-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.cat-mini-card:hover .cat-mini-media img {
    transform: scale(1.12);
}

.cat-mini-emoji {
    font-size: 26px;
    font-weight: 800;
    color: var(--shop-primary, #0B6E4F);
    opacity: .7;
}

.cat-mini-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(239,68,68,.35);
}

.cat-mini-name {
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
}

.cat-nav-btn {
    position: absolute;
    top: calc(50% - 16px);
    transform: translateY(-50%);
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--shop-border, #e5e9ef);
    color: var(--shop-primary, #0B6E4F);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(10,26,20,.10);
    transition: background .2s, transform .2s, box-shadow .2s;
    padding: 0;
}
.cat-nav-btn:hover {
    background: var(--shop-primary, #0B6E4F);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(11,110,79,.30);
}
.cat-nav-btn:active {
    transform: translateY(-50%) scale(.96);
}

.cat-nav-prev { left: -8px; }
.cat-nav-next { right: -8px; }

@media (max-width: 480px) {
    .cat-nav-btn { display: none; }
    .cat-mini-card { width: 80px; }
    .cat-mini-media { width: 62px; height: 62px; }
    .cat-mini-emoji { font-size: 22px; }
    .cat-mini-name { font-size: 10.5px; max-width: 80px; }
    .cat-mini-badge { min-width: 18px; height: 18px; font-size: 9px; }
}

.cat-compact-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}
.cat-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #cbd5e1;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.cat-dot.is-active {
    width: 20px;
    background: var(--shop-primary, #0B6E4F);
}
.cat-dot:hover {
    background: var(--shop-primary, #0B6E4F);
    opacity: .7;
}

/* ═══════════════════════════════════════════════════════════
   Curved Category Auto-Slider
   ═══════════════════════════════════════════════════════════ */

.section-cat-curved {
    margin-top: 36px;
    margin-bottom: 36px;
    position: relative;
}

.cat-curved-wrap {
    position: relative;
    padding: 0 4px;
}

.cat-curved-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 8px 4px 12px;
    -webkit-overflow-scrolling: touch;
}
.cat-curved-scroll::-webkit-scrollbar { display: none; }

.cat-curved-track {
    display: flex;
    gap: 14px;
    width: max-content;
    padding-right: 8px;
}

.cat-curved-card {
    flex: 0 0 auto;
    width: 140px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--shop-border, #e5e9ef);
    text-decoration: none;
    color: var(--shop-text, #0f172a);
    display: flex;
    flex-direction: column;
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
    box-shadow: 0 2px 8px rgba(10,26,20,.05);
    position: relative;
    isolation: isolate;
}

.cat-curved-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(10,26,20,.14);
    border-color: var(--shop-primary, #0B6E4F);
    color: var(--shop-text, #0f172a);
}

.cat-curved-media {
    position: relative;
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    overflow: hidden;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.cat-curved-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.16,1,.3,1);
    display: block;
}
.cat-curved-card:hover .cat-curved-media img {
    transform: scale(1.1);
}

.cat-curved-emoji {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 42px;
    font-weight: 800;
    color: var(--shop-primary, #0B6E4F);
    opacity: .65;
}

.cat-curved-overlay {
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(180deg, transparent 0%, rgba(10,26,20,.10) 100%);
    pointer-events: none;
}

.cat-curved-count {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(239,68,68,.35);
    z-index: 2;
}

.cat-curved-body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: center;
}

.cat-curved-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--shop-text, #0f172a);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-curved-hint {
    font-size: 11px;
    font-weight: 600;
    color: var(--shop-primary, #0B6E4F);
    opacity: .85;
    transition: opacity .2s;
}
.cat-curved-card:hover .cat-curved-hint { opacity: 1; }

.cat-curved-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0B6E4F 0%, #10b981 50%, #6ee7b7 100%);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 3;
}
.cat-curved-card:hover::before { opacity: 1; }

.cat-curved-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--shop-border, #e5e9ef);
    color: var(--shop-primary, #0B6E4F);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(10,26,20,.12);
    transition: background .2s, transform .2s, box-shadow .2s;
    padding: 0;
}
.cat-curved-nav:hover {
    background: var(--shop-primary, #0B6E4F);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 22px rgba(11,110,79,.35);
}
.cat-curved-nav:active {
    transform: translateY(-50%) scale(.96);
}

.cat-curved-prev { left: -10px; }
.cat-curved-next { right: -10px; }

.cat-curved-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.cat-curved-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}
.cat-curved-dot.is-active {
    width: 26px;
    background: linear-gradient(90deg, #0B6E4F, #10b981);
}
.cat-curved-dot:hover {
    background: var(--shop-primary, #0B6E4F);
    opacity: .7;
}

@media (min-width: 640px) {
    .cat-curved-card { width: 160px; }
    .cat-curved-media { height: 125px; }
    .cat-curved-name { font-size: 14px; }
    .cat-curved-emoji { font-size: 48px; }
}

@media (min-width: 900px) {
    .cat-curved-card { width: 176px; }
    .cat-curved-media { height: 135px; }
}

@media (max-width: 520px) {
    .cat-curved-nav { display: none; }
    .cat-curved-card { width: 130px; }
    .cat-curved-media { height: 105px; }
    .cat-curved-name { font-size: 12.5px; }
    .cat-curved-hint { font-size: 10.5px; }
    .cat-curved-emoji { font-size: 38px; }
    .cat-curved-count { min-width: 22px; height: 22px; font-size: 10px; }
    .cat-curved-track { gap: 12px; }
}

@media (prefers-color-scheme: dark) {
    .cat-curved-card {
        background: #16293D;
        border-color: #24394E;
        color: #E6EDF5;
    }
    .cat-curved-name { color: #E6EDF5; }
    .cat-curved-media {
        background: linear-gradient(135deg, #1e3a52, #16293d);
    }
    .cat-curved-nav {
        background: #1e3a52;
        border-color: #2c4864;
        color: #a7f3d0;
    }
    .cat-curved-dot { background: #334155; }
}

@media (prefers-reduced-motion: reduce) {
    .cat-curved-card,
    .cat-curved-media img,
    .cat-curved-nav { transition: none !important; }
    .cat-curved-scroll { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════
   Top Deals — Live Countdown Section
   ═══════════════════════════════════════════════════════════ */

.section-top-deals {
    margin-top: 36px;
    margin-bottom: 36px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
    border-radius: 22px;
    padding: 24px 0 22px;
    border: 1px solid #fdba74;
    position: relative;
    overflow: hidden;
}

.section-top-deals::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,.15) 0%, transparent 70%);
    pointer-events: none;
}

.section-top-deals::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239,68,68,.10) 0%, transparent 70%);
    pointer-events: none;
}

.eyebrow-deal {
    color: #ea580c !important;
    font-weight: 800;
    letter-spacing: 1.2px;
    animation: dealPulse 1.6s ease-in-out infinite;
}
@keyframes dealPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .75; transform: scale(1.04); }
}

.section-sub-hint {
    font-size: 13px;
    color: #92400e;
    margin: 4px 0 0;
    font-weight: 500;
}

.section-top-deals .section-new-head {
    padding: 0 20px;
    margin-bottom: 16px;
}

.top-deals-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 8px 16px 6px;
    -webkit-overflow-scrolling: touch;
}
.top-deals-scroll::-webkit-scrollbar { display: none; }

.top-deals-track {
    display: flex;
    gap: 14px;
    width: max-content;
}

.deal-card {
    flex: 0 0 auto;
    width: 210px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #fde68a;
    box-shadow: 0 4px 16px rgba(249,115,22,.10);
    text-decoration: none;
    color: var(--shop-text, #0f172a);
    display: flex;
    flex-direction: column;
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
    position: relative;
    isolation: isolate;
}

.deal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(249,115,22,.22);
    border-color: #f97316;
    color: var(--shop-text, #0f172a);
}

.deal-card.deal-urgent {
    animation: urgentGlow 1.5s ease-in-out infinite;
}
@keyframes urgentGlow {
    0%, 100% { box-shadow: 0 4px 16px rgba(239,68,68,.15); }
    50%      { box-shadow: 0 12px 32px rgba(239,68,68,.35); }
}

.deal-card.deal-expired {
    opacity: .55;
    filter: grayscale(.5);
    pointer-events: none;
}

.deal-media {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    overflow: hidden;
}
.deal-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.deal-card:hover .deal-media img {
    transform: scale(1.08);
}

.deal-placeholder {
    display: grid;
    place-items: center;
    width: 100%; height: 100%;
    font-size: 44px;
    font-weight: 800;
    color: #ea580c;
    opacity: .55;
}

.deal-flag {
    position: absolute;
    top: 8px; left: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .3px;
    box-shadow: 0 3px 10px rgba(239,68,68,.35);
}

.deal-hot-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    box-shadow: 0 3px 10px rgba(249,115,22,.35);
    animation: hotPulse 1.8s ease-in-out infinite;
}
@keyframes hotPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

.deal-body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.deal-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--shop-text, #0f172a);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.deal-unit {
    font-size: 10.5px;
    color: var(--shop-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.deal-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}
.deal-price strong {
    font-size: 17px;
    font-weight: 800;
    color: #ea580c;
    letter-spacing: -.3px;
}
.deal-price s {
    font-size: 12px;
    color: var(--shop-muted-2, #94a3b8);
}

.deal-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #7f1d1d, #dc2626);
    border-radius: 10px;
    padding: 8px 10px;
    margin-top: 4px;
    color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.15);
}

.dt-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
}
.dt-seg strong {
    font-size: 16px;
    font-weight: 800;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: .5px;
    color: #fff;
    line-height: 1;
}
.dt-seg em {
    font-style: normal;
    font-size: 8.5px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255,255,255,.75);
    margin-top: 2px;
    font-weight: 700;
}

.dt-sep {
    font-size: 14px;
    font-weight: 800;
    opacity: .6;
    line-height: 1;
}

.dt-expired {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
}

.deal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    margin-top: 4px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 12px rgba(249,115,22,.30);
}
.deal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249,115,22,.45);
}
.deal-btn:active {
    transform: translateY(0);
}

@media (max-width: 520px) {
    .deal-card { width: 180px; }
    .deal-name { font-size: 12.5px; }
    .deal-price strong { font-size: 15px; }
    .dt-seg strong { font-size: 14px; }
    .dt-seg em { font-size: 8px; }
    .deal-btn { font-size: 11.5px; padding: 8px 10px; }
    .section-top-deals { padding: 18px 0 16px; }
}

/* Admin Product form — deal picker styles */
.df-card-deal {
    border: 1px solid #fdba74;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 30%);
}
.df-card-deal .df-card-head {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-bottom: 1px solid #fdba74;
}
.df-card-deal .df-card-head h2 { color: #9a3412; }
.df-badge-offer {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .3px;
}

.deal-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
    padding: 10px 12px;
    background: #fef9f3;
    border-radius: 10px;
    border: 1px dashed #fdba74;
}
.deal-quick-label {
    font-size: 11.5px;
    color: #92400e;
    font-weight: 700;
    margin-right: 4px;
}
.deal-quick-btn {
    background: #fff;
    border: 1px solid #fdba74;
    color: #ea580c;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s, transform .1s;
}
.deal-quick-btn:hover {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
}
.deal-quick-btn:active { transform: scale(.96); }
.deal-quick-clear {
    color: #64748b;
    border-color: #cbd5e1;
}
.deal-quick-clear:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.deal-preview {
    margin-top: 14px;
    padding: 14px 16px;
    background: #0d1b2a;
    border-radius: 12px;
    text-align: center;
}
.deal-preview-label {
    font-size: 11px;
    color: #7d93a8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 700;
}
.deal-preview-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: #fff;
}
.deal-preview-timer .dpt-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}
.deal-preview-timer .dpt-seg strong {
    font-size: 22px;
    font-weight: 800;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: #f97316;
    line-height: 1;
}
.deal-preview-timer .dpt-seg em {
    font-style: normal;
    font-size: 9.5px;
    color: #7d93a8;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-top: 4px;
    font-weight: 700;
}
.deal-preview-timer .dpt-expired {
    color: #ef4444;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.df-deal-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.df-deal-badge-active {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    color: #9a3412;
    border: 1px solid #fdba74;
}
.df-deal-badge-upcoming {
    background: #dbeafe;
    color: #1e40af;
}
.df-deal-badge-expired {
    background: #f1f5f9;
    color: #64748b;
}
.df-deal-badge-none {
    color: var(--df-muted-2, #94a3b8);
}

/* ═══════════════════════════════════════════════════════════
   Countdown Section
   ═══════════════════════════════════════════════════════════ */

.section-countdown {
    margin-top: 36px;
    margin-bottom: 36px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #c7d2fe 100%);
    border-radius: 22px;
    padding: 24px 0 22px;
    border: 1px solid #a5b4fc;
    position: relative;
    overflow: hidden;
}

.section-countdown::before {
    content: '';
    position: absolute;
    top: -70px; right: -70px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 70%);
    pointer-events: none;
}

.section-countdown::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -50px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,.15) 0%, transparent 70%);
    pointer-events: none;
}

.eyebrow-countdown {
    color: #4f46e5 !important;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.section-countdown .section-new-head {
    padding: 0 20px;
    margin-bottom: 16px;
}

.countdown-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 8px 16px 6px;
    -webkit-overflow-scrolling: touch;
}
.countdown-scroll::-webkit-scrollbar { display: none; }

.countdown-track {
    display: flex;
    gap: 14px;
    width: max-content;
}

.countdown-card {
    flex: 0 0 auto;
    width: 210px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #c7d2fe;
    box-shadow: 0 4px 16px rgba(99,102,241,.10);
    text-decoration: none;
    color: var(--shop-text, #0f172a);
    display: flex;
    flex-direction: column;
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
    position: relative;
    isolation: isolate;
}

.countdown-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99,102,241,.22);
    border-color: #6366f1;
    color: var(--shop-text, #0f172a);
}

.countdown-card.deal-urgent {
    animation: cdUrgentGlow 1.5s ease-in-out infinite;
}
@keyframes cdUrgentGlow {
    0%, 100% { box-shadow: 0 4px 16px rgba(239,68,68,.15); }
    50%      { box-shadow: 0 12px 32px rgba(239,68,68,.35); }
}

.countdown-card.deal-expired {
    opacity: .55;
    filter: grayscale(.5);
    pointer-events: none;
}

.countdown-media {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    overflow: hidden;
}
.countdown-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.countdown-card:hover .countdown-media img {
    transform: scale(1.08);
}

.countdown-placeholder {
    display: grid;
    place-items: center;
    width: 100%; height: 100%;
    font-size: 44px;
    font-weight: 800;
    color: #4f46e5;
    opacity: .55;
}

.countdown-flag {
    position: absolute;
    top: 8px; left: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .3px;
    box-shadow: 0 3px 10px rgba(99,102,241,.35);
}

.countdown-live-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    box-shadow: 0 3px 10px rgba(139,92,246,.35);
    animation: cdPulse 1.8s ease-in-out infinite;
}
@keyframes cdPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

.countdown-body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.countdown-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--shop-text, #0f172a);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.countdown-unit {
    font-size: 10.5px;
    color: var(--shop-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.countdown-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}
.countdown-price strong {
    font-size: 17px;
    font-weight: 800;
    color: #4f46e5;
    letter-spacing: -.3px;
}
.countdown-price s {
    font-size: 12px;
    color: var(--shop-muted-2, #94a3b8);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #1e1b4b, #4338ca);
    border-radius: 10px;
    padding: 8px 10px;
    margin-top: 4px;
    color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.15);
}

.cd-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
}
.cd-seg strong {
    font-size: 16px;
    font-weight: 800;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: .5px;
    color: #fff;
    line-height: 1;
}
.cd-seg em {
    font-style: normal;
    font-size: 8.5px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255,255,255,.75);
    margin-top: 2px;
    font-weight: 700;
}
.cd-sep {
    font-size: 14px;
    font-weight: 800;
    opacity: .6;
    line-height: 1;
}

.dt-expired {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fca5a5;
}

.countdown-static {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 10px;
    padding: 9px 10px;
    margin-top: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}
.cd-static-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
    animation: cdPulse 1.4s ease-in-out infinite;
}

.countdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    margin-top: 4px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 12px rgba(99,102,241,.30);
}
.countdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99,102,241,.45);
}
.countdown-btn:active { transform: translateY(0); }

@media (max-width: 520px) {
    .countdown-card { width: 180px; }
    .countdown-name { font-size: 12.5px; }
    .countdown-price strong { font-size: 15px; }
    .cd-seg strong { font-size: 14px; }
    .cd-seg em { font-size: 8px; }
    .countdown-btn { font-size: 11.5px; padding: 8px 10px; }
    .section-countdown { padding: 18px 0 16px; }
}

/* ═══════════════ Admin: Deal Price Field ═══════════════ */

.df-field-deal-price {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px dashed #f59e0b;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.df-deal-price-hint {
    font-weight: 500;
    color: #92400e;
    font-size: 11.5px;
}

.df-input-deal {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ea580c !important;
    letter-spacing: -.3px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.df-input-deal:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 4px rgba(245,158,11,.15) !important;
}

.deal-preview-price {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 13px;
    color: #f97316;
}
.deal-preview-price strong {
    font-size: 16px;
    font-weight: 800;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.df-deal-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.df-deal-badge-active {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    color: #9a3412;
    border: 1px solid #fdba74;
}
.df-deal-badge-upcoming {
    background: #dbeafe;
    color: #1e40af;
}
.df-deal-badge-expired {
    background: #f1f5f9;
    color: #64748b;
}
.df-deal-badge-none {
    color: var(--df-muted-2, #94a3b8);
}

/* ═══════════════════════════════════════════════════════════
   8-UP COMPACT PRODUCT GRID
   ═══════════════════════════════════════════════════════════ */

.df-products-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
}
@media (min-width: 480px)  { .df-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px)  { .df-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 820px)  { .df-products-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .df-products-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .df-products-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (min-width: 1360px) { .df-products-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1620px) { .df-products-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; } }

.df-products-grid .prod-card {
    border-radius: 10px;
    transition: transform .3s cubic-bezier(.2,.7,.2,1),
                box-shadow .3s ease,
                border-color .3s ease;
    will-change: transform;
}
.df-products-grid .prod-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16,185,129,.4);
    box-shadow: 0 12px 24px -10px rgba(15,23,42,.18),
                0 3px 8px -4px rgba(15,23,42,.08);
}

.df-products-grid .prod-media { background: linear-gradient(135deg, #f8fafc, #eef2f7); }
.df-products-grid .prod-media img { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.df-products-grid .prod-card:hover .prod-media img { transform: scale(1.08); }
.df-products-grid .prod-placeholder {
    font-size: 32px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #94a3b8;
}

.df-products-grid .prod-flag {
    top: 5px;
    left: 5px;
    padding: 2px 5px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.1;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    text-transform: uppercase;
}

.df-products-grid .prod-fav {
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(15,23,42,.15);
}
.df-products-grid .prod-fav svg { width: 11px; height: 11px; }
.df-products-grid .prod-fav:hover { transform: scale(1.15); }
.df-products-grid .prod-fav:active { transform: scale(.9); }

.df-products-grid .prod-body { padding: 7px 8px 8px; gap: 4px; }
.df-products-grid .prod-meta { gap: 3px; font-size: 9.5px; }
.df-products-grid .prod-unit {
    padding: 1px 5px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .03em;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--shop-text-2, #334155);
    text-transform: uppercase;
}
.df-products-grid .prod-tag { font-size: 9px; font-weight: 700; }

.df-products-grid .prod-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    min-height: 30px;
    -webkit-line-clamp: 2;
    word-break: break-word;
}

.df-products-grid .prod-foot {
    gap: 4px;
    padding-top: 5px;
    border-top: 1px dashed var(--shop-border, #e5e9ef);
}
.df-products-grid .prod-price { gap: 4px; }
.df-products-grid .prod-price strong {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    white-space: nowrap;
}
.df-products-grid .prod-price s {
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
}

.df-products-grid .prod-add {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--shop-primary, #0B6E4F),
                                       var(--shop-primary-dark, #0a5c42));
    box-shadow: 0 3px 8px rgba(16,185,129,.35);
    transition: transform .2s cubic-bezier(.2,.7,.2,1),
                box-shadow .25s ease;
}
.df-products-grid .prod-add:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 14px rgba(16,185,129,.5);
}
.df-products-grid .prod-add:active { transform: translateY(0) scale(.94); }
.df-products-grid .prod-add svg {
    width: 12px;
    height: 12px;
    transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.df-products-grid .prod-add:hover svg { transform: rotate(90deg); }
.df-products-grid .prod-add.is-disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
}
.df-products-grid .prod-add.is-disabled:hover {
    transform: none;
    box-shadow: none;
}
.df-products-grid .prod-add.is-disabled svg { transform: none; }

@media (max-width: 380px) {
    .df-products-grid { gap: 8px; }
    .df-products-grid .prod-body { padding: 6px 6px 7px; gap: 3px; }
    .df-products-grid .prod-name { font-size: 10.5px; min-height: 28px; }
    .df-products-grid .prod-price strong { font-size: 11px; }
    .df-products-grid .prod-add { width: 24px; height: 24px; }
    .df-products-grid .prod-add svg { width: 11px; height: 11px; }
    .df-products-grid .prod-fav { width: 20px; height: 20px; }
    .df-products-grid .prod-fav svg { width: 10px; height: 10px; }
}

@media (prefers-color-scheme: dark) {
    .df-products-grid .prod-media {
        background: linear-gradient(135deg, #334155, #1e293b);
    }
    .df-products-grid .prod-placeholder {
        background: linear-gradient(135deg, #334155, #1e293b);
        color: #64748b;
    }
    .df-products-grid .prod-unit {
        background: #334155;
        color: #cbd5e1;
    }
    .df-products-grid .prod-fav {
        background: rgba(30,41,59,.94);
        color: #cbd5e1;
    }
    .df-products-grid .prod-foot {
        border-top-color: #334155;
    }
    .df-products-grid .prod-add.is-disabled {
        background: #334155;
        color: #64748b;
    }
}

@media (prefers-reduced-motion: reduce) {
    .df-products-grid .prod-card,
    .df-products-grid .prod-card:hover,
    .df-products-grid .prod-media img,
    .df-products-grid .prod-add,
    .df-products-grid .prod-fav {
        transition: none !important;
    }
    .df-products-grid .prod-card:hover .prod-media img {
        transform: none;
    }
}