/* Ported verbatim from Design/03-Customer-Homepage.html (and sibling storefront
   mockups) — this is the Storefront's equivalent of the Admin panel's
   admin.css: real class names, real values, no Tailwind approximation. */

.sec-title { font-size: 22px; font-weight: 700; color: var(--text-heading); margin: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.see-all { font-size: 13px; font-weight: 600; color: var(--primary); }
.block { padding: 32px 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); }
.badge-success { background: var(--success-subtle); color: var(--success); }
.badge-accent { background: var(--accent-subtle); color: var(--accent); }

/* announcement */
.announce { background: var(--text-heading); color: #fff; font-size: 12.5px; text-align: center; padding: 7px 0; }
.announce b { color: var(--secondary); }

/* header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(20,32,28,.04); border-bottom: 1px solid var(--border); }
html.dark .site-header { background: rgba(22,30,27,.82); }
.header-top { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--text-heading); flex-shrink: 0; }
.logo .mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; }
.search-wrap { flex: 1; position: relative; }
.search-wrap input { width: 100%; padding: 11px 16px 11px 42px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong); background: var(--surface-2); font-size: 14px; color: var(--text-body); outline: none; }
.search-wrap input:focus { border-color: var(--primary); background: var(--surface); }
.search-wrap .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hact { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; border-radius: var(--radius-md); font-size: 11px; color: var(--text-muted); font-weight: 600; position: relative; }
.hact-btn { border: none; background: transparent; }
.hact:hover { background: var(--surface-2); color: var(--text-heading); }
.hact .cnt { position: absolute; top: 0; right: 6px; background: var(--secondary); color: #fff; font-size: 9px; font-weight: 700; border-radius: 999px; width: 15px; height: 15px; display: flex; align-items: center; justify-content: center; }
.nav-bar { border-top: 1px solid var(--border); position: relative; display: flex; align-items: center; gap: 28px; }
.nav-inner { flex: 1; min-width: 0; display: flex; align-items: center; gap: 28px; padding: 11px 0; font-size: 13.5px; font-weight: 600; color: var(--text-body); overflow-x: auto; }
.nav-inner a:hover { color: var(--primary); }
.nav-inner a { white-space: nowrap; flex-shrink: 0; }
.nav-inner { scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-bar .catbtn { white-space: nowrap; font-size: 13.5px; display: flex; align-items: center; gap: 6px; color: var(--primary); flex-shrink: 0; background: none; border: none; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.mega-wrap { flex-shrink: 0; padding: 11px 0; }
.mega-chev { transition: transform .2s; }
.mega-chev.up { transform: rotate(180deg); }
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px 22px 14px; max-height: min(70vh, 560px); overflow-y: auto; z-index: 70; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; }
.mega-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mega-head { font-weight: 800; font-size: 14px; color: var(--text-heading); }
.mega-sub { font-size: 13px; color: var(--text-body); font-weight: 500; }
.mega-more { font-size: 12.5px; color: var(--primary); font-weight: 600; }
.mega-col a:hover, .mega-all:hover { color: var(--primary); }
.mega-all { display: block; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--primary); text-align: right; }

/* hero */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; padding-top: 24px; }
.hero-main { border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--primary-subtle), var(--accent-subtle)); min-height: 280px; padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 12px; position: relative; overflow: hidden; }
.hero-main .tag { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.hero-main h1 { font-size: 32px; font-weight: 800; color: var(--text-heading); margin: 0; max-width: 420px; }
.hero-main p { color: var(--text-muted); font-size: 14px; margin: 0; max-width: 380px; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-card { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); min-height: 132px; padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.hero-card.warm { background: var(--secondary-subtle); }
.hero-card h4 { margin: 0; font-size: 15px; color: var(--text-heading); }
.hero-card span { font-size: 12px; color: var(--text-muted); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* flash sale */
.flash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.flash-title { display: flex; align-items: center; gap: 10px; }
.flash-title h2 { color: var(--secondary); }
.timer { display: flex; gap: 6px; }
.timer .u { background: var(--text-heading); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 8px; border-radius: 6px; min-width: 32px; text-align: center; }
.flash-landing { background: linear-gradient(120deg, var(--secondary-subtle), var(--primary-subtle)); border-bottom: 1px solid var(--border); padding: 42px 0; }
.flash-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.flash-landing h1 { color: var(--text-heading); font-size: 34px; line-height: 1.16; margin: 12px 0 10px; }
.flash-landing p { color: var(--text-muted); margin: 0; max-width: 650px; line-height: 1.7; }
.flash-landing .timer .u { min-width: 54px; padding: 10px 12px; font-size: 15px; box-shadow: var(--shadow-sm); }
.flash-note { display: inline-flex; align-items: center; gap: 8px; background: var(--success-subtle); color: var(--success); border: 1px solid rgba(46,125,50,.16); border-radius: var(--radius-md); padding: 10px 13px; font-size: 12.5px; font-weight: 700; margin-bottom: 18px; }

/* scroller / grid */
.scroller { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; padding: 24px 6px 52px; scrollbar-width: none; -ms-overflow-style: none; align-items: flex-start; }
.scroller::-webkit-scrollbar { display: none; }
.grid-static { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid-static { grid-template-columns: repeat(3, 1fr); } }

/* product card */
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); flex-shrink: 0; width: 212px; position: relative; transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s cubic-bezier(.2,.8,.2,1); }
.pcard-link { display: block; color: inherit; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,32,28,.16), 0 4px 10px rgba(20,32,28,.08); }
.pcard .img { height: 198px; background: linear-gradient(135deg, var(--primary-subtle), var(--accent-subtle)); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 11px; position: relative; overflow: hidden; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.pcard:hover .img { transform: scale(1.045); }
.pcard .img .disc { position: absolute; top: 8px; left: 8px; background: var(--secondary); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.pcard .img .wish { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-muted); }
.pcard .body { padding: 13px; }
.pcard .vendor { font-size: 10.5px; color: var(--text-muted); margin-bottom: 2px; }
.pcard .name { font-size: 13px; font-weight: 600; color: var(--text-heading); margin-bottom: 6px; line-height: 1.3; height: 38px; overflow: hidden; }
.pcard .rating { font-size: 11.5px; color: var(--text-muted); margin-bottom: 6px; }
.pcard .rating b { color: var(--warning); }
.pcard .price-row { display: flex; align-items: baseline; gap: 6px; }
.pcard .price { font-size: 15px; font-weight: 700; color: var(--text-heading); font-variant-numeric: tabular-nums; }
.pcard .old { font-size: 11px; color: var(--text-muted); text-decoration: line-through; }

.quick-add { position: absolute; bottom: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; border: 2px solid var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 16px rgba(15,110,94,.35); opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .2s cubic-bezier(.2,.8,.2,1), transform .2s cubic-bezier(.2,.8,.2,1), background .2s; z-index: 3; }
.pcard:hover .quick-add { opacity: 1; transform: translateY(0) scale(1); }
.quick-add:hover { background: var(--primary-hover); transform: scale(1.1); }
.quick-add.added { background: var(--success); }
/* See haat/storefront.css's identical rule for why: the icon's size is
   only an HTML attribute, no CSS, so it can collapse to 0 actual rendered
   width as a flex child in some contexts (confirmed live in the desktop
   search dropdown, .live-search-row .quick-add). */
.quick-add svg { width: 16px; height: 16px; flex-shrink: 0; }
.compare-action.compact { position: absolute; top: 10px; right: 48px; z-index: 4; }
.compare-btn { border: 1px solid var(--border); background: rgba(255,255,255,.94); color: var(--text-heading); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; border-radius: 999px; padding: 0 14px; font-weight: 800; font-size: 12.5px; cursor: pointer; box-shadow: var(--shadow-sm); transition: background .18s, color .18s, border-color .18s, transform .18s; }
.compare-action.compact .compare-btn { width: 32px; min-height: 32px; padding: 0; border-radius: 50%; opacity: 0; transform: translateY(-6px) scale(.94); }
.pcard:hover .compare-action.compact .compare-btn, .compare-action.compact .compare-btn.selected { opacity: 1; transform: translateY(0) scale(1); }
.compare-btn:hover, .compare-btn.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.compare-btn.full { background: var(--warning); border-color: var(--warning); color: #fff; }
.compare-action:not(.compact) { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.compare-link { color: var(--primary); font-size: 12.5px; font-weight: 800; }
.wish-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text-heading); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; border-radius: 999px; padding: 0 14px; font-weight: 800; font-size: 12.5px; cursor: pointer; box-shadow: var(--shadow-sm); transition: background .18s, color .18s, border-color .18s, transform .18s; }
.wish-btn.compact { position: absolute; top: 10px; right: 10px; z-index: 4; width: 32px; min-height: 32px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.94); opacity: 0; transform: translateY(-6px) scale(.94); }
.pcard:hover .wish-btn.compact, .wish-btn.compact.selected { opacity: 1; transform: translateY(0) scale(1); }
.wish-btn:hover, .wish-btn.selected { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.wish-btn:disabled { opacity: .65; cursor: progress; }

.carousel-wrap { position: relative; }
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; color: var(--text-heading); cursor: pointer; z-index: 5; transition: .15s; }
.car-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.car-arrow.prev { left: -8px; }
.car-arrow.next { right: -8px; }
@media (max-width: 700px) { .car-arrow { display: none; } }

/* category pill grid */
.cat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: .15s; }
.cat-item:hover { border-color: var(--primary); background: var(--primary-subtle); }
.cat-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-subtle); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary); position: relative; overflow: hidden; }
.cat-item span { font-size: 12.5px; font-weight: 600; color: var(--text-heading); }
.cat-item em { font-style: normal; font-size: 10.5px; color: var(--text-muted); margin-top: -4px; }

/* entity card */
.ent-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; text-align: center; flex-shrink: 0; width: 150px; }
.ent-card .av { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-subtle); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; font-size: 20px; position: relative; overflow: hidden; }
.ent-card h5 { margin: 0 0 3px; font-size: 13px; color: var(--text-heading); }
.ent-card span { font-size: 11px; color: var(--text-muted); }

