/* ==========================================================================
   ZARAD — wholesale storefront
   Layout & UX patterns inspired by a classic electronics store (announcement bar,
   search header, hero banners, category tiles, product carousels, mobile bottom nav)
   in Zarad's own identity: black, signal-yellow and the red slash of the logo.
   ========================================================================== */
:root {
  --ink: #111113;
  --ink-2: #1c1c20;
  --ink-3: #2a2a30;
  --brand: #ffc400;
  --brand-2: #ffb000;
  --brand-soft: #fff6d6;
  --red: #e30613;
  --red-soft: #fde8ea;
  --green: #16a34a;
  --green-soft: #e8f7ee;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --bg: #f4f4f6;
  --card: #ffffff;
  --line: #e7e7ec;
  --line-2: #d9d9e0;
  --text: #17171b;
  --muted: #6b6b76;
  --muted-2: #9a9aa5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 17, 19, .05), 0 4px 16px rgba(17, 17, 19, .06);
  --shadow-lg: 0 10px 40px rgba(17, 17, 19, .18);
  --wrap: 1280px;
  --font: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  --header-h: 74px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text);
  background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding-inline: 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: background .18s, color .18s, transform .08s, box-shadow .18s; white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark .icon { color: var(--brand); }
.btn-dark:hover { background: #000; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.btn-brand { background: var(--brand); color: var(--ink); }
.btn-brand:hover { background: var(--brand-2); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1fbe5a; }
.btn-ghost { background: #fff; color: var(--text); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-sm { height: 36px; padding-inline: 14px; font-size: 14px; }
.btn-lg { height: 52px; padding-inline: 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--text); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- announcement bar ---------- */
.announce { background: var(--ink); color: #fff; font-size: 13px; overflow: hidden; height: 34px; display: flex; align-items: center; border-bottom: 1px solid #000; }
.announce-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; padding-inline-start: 48px; }
.announce:hover .announce-track { animation-play-state: paused; }
.announce-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; opacity: .95; }
.announce-item .icon { color: var(--brand); width: 15px; height: 15px; fill: var(--brand); stroke: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- header ---------- */
.site-header { background: var(--ink-2); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 6px 18px rgba(0,0,0,.18); }
.hdr { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 44px; width: auto; }
.hdr-menu-btn { display: none; color: #fff; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; }
.hdr-menu-btn:hover { background: rgba(255,255,255,.08); }
.hdr-menu-btn .icon { width: 26px; height: 26px; }

.search { position: relative; flex: 1; max-width: 640px; margin-inline: auto; }
.search form { display: flex; height: 46px; background: #fff; border-radius: 999px; overflow: hidden; border: 2px solid transparent; transition: border-color .15s; }
.search form:focus-within { border-color: var(--brand); }
.search input { flex: 1; border: 0; outline: 0; padding-inline: 20px 12px; min-width: 0; color: var(--text); background: transparent; font-size: 15px; }
.search input::placeholder { color: var(--muted-2); }
.search button { background: var(--brand); color: var(--ink); padding-inline: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.search button:hover { background: var(--brand-2); }
.suggest { position: absolute; inset-inline: 0; top: calc(100% + 8px); background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; border: 1px solid var(--line); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.active { background: var(--bg); }
.suggest img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: #fff; mix-blend-mode: multiply; }
.suggest .s-title { font-weight: 700; font-size: 14px; line-height: 1.4; }
.suggest .s-sub { font-size: 12.5px; color: var(--muted); }
.suggest .s-all { justify-content: center; font-weight: 800; color: var(--ink); background: var(--brand-soft); }

.hdr-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.tier-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: 14px; border-radius: 999px;
  font-weight: 700; font-size: 14px; background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.16);
}
.tier-chip:hover { background: rgba(255,255,255,.14); }
.tier-chip .icon { color: var(--brand); }
.tier-chip.on { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.tier-chip.on .icon { color: var(--ink); }
.tier-chip small { display: block; font-size: 11px; font-weight: 600; opacity: .75; line-height: 1.1; }
.tier-chip .t { display: flex; flex-direction: column; line-height: 1.2; text-align: start; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.08); }
.cart-btn:hover { background: rgba(255,255,255,.16); }
.cart-btn .icon { width: 24px; height: 24px; }
.count-badge {
  position: absolute; top: -3px; inset-inline-end: -3px; min-width: 21px; height: 21px; padding-inline: 5px; border-radius: 999px;
  background: var(--brand); color: var(--ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; line-height: 1; border: 2px solid var(--ink-2);
}
.count-badge:empty, .count-badge[data-n="0"] { display: none; }
.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.25); } 60% { transform: scale(.95); } }

/* category bar (desktop) */
.cat-bar { background: var(--ink); border-top: 1px solid rgba(255,255,255,.06); }
.cat-bar .wrap { display: flex; align-items: center; gap: 4px; height: 48px; }
.cat-bar a, .cat-bar button { color: #e9e9ee; font-weight: 700; font-size: 14.5px; height: 48px; display: inline-flex; align-items: center; gap: 6px; padding-inline: 14px; position: relative; }
.cat-bar a:hover, .cat-bar .dd:hover > button { color: var(--brand); }
.cat-bar .all-btn { background: var(--brand); color: var(--ink); border-radius: 10px; height: 36px; margin-inline-end: 8px; }
.cat-bar .all-btn:hover { color: var(--ink); background: var(--brand-2); }
.cat-bar .spacer { flex: 1; }
.cat-bar .phone { color: #fff; font-weight: 700; }
.cat-bar .phone .icon { color: var(--wa); }
.dd { position: relative; }
.dd-menu {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 240px; background: #fff; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 50;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { color: var(--text); height: auto; padding: 10px 12px; border-radius: 10px; display: flex; justify-content: space-between; font-weight: 600; }
.dd-menu a:hover { background: var(--bg); color: var(--text); }
.dd-menu a span { color: var(--muted-2); font-size: 13px; }

/* ---------- drawer (mobile menu) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10,10,12,.55); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(360px, 88vw); background: #fff; z-index: 91; transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; }
.drawer-head { background: var(--ink-2); padding: 16px; display: flex; align-items: center; justify-content: space-between; }
.drawer-head img { height: 38px; }
.drawer-head button { color: #fff; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.drawer-body { overflow: auto; padding: 8px 8px 24px; flex: 1; }
.drawer h4 { margin: 18px 12px 6px; font-size: 13px; color: var(--muted); font-weight: 800; letter-spacing: .02em; }
.drawer a.dl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 700; }
.drawer a.dl:hover { background: var(--bg); }
.drawer a.dl img { width: 40px; height: 40px; object-fit: contain; mix-blend-mode: multiply; background: #fff; border-radius: 8px; }
.drawer a.dl span { margin-inline-start: auto; color: var(--muted-2); font-size: 13px; font-weight: 600; }

/* ---------- generic sections ---------- */
main { min-height: 60vh; }
.section { padding-block: 28px; }
.section.alt { background: var(--bg); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-title { margin: 0; font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--brand); box-shadow: 4px 0 0 var(--red); }
.sec-head .link .icon { width: 18px; height: 18px; }
.boxed { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 2.05fr 1fr; gap: 14px; padding-top: 16px; }
.slider { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(120deg, #ffffff 0%, #f2f2f4 100%); min-height: 360px; box-shadow: var(--shadow); }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; padding: 34px 38px 46px; position: relative; isolation: isolate; min-height: 360px; }
.slide::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: -40px; width: 34%; background: var(--brand); transform: skewX(-14deg); z-index: -1; }
.slide::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: calc(34% - 52px); width: 14px; background: var(--red); transform: skewX(-14deg); z-index: -1; }
.slide .kicker { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--brand); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.slide .kicker .icon { width: 14px; height: 14px; }
.slide h1, .slide h2 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.25; font-weight: 900; color: var(--ink); }
.slide h1 em, .slide h2 em { font-style: normal; background: linear-gradient(transparent 58%, var(--brand) 58%); padding-inline: 4px; }
.slide p { margin: 0 0 22px; color: #45454e; font-size: 16px; max-width: 46ch; }
.slide .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.slide-art { position: relative; height: 100%; min-height: 280px; }
.art-card { position: absolute; background: #fff; border-radius: 22px; box-shadow: 0 22px 44px rgba(17,17,19,.16), 0 2px 6px rgba(17,17,19,.06); overflow: hidden; aspect-ratio: 1; transition: transform .3s ease; }
.art-card img { width: 100%; height: 100%; object-fit: contain; }
.art-card.main { width: min(62%, 290px); inset-inline-start: 4%; top: 50%; transform: translateY(-50%) rotate(-3deg); z-index: 2; }
.art-card.mini { width: min(40%, 180px); inset-inline-end: 2%; bottom: 2%; transform: rotate(5deg); z-index: 3; border: 4px solid #fff; }
.art-card:hover { transform: translateY(-52%) rotate(-1deg) scale(1.02); }
.art-card.mini:hover { transform: rotate(2deg) scale(1.04); }
@media (max-width: 560px) { .hide-sm { display: none; } .search button { padding-inline: 16px; } }
.dots { position: absolute; bottom: 14px; inset-inline-start: 38px; display: flex; gap: 8px; z-index: 3; }
.dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(17,17,19,.22); transition: width .2s, background .2s; }
.dots button.on { width: 28px; background: var(--ink); }

.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.side-banner { border-radius: 18px; padding: 22px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 172px; box-shadow: var(--shadow); }
.side-banner h3 { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.3; }
.side-banner p { margin: 0 0 10px; font-size: 14px; opacity: .85; max-width: 30ch; }
.side-banner .btn { align-self: flex-start; }
.side-banner .big-icon { position: absolute; inset-inline-end: -14px; bottom: -18px; width: 140px; height: 140px; opacity: .16; }
.side-banner.dark { background: radial-gradient(circle at 15% 0%, #33333b 0%, var(--ink) 60%); color: #fff; }
.side-banner.dark .big-icon { color: var(--brand); opacity: .22; }
.side-banner.yellow { background: linear-gradient(135deg, var(--brand) 0%, #ffd84d 100%); color: var(--ink); }
.side-banner.yellow .big-icon { color: var(--ink); opacity: .12; }

/* ---------- category tiles ---------- */
.cat-strip-wrap { position: relative; }
.cat-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 10px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-tile { scroll-snap-align: start; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.cat-tile .ph { width: 116px; height: 116px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.cat-tile .ph img { width: 92%; height: 92%; object-fit: contain; mix-blend-mode: multiply; }
.cat-tile:hover .ph { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.cat-tile b { font-size: 14px; line-height: 1.35; font-weight: 800; }
.cat-tile small { color: var(--muted); font-size: 12px; margin-top: -6px; }

/* carousel arrows */
.arrows { display: flex; gap: 8px; }
.arrow { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: var(--ink); }
.arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.arrow .icon { width: 18px; height: 18px; }

/* ---------- price access cards (promo cards) ---------- */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.access-card { border-radius: 18px; padding: 24px; position: relative; overflow: hidden; }
.access-card h3 { margin: 0 0 4px; font-size: 21px; font-weight: 900; }
.access-card h3 span { color: var(--red); }
.access-card p { margin: 0 0 16px; color: #4a4a52; font-size: 14.5px; }
.access-card.warm { background: linear-gradient(120deg, #fff4cf 0%, #ffe9a8 100%); }
.access-card.cool { background: linear-gradient(120deg, #eef0f4 0%, #e1e6ee 100%); }
.access-card .deco { position: absolute; inset-inline-end: -30px; top: -30px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(255,255,255,.45); pointer-events: none; }
.code-form { display: flex; gap: 8px; max-width: 440px; position: relative; }
.code-input {
  flex: 1; min-width: 0; height: 48px; border-radius: 12px; border: 2px dashed rgba(17,17,19,.35); background: #fff; padding-inline: 16px;
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase; direction: ltr; text-align: center; font-size: 17px; outline: 0;
}
.code-input:focus { border-style: solid; border-color: var(--ink); }
.code-input::placeholder { letter-spacing: .04em; font-weight: 600; color: var(--muted-2); font-size: 14px; }
.form-error { color: var(--red); font-weight: 700; font-size: 13.5px; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.tier-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tier-state .pill { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 12px; font-weight: 800; }
.tier-state .pill .icon { color: var(--brand); }
.req-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- product cards ---------- */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.carousel > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .2s; position: relative; min-width: 0;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card-media { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; line-height: 1.5; }
.badge-new { background: var(--brand); color: var(--ink); }
.badge-dubai { background: var(--ink); color: var(--brand); }
.badge-china { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.badge-original { background: var(--green-soft); color: var(--green); }
.badge-var { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(17,17,19,.86); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .02em; display: flex; gap: 6px; align-items: center; }
.card-brand .code { direction: ltr; background: var(--bg); color: var(--ink); padding: 0 7px; border-radius: 6px; }
.card-title { font-weight: 800; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-variants { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; }
.spec { display: inline-flex; align-items: center; gap: 3px; background: var(--brand-soft); border: 1.5px dashed #e8b400; color: #6b5100; padding: 0 8px; border-radius: 999px; font-size: 12px; direction: ltr; }
.spec .icon { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.st-ok { color: var(--green); display: inline-flex; align-items: center; gap: 3px; }
.st-ok .icon { width: 14px; height: 14px; stroke-width: 3; }
.st-req { color: #a15c00; }
.st-soon { color: var(--red); }
.card-price { margin-top: auto; padding-top: 4px; min-height: 34px; display: flex; align-items: center; }
.price { font-weight: 900; font-size: 20px; color: var(--ink); display: inline-flex; align-items: baseline; gap: 4px; }
.price small { font-size: 13px; font-weight: 700; color: var(--muted); }
.price .from { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.price-req { font-weight: 800; color: #a15c00; font-size: 14px; }
.price-soon { font-weight: 800; color: var(--red); font-size: 14px; }
.price-lock {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink); background: var(--bg);
  border: 1.5px dashed var(--line-2); padding: 5px 10px; border-radius: 10px; width: 100%; justify-content: center;
}
.price-lock:hover { border-color: var(--ink); background: var(--brand-soft); }
.price-lock .icon { width: 15px; height: 15px; color: var(--red); }
.shimmer { display: inline-block; width: 90px; height: 22px; border-radius: 8px; background: linear-gradient(90deg, #eee 0%, #f8f8f8 50%, #eee 100%); background-size: 200% 100%; animation: shimmer 1.1s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card-action { margin-top: 8px; }
.card-action .btn { width: 100%; height: 42px; }
.in-cart-note { font-size: 12px; color: var(--green); font-weight: 800; text-align: center; margin-top: 6px; }

/* quantity stepper */
.stepper { display: flex; align-items: center; height: 42px; border-radius: 999px; background: var(--ink); color: #fff; overflow: hidden; width: 100%; }
.stepper button { width: 44px; height: 100%; display: grid; place-items: center; color: var(--brand); flex: none; }
.stepper button:hover { background: rgba(255,255,255,.1); }
.stepper button .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.stepper input { flex: 1; min-width: 0; width: 40px; text-align: center; background: transparent; border: 0; color: #fff; font-weight: 800; font-size: 16px; outline: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.light { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.stepper.light button { color: var(--ink); }
.stepper.light button:hover { background: var(--bg); }
.stepper.light input { color: var(--ink); }
.stepper.sm { height: 36px; max-width: 132px; }
.stepper.sm button { width: 36px; }

/* group banners */
.group-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.group-banner { border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 120px; align-items: center; padding: 18px 20px; gap: 10px; transition: box-shadow .2s, transform .2s; position: relative; overflow: hidden; }
.group-banner:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.group-banner h3 { margin: 0; font-size: 20px; font-weight: 900; }
.group-banner p { margin: 2px 0 10px; color: var(--muted); font-size: 13.5px; }
.group-banner img { width: 120px; height: 120px; object-fit: contain; mix-blend-mode: multiply; }
.group-banner .go { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; color: var(--ink); border-bottom: 2px solid var(--brand); padding-bottom: 1px; }
.group-banner .go .icon { width: 16px; height: 16px; }

/* tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { height: 36px; padding-inline: 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-2); font-weight: 800; font-size: 14px; }
.tab:hover { border-color: var(--ink); }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.you-are-in { font-size: 13px; color: var(--muted); font-weight: 700; margin-inline-end: 4px; }

/* chips (most searched) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; height: 38px; padding-inline: 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* features strip */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .fi { width: 50px; height: 50px; border-radius: 14px; background: var(--ink); color: var(--brand); display: grid; place-items: center; flex: none; }
.feature .fi .icon { width: 24px; height: 24px; }
.feature b { display: block; font-size: 15px; font-weight: 900; }
.feature span { font-size: 13px; color: var(--muted); line-height: 1.5; display: block; }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); padding-block: 14px 4px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; }
.crumbs b { color: var(--text); font-weight: 700; }

/* ---------- shop (category) ---------- */
.shop { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; padding-block: 12px 40px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 60px); display: flex; flex-direction: column; gap: 14px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.side-box h4 { margin: 0 0 10px; font-size: 15px; font-weight: 900; }
.side-group { margin-bottom: 8px; }
.side-group > b { display: block; font-size: 12.5px; color: var(--muted); margin: 10px 0 4px; font-weight: 800; }
.side-link { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.side-link span { font-size: 12.5px; color: var(--muted-2); font-weight: 700; }
.side-link:hover { background: var(--bg); }
.side-link.on { background: var(--ink); color: #fff; }
.side-link.on span { color: var(--brand); }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-weight: 700; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.check span { margin-inline-start: auto; color: var(--muted-2); font-size: 12.5px; }
.shop-head h1 { margin: 0; font-size: 26px; font-weight: 900; }
.shop-head p { margin: 4px 0 0; color: var(--muted); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; padding: 10px 12px; background: var(--bg); border-radius: var(--radius); }
.toolbar .count { font-weight: 800; }
.toolbar .grow { flex: 1; }
.toolbar select, .toolbar .mini-search { height: 40px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; padding-inline: 12px; font-weight: 700; outline: 0; }
.toolbar .mini-search { width: 220px; }
.toolbar select:focus, .toolbar .mini-search:focus { border-color: var(--ink); }
.filter-btn { display: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); border: 1px solid #f0d36b; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.active-filters .icon { width: 14px; height: 14px; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; padding-block: 12px 32px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 60px); }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: 18px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 76px; height: 76px; border-radius: 12px; border: 2px solid var(--line); background: #fff; overflow: hidden; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { display: flex; flex-direction: column; gap: 14px; }
.pdp-brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pdp-brand a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--muted); font-size: 13.5px; }
.pdp-brand a .icon { width: 15px; height: 15px; }
.pdp h1 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; font-weight: 900; }
.pdp-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--radius); background: var(--bg); }
.pdp-price .price { font-size: 32px; }
.pdp-price .tier-note { font-size: 13px; color: var(--muted); font-weight: 700; }
.lock-box { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 16px; background: #fff; }
.lock-box b { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 4px; }
.lock-box b .icon { color: var(--red); }
.lock-box p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.opt-label { font-weight: 800; font-size: 14.5px; }
.opt-label span { color: var(--muted); font-weight: 700; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.opt { min-height: 40px; padding: 6px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.opt:hover { border-color: var(--ink); }
.opt.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt .q { background: var(--brand); color: var(--ink); border-radius: 999px; min-width: 20px; height: 20px; font-size: 11.5px; display: grid; place-items: center; padding-inline: 5px; }
.buy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buy-row .stepper { width: 150px; height: 50px; }
.buy-row .btn { flex: 1; height: 50px; min-width: 200px; }
.quick-qty { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); font-weight: 700; }
.quick-qty button { height: 30px; padding-inline: 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 800; font-size: 13px; color: var(--ink); }
.quick-qty button:hover { border-color: var(--ink); }
.facts { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; font-size: 14px; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 700; }
.vtable { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.vtable th { background: var(--ink); color: #fff; font-weight: 800; text-align: start; padding: 10px 12px; font-size: 13px; }
.vtable td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.vtable tr.on td { background: var(--brand-soft); }
.vtable .v-name { display: flex; align-items: center; gap: 10px; font-weight: 800; cursor: pointer; }
.vtable .v-name img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.vtable .v-price { font-weight: 900; white-space: nowrap; }
.vtable .stepper { margin-inline-start: auto; }

/* ---------- cart ---------- */
.page-title { margin: 6px 0 18px; font-size: 26px; font-weight: 900; display: flex; align-items: center; gap: 12px; }
.page-title small { font-size: 15px; color: var(--muted); font-weight: 700; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; padding-bottom: 40px; }
.cart-lines { display: flex; flex-direction: column; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cart-line img { width: 92px; height: 92px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.cl-title { font-weight: 800; line-height: 1.4; }
.cl-var { font-size: 13px; color: var(--muted); font-weight: 700; }
.cl-unit { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.cl-unit b { color: var(--ink); }
.cl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cl-total { font-weight: 900; font-size: 17px; white-space: nowrap; }
.cl-remove { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.cl-remove:hover { color: var(--red); }
.cl-remove .icon { width: 16px; height: 16px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; position: sticky; top: calc(var(--header-h) + 60px); box-shadow: var(--shadow); }
.summary h3 { margin: 0 0 12px; font-size: 18px; font-weight: 900; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; }
.sum-row span { color: var(--muted); font-weight: 700; }
.sum-row b { font-weight: 800; }
.sum-total { border-top: 2px dashed var(--line-2); margin-top: 8px; padding-top: 12px; font-size: 18px; }
.sum-total b { font-size: 24px; font-weight: 900; }
.sum-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 14px; line-height: 1.6; }
.sum-tier { display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; font-weight: 800; font-size: 13.5px; margin-bottom: 12px; }
.sum-tier .icon { color: var(--brand); }
.summary .btn + .btn { margin-top: 10px; }
.empty { text-align: center; padding: 60px 16px; }
.empty .ei { width: 96px; height: 96px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; margin: 0 auto 16px; }
.empty .ei .icon { width: 44px; height: 44px; color: var(--muted); }
.empty h2 { margin: 0 0 6px; font-weight: 900; }
.empty p { color: var(--muted); margin: 0 0 18px; }

/* ---------- checkout ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.form-card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.form-card h3 .icon { color: var(--brand); background: var(--ink); border-radius: 8px; padding: 4px; width: 28px; height: 28px; }
.form-card > p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: 14px; }
.field label i { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  height: 48px; border: 1.5px solid var(--line-2); border-radius: 12px; padding-inline: 14px; background: #fff; outline: 0; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: 96px; padding-block: 10px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,196,0,.25); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); background: #fffafa; }
.field .err { color: var(--red); font-size: 12.5px; font-weight: 700; display: none; }
.field.invalid .err { display: block; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 800; }
.radio-card input { accent-color: var(--ink); width: 18px; height: 18px; }
.radio-card:has(input:checked) { border-color: var(--ink); background: var(--brand-soft); }
.radio-card small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.mini-lines { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow: auto; margin-bottom: 8px; padding-inline-end: 4px; }
.mini-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.mini-line img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mini-line b { font-weight: 800; display: block; line-height: 1.35; }
.mini-line span { color: var(--muted); font-size: 12.5px; }
.mini-line .q { font-weight: 900; white-space: nowrap; }

/* done page */
.done { max-width: 720px; margin: 24px auto 48px; text-align: center; }
.done .ok-ring { width: 92px; height: 92px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.done .ok-ring .icon { width: 46px; height: 46px; stroke-width: 2.6; }
.done h1 { margin: 0 0 6px; font-size: 28px; font-weight: 900; }
.done p { color: var(--muted); margin: 0 0 18px; }
.order-preview { text-align: start; background: #f0f2f5; border-radius: 16px; padding: 16px; white-space: pre-wrap; font-size: 14px; line-height: 1.7; max-height: 380px; overflow: auto; border: 1px solid var(--line); margin: 18px 0; }
.done .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- modal / sheet ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,10,12,.6); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .18s ease; }
.modal { background: #fff; border-radius: 20px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); animation: pop .22s ease; position: relative; }
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0; gap: 12px; }
.modal-head h3 { margin: 0; font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.modal-head h3 .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--ink); color: var(--brand); }
.modal-x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); flex: none; }
.modal-x:hover { background: var(--line); }
.modal-body { padding: 16px 20px 22px; }
.tier-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 16px; }
.tier-info div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); }
.tier-info b { display: block; font-size: 14px; }
.tier-info span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.modal .code-form { max-width: none; }
.modal .code-form .btn { height: 48px; }
.modal-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qv { display: grid; grid-template-columns: 260px 1fr; gap: 20px; }
.qv-img { background: #fff; border: 1px solid var(--line); border-radius: 16px; aspect-ratio: 1; overflow: hidden; }
.qv-img img { width: 100%; height: 100%; object-fit: contain; }
.qv h4 { margin: 0 0 4px; font-size: 18px; font-weight: 900; line-height: 1.4; }
.qv .qv-sub { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.qv-rows { display: flex; flex-direction: column; gap: 8px; }
.qv-row { display: grid; grid-template-columns: 1fr auto 132px; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.qv-row.on { border-color: var(--ink); background: var(--brand-soft); }
.qv-row b { font-weight: 800; font-size: 14px; line-height: 1.35; }
.qv-row .v-price { font-weight: 900; white-space: nowrap; font-size: 14.5px; }
.qv-total { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-weight: 800; flex-wrap: wrap; gap: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* tier menu (popover) */
.tier-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 290px; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px; z-index: 60; border: 1px solid var(--line); }
.tier-menu b { display: block; font-size: 15px; }
.tier-menu p { margin: 2px 0 12px; color: var(--muted); font-size: 13px; }
.tier-menu .btn { width: 100%; }
.tier-menu .btn + .btn { margin-top: 8px; }

/* ---------- toast ---------- */
#toast-root { position: fixed; z-index: 120; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: pop .2s ease; pointer-events: auto; font-size: 14.5px; }
.toast .icon { color: var(--brand); }
.toast.ok .icon { color: var(--wa); }
.toast.err .icon { color: #ff6b6b; }
.toast a { color: var(--brand); font-weight: 800; text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c9c9d1; margin-top: 32px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 28px; padding-block: 40px 28px; }
.foot-top img { height: 52px; width: auto; margin-bottom: 14px; }
.foot-top p { margin: 0 0 14px; font-size: 14px; line-height: 1.8; }
.foot-top h4 { color: #fff; margin: 0 0 12px; font-size: 15px; font-weight: 900; }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.foot-top a:hover { color: var(--brand); }
.foot-wa { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px 14px; color: #fff; font-weight: 800; }
.foot-wa .icon { width: 26px; height: 26px; color: var(--wa); }
.foot-wa small { display: block; font-size: 12px; color: #a9a9b3; font-weight: 600; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 16px; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.foot-bottom .slash { display: inline-block; width: 26px; height: 4px; background: var(--brand); border-radius: 2px; box-shadow: 30px 0 0 var(--red); margin-inline-end: 36px; vertical-align: middle; }

/* ---------- mobile bottom nav + whatsapp float ---------- */
.bottom-nav { display: none; }
.wa-float { position: fixed; z-index: 45; bottom: 22px; inset-inline-end: 22px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .carousel { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
}
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .shop { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: auto 0 0 0; top: auto; z-index: 95; background: #fff; max-height: 82vh; overflow: auto; padding: 16px; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); transform: translateY(105%); transition: transform .25s ease; }
  .filters-open .sidebar { transform: none; }
  .filters-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  .filter-btn { display: inline-flex; }
  .sidebar .close-filters { display: flex; }
  .pdp { grid-template-columns: 1fr; gap: 20px; }
  .gallery { position: static; max-width: 560px; width: 100%; margin-inline: auto; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .group-banners { grid-template-columns: 1fr 1fr; }
}
.sidebar .close-filters { display: none; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sidebar .close-filters b { font-size: 18px; font-weight: 900; }

@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .cat-bar { display: none; }
  .hdr { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 10px; row-gap: 10px; }
  .hdr-menu-btn { display: inline-flex; }
  .logo img { height: 34px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .search form { height: 44px; }
  .hdr-actions { margin-inline-start: auto; }
  .tier-chip .t small { display: none; }
  .tier-chip { height: 38px; padding-inline: 12px; font-size: 13px; }
  .cart-btn { display: none; }
  .carousel { grid-auto-columns: calc((100% - 2 * 12px) / 2.6); gap: 12px; }
  body { padding-bottom: 74px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 46; background: #fff; height: 66px;
    box-shadow: 0 -6px 24px rgba(0,0,0,.08); border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); align-items: center;
  }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: var(--muted); height: 100%; position: relative; }
  .bottom-nav .icon { width: 23px; height: 23px; }
  .bottom-nav .on { color: var(--ink); }
  .bottom-nav .on .icon { color: var(--ink); }
  .bottom-nav .bn-cart { position: relative; }
  .bottom-nav .bn-cart span.fab { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: var(--brand); display: grid; place-items: center; margin-top: -34px; box-shadow: 0 8px 20px rgba(0,0,0,.25); border: 4px solid #fff; position: relative; }
  .bottom-nav .bn-cart .count-badge { top: -2px; inset-inline-end: -4px; border-color: #fff; }
  .bottom-nav .bn-lock.unlocked .icon { color: var(--green); }
  .wa-float { bottom: 86px; inset-inline-end: 14px; width: 50px; height: 50px; }
  #toast-root { bottom: 92px; }
}
@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; padding: 22px 20px 44px; min-height: 0; }
  .slide::before { width: 100%; inset-inline-end: 0; top: 0; bottom: auto; height: 210px; transform: none; clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%); }
  .slide::after { display: none; }
  .slide-art { min-height: 220px; order: -1; margin-bottom: 8px; }
  .art-card.main { width: 58%; max-width: 220px; inset-inline-start: 10%; }
  .art-card.mini { width: 38%; max-width: 140px; inset-inline-end: 8%; }
  .slide p { font-size: 14.5px; margin-bottom: 16px; }
  .dots { inset-inline-start: 20px; }
  .slider, .slide { min-height: 0; }
  .hero-side { grid-template-columns: 1fr; }
  .side-banner { min-height: 0; padding: 18px; }
  .access { grid-template-columns: 1fr; }
  .group-banners { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: 14px; }
  .price { font-size: 18px; }
  .card-action .btn { height: 40px; font-size: 14px; padding-inline: 10px; }
  .stepper { height: 40px; }
  .stepper button { width: 38px; }
  .sec-title { font-size: 19px; }
  .section { padding-block: 22px; }
  .features { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line img { width: 72px; height: 72px; }
  .cl-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .fields, .radio-cards, .tier-info { grid-template-columns: 1fr; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { border-radius: 22px 22px 0 0; max-height: 92vh; width: 100%; }
  .qv { grid-template-columns: 1fr; }
  .qv-img { max-width: 220px; margin-inline: auto; width: 100%; }
  .qv-row { grid-template-columns: 1fr auto; }
  .qv-row .stepper { grid-column: 1 / -1; max-width: none; }
  .vtable thead { display: none; }
  .vtable tr { display: grid; grid-template-columns: 1fr auto; }
  .vtable td { border-top: 0; }
  .vtable tr + tr td:first-child, .vtable tr + tr td:nth-child(2) { border-top: 1px solid var(--line); }
  .vtable td:last-child { grid-column: 1 / -1; padding-top: 0; }
  .vtable .stepper { max-width: none; }
  .toolbar .mini-search { width: 100%; order: 5; }
  .page-title { font-size: 22px; }
  .buy-row .stepper { width: 130px; }
  .buy-row .btn { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .announce-track { animation: none; }
}
