/* KitaiBlg — Dark Neo-Modern / Glassmorphism */
:root {
  --bg: #0d0f12;
  --bg-2: #12151a;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-hi: rgba(255, 255, 255, 0.16);
  --text: #e7ecf1;
  --muted: #8f9ba7;
  --accent: #4bd6c4;
  --accent-2: #a78bfa;
  --sale: #ff5c7c;
  --gold: #e0973f;
  --ok: #57b98a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.55);
  --header-h: 60px;
  --maxw: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(75, 214, 196, 0.10), transparent 60%),
    radial-gradient(800px 500px at 92% 4%, rgba(167, 139, 250, 0.10), transparent 55%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
input, select, textarea { font: inherit; }
::selection { background: var(--accent); color: #04211d; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
[hidden] { display: none !important; }

/* ---------- glass primitives ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--border);
  font-size: 13px; white-space: nowrap; transition: 0.18s;
}
.chip:hover { border-color: var(--border-hi); }
.chip.active {
  background: rgba(75, 214, 196, 0.14);
  border-color: rgba(75, 214, 196, 0.5);
  color: var(--accent);
  box-shadow: 0 0 16px -4px rgba(75, 214, 196, 0.4);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: var(--accent); color: #04211d; font-weight: 650;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover { box-shadow: 0 8px 26px -8px rgba(75, 214, 196, 0.6); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.ghost { background: var(--glass); color: var(--text); border: 1px solid var(--border-hi); }
.btn.ghost:hover { box-shadow: none; background: var(--glass-strong); }
.btn.full { width: 100%; }
.btn.sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: 0.55; pointer-events: none; }
.btn.added { background: var(--ok); color: #04231a; }

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: flex; flex-direction: column; gap: 5px;
}
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 8px; border-radius: 7px; width: fit-content;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px);
}
.tag.sale { background: var(--sale); color: #fff; }
.tag.hit { background: var(--gold); color: #241300; }
.tag.new { background: var(--accent); color: #04211d; }

.stars { display: inline-flex; gap: 1px; color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.stars .off { color: rgba(255, 255, 255, 0.18); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(13, 15, 18, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.header .wrap { display: flex; align-items: center; gap: 16px; height: 100%; }
.logo { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; flex: none; }
.logo b { color: var(--accent); }
.logo .dot { color: var(--accent-2); }
.search-box { flex: 1; position: relative; max-width: 460px; }
.search-box input {
  width: 100%; padding: 10px 14px 10px 38px; border-radius: 11px;
  background: var(--glass); border: 1px solid var(--border); color: var(--text);
  outline: none; transition: 0.18s;
}
.search-box input:focus { border-color: rgba(75, 214, 196, 0.5); background: var(--glass-strong); }
.search-box .ico { position: absolute; left: 13px; top: 11px; opacity: 0.55; }
.search-drop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  max-height: 60vh; overflow-y: auto; padding: 6px;
}
.search-drop a {
  display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px;
}
.search-drop a:hover { background: var(--glass-strong); }
.search-drop img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; transition: 0.18s;
}
.icon-btn:hover { background: var(--glass); }
.icon-btn .count {
  position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: #04211d; font-size: 11px; font-weight: 800;
  border-radius: 999px; display: grid; place-items: center;
  transform: scale(0); transition: transform 0.25s cubic-bezier(0.5, 1.6, 0.5, 1);
}
.icon-btn .count.show { transform: scale(1); }

/* ---------- layout ---------- */
main { padding: 26px 0 90px; min-height: 60vh; }
.screen { animation: fade 0.35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.section { margin-bottom: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; letter-spacing: -0.01em; }
.section-head a { font-size: 13px; color: var(--muted); }
.section-head a:hover { color: var(--accent); }

/* ---------- hero slider ---------- */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; height: 300px; }
.hero-track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-slide {
  min-width: 100%; position: relative; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 30px; color: #fff;
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.15));
}
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide h3, .hero-slide p { position: relative; z-index: 2; }
.hero-slide h3 { font-size: 28px; margin-bottom: 6px; letter-spacing: -0.02em; text-wrap: balance; }
.hero-slide p { color: rgba(255, 255, 255, 0.82); max-width: 60%; }
.hero-dots { position: absolute; bottom: 16px; right: 24px; z-index: 3; display: flex; gap: 7px; }
.hero-dots i {
  width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.35); cursor: pointer;
}
.hero-dots i.on { background: #fff; width: 20px; }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile {
  padding: 22px 18px; text-align: center; transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-hi); }
.cat-tile .emo { font-size: 30px; }
.cat-tile span { display: block; margin-top: 8px; font-weight: 600; font-size: 14px; }