/* blog card */
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; flex-shrink: 0; width: 280px; }
.blog-card .img { height: 130px; background: var(--surface-2); position: relative; overflow: hidden; }
.blog-card .body { padding: 14px; }
.blog-card .cat { font-size: 11px; color: var(--primary); font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.blog-card h5 { margin: 0 0 6px; font-size: 14px; color: var(--text-heading); line-height: 1.35; }
.blog-card span { font-size: 11.5px; color: var(--text-muted); }

/* app promo */
.app-promo { border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.app-promo h3 { margin: 0 0 8px; font-size: 22px; color: var(--text-heading); }
.app-promo p { margin: 0 0 16px; color: var(--text-muted); font-size: 14px; max-width: 400px; }
.store-btns { display: flex; gap: 10px; }
.store-btn { background: var(--text-heading); color: #fff; padding: 9px 16px; border-radius: var(--radius-md); font-size: 12.5px; font-weight: 600; }

/* footer — deliberately uses its own --footer-* tokens rather than the
   page's --text-heading/--surface, since it always stays this dark shade
   regardless of light/dark site mode (see tokens.css for why). */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 0 22px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; margin-bottom: 36px; }
/* Theme Builder footer templates lay brand + menu columns out as flex-wrap
   siblings (NodeStyle has no CSS Grid support), not as children of a single
   `.footer-grid` grid parent — each column gets this class directly instead. */
.footer-col { flex: 1 1 140px; min-width: 140px; }
.footer-col h5 { color: var(--footer-heading); font-size: 13.5px; font-weight: 700; letter-spacing: .02em; margin: 0 0 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--footer-text-muted); margin-bottom: 10px; width: fit-content; transition: color .15s ease; }
.footer-col a:hover { color: var(--footer-heading); }
.footer-grid h5 { color: var(--footer-heading); font-size: 13.5px; font-weight: 700; letter-spacing: .02em; margin: 0 0 16px; }
.footer-grid a { display: block; font-size: 13px; color: var(--footer-text-muted); margin-bottom: 10px; width: fit-content; transition: color .15s ease; }
.footer-grid a:hover { color: var(--footer-heading); }
.footer-social a { transition: background .15s ease, transform .15s ease; }
.footer-social a:hover { background: var(--secondary) !important; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--footer-border); padding-top: 20px; font-size: 12px; color: var(--footer-text-muted); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.trust-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-badges span { background: var(--footer-bg-2); color: var(--footer-text); padding: 5px 10px; border-radius: 6px; font-size: 11px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* buttons (shared) */
.btn-primary { background: var(--primary); color: #fff; font-weight: 700; padding: 11px 22px; border-radius: var(--radius-pill); border: none; font-size: 14px; box-shadow: 0 8px 20px rgba(15,110,94,.22); transition: transform .18s cubic-bezier(.2,.8,.2,1), filter .18s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); font-weight: 700; padding: 10px 20px; border-radius: var(--radius-pill); font-size: 13.5px; }
.btn-secondary { background: var(--secondary); color: #fff; font-weight: 700; padding: 11px 22px; border-radius: var(--radius-pill); border: none; font-size: 14px; box-shadow: 0 8px 20px rgba(232,140,42,.25); }

/* toggle (dark mode) */
.theme-toggle { position: fixed; bottom: 20px; right: 20px; z-index: 99; display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 4px; box-shadow: var(--shadow-md); }
.theme-toggle button { border: none; background: transparent; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; }
.theme-toggle button.active { background: var(--primary); color: #fff; }

.toast-msg { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(24px) scale(.9); max-width: min(86vw, 320px); background: var(--text-heading); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.3; display: flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 999; box-shadow: var(--shadow-lg); font-variant-numeric: tabular-nums; }
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
@media (max-width: 760px) {
  .toast-msg { bottom: calc(62px + 14px); font-size: 12px; padding: 8px 14px; }
}

#miniCartDrawer { position: fixed; inset: 0; background: rgba(10,15,13,.5); z-index: 800; display: none; justify-content: flex-end; backdrop-filter: blur(3px); }
#miniCartDrawer.show { display: flex; }
#miniCartDrawer .mc-panel { width: 400px; max-width: 92vw; background: var(--surface); height: 100%; display: flex; flex-direction: column; box-shadow: -12px 0 50px rgba(0,0,0,.25); animation: mcSlide .28s cubic-bezier(.2,.8,.2,1); }
@keyframes mcSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }
#miniCartDrawer .mc-head { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
#miniCartDrawer .mc-head h4 { margin: 0; font-size: 15px; color: var(--text-heading); display: flex; align-items: center; gap: 8px; }
#miniCartDrawer .mc-close { color: var(--text-muted); cursor: pointer; font-size: 12.5px; display: flex; align-items: center; gap: 4px; border: none; background: transparent; }
#miniCartDrawer .mc-body { flex: 1; overflow: auto; padding: 8px 20px; }
#miniCartDrawer .mc-foot { padding: 18px 20px; border-top: 1px solid var(--border); }
#miniCartDrawer .mc-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center; }
#miniCartDrawer .mc-item:last-child { border-bottom: none; }
#miniCartDrawer .mc-thumb { width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0; background: var(--primary-subtle); position: relative; overflow: hidden; }
#miniCartDrawer .mc-info { flex: 1; min-width: 0; }
#miniCartDrawer .mc-name { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-heading); margin-bottom: 4px; line-height: 1.35; }
#miniCartDrawer .mc-price { font-size: 12.5px; color: var(--text-muted); }
#miniCartDrawer .mc-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
#miniCartDrawer .mc-qty button { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-2); cursor: pointer; font-size: 13px; color: var(--text-heading); display: flex; align-items: center; justify-content: center; }
#miniCartDrawer .mc-qty span { font-size: 12px; min-width: 14px; text-align: center; }
#miniCartDrawer .mc-remove { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
#miniCartDrawer .mc-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 60px 20px; color: var(--text-muted); }
#miniCartDrawer .mc-empty p { font-size: 13px; margin: 0; max-width: 220px; }
#miniCartDrawer .mc-empty-cta { display: inline-block; margin-top: 4px; padding: 9px 22px; border-radius: var(--radius-md); background: var(--primary); color: #fff; font-weight: 700; font-size: 12.5px; text-decoration: none; }
#miniCartDrawer .mc-total-row { display: flex; justify-content: space-between; font-size: 16px; font-weight: 800; color: var(--text-heading); margin-bottom: 14px; }
#miniCartDrawer .mc-checkout { display: block; width: 100%; text-align: center; background: var(--secondary); color: #fff; border: none; padding: 13px; border-radius: var(--radius-md); font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 8px 20px rgba(232,140,42,.3); }
#miniCartDrawer .mc-viewcart { display: block; width: 100%; text-align: center; background: transparent; color: var(--primary); border: 1.5px solid var(--primary); padding: 10px; border-radius: var(--radius-md); font-weight: 700; font-size: 12.5px; margin-top: 8px; cursor: pointer; }

.bottom-nav { display: none; }
@media (max-width: 760px) {
  .announce { font-size: 11px; padding: 6px 12px; }
  .header-top { gap: 10px; padding: 10px 0; }
  .logo { font-size: 18px; }
  .search-wrap { order: 3; flex-basis: 100%; }
  .header-top { flex-wrap: wrap; }
  .header-actions .lbl { display: none; }
  .header-actions { margin-left: auto; }
  .hact { padding: 6px 8px; }
  .nav-inner { gap: 18px; padding: 9px 0; }
  .nav-bar { gap: 18px; }
  .mega-panel { border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 14px 16px 10px; max-height: 65vh; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  .bottom-nav-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 700; transition: transform .32s cubic-bezier(.32,.72,0,1); }
  .bottom-nav-sheet.checkout { transform: translateY(calc(100% - 34px)); }
  .bottom-nav-sheet.checkout.open { transform: translateY(0); }
  .bn-sheet-handle { display: none; width: 100%; align-items: center; justify-content: center; gap: 4px; padding: 7px 0 4px; background: var(--surface); border: none; border-top: 1px solid var(--border); border-radius: 14px 14px 0 0; color: var(--text-muted); }
  .bottom-nav-sheet.checkout .bn-sheet-handle { display: flex; }
  .bn-sheet-grip { width: 36px; height: 4px; border-radius: 999px; background: var(--border-strong); }
  .theme-toggle { display: none; }
}

/* ===== Category / Search page (ported from Design/04-Category-Page.html, 05-Search-Results.html) ===== */
.crumb { padding: 16px 0 0; font-size: 12.5px; color: var(--text-muted); }
.crumb a { color: var(--primary); }

.cat-banner { position: relative; overflow: hidden; margin: 16px 0; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--primary-subtle), var(--accent-subtle)); padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; }
.cat-banner > :not(.cat-banner-media) { position: relative; z-index: 1; }
.cat-banner h1 { margin: 0 0 6px; font-size: 26px; color: var(--text-heading); }
.cat-banner p { margin: 0; color: var(--text-muted); font-size: 13.5px; max-width: 520px; }
.cat-banner .cnt { font-size: 12px; color: var(--text-muted); background: var(--surface); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); flex-shrink: 0; }

.subcats { display: flex; gap: 12px; overflow-x: auto; padding: 16px 0; }
.subcat-chip { flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--text-body); cursor: pointer; }
.subcat-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding-bottom: 48px; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; align-self: start; position: sticky; top: 80px; }
.filters h4 { font-size: 14px; margin: 0 0 12px; color: var(--text-heading); }
.f-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.f-group:last-child { border-bottom: none; margin-bottom: 0; }
.f-opt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-body); margin-bottom: 9px; cursor: pointer; }
.f-opt input { accent-color: var(--primary); }
.f-opt .cnt { color: var(--text-muted); font-size: 11.5px; margin-left: auto; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; padding: 7px 8px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 12.5px; }
.price-range button { border: none; background: var(--primary); color: #fff; border-radius: 7px; padding: 8px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.clear-f { font-size: 12px; color: var(--primary); font-weight: 600; cursor: pointer; }

.result-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.result-count { font-size: 13.5px; color: var(--text-muted); }
.result-count b { color: var(--text-heading); }
.sort-row { display: flex; align-items: center; gap: 10px; }
.sort-row select { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; color: var(--text-body); }
.view-toggle { display: flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.view-toggle button { border: none; background: var(--surface); padding: 7px 10px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.view-toggle button.active { background: var(--primary); color: #fff; }

.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, 1fr); } .layout { grid-template-columns: 1fr; } .filters { display: none; } }
/* same phone-width overflow fix as the হাট theme's copy of this rule — 3
   columns of `1fr` can't shrink below the product card's min-content size,
   so they silently clipped past the viewport instead of wrapping. */
@media (max-width: 640px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
/* .pcard's own fixed width (below) is sized for the horizontal Carousel and
   fights the grid track's width here — same root cause as হাট's copy. */
.pgrid .pcard { width: auto; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--text-body); cursor: pointer; }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.seo-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-top: 32px; font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }
.seo-block h4 { color: var(--text-heading); margin: 0 0 10px; }

/* ===== Product Detail page (ported from Design/06-Product-Details.html) ===== */
.pdp { display: grid; grid-template-columns: 440px 1fr 300px; gap: 32px; padding-bottom: 20px; }
@media (max-width: 1100px) { .pdp { grid-template-columns: minmax(0, 1fr); } }

.gallery .main { height: 420px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--primary-subtle), var(--accent-subtle)); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; margin-bottom: 12px; position: relative; overflow: hidden; }
.gallery .main .zoom { position: absolute; bottom: 12px; right: 12px; background: var(--surface); border-radius: 8px; padding: 6px 10px; font-size: 11px; box-shadow: var(--shadow-sm); }
.thumbs { display: flex; gap: 8px; }
.thumbs .t { width: 64px; height: 64px; border-radius: 8px; background: var(--surface-2); border: 2px solid var(--border); flex-shrink: 0; position: relative; overflow: hidden; }
.thumbs .t.active { border-color: var(--primary); }

