/* HARDTRAC Shop — light, fast, Amazon-style design system
   Brand red #D00E0F on clean white. Optimised for speed: system fonts,
   minimal shadows, GPU-friendly transitions. */
:root {
  --brand: #d00e0f;
  --brand-dark: #a50b0c;
  --brand-soft: #fdecec;
  --ink: #0f1111;
  --ink-2: #565959;
  --ink-3: #8a8f8f;
  --line: #e3e6e6;
  --line-2: #d5d9d9;
  --bg: #ffffff;
  --bg-2: #f7f8f8;
  --bg-3: #eef1f1;
  --star: #ffa41c;
  --green: #007600;
  --deal: #cc0c39;
  --link: #007185;
  --link-hover: #c7511f;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(15,17,17,.08);
  --shadow: 0 2px 10px rgba(15,17,17,.10);
  --shadow-lg: 0 6px 24px rgba(15,17,17,.14);
  --maxw: 1480px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg-2); color: var(--ink);
  font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: var(--brand-soft); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.link { color: var(--link); } .link:hover { color: var(--link-hover); text-decoration: underline; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); }

/* ---------- top header ---------- */
.hdr { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.hdr-main { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand-logo { height: 38px; width: auto; flex-shrink: 0; }
.brand-logo img { height: 100%; width: auto; }
.search-box {
  flex: 1; max-width: 720px; display: flex; height: 42px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: #fff; box-shadow: 0 0 0 1px var(--line-2);
  transition: box-shadow .15s;
}
.search-box:focus-within { box-shadow: 0 0 0 2px var(--brand); border-color: var(--brand); }
.search-box select {
  background: var(--bg-3); border: none; padding: 0 10px; font-size: 12.5px; color: var(--ink-2);
  border-right: 1px solid var(--line-2); max-width: 130px; cursor: pointer;
}
.search-box input { flex: 1; border: none; outline: none; padding: 0 14px; font-size: 15px; min-width: 0; }
.search-box button {
  background: var(--brand); color: #fff; width: 48px; display: grid; place-items: center;
  transition: background .15s;
}
.search-box button:hover { background: var(--brand-dark); }
.search-box button svg { width: 20px; height: 20px; }
.hdr-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.hdr-btn {
  display: flex; flex-direction: column; padding: 6px 10px; border-radius: 8px; line-height: 1.2;
  transition: background .12s; position: relative; white-space: nowrap;
}
.hdr-btn:hover { background: var(--bg-3); }
.hdr-btn .t1 { font-size: 11.5px; color: var(--ink-2); }
.hdr-btn .t2 { font-size: 13.5px; font-weight: 700; }
.hdr-cart { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px; transition: background .12s; position: relative; }
.hdr-cart:hover { background: var(--bg-3); }
.hdr-cart svg { width: 26px; height: 26px; }
.cart-count {
  position: absolute; top: 0; left: 24px; background: var(--brand); color: #fff; font-size: 12px;
  font-weight: 800; min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px;
}
/* sub nav */
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; gap: 4px; height: 40px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { padding: 6px 11px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: background .12s; }
.subnav a:hover { background: var(--bg-3); }
.subnav a.deals { color: var(--brand); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: background .14s, box-shadow .14s, transform .08s; border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-amber { background: #ffd814; color: #0f1111; border-color: #fcd200; }
.btn-amber:hover { background: #f7ca00; }
.btn-outline { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { background: var(--bg-2); border-color: var(--ink-3); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); border-bottom: 1px solid var(--line); }
.hero-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center;
  padding: 36px 0; min-height: 240px;
}
.hero h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 12px; }
.hero h1 .accent { color: var(--brand); }
.hero p { font-size: 16px; color: var(--ink-2); max-width: 480px; margin-bottom: 20px; }
.hero-badges { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.hero-badge .n { font-size: 22px; font-weight: 800; color: var(--brand); }
.hero-badge .l { font-size: 12.5px; color: var(--ink-2); }
.hero-visual {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
}
.hero-tile { display: flex; flex-direction: column; gap: 7px; text-decoration: none; transition: transform .14s; }
.hero-tile:hover { transform: translateY(-3px); }
.hero-tile-imgwrap { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; border: 1px solid var(--line); }
.hero-tile-img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 8px; }
.hero-tile-glyph { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; font-size: 30px; }
.hero-tile-label { font-size: 12px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.3; }

/* ---------- layout: catalog ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; padding: 22px 0 60px; }
.filters { position: sticky; top: 110px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.filter-group { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: 13.5px; font-weight: 800; margin-bottom: 10px; }
.filter-list { display: flex; flex-direction: column; gap: 3px; max-height: 230px; overflow-y: auto; }
.filter-opt { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 6px; border-radius: 6px; cursor: pointer; color: var(--ink); transition: background .1s; }
.filter-opt:hover { background: var(--bg-2); }
.filter-opt.on { color: var(--brand); font-weight: 600; }
.filter-opt .c { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.filter-opt input { accent-color: var(--brand); }
.price-row { display: flex; gap: 8px; align-items: center; }
.price-row input { width: 100%; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 7px; font-size: 13px; }
.star-row { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.star-row:hover { background: var(--bg-2); }

/* ---------- results bar ---------- */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.results-bar h2 { font-size: 17px; font-weight: 700; }
.results-bar .sub { font-size: 13px; color: var(--ink-2); }
.sort-sel { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; background: #fff; cursor: pointer; }

/* ---------- product grid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .16s, transform .12s, border-color .16s;
  position: relative;
}
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--line-2); }
.pcard-imgwrap {
  aspect-ratio: 1; background: #fff; display: grid; place-items: center; position: relative;
  border-bottom: 1px solid var(--bg-3); overflow: hidden; padding: 14px;
}
.pcard-glyph {
  width: 100%; height: 100%; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: 40px; letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}
/* real product photos (Amazon) sit on white, contained like Amazon listings */
img.pcard-glyph { object-fit: contain; background: #fff; padding: 4px; }
.pdp-real-img { width: 100%; height: 100%; object-fit: contain; }
.pcard-deal { position: absolute; top: 10px; left: 10px; background: var(--deal); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 5px; z-index: 2; }
.pcard-fav {
  position: absolute; top: 9px; right: 9px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; z-index: 2; color: var(--ink-3);
  box-shadow: var(--shadow-sm); transition: color .12s, transform .12s;
}
.pcard-fav:hover { transform: scale(1.1); color: var(--brand); }
.pcard-fav.on { color: var(--brand); }
.pcard-fav svg { width: 17px; height: 17px; }
.pcard-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pcard-brand { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.pcard-name { font-size: 13.5px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.pcard-name:hover { color: var(--link-hover); }
.pcard-rating { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.stars { color: var(--star); letter-spacing: .5px; font-size: 13px; }
.rc { color: var(--link); font-size: 12px; }
.pcard-price { display: flex; align-items: baseline; gap: 7px; margin-top: 2px; }
.price-now { font-size: 19px; font-weight: 700; }
.price-now .cur { font-size: 12px; font-weight: 600; vertical-align: top; }
.price-was { font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; }
.price-off { font-size: 12px; color: var(--deal); font-weight: 700; }
.pcard-meta { font-size: 11.5px; color: var(--green); font-weight: 600; }
.pcard-actions { margin-top: auto; padding-top: 8px; }

/* ---------- skeleton ---------- */
.skel { background: linear-gradient(100deg, var(--bg-2) 30%, var(--bg-3) 50%, var(--bg-2) 70%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 12px; }
@keyframes sh { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel-card { aspect-ratio: .62; }

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pager button { min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-size: 13.5px; font-weight: 600; transition: background .12s; }
.pager button:hover:not([disabled]):not(.on) { background: var(--bg-2); }
.pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager button[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); transition: all .12s; cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.chip .x { margin-left: 5px; font-weight: 700; }

/* ---------- product detail page ---------- */
.pdp { padding: 22px 0 60px; }
.crumbs { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a:hover { color: var(--link-hover); text-decoration: underline; }
.pdp-grid { display: grid; grid-template-columns: 42% 1fr 320px; gap: 28px; align-items: start; }
.pdp-gallery { position: sticky; top: 110px; }
.pdp-main-img { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; overflow: hidden; padding: 28px; }
.pdp-main-img .glyph { width: 100%; height: 100%; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 84px; background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); }
.pdp-thumbs { display: flex; gap: 9px; margin-top: 12px; }
.pdp-thumb { width: 62px; height: 62px; border-radius: 9px; border: 2px solid var(--line); background: var(--bg-2); display: grid; place-items: center; font-weight: 800; color: var(--ink-3); cursor: pointer; transition: border-color .12s; }
.pdp-thumb.on, .pdp-thumb:hover { border-color: var(--brand); }
.pdp-title { font-size: 22px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.pdp-brand-link { color: var(--link); font-size: 13.5px; margin-bottom: 8px; display: inline-block; }
.pdp-brand-link:hover { color: var(--link-hover); text-decoration: underline; }
.pdp-rating-row { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.pdp-price-block { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; }
.pdp-price .now { font-size: 30px; font-weight: 700; }
.pdp-price .now .cur { font-size: 15px; vertical-align: top; font-weight: 600; }
.pdp-price .was { color: var(--ink-3); text-decoration: line-through; font-size: 15px; }
.pdp-price .off { background: var(--deal); color: #fff; padding: 2px 9px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.pdp-tax { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.pdp-section { margin-bottom: 18px; }
.pdp-section h3 { font-size: 15px; font-weight: 800; margin-bottom: 9px; }
.pdp-desc { font-size: 14px; line-height: 1.65; color: var(--ink); }
.pdp-feats { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.pdp-feats li { display: flex; gap: 9px; font-size: 13.5px; align-items: flex-start; }
.pdp-feats li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.spec-table tr:nth-child(odd) { background: var(--bg-2); }
.spec-table td { padding: 9px 13px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { font-weight: 700; width: 42%; color: var(--ink-2); }
.spec-table tr:last-child td { border-bottom: none; }

/* buy box */
.buybox { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; position: sticky; top: 110px; }
.buybox .bb-price { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.buybox .bb-price .cur { font-size: 14px; vertical-align: top; }
.bb-stock { font-size: 16px; font-weight: 700; color: var(--green); margin: 10px 0; }
.bb-stock.low { color: var(--brand); }
.bb-stock.out { color: var(--ink-3); }
.bb-deliver { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; line-height: 1.6; }
.bb-deliver b { color: var(--ink); }
.qty-sel { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; width: fit-content; margin-bottom: 12px; overflow: hidden; }
.qty-sel button { width: 36px; height: 36px; display: grid; place-items: center; font-size: 16px; transition: background .1s; }
.qty-sel button:hover { background: var(--bg-2); }
.qty-sel span { min-width: 36px; text-align: center; font-weight: 700; }
.bb-actions { display: flex; flex-direction: column; gap: 9px; }
.bb-trust { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.bb-trust div { display: flex; gap: 8px; align-items: center; }
.bb-trust svg { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }

/* related */
.rel-section { margin-top: 40px; }
.rel-section h2 { font-size: 19px; font-weight: 700; margin-bottom: 16px; }

/* ---------- drawer / cart ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15,17,17,.45); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .22s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px,100%); background: #fff; z-index: 201; transform: translateX(100%); transition: transform .28s cubic-bezier(.3,.8,.3,1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-size: 17px; font-weight: 700; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); background: var(--bg-2); }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); transition: background .12s; }
.icon-btn:hover { background: var(--bg-3); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 60px; height: 60px; border-radius: 9px; background: var(--bg-3); display: grid; place-items: center; font-weight: 800; color: var(--ink-3); flex-shrink: 0; }

/* ---------- modal ---------- */
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-46%) scale(.98); width: min(420px,calc(100% - 32px)); background: #fff; border-radius: 16px; z-index: 201; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow-lg); }
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.modal-head { padding: 22px 24px 6px; }
.modal-head h3 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.modal-head p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.modal-body { padding: 16px 24px 24px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; outline: none; transition: border-color .14s, box-shadow .14s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.summary-box { background: var(--bg-2); border-radius: 10px; padding: 14px 16px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13.5px; }
.summary-total { display: flex; justify-content: space-between; padding-top: 9px; margin-top: 3px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 700; }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--shadow-lg); animation: tin .25s ease; display: flex; align-items: center; gap: 9px; max-width: 90vw; }
.toast.ok { background: #0a7d33; } .toast.err { background: var(--brand-dark); }
@keyframes tin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- misc ---------- */
.spin { width: 20px; height: 20px; border: 2px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 56px 20px; color: var(--ink-3); }
.empty .ico { font-size: 38px; margin-bottom: 10px; }
.section-pad { padding: 22px 0; }
footer.ft { background: #fff; border-top: 1px solid var(--line); padding: 26px 0; margin-top: 30px; }
.ft-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.ft-inner img { height: 28px; }

/* category color palette for glyph tiles (deterministic, light) */
.g0 { background: linear-gradient(135deg,#fde8e8,#fbd0d0); color:#b91414; }
.g1 { background: linear-gradient(135deg,#e8f0fe,#d2e3fc); color:#1a56b0; }
.g2 { background: linear-gradient(135deg,#e6f7ed,#cdeeda); color:#0a7d33; }
.g3 { background: linear-gradient(135deg,#fff4e0,#ffe7bd); color:#b9770a; }
.g4 { background: linear-gradient(135deg,#f0eafe,#e0d2fc); color:#6b3fb0; }
.g5 { background: linear-gradient(135deg,#e0f5f7,#c2eaef); color:#0a6b7d; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-gallery, .buybox { position: static; }
  .buybox { max-width: 420px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.show { display: block; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 640px) {
  .hdr-btn .t1 { display: none; }
  .brand-logo { height: 30px; }
  .search-box select { display: none; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(155px,1fr)); gap: 11px; }
  .pcard-name { font-size: 12.5px; }
}
.mobile-filter-btn { display: none; }
@media (max-width: 860px) { .mobile-filter-btn { display: inline-flex; } }

/* ---------- smoothness polish ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pgrid > .pcard { animation: fadeUp .35s ease both; }
  .pgrid > .pcard:nth-child(1) { animation-delay: .02s } .pgrid > .pcard:nth-child(2) { animation-delay: .04s }
  .pgrid > .pcard:nth-child(3) { animation-delay: .06s } .pgrid > .pcard:nth-child(4) { animation-delay: .08s }
  .pgrid > .pcard:nth-child(5) { animation-delay: .10s } .pgrid > .pcard:nth-child(6) { animation-delay: .12s }
  .pdp-info, .buybox, .pdp-gallery { animation: fadeUp .35s ease both; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* smoother default transitions on interactive things */
a, button, .chip, .filter-opt, .nav-item, .pcard, .hero-tile { transition-timing-function: cubic-bezier(.4,0,.2,1); }
/* nicer focus rings for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
/* product image fade-in when it loads */
img.pcard-glyph, .pdp-real-img, .hero-tile-img { animation: imgIn .4s ease; }
@keyframes imgIn { from { opacity: 0; } to { opacity: 1; } }