/* ---------- product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { position: relative; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-hi); }
.pcard .thumb { position: relative; aspect-ratio: 1; overflow: hidden; }
.pcard .thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s, transform 0.4s;
}
.pcard .thumb img.hover { opacity: 0; }
.pcard:hover .thumb img.base { opacity: 0; }
.pcard:hover .thumb img.hover { opacity: 1; transform: scale(1.04); }
.pcard .quick {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); opacity: 0; transform: translateY(6px);
  transition: 0.2s;
}
.pcard:hover .quick { opacity: 1; transform: none; }
.pcard .fav {
  position: absolute; top: 10px; right: 10px; z-index: 3; font-size: 17px;
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); transition: 0.18s;
}
.pcard .fav.on { color: var(--sale); }
.pcard .body { padding: 13px 14px 15px; }
.pcard .name { font-size: 13.5px; line-height: 1.4; height: 38px; overflow: hidden; margin-bottom: 7px; }
.pcard .meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 11px; }
.price { font-size: 17px; font-weight: 750; }
.price.old { font-size: 12.5px; font-weight: 400; color: var(--muted); text-decoration: line-through; }

/* ---------- carousel ---------- */
.carousel { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 999px; }
.carousel .pcard { min-width: 230px; scroll-snap-align: start; }

/* ---------- catalog ---------- */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); padding: 18px; }
.sidebar h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 18px 0 10px; }
.sidebar h4:first-child { margin-top: 0; }
.range-row { display: flex; gap: 8px; }
.range-row input {
  width: 100%; padding: 8px 10px; border-radius: 9px; background: var(--glass);
  border: 1px solid var(--border); color: var(--text); outline: none;
}
.check { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13.5px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.toolbar select {
  padding: 9px 12px; border-radius: 10px; background: var(--glass); border: 1px solid var(--border); color: var(--text); outline: none;
}
.tagbar { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 6px; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-bottom: 44px; }
.gallery .main {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); cursor: zoom-in;
}
.gallery .main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery .thumbs img {
  width: 66px; height: 66px; border-radius: 10px; object-fit: cover; cursor: pointer;
  border: 1px solid var(--border); opacity: 0.6; transition: 0.18s;
}
.gallery .thumbs img.on { opacity: 1; border-color: var(--accent); }
.pinfo h1 { font-size: 25px; letter-spacing: -0.02em; margin-bottom: 8px; text-wrap: balance; }
.pinfo .sku { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.pinfo .big-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.pinfo .big-price .now { font-size: 30px; font-weight: 800; }
.pinfo .big-price .was { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.pinfo .big-price .save { font-size: 12px; color: var(--sale); background: rgba(255,92,124,0.14); padding: 3px 8px; border-radius: 7px; }
.variant-group { margin: 16px 0; }
.variant-group .lbl { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.vopt {
  min-width: 46px; padding: 9px 13px; border-radius: 10px; text-align: center;
  background: var(--glass); border: 1px solid var(--border); font-size: 13px; transition: 0.16s;
}
.vopt.on { border-color: var(--accent); color: var(--accent); background: rgba(75,214,196,0.12); }
.vopt.dis { opacity: 0.3; text-decoration: line-through; pointer-events: none; }
.stock-bar { height: 5px; border-radius: 999px; background: var(--glass-strong); margin: 14px 0 6px; overflow: hidden; }
.stock-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sale), var(--gold)); }
.buy-row { display: flex; gap: 12px; margin-top: 18px; }