.pinfo .vendor-line { font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }
.pinfo .vendor-line a { color: var(--primary); font-weight: 600; }
.pinfo h1 { font-size: 22px; margin: 0 0 8px; color: var(--text-heading); line-height: 1.35; }
.rating-line { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.rating-line b { color: var(--warning); }
.rating-line .sku { border-left: 1px solid var(--border); padding-left: 10px; }
.price-block { background: var(--surface-2); border-radius: var(--radius-md); padding: 16px; margin-bottom: 16px; }
.price-block .now { font-size: 26px; font-weight: 800; color: var(--text-heading); }
.price-block .old { font-size: 14px; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.price-block .badge { background: var(--success-subtle); color: var(--success); font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; margin-left: 8px; }
.price-block .stock { font-size: 12.5px; color: var(--success); margin-top: 6px; font-weight: 600; }

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.qty-ctrl { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.qty-ctrl button { border: none; background: var(--surface-2); width: 32px; height: 34px; font-size: 16px; cursor: pointer; color: var(--text-heading); }
.qty-ctrl span { width: 36px; text-align: center; font-size: 14px; }

.cta-row { display: flex; gap: 10px; margin-bottom: 18px; }
.pdp .btn { flex: 1; padding: 13px; border-radius: var(--radius-md); border: none; font-weight: 700; font-size: 14.5px; cursor: pointer; text-align: center; }
.btn-buy { background: var(--secondary); color: #fff; }
.btn-cart { background: var(--primary); color: #fff; }
.btn-cart:disabled, .btn-buy:disabled { opacity: .5; cursor: not-allowed; }
.btn-wish { width: 46px; flex: none; border: 1.5px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-md); color: var(--text-muted); }
.wish-btn-inline { position: static; width: 46px; height: 46px; flex: none; padding: 0; border: 1.5px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-md); color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.wish-btn-inline.selected { background: var(--primary); border-color: var(--primary); color: #fff; }

.book-meta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; font-size: 12.5px; color: var(--text-body); }
.book-meta .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.book-meta .row:last-child { border-bottom: none; }
.book-meta .row span:first-child { color: var(--text-muted); }
.book-meta .row span:last-child { font-weight: 500; color: var(--text-heading); }

.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px; }
.side-card h5 { margin: 0 0 10px; font-size: 13px; color: var(--text-heading); }
.delivery-row { display: flex; gap: 10px; font-size: 12.5px; margin-bottom: 10px; align-items: flex-start; }
.delivery-row .ic { color: var(--primary); }
.vendor-card { display: flex; align-items: center; gap: 10px; }
.vendor-card .av { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-subtle); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.vendor-card .name { font-size: 13.5px; font-weight: 600; color: var(--text-heading); }
.vendor-card .meta { font-size: 11.5px; color: var(--text-muted); }

.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin: 36px 0 0; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.tabs span { padding-bottom: 12px; cursor: pointer; }
.tabs span.active { color: var(--primary); border-bottom: 2px solid var(--primary); }
.tab-content { padding: 24px 0; font-size: 13.5px; line-height: 1.8; color: var(--text-body); }
.tab-content h4 { color: var(--text-heading); font-size: 15px; }
.review-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.review-item .top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.review-item .user { font-weight: 600; color: var(--text-heading); font-size: 13.5px; }
.review-item .stars { color: var(--warning); font-size: 12.5px; }
.review-item p { margin: 6px 0 0; color: var(--text-body); }

.qa-list textarea, .qa-list input { width: 100%; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); font-size: 13px; font-family: inherit; }
.qa-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.qa-item:last-child { border-bottom: none; }
.qa-q { font-weight: 600; color: var(--text-heading); margin: 0 0 6px; }
.qa-a { color: var(--text-body); margin: 0; padding-left: 16px; }

.rel-section { padding: 24px 0; }
.rel-section h3 { font-size: 18px; margin: 0 0 16px; color: var(--text-heading); }
.fbt-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin: 12px 0 20px; }
.fbt-row { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; }
.fbt-item { width: 150px; flex-shrink: 0; position: relative; }
.fbt-thumb { width: 100%; aspect-ratio: 1; border-radius: 10px; background: var(--primary-subtle); margin-bottom: 8px; position: relative; overflow: hidden; }
.fbt-item .name { font-size: 12.5px; line-height: 1.35; color: var(--text-heading); font-weight: 600; height: 34px; overflow: hidden; }
.fbt-plus { position: absolute; top: 54px; right: -16px; width: 24px; height: 24px; border-radius: 50%; background: var(--secondary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; z-index: 2; }

/* ===== Search Results page (ported from Design/05-Search-Results.html) ===== */
.result-head { padding: 20px 0 0; }
.result-head h1 { font-size: 19px; margin: 0 0 4px; color: var(--text-heading); }
.result-head .meta { font-size: 13px; color: var(--text-muted); }
.result-head .meta b { color: var(--text-heading); }
.tabbar { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 18px; margin-bottom: 4px; }
.tabbar a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--text-body); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; }
.tabbar a span { color: var(--text-muted); font-size: 11px; font-weight: 800; }
.tabbar a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tabbar a.active span { color: rgba(255,255,255,.82); }
.typed-strip { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 18px; margin-bottom: 14px; }
.typed-card { width: 180px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; color: var(--text-body); box-shadow: var(--shadow-sm); }
.typed-card .ic, .entity-result .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-subtle); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.typed-card b { display: block; color: var(--text-heading); font-size: 13.5px; margin-bottom: 5px; line-height: 1.35; }
.typed-card span { display: block; color: var(--text-muted); font-size: 12px; line-height: 1.45; height: 34px; overflow: hidden; }
.entity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.entity-result { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; color: var(--text-body); }
.entity-result .ic { flex-shrink: 0; margin-bottom: 0; }
.entity-result b { display: block; color: var(--text-heading); margin-bottom: 5px; font-size: 14px; }
.entity-result span { display: block; color: var(--text-muted); font-size: 12.5px; line-height: 1.55; }
@media (max-width: 760px) { .entity-grid { grid-template-columns: 1fr; } }

.empty { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 60px 24px; text-align: center; }
.empty .ic { font-size: 40px; margin-bottom: 14px; }
.empty h3 { margin: 0 0 8px; color: var(--text-heading); }
.empty p { margin: 0 0 18px; color: var(--text-muted); font-size: 13.5px; }
.empty .sugg { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.empty .sugg span { background: var(--surface-2); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-size: 12.5px; color: var(--primary); }

/* ===== Cart / Checkout page (ported from Design/07-Cart.html, 08-Checkout.html) ===== */
.page-title { padding: 24px 0 4px; font-size: 22px; color: var(--text-heading); }
.steps { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-muted); padding-bottom: 20px; }
.steps .on { color: var(--primary); font-weight: 700; }

.co-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding-bottom: 60px; }
.co-layout.ratio-form-focus { grid-template-columns: 1.6fr 320px; }
.co-layout.ratio-summary-focus { grid-template-columns: 1fr 420px; }
@media (max-width: 900px) { .co-layout { grid-template-columns: 1fr; } }

.coupon-toggle-wrap { margin-bottom: 10px; }
.coupon-toggle { background: none; border: none; padding: 0; color: var(--primary); font-size: 12.5px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.coupon-row.open { display: flex; gap: 8px; margin-top: 8px; animation: coupon-open .2s ease; }
@keyframes coupon-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.vendor-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 16px; overflow: hidden; }
.vg-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--text-heading); }
.vg-head .ship-note { margin-left: auto; font-size: 11.5px; color: var(--text-muted); font-weight: 500; }

.cart-item { display: flex; gap: 14px; padding: 16px; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.ci-thumb { width: 72px; height: 72px; border-radius: 10px; background: linear-gradient(135deg, var(--primary-subtle), var(--accent-subtle)); flex-shrink: 0; position: relative; overflow: hidden; }
.ci-info { flex: 1; }
.ci-info .name { font-size: 13.5px; font-weight: 600; color: var(--text-heading); margin-bottom: 4px; }
.ci-info .var { font-size: 11.5px; color: var(--text-muted); margin-bottom: 6px; }
.ci-price { font-size: 14px; font-weight: 700; color: var(--text-heading); }
.co-qty-ctrl { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.co-qty-ctrl button { border: none; background: var(--surface-2); width: 28px; height: 30px; font-size: 15px; cursor: pointer; color: var(--text-heading); }
.co-qty-ctrl span { width: 32px; text-align: center; font-size: 13px; }
.ci-remove { font-size: 11.5px; color: var(--error); cursor: pointer; margin-top: 8px; background: none; border: none; padding: 0; }
.ci-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; align-self: start; position: sticky; top: 20px; }
.summary h4 { margin: 0 0 14px; font-size: 15px; color: var(--text-heading); }
.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-body); padding: 7px 0; }
.sum-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 800; color: var(--text-heading); }
.checkout-btn { width: 100%; background: var(--secondary); color: #fff; border: none; padding: 14px; border-radius: var(--radius-md); font-weight: 700; font-size: 14.5px; margin-top: 16px; cursor: pointer; }
.checkout-btn:disabled { opacity: .5; cursor: not-allowed; }
.trust-mini { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.trust-mini span { background: var(--surface-2); border: 1px solid var(--border); padding: 5px 10px; border-radius: 6px; font-size: 11px; color: var(--text-muted); }
.coupon-row { display: flex; gap: 8px; margin: 12px 0; }
.coupon-row input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text-body); font-size: 12.5px; }
.coupon-row button { border: none; background: var(--primary); color: #fff; border-radius: 8px; padding: 0 14px; font-size: 12px; font-weight: 700; }
.coupon-row button:disabled { opacity: .6; cursor: not-allowed; }
.applied-coupon { display: flex; align-items: center; gap: 8px; background: var(--success-subtle); color: var(--success); padding: 9px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600; margin-bottom: 16px; }
.sum-row .disc { color: var(--success); }
.cart-item input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }

.empty-cart { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 60px; text-align: center; }
.empty-cart .ic { font-size: 40px; margin-bottom: 12px; }
.empty-cart h3 { margin: 0 0 8px; color: var(--text-heading); }
.empty-cart p { margin: 0 0 18px; color: var(--text-muted); font-size: 13.5px; }
.empty-cart .btn-primary { display: inline-flex; }

/* checkout form */
.co-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.co-section h4 { margin: 0 0 14px; font-size: 15px; color: var(--text-heading); }
.co-field { margin-bottom: 14px; }
.co-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-heading); margin-bottom: 6px; }
.co-field input, .co-field select, .co-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 13.5px; background: var(--surface); color: var(--text-body); font-family: inherit; }
.co-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo-split-grid { display: grid; gap: 16px; }
.promo-panel {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  display: flex; align-items: flex-end; padding: 20px; box-shadow: var(--shadow-sm); isolation: isolate;
}
.promo-panel-img { position: absolute; inset: 0; z-index: 0; }
.promo-panel-shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.4)); }
.promo-hover-zoom .promo-panel-img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.promo-hover-zoom:hover .promo-panel-img { transform: scale(1.06); }
.promo-panel-label { position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: 16px; line-height: 1.3; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
@media (max-width: 640px) {
  .promo-split-grid {
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .promo-split-grid::-webkit-scrollbar { display: none; }
  .promo-panel { scroll-snap-align: start; padding: 16px; }
}

.co-fields-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 12px; }
.co-fields-grid .co-field { min-width: 0; }
@media (max-width: 560px) { .co-fields-grid > .co-field { grid-column: span 6 !important; } }

.min-order-notice { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); }
.min-order-notice .mon-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-heading); }
.min-order-notice .mon-track { height: 5px; border-radius: 999px; background: var(--border); margin: 8px 0 6px; overflow: hidden; }
.min-order-notice .mon-fill { height: 100%; background: var(--warning, #c98a00); border-radius: 999px; transition: width .3s ease; }
.min-order-notice .mon-sub { font-size: 11px; color: var(--text-muted); }
.pay-opt { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--border-strong); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; font-size: 13.5px; cursor: pointer; }
.pay-opt.active { border-color: var(--primary); background: var(--primary-subtle); }
.pay-choice { width: 100%; background: var(--surface); color: var(--text-body); text-align: left; font-family: inherit; }
.pay-choice svg { color: var(--primary); flex-shrink: 0; }
.pay-choice span { line-height: 1.45; }
.place-btn { width: 100%; background: var(--secondary); color: #fff; border: none; padding: 14px; border-radius: var(--radius-md); font-weight: 700; font-size: 14.5px; margin-top: 8px; cursor: pointer; }
.place-btn:disabled { opacity: .5; cursor: not-allowed; }
.confirm-shell { max-width: 880px; margin: 0 auto; padding: 56px 0 72px; text-align: center; }
.confirm-shell h1 { margin: 0 0 8px; font-size: 24px; color: var(--text-heading); }
.confirm-shell > p { margin: 0 0 24px; color: var(--text-muted); }
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.confirm-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.confirm-card h4 { margin: 0 0 14px; color: var(--text-heading); font-size: 14.5px; }
.timeline { display: grid; gap: 10px; }
.tl-row { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13px; }
.tl-row.done { color: var(--success); font-weight: 700; }
.confirm-card p { display: flex; gap: 8px; align-items: flex-start; color: var(--text-body); line-height: 1.6; margin: 0 0 14px; }
@media (max-width: 760px) { .confirm-grid { grid-template-columns: 1fr; } }

/* ===== Account page (ported from Design/09-Customer-Account.html) ===== */
.acc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 24px 0 60px; }
@media (max-width: 900px) { .acc-layout { grid-template-columns: 1fr; } .sidebar { display: none; } }

.sidebar { align-self: start; position: sticky; top: 20px; }
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px; text-align: center; }
.profile-card .av { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-subtle); color: var(--accent); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.profile-card .name { font-weight: 700; font-size: 14px; color: var(--text-heading); }
.profile-card .email { font-size: 11.5px; color: var(--text-muted); }
.nav-menu { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.nav-menu a, .nav-menu button { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--text-body); border-bottom: 1px solid var(--border); cursor: pointer; width: 100%; text-align: left; background: none; border-left: none; border-right: none; border-top: none; }
.nav-menu a:last-child, .nav-menu button:last-child { border-bottom: none; }
.nav-menu a.active, .nav-menu button.active { background: var(--primary-subtle); color: var(--primary); font-weight: 700; border-left: 3px solid var(--primary); }