/* tabs */
.tabs { border-top: 1px solid var(--border); }
.tab-heads { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 0; }
.tab-heads button {
  padding: 14px 16px; font-size: 14px; color: var(--muted); position: relative; transition: color 0.18s;
}
.tab-heads button.on { color: var(--text); }
.tab-heads button.on::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.tab-body { padding: 20px 2px; animation: fade 0.3s both; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr:nth-child(odd) { background: var(--glass); }
.spec-table td { padding: 10px 14px; }
.spec-table td:first-child { color: var(--muted); width: 42%; }

/* reviews */
.rev-summary { display: flex; gap: 26px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.rev-big { font-size: 44px; font-weight: 800; line-height: 1; }
.rev-bars { flex: 1; min-width: 200px; }
.rev-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.rev-bar .track { flex: 1; height: 6px; background: var(--glass-strong); border-radius: 999px; overflow: hidden; }
.rev-bar .track i { display: block; height: 100%; background: var(--gold); }
.review { padding: 16px 0; border-top: 1px solid var(--border); }
.review .top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.review .who { font-weight: 600; font-size: 13.5px; }
.review .date { font-size: 12px; color: var(--muted); }

/* ---------- cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: 400px; max-width: 92vw;
  background: var(--bg-2); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.drawer.show { transform: none; }
.drawer .d-head { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid var(--border); }
.drawer .d-body { flex: 1; overflow-y: auto; padding: 12px 18px; }
.drawer .d-foot { padding: 18px; border-top: 1px solid var(--border); }
.citem { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.citem img { width: 66px; height: 66px; border-radius: 10px; object-fit: cover; flex: none; }
.citem .c-mid { flex: 1; min-width: 0; }
.citem .c-name { font-size: 13px; line-height: 1.4; margin-bottom: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.qty button { width: 28px; height: 28px; display: grid; place-items: center; }
.qty span { width: 30px; text-align: center; font-size: 13px; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.sum-row.total { font-size: 18px; font-weight: 750; margin: 12px 0 16px; }

/* ---------- modal ---------- */
.modal-wrap {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
.modal-wrap.show { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 460px; padding: 24px; max-height: 88vh; overflow-y: auto;
  transform: scale(0.94); transition: transform 0.24s;
}
.modal-wrap.show .modal { transform: none; }
.modal h3 { margin-bottom: 14px; font-size: 19px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--border); color: var(--text); outline: none;
}
.field input:focus, .field textarea:focus { border-color: rgba(75, 214, 196, 0.5); }
.pick-stars { font-size: 26px; color: rgba(255,255,255,0.2); display: flex; gap: 4px; }
.pick-stars i { cursor: pointer; transition: 0.12s; }
.pick-stars i.on, .pick-stars i:hover { color: var(--gold); }

/* ---------- delivery options ---------- */
.del-list { display: flex; flex-direction: column; gap: 8px; }
.del-opt {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--glass); cursor: pointer;
  transition: 0.15s;
}
.del-opt.on { border-color: var(--accent); background: rgba(75, 214, 196, 0.08); }
.del-opt input { accent-color: var(--accent); flex: none; }
.del-opt .d-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.del-opt .d-mid b { font-size: 13.5px; }
.del-opt .d-mid span { font-size: 11.5px; }
.del-opt .d-price { font-weight: 650; font-size: 13.5px; white-space: nowrap; }

/* ---------- order tracking ---------- */
.track-line { display: flex; justify-content: space-between; margin: 6px 0 16px; position: relative; }
.track-line::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 6px; height: 2px; background: var(--glass-strong); z-index: 0;
}
.track-line .ts { display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1; flex: 1; }
.track-line .ts i { width: 13px; height: 13px; border-radius: 999px; background: var(--surface-2); border: 2px solid var(--line-strong, var(--border-hi)); }
.track-line .ts.done i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px -2px var(--accent); }
.track-line .ts span { font-size: 10.5px; color: var(--muted); text-align: center; }
.track-line .ts.done span { color: var(--text); }
.eta-badge {
  background: rgba(75, 214, 196, 0.1); border: 1px solid rgba(75, 214, 196, 0.3);
  border-radius: 10px; padding: 9px 12px; font-size: 13px; margin: 4px 0;
}
.delivery-hint { font-size: 12px; color: var(--muted); margin-top: 10px; display: flex; gap: 6px; align-items: center; }

/* ---------- skeleton ---------- */
.skel { background: linear-gradient(90deg, var(--glass) 25%, var(--glass-strong) 37%, var(--glass) 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skel-card { border-radius: var(--radius); overflow: hidden; }
.skel-card .s-img { aspect-ratio: 1; }
.skel-card .s-line { height: 12px; margin: 12px 14px; }

/* ---------- empty / toast ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .emo { font-size: 46px; margin-bottom: 12px; }
.toast-host { position: fixed; left: 50%; bottom: 90px; z-index: 200; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 11px 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-hi);
  font-size: 13.5px; box-shadow: var(--shadow); animation: toastIn 0.3s both;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- support fab ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: #04211d; font-size: 22px; box-shadow: 0 10px 30px -8px rgba(75, 214, 196, 0.6);
  transition: transform 0.18s;
}
.fab:hover { transform: scale(1.08); }

/* ---------- bottom nav (mini app) ---------- */
.bottom-nav { display: none; }
body.tg .header .search-box { display: none; }
body.tg .fab { bottom: 84px; }
body.tg .bottom-nav {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(13, 15, 18, 0.9); border-top: 1px solid var(--border);
  backdrop-filter: blur(18px); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 0; font-size: 10.5px; color: var(--muted); position: relative;
}
.bottom-nav button .bi { font-size: 19px; }
.bottom-nav button.on { color: var(--accent); }
.bottom-nav button .count {
  position: absolute; top: 2px; right: 50%; margin-right: -22px;
  min-width: 15px; height: 15px; padding: 0 3px; background: var(--sale); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 999px; display: grid; place-items: center;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .hero { height: 220px; }
  .hero-slide h3 { font-size: 21px; }
  .hero-slide p { max-width: 90%; font-size: 13px; }
  .section-head h2 { font-size: 17px; }
  main { padding: 18px 0 100px; }
  .pcard .name { font-size: 12.5px; }
  .drawer { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