h2.ptitle { font-size: 20px; margin: 0 0 18px; color: var(--text-heading); }
.acc-main { min-width: 0; }
.acc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.acc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px; }
.acc-card h4 { margin: 0 0 12px; font-size: 14.5px; color: var(--text-heading); }
.muted { font-size: 13.5px; color: var(--text-muted); margin: 0; }

.mobile-acc-tabs { display: none; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.mobile-acc-tabs button { flex-shrink: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); border-radius: 999px; padding: 8px 13px; font-size: 12.5px; font-weight: 700; }
.mobile-acc-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (max-width: 900px) { .mobile-acc-tabs { display: flex; } }

.acc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.acc-stats div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.acc-stats span { display: block; color: var(--text-muted); font-size: 11.5px; font-weight: 700; margin-bottom: 8px; }
.acc-stats b { color: var(--text-heading); font-size: 20px; font-variant-numeric: tabular-nums; }
.acc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .acc-stats { grid-template-columns: repeat(2, 1fr); } .acc-grid2 { grid-template-columns: 1fr; } }

.order-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.order-row:last-child { border-bottom: none; }
.order-row .th { width: 56px; height: 56px; border-radius: 10px; background: var(--primary-subtle); color: var(--primary); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.order-row .info { flex: 1; }
.order-row .id { font-size: 13px; font-weight: 600; color: var(--text-heading); }
.order-row .meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.badge-info { background: var(--info-subtle); color: var(--info); }
.badge-warning { background: var(--warning-subtle); color: var(--warning); }
.badge-error { background: var(--error-subtle); color: var(--error); }
.order-row .amt { font-size: 13.5px; font-weight: 700; color: var(--text-heading); }

.auth-box { max-width: 400px; margin: 60px auto; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 36px; align-items: stretch; padding: 42px 0 72px; }
.auth-brand { border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--primary-subtle), var(--accent-subtle)); padding: 40px; display: flex; flex-direction: column; justify-content: center; min-height: 430px; }
.auth-brand h1 { margin: 16px 0 22px; max-width: 520px; font-size: 30px; line-height: 1.25; color: var(--text-heading); }
.auth-perks { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-perks span { background: var(--surface); border: 1px solid var(--border); color: var(--text-body); border-radius: 999px; padding: 8px 14px; font-size: 12.5px; font-weight: 700; }
.auth-split .auth-box { margin: 0; max-width: none; align-self: center; }
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; padding-top: 24px; } .auth-brand { min-height: 260px; padding: 28px; } .auth-brand h1 { font-size: 24px; } }
@media (max-width: 600px) {
  .auth-split { gap: 18px; padding: 16px 0 112px; }
  .auth-brand { min-height: 190px; padding: 22px; }
  .auth-brand h1 { margin: 10px 0 14px; font-size: 21px; line-height: 1.32; }
  .auth-perks { gap: 6px; }
  .auth-perks span { padding: 6px 10px; font-size: 11.5px; }
  body:has(.auth-split) .theme-toggle { display: none; }
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-tabs button { flex: 1; padding: 10px; border-radius: var(--radius-md); border: 1.5px solid var(--border-strong); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.auth-tabs button.active { border-color: var(--primary); background: var(--primary-subtle); color: var(--primary); }
.form-msg { font-size: 12.5px; margin: 0 0 12px; }
.form-msg.error { color: var(--error); }
.form-msg.success { color: var(--success); }
.small-link { display: inline-block; margin: -4px 0 12px; color: var(--primary); font-size: 12.5px; font-weight: 700; }

.wish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wish-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; }
.wish-card:hover { box-shadow: var(--shadow-md); }
.wish-img { display: block; position: relative; height: 170px; overflow: hidden; background: linear-gradient(135deg, var(--primary-subtle), var(--accent-subtle)); }
.wish-body { padding: 13px; }
.wish-body .vendor { font-size: 10.5px; color: var(--text-muted); margin-bottom: 3px; }
.wish-body .name { display: block; height: 38px; overflow: hidden; font-size: 13px; line-height: 1.35; color: var(--text-heading); font-weight: 700; margin-bottom: 7px; }
.wish-body .rating { color: var(--text-muted); font-size: 11.5px; margin-bottom: 7px; }
.wish-body .rating b { color: var(--warning); }
.wish-body .price-row { display: flex; gap: 7px; align-items: baseline; }
.wish-body .price { font-size: 15px; color: var(--text-heading); font-weight: 800; }
.wish-body .old { font-size: 11px; color: var(--text-muted); text-decoration: line-through; }
.wish-card .quick-add { opacity: 1; transform: none; }
.icon-action { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,.92); color: var(--error); display: flex; align-items: center; justify-content: center; cursor: pointer; }
html.dark .icon-action { background: rgba(22,30,27,.92); }
@media (max-width: 1100px) { .wish-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .wish-grid { grid-template-columns: 1fr; } }

.address-list { display: grid; gap: 12px; }
.address-card { border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius-md); padding: 14px; }
.addr-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.addr-top b { color: var(--text-heading); font-size: 13.5px; }
.addr-top span { display: inline-flex; align-items: center; gap: 8px; }
.addr-top em { font-style: normal; font-size: 11px; color: var(--success); font-weight: 800; }
.addr-top button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--error); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.address-card p { margin: 0 0 5px; color: var(--text-body); font-size: 12.8px; line-height: 1.5; }
.address-card p:last-child { margin-bottom: 0; color: var(--text-muted); }
.acc-form { max-width: 720px; }
.empty-mini { border: 1px dashed var(--border-strong); border-radius: var(--radius-md); padding: 28px; text-align: center; background: var(--surface-2); }
.empty-mini b { display: block; margin-bottom: 6px; color: var(--text-heading); font-size: 13.5px; }
.empty-mini span { color: var(--text-muted); font-size: 12.8px; }
.review-task { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.review-task:last-child { border-bottom: none; }
.review-task b { display: block; color: var(--text-heading); font-size: 13.5px; }
.review-task span { display: block; color: var(--text-muted); font-size: 12px; margin-top: 3px; }

/* ===== Static / Legal / Blog pages ===== */
.static-main { min-height: 60vh; }
.static-hero { background: linear-gradient(120deg, var(--primary-subtle), var(--accent-subtle)); padding: 52px 0 44px; border-bottom: 1px solid var(--border); }
.static-hero h1 { margin: 16px 0 10px; color: var(--text-heading); font-size: 34px; line-height: 1.18; max-width: 740px; }
.static-hero p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.7; max-width: 680px; }
.static-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; padding-top: 34px; padding-bottom: 70px; }
.static-wrap:not(:has(.static-toc)) { display: block; max-width: 920px; }
.static-toc { position: sticky; top: 96px; align-self: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.static-toc h4 { margin: 0 0 10px; color: var(--text-heading); font-size: 13.5px; }
.static-toc a { display: block; color: var(--text-muted); font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.static-toc a:last-child { border-bottom: none; }
.static-toc a:hover { color: var(--primary); }
.static-article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; color: var(--text-body); }
.static-article p { margin: 0 0 16px; line-height: 1.8; font-size: 14px; }
.static-article p:last-child { margin-bottom: 0; }
.static-section { margin-bottom: 28px; }
.static-section:last-child { margin-bottom: 0; }
.static-section h2 { color: var(--text-heading); font-size: 18px; margin: 0 0 12px; }
.stats-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.stats-band div, .value-grid div, .contact-grid div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.stats-band b { display: block; color: var(--primary); font-size: 24px; margin-bottom: 4px; }
.stats-band span, .value-grid span, .contact-grid span { color: var(--text-muted); font-size: 12.5px; line-height: 1.6; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.value-grid b, .contact-grid b { display: block; color: var(--text-heading); margin-bottom: 6px; font-size: 13.5px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.contact-grid svg { color: var(--primary); margin-bottom: 10px; }
.contact-form { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; }
.faq-list summary { cursor: pointer; color: var(--text-heading); font-weight: 700; font-size: 13.5px; }
.faq-list p { margin: 10px 0 0; color: var(--text-muted); }
.blog-listing { padding-top: 34px; padding-bottom: 72px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.blog-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-tile .img { height: 180px; background: linear-gradient(135deg, var(--primary-subtle), var(--accent-subtle)); position: relative; overflow: hidden; }
.blog-tile .body { padding: 18px; }
.blog-tile span { color: var(--primary); font-size: 11.5px; font-weight: 800; text-transform: uppercase; }
.blog-tile h2 { color: var(--text-heading); font-size: 17px; line-height: 1.35; margin: 8px 0; }
.blog-tile p { color: var(--text-muted); line-height: 1.7; font-size: 13px; margin: 0; }
.page-link { min-width: 34px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--text-body); display: inline-flex; align-items: center; justify-content: center; }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.blog-detail { padding: 46px 0 72px; }
.blog-detail h1 { color: var(--text-heading); font-size: 34px; line-height: 1.2; max-width: 820px; margin: 16px 0 8px; }
.blog-meta { color: var(--text-muted); font-size: 13px; margin: 0 0 22px; }
.blog-cover { height: 390px; border-radius: var(--radius-lg); background-color: var(--surface-2); border: 1px solid var(--border); margin-bottom: 24px; position: relative; overflow: hidden; }
.blog-copy { max-width: 820px; }
@media (max-width: 900px) {
  .static-hero { padding: 38px 0 32px; }
  .static-hero h1, .blog-detail h1 { font-size: 27px; }
  .static-wrap { grid-template-columns: 1fr; }
  .static-toc { position: static; }
  .stats-band, .value-grid, .contact-grid, .blog-grid { grid-template-columns: 1fr; }
  .static-article { padding: 20px; }
  .blog-cover { height: 240px; }
}

/* ===== Auth / Vendor / 404 pages ===== */
.auth-page { min-height: 560px; }
.notfound-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px; background: linear-gradient(120deg, var(--primary-subtle), var(--accent-subtle)); }
.nf-card { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; text-align: center; box-shadow: var(--shadow-lg); }
.nf-code { color: var(--primary); font-size: 48px; font-weight: 900; line-height: 1; }
.nf-card h1 { margin: 10px 0 8px; color: var(--text-heading); font-size: 28px; }
.nf-card p { margin: 0 0 20px; color: var(--text-muted); }
.nf-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 7px 7px 7px 14px; margin-bottom: 18px; }
.nf-search svg { color: var(--text-muted); flex-shrink: 0; }
.nf-search input { flex: 1; border: none; outline: none; background: transparent; color: var(--text-body); font-size: 14px; min-width: 0; }
.nf-search button { border: none; border-radius: 999px; background: var(--primary); color: #fff; padding: 9px 16px; font-weight: 700; }
.nf-links { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; }
.nf-links a { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-body); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; }
/* Facebook-business-page-style vendor storefront header — a rounded,
   elevated "card" cover photo (falls back to the old gradient when no
   cover_url is set) with a ringed circular logo/avatar + verified badge
   overlapping its bottom edge, matching how the admin vendor editor
   previews the same cover+logo pairing. */
.vendor-hero-fb { padding-top: 20px; }
.vendor-cover-wrap { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }
.vendor-cover {
  height: 260px;
  background: linear-gradient(120deg, var(--primary-subtle), var(--accent-subtle));
  background-size: cover;
  background-position: center;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.vendor-cover-wrap:hover .vendor-cover { transform: scale(1.035); }
/* Bottom-edge gradient so a busy cover photo doesn't fight with the badge/
   name that visually sits right on top of it. */
.vendor-cover-fade { position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(to top, rgba(10,20,16,.42), transparent); pointer-events: none; }
@media (max-width: 640px) { .vendor-cover { height: 160px; } .vendor-cover-fade { height: 60px; } }

/* The row itself sits in NORMAL flow right below the cover — only the
   avatar pulls itself upward (via its own negative margin, which in a flex
   row affects just that item, not its siblings) so it overlaps the cover's
   bottom edge without dragging the heading/description up into the cover
   image with it. */
.vendor-fb-row { display: flex; align-items: flex-end; gap: 20px; padding: 0 4px 22px; }
.vendor-fb-avatar-wrap { position: relative; flex-shrink: 0; margin-top: -56px; }
.vendor-fb-avatar { border-radius: 50%; border: 4px solid var(--surface); box-shadow: var(--shadow-md); background: var(--surface); transition: transform .2s ease; }
.vendor-fb-avatar-wrap:hover .vendor-fb-avatar { transform: scale(1.04); }
.vendor-verified-badge {
  position: absolute; right: 2px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff; border: 3px solid var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.vendor-fb-info { padding-bottom: 4px; min-width: 0; flex: 1; }
.vendor-fb-title-row { display: flex; align-items: center; gap: 7px; margin: 10px 0 2px; }
.vendor-fb-title-row h1 { color: var(--text-heading); margin: 0; font-size: 30px; }
.vendor-verified-inline { color: var(--primary); flex-shrink: 0; }
.vendor-fb-tagline { color: var(--primary); font-weight: 700; font-size: 12.5px; margin: 0 0 8px; }
.vendor-fb-info p { color: var(--text-muted); line-height: 1.7; margin: 0 0 12px; max-width: 720px; }
.vendor-fb-actions { padding-bottom: 8px; }
.vendor-share-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--border-strong); background: var(--surface);
  color: var(--text-heading); font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm); transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.vendor-share-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
@media (max-width: 640px) {
  .vendor-fb-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .vendor-fb-avatar-wrap { margin-top: -40px; }
  .vendor-fb-title-row h1 { font-size: 22px; }
  .vendor-fb-actions { padding-bottom: 0; }
}
.vendor-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.vendor-meta span { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--text-body); font-size: 12.5px; font-weight: 700; padding: 7px 12px; transition: border-color .15s ease, transform .15s ease; }
.vendor-meta span:hover { border-color: var(--primary); transform: translateY(-1px); }

.vendor-page-tabs { margin-top: 8px; }
.vendor-about-panel h3 { color: var(--text-heading); font-size: 17px; margin: 0 0 10px; }
.vendor-about-panel p { color: var(--text-body); line-height: 1.7; max-width: 720px; }
.vendor-about-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.vendor-about-grid > div { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; }
.vendor-about-grid svg { color: var(--primary); flex-shrink: 0; }
.vendor-onboard { background: linear-gradient(120deg, var(--primary-subtle), var(--accent-subtle)); padding: 44px 0 70px; }
.vendor-onboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 34px; align-items: start; }
.vendor-copy { padding-top: 20px; }
.vendor-copy h1 { color: var(--text-heading); font-size: 34px; line-height: 1.22; margin: 16px 0 12px; max-width: 640px; }
.vendor-copy p { color: var(--text-muted); line-height: 1.75; max-width: 620px; margin: 0 0 24px; }
.seller-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.seller-benefits div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 15px; }
.seller-benefits svg { color: var(--primary); margin-bottom: 8px; }
.seller-benefits b { display: block; color: var(--text-heading); margin-bottom: 5px; font-size: 13.5px; }
.seller-benefits span { color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.vendor-form h4 { display: flex; align-items: center; gap: 8px; }

/* ===== Compare products ===== */
.compare-page { padding: 42px 0 74px; background: var(--bg); min-height: 560px; }
.compare-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.compare-head h1 { color: var(--text-heading); margin: 8px 0 8px; font-size: 32px; line-height: 1.18; }
.compare-head p { color: var(--text-muted); margin: 0; max-width: 620px; line-height: 1.7; }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 14px; vertical-align: top; text-align: left; min-width: 170px; color: var(--text-body); font-size: 13px; }
.compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; z-index: 2; min-width: 156px; background: var(--surface-2); color: var(--text-heading); font-weight: 800; }
.compare-table th { background: var(--surface-2); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table th:last-child, .compare-table td:last-child { border-right: none; }
.compare-product { position: relative; min-height: 196px; }
.compare-product button { position: absolute; top: 0; right: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.compare-product button:hover { color: #fff; background: var(--secondary); border-color: var(--secondary); }
.compare-product a { color: inherit; display: block; padding-right: 30px; }
.compare-thumb { width: 104px; height: 104px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--primary-subtle), var(--accent-subtle)); margin-bottom: 12px; border: 1px solid var(--border); position: relative; overflow: hidden; }
.compare-product b { display: block; color: var(--text-heading); font-size: 13.5px; line-height: 1.35; margin-bottom: 6px; }
.compare-product span { display: block; color: var(--text-muted); font-size: 11.5px; }

/* ===== Order tracking ===== */
.track-page { padding: 34px 0 74px; background: var(--bg); min-height: 620px; }
.track-hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: end; background: linear-gradient(120deg, var(--primary-subtle), var(--accent-subtle)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; margin-bottom: 22px; }
.track-hero h1 { color: var(--text-heading); font-size: 32px; line-height: 1.18; margin: 8px 0 10px; }
.track-hero p { color: var(--text-muted); margin: 0; max-width: 620px; line-height: 1.7; }
.track-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; display: grid; gap: 12px; box-shadow: var(--shadow-sm); }
.track-form label { display: grid; gap: 6px; color: var(--text-heading); font-size: 12.5px; font-weight: 800; }
.track-form input { border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); padding: 10px 12px; background: var(--surface-2); color: var(--text-body); outline: none; }
.track-form input:focus { border-color: var(--primary); background: var(--surface); }
.track-form button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; }
.track-alert { display: flex; align-items: center; gap: 8px; background: #fff3f0; color: var(--secondary); border: 1px solid rgba(242,93,70,.2); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 18px; font-size: 13px; font-weight: 700; }
.track-result { display: grid; gap: 18px; }
.track-summary { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.track-summary .muted, .track-card .muted { color: var(--text-muted); font-size: 12.5px; }
.track-summary h2 { margin: 4px 0 5px; color: var(--text-heading); font-size: 22px; }
.track-summary p { margin: 0; color: var(--text-muted); }
.track-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.track-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.track-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.track-card h4 { margin: 0 0 14px; color: var(--text-heading); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.track-steps { display: grid; gap: 10px; }
.track-step { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13px; padding: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); }
.track-step span { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }
.track-step.done { color: var(--text-heading); border-color: rgba(15,110,94,.22); background: var(--primary-subtle); }
.track-step.done span { background: var(--primary); color: #fff; border-color: var(--primary); }
.shipment-row { display: grid; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 0 12px; margin-bottom: 12px; }
.shipment-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.shipment-row b { color: var(--text-heading); }
.shipment-row span { color: var(--text-muted); font-size: 12.5px; }
@media (max-width: 900px) {
  .vendor-fb-title-row h1, .vendor-copy h1 { font-size: 26px; }
  .vendor-onboard-grid { grid-template-columns: 1fr; }
  .seller-benefits { grid-template-columns: 1fr; }
  .flash-hero-inner { align-items: flex-start; flex-direction: column; }
  .flash-landing h1 { font-size: 27px; }
  .compare-head { align-items: flex-start; flex-direction: column; }
  .compare-head h1 { font-size: 26px; }
  .track-hero, .track-grid { grid-template-columns: 1fr; }
  .track-summary { flex-direction: column; }
  .track-badges { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .nf-card { padding: 24px; }
  .nf-search { border-radius: var(--radius-md); align-items: stretch; }
  .compare-page { padding-top: 28px; }
}

/* ===== campaign banner (ported from Design/03-Customer-Homepage.html) ===== */
.campaign { border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--accent), #6f6ce0); color: #fff; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.campaign h3 { margin: 0 0 6px; font-size: 24px; color: #fff; }
.campaign p { margin: 0; opacity: .85; font-size: 14px; max-width: 420px; color: #fff; }
.campaign .btn { background: #fff; color: var(--accent); font-weight: 700; padding: 11px 22px; border-radius: var(--radius-pill); border: none; font-size: 14px; flex-shrink: 0; }
@media (max-width: 700px) { .campaign { flex-direction: column; text-align: center; } }

/* ===== accordion / FAQ widget ===== */
.accordion-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.accordion-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font-weight: 700; color: var(--text-heading); font-size: 14.5px; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary svg { flex-shrink: 0; transition: transform .15s ease; color: var(--text-muted); }
.accordion-item[open] summary svg { transform: rotate(180deg); }
.accordion-item p { margin: 10px 0 0; color: var(--text-body); font-size: 13.5px; line-height: 1.6; }

/* ===== recently viewed (client-side, localStorage) ===== */
.recently-viewed-empty { display: none; }

/* Live search dropdown (LiveSearchBox.tsx) — desktop header search-as-you-type */
.live-search-wrap { flex: 1; }
.live-search-wrap .search-wrap { width: 100%; }
.live-search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 12px 28px rgba(0,0,0,.12); z-index: 200; max-height: 420px; overflow-y: auto; }
.live-search-empty { padding: 20px 16px; font-size: 13.5px; color: var(--text-muted); text-align: center; }
.live-search-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); position: relative; }
.live-search-row:last-of-type { border-bottom: none; }
.live-search-row-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.live-search-thumb { width: 44px; height: 44px; flex: none; border-radius: var(--radius-sm); background-color: var(--surface-2); border: 1px solid var(--border); position: relative; overflow: hidden; }
.live-search-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.live-search-name { font-size: 13.5px; color: var(--text-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-search-price { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.live-search-row .quick-add { position: static; width: 32px; height: 32px; flex: none; box-shadow: none; }
.live-search-viewall { display: block; width: 100%; padding: 12px 14px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--primary); background: var(--surface-2); border: none; border-top: 1px solid var(--border); cursor: pointer; }

/* ===== Live chat widget (ChatWidget.tsx) — ported from salonix's
   `#chatWidget` (assets/js/salonix.js ~L554-708 + its CSS block), colors
   remapped onto this theme's own tokens instead of salonix's own
   --green-700/--gold-500/--line/--sale variables. */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 56; transition: left .45s cubic-bezier(.34,1.56,.64,1), top .45s cubic-bezier(.34,1.56,.64,1); touch-action: none; }
.chat-widget.dragging { transition: none; }
.chat-widget.docked .chat-fab { opacity: .8; }
.chat-fab { touch-action: none; position: relative; }
.chat-widget[data-side="left"] .chat-panel { right: auto; left: 0; transform-origin: bottom left; }
.chat-widget[data-side="left"] .chat-notify-bubble { right: auto; left: 0; }
.chat-fab-unread { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--error, #d6483e); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); }
.chat-notify-bubble {
  position: absolute; right: 0; bottom: 74px; width: 260px; max-width: calc(100vw - 32px);
  display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(20,58,34,.24);
  cursor: pointer; animation: chatNotifyIn .3s cubic-bezier(.2,.8,.3,1); z-index: 2;
}
@keyframes chatNotifyIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.cnb-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--primary-subtle); color: var(--primary); }
.cnb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cnb-body { flex: 1; min-width: 0; line-height: 1.3; }
.cnb-body b { display: block; font-size: 12px; color: var(--text-heading); }
.cnb-text { display: block; font-size: 12.5px; color: var(--text-body); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cnb-dismiss { flex: none; background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 2px; }
.chat-fab {
  position: relative; width: 60px; height: 60px; border-radius: var(--radius-pill);
  display: grid; place-items: center; color: #fff; cursor: pointer; border: none;
  background: radial-gradient(120% 120% at 30% 25%, var(--primary-hover) 0%, var(--primary) 55%, var(--text-heading) 100%);
  box-shadow: 0 16px 44px rgba(20,58,34,.42), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -6px 14px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 22px 54px rgba(20,58,34,.5), inset 0 1px 0 rgba(255,255,255,.3); }
.chat-fab:active { transform: scale(.97); }
.chat-fab svg { position: relative; z-index: 2; transition: transform .18s ease; }
.chat-fab.active svg { transform: rotate(8deg) scale(.92); }
.chat-fab .chat-fab-ring { position: absolute; inset: 0; border-radius: var(--radius-pill); border: 2px solid var(--secondary, #c8a96b); opacity: 0; animation: chatRing 2.8s ease-out infinite; }
.chat-fab .chat-fab-dot { position: absolute; top: 9px; right: 9px; width: 13px; height: 13px; border-radius: var(--radius-pill); background: #3ad07f; border: 2.5px solid #fff; z-index: 3; box-shadow: 0 0 0 0 rgba(58,208,127,.6); animation: chatPulse 2.4s ease-out infinite; }
@keyframes chatRing { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.75); } }
@keyframes chatPulse { 0% { box-shadow: 0 0 0 0 rgba(58,208,127,.55); } 70% { box-shadow: 0 0 0 10px rgba(58,208,127,0); } 100% { box-shadow: 0 0 0 0 rgba(58,208,127,0); } }
@media (prefers-reduced-motion: reduce) { .chat-fab-ring, .chat-fab-dot { animation: none; } }

.chat-panel {
  position: absolute; right: 0; bottom: 74px; width: 344px; max-width: calc(100vw - 32px);
  height: min(460px, calc(100vh - 130px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 28px 80px rgba(20,58,34,.30); transform-origin: bottom right; animation: chatIn .28s cubic-bezier(.2,.75,.3,1);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; background: linear-gradient(150deg, var(--primary), var(--text-heading)); color: #fff; }
.chat-avatar { width: 36px; height: 36px; border-radius: var(--radius-pill); display: grid; place-items: center; background: rgba(255,255,255,.16); flex: none; }
.chat-id { flex: 1; line-height: 1.25; min-width: 0; }
.chat-id b { font-size: 14px; display: block; }
.chat-id em { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 6px; }
.chat-online { width: 8px; height: 8px; border-radius: var(--radius-pill); background: #3ad07f; box-shadow: 0 0 0 3px rgba(58,208,127,.25); }
.chat-close { color: #fff; opacity: .85; display: grid; place-items: center; padding: 4px; background: none; border: none; cursor: pointer; }
.chat-close:hover { opacity: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.chat-msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.chat-msg.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 10px; }
.chat-quick button { font-size: 12.5px; padding: 7px 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--primary); color: var(--primary); background: var(--surface); font-weight: 600; cursor: pointer; }
.chat-quick button:hover { background: var(--primary); color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
.chat-input input { flex: 1; min-width: 0; border: 1.5px solid var(--border); border-radius: var(--radius-pill); padding: 10px 15px; font: inherit; background: var(--surface); color: var(--text-body); }
.chat-input input:focus { outline: 2px solid var(--primary-subtle); border-color: var(--primary); }
.chat-input button { width: 40px; height: 40px; flex: none; border: none; border-radius: var(--radius-pill); background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-input button:hover { background: var(--primary-hover); }

.chat-wa { display: flex; align-items: center; gap: 11px; margin: 10px 12px 0; padding: 11px 13px; border-radius: 14px; background: #25d366; color: #04361c; font-weight: 700; box-shadow: 0 8px 20px rgba(37,211,102,.32); text-decoration: none; }
.chat-wa:hover { background: #20c65c; }
.chat-wa-ic { width: 34px; height: 34px; flex: none; border-radius: var(--radius-pill); background: rgba(255,255,255,.35); display: grid; place-items: center; }
.chat-wa-tx { flex: 1; line-height: 1.25; min-width: 0; }
.chat-wa-tx b { font-size: 13.5px; display: block; }
.chat-wa-tx em { font-style: normal; font-size: 11.5px; opacity: .8; }
.chat-wa > svg:last-child { flex: none; opacity: .7; }

.chat-contact { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
.chat-contact p { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; margin: 0; }
.chat-contact input { border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 13px; font: inherit; background: var(--surface); color: var(--text-body); }
.chat-contact input:focus { outline: 2px solid var(--primary-subtle); border-color: var(--primary); }
.chat-contact button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--primary); color: #fff; font-weight: 700; border: none; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; cursor: pointer; }
.chat-contact button:hover { background: var(--primary-hover); }
.chat-err { color: var(--error); font-size: 12px; font-weight: 600; }
@media (max-width: 600px) {
  .chat-widget { right: 14px; bottom: 14px; }
  .chat-panel { width: calc(100vw - 28px); height: min(70vh, 460px); right: 0; }
}

/* Product-suggestion additions to the live chat widget (ChatWidget.tsx) —
   either side can attach a product card to a message. */
.chat-msg-group { display: flex; flex-direction: column; gap: 3px; max-width: 100%; align-items: flex-start; }
.chat-msg-group.me { align-items: flex-end; }
.chat-msg-time { font-size: 10.5px; color: var(--text-muted); padding: 0 4px; }
.chat-typing { display: flex; align-items: center; gap: 4px; padding: 12px 14px !important; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: chatTypingDot 1.2s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatTypingDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-product-card { display: flex; align-items: center; gap: 8px; max-width: 80%; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; }
.chat-product-card.me { align-self: flex-end; }
.chat-product-card.bot { align-self: flex-start; }
.chat-product-card img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.chat-product-card span { display: flex; flex-direction: column; min-width: 0; }
.chat-product-card b { font-size: 12px; color: var(--text-body); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-product-card em { font-style: normal; font-size: 12px; color: var(--primary); font-weight: 700; }
.chat-product-toggle { width: 40px; height: 40px; flex: none; border-radius: var(--radius-pill); border: 1.5px solid var(--border); background: var(--surface); color: var(--text-muted); display: grid; place-items: center; cursor: pointer; }
.chat-product-toggle.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chat-product-picker { padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface-2); max-height: 180px; overflow-y: auto; }
.chat-product-picker input { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-pill); padding: 8px 13px; font: inherit; background: var(--surface); color: var(--text-body); margin-bottom: 6px; }
.chat-product-result { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.chat-product-result:hover { background: var(--surface); }
.chat-product-result img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.chat-product-result span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-product-result em { font-style: normal; color: var(--primary); font-weight: 700; }

/* brand partner strip — premium card treatment with grid/scroll layout modes */
.brand-strip-scroll { display: flex; flex-wrap: nowrap; gap: 14px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: none; }
.brand-strip-scroll::-webkit-scrollbar { display: none; }
.brand-strip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.brand-strip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-heading);
  font-weight: 700;
  font-size: 13.5px;
  flex-shrink: 0;
  min-width: 200px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.brand-strip-grid .brand-strip-card { flex-shrink: 1; min-width: 0; }
.brand-strip-card:hover { border-color: var(--primary); box-shadow: 0 10px 24px rgba(20,32,28,.1); transform: translateY(-2px); }
.brand-strip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Brands widget (shared structure; each theme skins it below) ===== */
.sbr { --sbr-gap: 14px; }
.sbr-head { margin-bottom: 16px; }
.sbr-head .sec-title { margin: 0; }
.sbr-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); }
.sbr-grid { display: grid; grid-template-columns: repeat(var(--sbr-d, 6), minmax(0, 1fr)); gap: var(--sbr-gap); }
@media (max-width: 1023px) { .sbr-grid { grid-template-columns: repeat(var(--sbr-t, 4), minmax(0, 1fr)); } }
@media (max-width: 640px) { .sbr-grid { grid-template-columns: repeat(var(--sbr-m, 2), minmax(0, 1fr)); --sbr-gap: 10px; } }
.sbr-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 16px 12px; min-width: 0; text-align: center; text-decoration: none;
  background: var(--sbr-bg, #fff); color: var(--sbr-fg, #14201c);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sbr-tile:hover { transform: translateY(-3px); }
.sbr-tile:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sbr-logo { position: relative; display: block; width: 100%; height: 56px; }
.sbr-text { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; max-width: 100%; }
.sbr-name { font-weight: 700; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbr-tag { font-size: 11.5px; color: var(--sbr-muted, #5f6b64); max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sbr-count { font-size: 11px; color: var(--sbr-muted, #5f6b64); }
.sbr-badge {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
}
.sbr.is-gray .sbr-logo { filter: grayscale(1); opacity: .7; transition: filter .2s ease, opacity .2s ease; }
.sbr.is-gray .sbr-tile:hover .sbr-logo, .sbr.is-gray .sbr-tile:focus-visible .sbr-logo { filter: none; opacity: 1; }

/* card — horizontal: logo left, details right */
.sbr-card .sbr-tile { flex-direction: row; justify-content: flex-start; text-align: left; gap: 16px; padding: 16px 18px; }
.sbr-card .sbr-logo { width: 96px; height: 64px; flex: 0 0 96px; }
.sbr-card .sbr-text { align-items: flex-start; flex: 1 1 auto; }
.sbr-card .sbr-tag { -webkit-line-clamp: 2; }
.sbr-card .sbr-badge { top: 6px; left: auto; right: 8px; }

/* premium — taller, softer, more air */
.sbr-premium .sbr-tile { padding: 26px 16px 20px; gap: 8px; }
.sbr-premium .sbr-logo { height: 84px; }
.sbr-premium .sbr-name { font-size: 14.5px; }

/* highlight — featured brands spotlighted above the rest */
.sbr-spotlight { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--sbr-gap); margin-bottom: 18px; }
.sbr-spotlight .sbr-tile { padding: 28px 18px 20px; gap: 8px; }
.sbr-spotlight .sbr-logo { height: 104px; }
.sbr-spotlight .sbr-name { font-size: 15px; }

/* carousel */
.sbr-carousel { position: relative; }
.sbr-track {
  display: flex; gap: var(--sbr-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.sbr-track::-webkit-scrollbar { display: none; }
.sbr-slide { flex: 0 0 calc((100% - var(--sbr-gap) * (var(--sbr-d, 6) - 1)) / var(--sbr-d, 6)); scroll-snap-align: start; min-width: 0; }
.sbr-slide .sbr-tile { height: 100%; }
@media (max-width: 1023px) { .sbr-slide { flex-basis: calc((100% - var(--sbr-gap) * (var(--sbr-t, 4) - 1)) / var(--sbr-t, 4)); } }
@media (max-width: 640px) { .sbr-slide { flex-basis: calc((100% - var(--sbr-gap) * (var(--sbr-m, 2) - 1)) / var(--sbr-m, 2)); } }
.sbr-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-heading); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}
.sbr-arrow.prev { left: -10px; } .sbr-arrow.next { right: -10px; }
.sbr-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (hover: none), (max-width: 640px) { .sbr-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .sbr-tile, .sbr-track { transition: none; scroll-behavior: auto; } .sbr-tile:hover { transform: none; } }

/* default theme skin */
.sbr-default .sbr-tile:hover { border-color: var(--primary); box-shadow: 0 10px 24px rgba(20, 32, 28, .10); }
.sbr-default .sbr-badge { background: var(--secondary-subtle); color: var(--secondary-hover); }
.sbr-default.sbr-d-premium .sbr-tile { border-color: transparent; box-shadow: var(--shadow-sm); }
.sbr-default.sbr-d-premium .sbr-tile:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.sbr-default .sbr-tile.is-featured { border-color: var(--secondary); box-shadow: 0 0 0 3px var(--secondary-subtle); }
.sbr-default .sbr-spotlight .sbr-tile { background: linear-gradient(160deg, var(--primary-subtle), var(--sbr-bg, #fff) 65%); }


/* ===== Mobile (phones): iOS-style premium layer ===== */
.hact-theme { display: none; }
.mbn { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
  .container { padding-left: 16px; padding-right: 16px; }
  html, body { overflow-x: clip; }

  /* header: logo only, on frosted glass. Search / categories / dark mode live in the bottom bar. */
  .site-header { background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(231,244,239,.5)); -webkit-backdrop-filter: saturate(2) blur(22px); backdrop-filter: saturate(2) blur(22px); box-shadow: 0 8px 28px rgba(20,32,28,.06), inset 0 -1px 0 rgba(255,255,255,.6); border-bottom: 1px solid rgba(20,32,28,.06); }
  html.dark .site-header { background: rgba(18,24,22,.55); box-shadow: 0 8px 28px rgba(0,0,0,.35); border-bottom-color: rgba(255,255,255,.07); }
  .header-top { justify-content: center; padding-top: 12px; padding-bottom: 12px; gap: 0; }
  .header-top .logo { font-size: 20px; letter-spacing: -.015em; }
  .header-top .logo .mark { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; box-shadow: 0 6px 16px rgba(15,110,94,.28); }
  .header-top .live-search-wrap, .header-actions, .nav-bar { display: none; }

  /* sections */
  .block { padding: 22px 0; }
  .sec-title { font-size: 19px; letter-spacing: -.01em; }
  .sec-head { margin-bottom: 12px; }
  .hero { padding-top: 14px; gap: 12px; }
  .hero-main { min-height: 220px; padding: 22px; border-radius: 22px; }
  .hero-main h1 { font-size: 24px; }
  .hero-card { min-height: 0; padding: 16px 18px; border-radius: 20px; }
  .pcard { border-radius: 18px; }
  .pcard .name { font-size: 13px; height: 36px; }

  /* floating bottom bar */
  .bottom-nav-sheet { left: 0; right: 0; pointer-events: none; z-index: 700; }
  .bottom-nav-sheet > * { pointer-events: auto; }
  .mbn {
    display: flex; position: relative; isolation: isolate; height: 70px; align-items: stretch;
    margin: 0 14px calc(12px + env(safe-area-inset-bottom)); padding: 7px;
    border-radius: 31px;
    background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.66));
    -webkit-backdrop-filter: saturate(2) blur(26px); backdrop-filter: saturate(2) blur(26px);
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 20px 44px rgba(15,60,50,.22), 0 3px 8px rgba(15,60,50,.08), inset 0 1px 0 #fff;
  }
  .mbn[data-labels="hide"] { height: 62px; }
  html.dark .mbn { background: linear-gradient(180deg, rgba(34,44,40,.8), rgba(24,32,29,.7)); border-color: rgba(255,255,255,.09); box-shadow: 0 20px 44px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07); }
  .mbn-pill {
    position: absolute; z-index: -1; top: 7px; bottom: 7px; left: 7px;
    width: calc((100% - 14px) / var(--mbn-n, 4)); border-radius: 24px;
    background: linear-gradient(180deg, #e8f6f1, #d2ebe3);
    box-shadow: inset 0 0 0 1px rgba(15,110,94,.12), 0 8px 18px rgba(15,110,94,.18);
    opacity: 0; transition: transform .6s cubic-bezier(.34,1.32,.5,1), opacity .25s ease;
  }
  html.dark .mbn-pill { background: linear-gradient(180deg, rgba(46,140,118,.32), rgba(46,140,118,.2)); box-shadow: inset 0 0 0 1px rgba(110,220,190,.18); }
  .mbn-pill.on { opacity: 1; }
  .mbn-item {
    flex: 1; min-width: 0; position: relative; border: none; background: transparent; padding: 0 2px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--text-muted); font-family: inherit; cursor: pointer; text-decoration: none; -webkit-user-select: none; user-select: none;
    transition: color .25s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
  }
  .mbn-item::before {
    content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 22px;
    background: rgba(120,130,125,.13); opacity: 0; transform: scale(.8);
    transition: opacity .3s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
  }
  @media (hover: hover) {
    .mbn-item:hover { color: var(--text-heading); }
    .mbn-item:hover::before { opacity: 1; transform: scale(1); }
    .mbn-item:hover .mbn-ic { transform: translateY(-2px) scale(1.08); }
  }
  .mbn-item:active { transform: scale(.91); }
  .mbn-item:active::before { opacity: 1; transform: scale(1); }
  .mbn-ic { position: relative; display: inline-flex; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
  .mbn-lb { font-size: 11px; font-weight: 600; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mbn-item.is-active { color: var(--primary); }
  html.dark .mbn-item.is-active { color: #6fdcc0; }
  .mbn-item.is-active .mbn-lb { font-weight: 800; }
  .mbn-item.is-active .mbn-ic { transform: translateY(-1px) scale(1.1); }
  .mbn-badge {
    position: absolute; top: -7px; right: -11px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    background: var(--secondary); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px rgba(255,255,255,.95); animation: mbn-pop .5s cubic-bezier(.34,1.8,.5,1);
  }
  html.dark .mbn-badge { box-shadow: 0 0 0 2px rgba(26,34,31,.95); }
  @keyframes mbn-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

  /* checkout: bar tucks away, leaving a small handle */
  .bottom-nav-sheet.checkout { transform: translateY(calc(100% - 30px)); }
  .bn-sheet-handle { background: transparent; border: none; padding: 8px 0 4px; }
  .bn-sheet-grip { width: 40px; height: 5px; background: rgba(120,130,125,.45); }

  .toast-msg { bottom: calc(100px + env(safe-area-inset-bottom)); }
  #miniCartDrawer .mc-panel { border-radius: 24px 24px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mbn-pill, .mbn-item, .mbn-item::before, .mbn-ic, .hact, .nav-inner a { transition: none !important; }
  .mbn-badge { animation: none !important; }
}

/* keep the announcement bar readable in dark mode (text-heading flips to near-white there) */
html.dark .announce { background: #0b1210; color: #e9f1ee; border-bottom: 1px solid rgba(255,255,255,.06); }

/* ===== Mobile nav "আরও" drawer + search sheet (portalled to <body>) ===== */
.mbn-layer { position: fixed; inset: 0; z-index: 900; visibility: hidden; pointer-events: none; transition: visibility 0s linear .6s; }
.mbn-layer.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.mbn-scrim { position: absolute; inset: 0; background: rgba(10,18,15,.42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .45s ease; }
.mbn-layer.open .mbn-scrim { opacity: 1; }
.mbn-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 18px calc(28px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0;
  background: var(--mbn-sheet-bg, rgba(255,255,255,.9)); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  border-top: 1px solid rgba(255,255,255,.8); box-shadow: 0 -24px 60px rgba(10,30,24,.3);
  transform: translate3d(0,105%,0); transition: transform .62s cubic-bezier(.22,1,.36,1); will-change: transform;
}
.mbn-layer.open .mbn-sheet { transform: none; }
.mbn-sheet-head { padding: 10px 0 14px; touch-action: none; cursor: grab; }
.mbn-grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(120,130,125,.45); margin: 0 auto 14px; }
.mbn-sheet-title { display: flex; justify-content: space-between; align-items: baseline; }
.mbn-sheet-title b { font-size: 15px; font-weight: 800; color: var(--text-heading); }
.mbn-sheet-title span { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.mbn-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px 6px; padding-top: 4px; }
.mbn-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; padding: 0;
  font: inherit; font-size: 11px; font-weight: 600; color: var(--text-body); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  text-align: center; line-height: 1.25; opacity: 0;
}
.mbn-layer.open .mbn-tile { animation: mbn-tile .6s cubic-bezier(.34,1.35,.5,1) both; animation-delay: calc(var(--i, 0) * 38ms + 140ms); }
@keyframes mbn-tile { from { opacity: 0; transform: translate3d(0,22px,0) scale(.88); } to { opacity: 1; transform: none; } }
.mbn-tile-ic {
  width: 58px; height: 58px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-style: normal;
  background: var(--surface, #fff); border: 1px solid rgba(20,32,28,.07); color: var(--primary); box-shadow: 0 8px 18px rgba(20,40,34,.08);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.mbn-tile:active .mbn-tile-ic { transform: scale(.9); }
.mbn-tile.is-active .mbn-tile-ic { box-shadow: 0 0 0 2px var(--primary), 0 8px 18px rgba(20,40,34,.1); }
@media (hover: hover) { .mbn-tile:hover .mbn-tile-ic { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(20,40,34,.14); } }
.mbn-tile-ic--whatsapp { background: linear-gradient(145deg,#2fd068,#16a34a); color: #fff; border: 0; }
.mbn-img { object-fit: contain; display: block; border-radius: 6px; }
html.dark .mbn-sheet { --mbn-sheet-bg: rgba(24,32,29,.9); border-top-color: rgba(255,255,255,.08); }
html.dark .mbn-tile-ic { border-color: rgba(255,255,255,.08); }
.mss-layer { position: fixed; inset: 0; z-index: 910; visibility: hidden; pointer-events: none; transition: visibility 0s linear .5s; }
.mss-layer.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.mss-scrim { position: absolute; inset: 0; background: rgba(10,18,15,.38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s ease; }
.mss-layer.open .mss-scrim { opacity: 1; }
.mss-panel {
  position: absolute; left: 0; right: 0; top: 0; padding: calc(14px + env(safe-area-inset-top)) 14px 16px; border-radius: 0 0 28px 28px;
  background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: 0 24px 60px rgba(10,30,24,.28); transform: translate3d(0,-108%,0); transition: transform .55s cubic-bezier(.22,1,.36,1);
}
.mss-layer.open .mss-panel { transform: none; }
.mss-row { display: flex; align-items: flex-start; gap: 8px; }
.mss-row .live-search-wrap { flex: 1; min-width: 0; }
.mss-row .search-wrap input { height: 44px; border-radius: 14px; font-size: 15px; }
.mss-close { flex: none; width: 44px; height: 44px; border-radius: 14px; border: 0; background: rgba(120,130,125,.14); color: var(--text-heading); display: flex; align-items: center; justify-content: center; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.mss-close:active { transform: scale(.9); }
html.dark .mss-panel { background: rgba(24,32,29,.9); }
@media (prefers-reduced-motion: reduce) {
  .mbn-sheet, .mss-panel, .mbn-scrim, .mss-scrim, .mbn-tile-ic { transition: none !important; }
  .mbn-layer.open .mbn-tile { animation: none !important; opacity: 1; }
}
#miniCartDrawer .ship-progress { font-size: 12px; margin-bottom: 14px; }
#miniCartDrawer .ship-progress .sp-row { display: flex; align-items: center; gap: 7px; color: var(--secondary); font-weight: 600; margin-bottom: 8px; }
#miniCartDrawer .ship-progress.done .sp-row { color: var(--primary); }
#miniCartDrawer .ship-progress .sp-track { height: 7px; border-radius: var(--radius-pill); background: var(--primary-subtle); overflow: hidden; }
#miniCartDrawer .ship-progress .sp-fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--secondary), var(--secondary-hover, var(--secondary))); transition: width .5s cubic-bezier(.2,.75,.3,1); }
#miniCartDrawer .ship-progress.done .sp-fill { background: linear-gradient(90deg, var(--primary), var(--primary-hover)); }

/* Trust lines under the cart / checkout button, and small tags on cart lines */
.trust-list { display: grid; gap: 7px; margin-top: 14px; }
.trust-list div { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-body); }
.trust-list svg { color: var(--primary); flex: none; }
.ci-tag { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 2px 7px; margin-right: 6px; }
.ci-tag.ok { background: var(--success-subtle); color: var(--success); }
.ci-tag.promo { background: var(--secondary-subtle); color: #a85f10; }
.sum-row .disc { color: var(--success); font-weight: 600; }

/* Checkout: numbered sections and option rows with a title, a note and a price */
.co-section h4 { display: flex; align-items: center; gap: 8px; }
.co-num { width: 24px; height: 24px; border-radius: 8px; background: var(--primary-subtle); color: var(--primary); display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.pay-opt .pay-txt { flex: 1; text-align: left; display: grid; gap: 2px; }
.pay-opt .pay-txt b { color: var(--text-heading); font-size: 13.5px; }
.pay-opt .pay-txt small { color: var(--text-muted); font-size: 12px; }
.pay-opt .pay-price { font-weight: 700; color: var(--text-heading); }
.pay-opt.pay-choice { width: 100%; background: var(--surface); text-align: left; font-family: inherit; color: inherit; }

/* Sign-in card (login / register / recover): one clean centred card */
.auth-wrap { display: flex; justify-content: center; padding: 36px 0 56px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 26px; text-align: center; box-shadow: var(--shadow-md); }
.auth-h { margin: 0 0 6px; font-size: 24px; color: var(--text-heading); }
.auth-sub { margin: 0 0 18px; color: var(--text-muted); font-size: 13.5px; }
.auth-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); }
.auth-seg button { border: 0; background: none; padding: 10px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--text-muted); cursor: pointer; font-family: inherit; }
.auth-seg button.active { background: var(--primary); color: #fff; box-shadow: 0 2px 6px color-mix(in srgb, var(--primary) 30%, transparent); }
.auth-seg button:disabled { opacity: .45; cursor: not-allowed; }
.auth-note { margin: -6px 0 14px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--secondary-subtle); border: 1px solid color-mix(in srgb, var(--secondary) 35%, var(--border)); color: #8a5a14; font-size: 12.5px; text-align: left; }
.auth-foot { margin: 18px 0 0; font-size: 13px; color: var(--text-muted); }
.auth-foot button { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 700; cursor: pointer; font-family: inherit; font-size: inherit; }
.auth-card .co-section { border: 0; padding: 0; margin: 0; text-align: left; }
.auth-card .btn-primary, .auth-card button[type="submit"].btn-primary { border-radius: 999px; padding: 13px; box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 25%, transparent); }
.auth-card .otp-auth .btn-primary { border-radius: 999px; }
.auth-card .co-field input { border-radius: var(--radius-md); }

/* Account dashboard: calmer sidebar, icon stat tiles, order tracker, filters */
.profile-card .av { background: var(--primary); color: #fff; width: 64px; height: 64px; font-size: 26px; }
.profile-card .pts-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; background: var(--secondary-subtle); color: #a85f10; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.nav-menu { padding: 8px; border-radius: var(--radius-lg); }
.nav-menu button { border: 0 !important; border-radius: 10px; padding: 11px 12px; gap: 11px; font-weight: 500; }
.nav-menu button.active { background: var(--primary-subtle); color: var(--primary); font-weight: 700; border-left: 0 !important; }
.nav-menu .nav-badge { margin-left: auto; font-style: normal; background: var(--secondary); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.nav-menu .nav-out { color: var(--error); }
.acc-stats > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px; }
.acc-stats .ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin: 0; }
.acc-stats .ic.g { background: var(--primary-subtle); color: var(--primary); }
.acc-stats .ic.b { background: var(--info-subtle); color: var(--info); }
.acc-stats .ic.o { background: var(--secondary-subtle); color: #a85f10; }
.acc-stats .ic.r { background: var(--error-subtle); color: var(--error); }
.acc-stats b { font-size: 19px; line-height: 1.1; color: var(--text-heading); }
.acc-stats small { color: var(--text-muted); font-size: 12px; }
.acc-card h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acc-card h4 .small-link { font-size: 12.5px; font-weight: 600; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.otrk { display: flex; align-items: flex-start; margin: 6px 0 2px; }
.otrk-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 11.5px; color: var(--text-muted); text-align: center; }
.otrk-step b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--surface); border: 2px solid var(--border-strong); color: var(--text-muted); position: relative; z-index: 1; }
.otrk-step::before { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: var(--border-strong); }
.otrk-step:first-child::before { display: none; }
.otrk-step.done::before, .otrk-step.now::before { background: var(--primary); }
.otrk-step.done b { background: var(--primary); border-color: var(--primary); color: #fff; }
.otrk-step.now b { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-subtle); }
.otrk-step.now { color: var(--primary); font-weight: 700; }
.acc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.acc-filters button { border: 1.5px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 12.5px; color: var(--text-muted); cursor: pointer; font-family: inherit; }
.acc-filters button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.order-row .ghost-link { border: 1.5px solid var(--border-strong); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: 12.5px; color: var(--text-heading); text-decoration: none; }

/* Mini-cart "সাথে নেবেন?" — suggestions under the cart lines; colours/radii come from the theme tokens. */
#miniCartDrawer .msg { margin: 10px -20px 8px; padding: 12px 20px 6px; background: var(--surface-2); border-top: 1px solid var(--border); animation: msgIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
#miniCartDrawer .msg-h { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
#miniCartDrawer .msg-h b { font-size: 13px; color: var(--text-heading); }
#miniCartDrawer .msg-h small { margin-left: auto; color: var(--text-muted); font-size: 11px; text-align: right; }
#miniCartDrawer .msg-sp { width: 20px; height: 20px; border-radius: 7px; background: var(--primary-subtle); color: var(--primary); display: grid; place-items: center; flex: none; }
#miniCartDrawer .msg-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px; margin-bottom: 7px; transition: border-color .2s, box-shadow .2s; }
#miniCartDrawer .msg-row.top { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--primary) 60%, transparent); }
#miniCartDrawer .msg-th { width: 46px; height: 46px; border-radius: 8px; flex: none; background: var(--primary-subtle); position: relative; overflow: hidden; }
#miniCartDrawer .msg-i { flex: 1; min-width: 0; }
#miniCartDrawer .msg-n { font-size: 12.5px; font-weight: 700; color: var(--text-heading); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#miniCartDrawer .msg-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 3px; }
#miniCartDrawer .msg-p { font-size: 12.5px; font-weight: 800; color: var(--text-heading); }
#miniCartDrawer .msg-off { font-size: 11px; font-weight: 700; color: var(--success); }
#miniCartDrawer .msg-why { font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 1px 8px; white-space: nowrap; background: var(--surface-2); color: var(--text-muted); }
#miniCartDrawer .msg-why.a { background: var(--primary-subtle); color: var(--primary); }
#miniCartDrawer .msg-why.b { background: var(--secondary-subtle); color: var(--secondary-hover); }
#miniCartDrawer .msg-why.c { background: var(--info-subtle); color: var(--info); }
#miniCartDrawer .msg-why.pm { background: var(--error-subtle); color: var(--error); }
#miniCartDrawer .msg-add { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; cursor: pointer; transition: transform .18s, background .2s; }
#miniCartDrawer .msg-add:hover { transform: scale(1.08); }
#miniCartDrawer .msg-add:active { transform: scale(.92); }
#miniCartDrawer .msg-row.added .msg-add { background: var(--success); }
@media (max-width: 760px) {
  #miniCartDrawer .msg { margin: 8px -20px 6px; }
  #miniCartDrawer .msg-list { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
  #miniCartDrawer .msg-list::-webkit-scrollbar { display: none; }
  #miniCartDrawer .msg-row { flex: none; width: 76%; max-width: 280px; margin-bottom: 0; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { #miniCartDrawer .msg { animation: none; } }

/* Free-delivery banner — pinned under the mini-cart header: the amount still needed (big), a bar, and the "you got it" state.
   Also set when the cart holds a product marked "free delivery". Colours come from the theme tokens. */
#miniCartDrawer .fd-banner { position: sticky; top: -8px; z-index: 3; margin: -8px -20px 8px; padding: 13px 20px; background: color-mix(in srgb, var(--secondary) 15%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--secondary) 50%, var(--border)); box-shadow: 0 8px 16px -14px color-mix(in srgb, var(--secondary-hover, var(--secondary)) 70%, transparent); }
#miniCartDrawer .fd-row { display: flex; align-items: center; gap: 12px; }
#miniCartDrawer .fd-ic { width: 40px; height: 40px; border-radius: 13px; background: var(--secondary); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 14px -6px var(--secondary-hover, var(--secondary)); }
#miniCartDrawer .fd-ic svg { width: 21px; height: 21px; }
#miniCartDrawer .fd-tx { min-width: 0; }
#miniCartDrawer .fd-tx b { display: block; font-size: 14px; color: var(--text-heading); line-height: 1.4; font-weight: 700; }
#miniCartDrawer .fd-tx b em { font-style: normal; color: var(--secondary-hover, var(--secondary)); font-size: 18px; font-weight: 800; padding: 0 1px; }
#miniCartDrawer .fd-tx small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
#miniCartDrawer .fd-track { height: 10px; border-radius: 99px; margin-top: 11px; background: color-mix(in srgb, var(--secondary) 24%, var(--surface)); overflow: hidden; }
#miniCartDrawer .fd-fill { height: 100%; border-radius: 99px; min-width: 10px; background: linear-gradient(90deg, var(--secondary), var(--secondary-hover, var(--secondary))); transition: width .5s cubic-bezier(.2,.75,.3,1); }
#miniCartDrawer .fd-banner.done { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border-bottom-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
#miniCartDrawer .fd-banner.done .fd-ic { background: var(--primary); box-shadow: 0 6px 14px -6px var(--primary); }
#miniCartDrawer .fd-banner.done .fd-tx b { color: var(--primary); }
#miniCartDrawer .mc-fd { display: inline-flex; gap: 4px; align-items: center; font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 1px 8px; margin-left: 6px; background: var(--primary-subtle); color: var(--primary); }
#miniCartDrawer .msg-why.fd { background: var(--primary); color: #fff; }
@media (max-width: 760px) {
  #miniCartDrawer .fd-banner { padding: 15px 20px; }
  #miniCartDrawer .fd-ic { width: 46px; height: 46px; border-radius: 15px; }
  #miniCartDrawer .fd-ic svg { width: 24px; height: 24px; }
  #miniCartDrawer .fd-tx b { font-size: 15.5px; }
  #miniCartDrawer .fd-tx b em { font-size: 22px; }
  #miniCartDrawer .fd-tx small { font-size: 12.5px; }
  #miniCartDrawer .fd-track { height: 12px; }
}
