/* =============================================================
   general.css — Photo · דיו סנטר
   MOBILE FIRST. The base layer is the phone layout.
   Tiers: base (≤599) → 600 → 768 → 992 (desktop, unchanged)
   No !important. No max-width queries. Logical properties only.
   ============================================================= */

:root {
  /* ---- brand palette (unchanged) ---- */
  --yellow: #FFD400;
  --yellow-soft: #FFE566;
  --yellow-pale: #FFF6B8;
  --cyan: #00B4E4;
  --magenta: #E91E8A;
  --black: #111111;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #ececec;
  --bg: #f6f6f6;
  --white: #fff;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-lift: 0 18px 40px rgba(17,17,17,.12);
  --radius: 16px;
  --max: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* ---- shell metrics ---- */
  --gutter: 16px;
  --header: 56px;
  --searchrow: 52px;
  --touch: 44px;
  --tabbar: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bottom-chrome: 16px;

  /* ---- radii scale ---- */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* ---- type scale (fluid, phone-anchored) ---- */
  --t-xs: 12px;
  --t-sm: 13px;
  --t-base: 15px;
  --t-md: 16px;
  --h3: 16px;
  --h2: clamp(21px, 4.4vw, 26px);
  --h1: clamp(27px, 6.6vw, 34px);

  /* ---- spacing scale ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --section-y: 34px;
}

/* ============ reset & base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: "Heebo", Assistant, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: var(--t-base);
  line-height: 1.55;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(255,212,0,.25);
  overflow-x: hidden;
  padding-bottom: var(--bottom-chrome);
}
body.nav-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

/* iOS refuses to not zoom below 16px on focus */
input, select, textarea { font-size: 16px; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* Reusable snap rail. Bleeds to the screen edge on phones so cards
   are visibly cut off at the boundary — the affordance that says "scroll me". */
.rail-x {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-block-end: var(--sp-1);
  scroll-padding-inline-start: var(--gutter);
}
.rail-x::-webkit-scrollbar { display: none; }
.rail-x > * { scroll-snap-align: start; flex: 0 0 auto; }

.sr-only {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
a.sr-only:focus {
  position: fixed;
  inset-block-start: var(--sp-2);
  inset-inline-start: var(--sp-2);
  width: auto; height: auto;
  margin: 0; padding: 10px var(--sp-4);
  overflow: visible; clip-path: none;
  background: #111; color: var(--yellow);
  border-radius: var(--r-pill);
  font-weight: 800;
  z-index: 200;
}

/* ============ promo bar (scrolls away) ============ */
.topbar {
  background: var(--black);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 600;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 30px;
  padding-block: var(--sp-1);
  text-align: center;
}
.topbar .tb-alt, .topbar .tb-hours { display: none; }
.topbar a {
  color: var(--yellow);
  font-weight: 800;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.topbar a:hover { border-bottom-color: var(--yellow); }

/* ============ header ============ */
header.site {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* One grid, two named layouts. The areas reflow at 768 — there is never
   a second header competing with the first. */
.header-main {
  display: grid;
  grid-template-columns: var(--touch) 1fr auto;
  grid-template-rows: var(--header) auto;
  grid-template-areas:
    "burger logo   actions"
    "search search search";
  align-items: center;
  column-gap: var(--sp-2);
}
.burger { grid-area: burger; }
.logo { grid-area: logo; }
.phone-col { grid-area: phone; }
.header-actions { grid-area: actions; }

.logo { display: grid; place-items: center; }
.logo img {
  height: 34px;
  width: auto;
  transition: transform .35s var(--ease);
}

/* Search sits in the header on phones rather than hiding behind a toggle —
   looking a printer model up is the primary task on this shop. It folds
   away on scroll and the toggle button takes over. */
.search-box {
  grid-area: search;
  position: relative;
  min-width: 0;
  align-self: start;
  height: var(--touch);
  margin-block-end: var(--sp-2);
  transition: height .28s var(--ease), margin .28s var(--ease), opacity .18s linear;
}
body.compact-head .search-box {
  height: 0;
  margin-block-end: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
body.compact-head header.site.search-open .search-box {
  height: var(--touch);
  margin-block-end: var(--sp-2);
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
}
.search-box input {
  width: 100%;
  height: var(--touch);
  border: 1.5px solid #ddd;
  border-radius: var(--r-pill);
  padding-inline: var(--sp-4) 48px;
  background: #fafafa;
  outline: none;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.search-box input:hover { border-color: #bbb; }
.search-box input:focus {
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,212,0,.28);
}
.search-box > button[type="submit"] {
  position: absolute;
  inset-inline-end: 4px;
  top: 4px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid; place-items: center;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.search-box > button[type="submit"]:hover { filter: brightness(.96); }
.search-box > button[type="submit"]:active { transform: scale(.92); }

.search-drop {
  display: none;
  position: absolute;
  inset-block-start: calc(var(--touch) + 6px);
  inset-inline: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  overflow: hidden auto;
  max-height: 60svh;
  overscroll-behavior: contain;
  z-index: 90;
  animation: dropIn .22s var(--ease);
}
.search-drop.open { display: block; }
.search-drop a {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  min-height: var(--touch);
  border-bottom: 1px solid #f2f2f2;
  font-size: var(--t-sm);
  transition: background .18s var(--ease);
}
.search-drop a:hover { background: var(--yellow-pale); }
.search-drop small { color: #888; flex: 0 0 auto; }
.search-empty { padding: var(--sp-4); color: #777; font-size: var(--t-sm); }

/* ============ header buttons ============ */
.header-actions { display: flex; align-items: center; gap: var(--sp-1); }
.phone-col { display: none; text-align: end; line-height: 1.2; }
.phone-col a { font-weight: 800; font-size: var(--t-base); display: block; transition: color .2s var(--ease); }
.phone-col .wa { color: #128C4A; font-size: var(--t-sm); font-weight: 700; }

.icon-btn, .cart-btn, .burger, .search-toggle {
  position: relative;
  width: var(--touch); height: var(--touch); min-width: var(--touch);
  border: 1.5px solid #ddd;
  background: #fff;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 18px;
  color: #111;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover, .cart-btn:hover, .burger:hover { border-color: #111; background: #fffdf0; }
.icon-btn:active { transform: scale(.94); }

/* Badge sits inside the button box so it can't clip on the header edge */
.cart-count {
  position: absolute;
  top: -5px;
  inset-inline-start: -5px;
  min-width: 18px; height: 18px;
  padding-inline: 5px;
  background: var(--magenta);
  color: #fff;
  border: 2px solid #fff;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
  line-height: 1;
}
.cart-count[data-empty="1"] { display: none; }
.cart-count.pop { animation: pop .35s var(--ease); }

.burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.burger i {
  display: block;
  width: 17px; height: 2px;
  border-radius: 2px;
  background: #111;
  transition: transform .25s var(--ease), opacity .18s var(--ease);
}
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Search toggle only exists once the search row has collapsed away */
.search-toggle { display: none; }
body.compact-head .search-toggle { display: grid; }

/* ============ desktop category bar (hidden on phones) ============ */
.catnav { display: none; background: #111; }
.catnav .wrap { display: flex; gap: 2px; }
.catnav a {
  color: #fff; font-weight: 700; font-size: var(--t-base);
  display: flex; align-items: center;
  padding: 12px; white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.catnav a:hover { color: var(--yellow); background: rgba(255,255,255,.04); }
.catnav a.active { color: var(--yellow); border-bottom-color: var(--yellow); }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: var(--t-base);
  padding: 12px var(--sp-5);
  min-height: var(--touch);
  text-align: center;
  transition: transform .22s var(--ease), filter .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-yellow { background: var(--yellow); color: #111; }
.btn-yellow:hover { filter: brightness(.97); box-shadow: 0 8px 18px rgba(255,212,0,.35); }
.btn-black { background: #111; color: #fff; }
.btn-black:hover { box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.btn-ghost { background: #fff; border: 1.5px solid #ddd; }
.btn-ghost:hover { border-color: #111; }
.btn-full { width: 100%; }
.btn.added { background: #111; color: var(--yellow); }
.btn-sm { padding: 9px var(--sp-4); font-size: var(--t-sm); min-height: 38px; }

/* ============ toast ============ */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-chrome) + var(--sp-4));
  inset-inline: var(--gutter);
  margin-inline: auto;
  width: fit-content;
  max-width: calc(100% - (var(--gutter) * 2));
  background: #111; color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--t-sm);
  opacity: 0; transform: translateY(12px);
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  z-index: 120;
}
.toast.show { opacity: 1; transform: none; }

/* ============ scrim + sheets ============ */
.drawer-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease);
  z-index: 100;
}
.drawer-bg.open { opacity: 1; pointer-events: auto; }

/* Cart = bottom sheet on phones (thumb reach), side drawer from 768 up. */
.drawer {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 110;
  background: #fff;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  max-height: 88svh;
  transform: translateY(101%);
  transition: transform .38s var(--ease-out);
  display: flex; flex-direction: column;
  overscroll-behavior: contain;
  box-shadow: 0 -12px 40px rgba(0,0,0,.18);
}
.drawer.open { transform: none; }
/* .drawer sets display:flex, which would otherwise beat the hidden attribute */
.drawer[hidden] { display: none; }
.drawer::before {
  content: "";
  position: absolute;
  inset-block-start: 8px;
  inset-inline: 0;
  margin-inline: auto;
  width: 40px; height: 4px;
  border-radius: var(--r-pill);
  background: #ddd;
}
.drawer-h {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}
.drawer-b {
  padding: var(--sp-3) var(--sp-4);
  overflow: hidden auto;
  overscroll-behavior: contain;
  flex: 1;
}
.drawer-f {
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + var(--safe-b));
  border-top: 1px solid var(--line);
  background: #fff;
}

/* Navigation sheet — slides from the inline-start edge (right in RTL,
   the same side as the burger that opens it). */
.drawer-nav {
  inset-block: 0;
  inset-inline-start: 0;
  inset-inline-end: auto;
  width: min(340px, 88%);
  max-height: none;
  border-radius: 0;
  transform: translateX(-100%);
  box-shadow: 0 0 40px rgba(0,0,0,.2);
}
[dir="rtl"] .drawer-nav { transform: translateX(100%); }
.drawer-nav.open, [dir="rtl"] .drawer-nav.open { transform: none; }
.drawer-nav::before { content: none; }
.drawer-nav .drawer-h { padding-block: var(--sp-3); }
.drawer-nav .drawer-b { padding-inline: 0; }

.nav-list { display: flex; flex-direction: column; }
.nav-list a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  min-height: 52px;
  font-weight: 700;
  border-bottom: 1px solid #f4f4f4;
  transition: background .18s var(--ease);
}
.nav-list a:hover, .nav-list a:focus-visible { background: var(--yellow-pale); }
.nav-list a.active { background: var(--yellow-pale); }
.nav-list .nav-ico {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--yellow-pale);
  display: grid; place-items: center;
  font-size: 17px;
  flex: 0 0 auto;
}
.nav-list .nav-go { margin-inline-start: auto; color: #bbb; font-size: 18px; }
.nav-foot { display: grid; gap: var(--sp-2); }
.nav-foot .hours { color: #777; font-size: var(--t-xs); text-align: center; margin-top: var(--sp-1); }

/* ============ cart rows ============ */
.cart-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  border-bottom: 1px solid #f1f1f1;
  align-items: center;
  animation: rowIn .3s var(--ease);
}
.cart-thumb { width: 54px; height: 54px; border-radius: var(--r-sm); }
.cart-row > div { min-width: 0; }
.cart-row b { font-size: var(--t-sm); display: block; line-height: 1.3; overflow-wrap: anywhere; }
.cart-row span { font-size: var(--t-sm); color: #666; }
.cart-row .rm {
  color: #999;
  width: var(--touch); height: var(--touch);
  border-radius: var(--r-sm);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cart-row .rm:hover { background: #f4f4f4; color: #111; }
.cart-total {
  display: flex; justify-content: space-between;
  font-weight: 900;
  margin-bottom: var(--sp-2);
}
.empty { color: #555; text-align: center; padding: var(--sp-8) var(--sp-4); }
.empty strong { display: block; font-size: var(--t-md); margin-bottom: var(--sp-1); }
.empty p { color: #777; font-size: var(--t-sm); margin-bottom: var(--sp-4); }

/* ============ trust strip ============ */
.trust-strip {
  display: none;
  background: #f7f7f7;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
  font-weight: 700;
}
.trust-strip .wrap {
  display: flex; gap: var(--sp-5);
  padding-block: var(--sp-2);
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.trust-strip .wrap::-webkit-scrollbar { display: none; }
.trust-strip span { color: #333; flex: 0 0 auto; }

/* ============ FAQ ============ */
.faq-block { padding-block: var(--section-y) var(--sp-2); }
.faq-block h2 { font-size: var(--h2); margin-bottom: var(--sp-3); letter-spacing: -.02em; }
.faq-block details { border-bottom: 1px solid var(--line); }
.faq-block summary {
  cursor: pointer; list-style: none;
  font-weight: 800;
  padding-block: var(--sp-3);
  padding-inline: 0 var(--sp-8);
  min-height: var(--touch);
  display: flex; align-items: center;
  position: relative;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  font-size: 20px; color: #888;
}
.faq-block details[open] summary::after { content: "–"; }
.faq-block details p { color: #555; padding-bottom: var(--sp-4); max-width: 68ch; font-size: var(--t-sm); }

/* ============ breadcrumb + price ============ */
.crumb {
  font-size: var(--t-sm);
  color: #777;
  margin-block: var(--sp-3) var(--sp-2);
  display: flex; gap: var(--sp-2); align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.crumb::-webkit-scrollbar { display: none; }
.crumb a { transition: color .2s var(--ease); }
.crumb a:hover { color: #111; }

.price { font-weight: 900; font-size: 19px; letter-spacing: -.02em; }
.price s { color: #999; font-weight: 600; font-size: var(--t-sm); margin-inline-start: 6px; }

/* ============ product card ============ */
.prod-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.prod-card:hover { border-color: #d8d8d8; }
.prod-pic {
  height: 118px;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.prod-mark {
  width: 58px; height: 58px;
  border-radius: var(--r-md);
  border: 3px solid #111;
  position: relative;
  transition: transform .4s var(--ease);
}
.prod-mark::after {
  content: "";
  position: absolute;
  inset: 12px 10px auto 10px;
  height: 8px;
  background: rgba(0,0,0,.18);
  border-radius: 3px;
}
.prod-body {
  padding: var(--sp-3);
  display: flex; flex-direction: column;
  gap: var(--sp-1);
  flex: 1;
}
.prod-body h3 {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-body .meta { font-size: var(--t-xs); color: #6a6a6a; }
.prod-rate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Long-form card copy is detail, not page content — it lives one tap away
   on the product page. Restored the moment there is room for it. */
.prod-short, .ship-line { display: none; }
.prod-body .price { margin-top: var(--sp-1); }
.prod-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.prod-body .btn {
  margin-top: auto;
  padding-top: 12px;
  position: relative;
  z-index: 2;
}
.tag {
  position: absolute;
  top: var(--sp-2);
  inset-inline-start: var(--sp-2);
  background: var(--magenta);
  color: #fff;
  font-size: 10.5px; font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}

/* ============ skeleton ============ */
.skel {
  background: linear-gradient(90deg, #eee 25%, #f7f7f7 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
  border-radius: 12px;
}
.skel-card { height: 280px; border-radius: var(--radius); }

/* ============ footer ============ */
footer.site {
  background: #111;
  color: #fff;
  padding-block: var(--sp-8) calc(var(--sp-6) + var(--bottom-chrome));
  margin-top: var(--sp-2);
}
.foot-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
footer .logo { justify-items: start; place-items: start; }
footer .logo img { height: 40px; background: #fff; border-radius: 8px; padding: 4px 8px; }
footer p.about { color: #bbb; margin-top: var(--sp-2); font-size: var(--t-sm); max-width: 40ch; }
footer h4 { color: var(--yellow); margin-bottom: var(--sp-2); font-size: var(--t-sm); }
footer ul { list-style: none; display: grid; gap: 2px; }
footer li { color: #ddd; font-size: var(--t-sm); }
footer ul a {
  color: #ddd;
  display: flex; align-items: center;
  min-height: 38px;
  transition: color .2s var(--ease);
}
footer a:hover { color: #fff; }
.copy {
  border-top: 1px solid #2a2a2a;
  margin-top: var(--sp-6);
  padding-top: var(--sp-3);
  color: #999;
  font-size: var(--t-xs);
  display: grid; gap: var(--sp-1);
}

/* Collapsible footer columns keep the phone footer to one screen */
.foot-h {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--touch);
  color: var(--yellow);
  font-size: var(--t-sm);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid #262626;
}
.foot-h::-webkit-details-marker { display: none; }
.foot-h::after { content: "+"; color: #777; font-size: 18px; font-weight: 400; }
.foot-col[open] .foot-h::after { content: "–"; }
.foot-col ul { padding-block: var(--sp-2); }

/* ============ bottom tab bar ============ */
.app-tabbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 88;
  height: calc(var(--tabbar) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.app-tabbar a {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  font-size: 10.5px; font-weight: 700;
  color: #777;
  transition: color .2s var(--ease);
}
.app-tabbar a.on { color: #111; }
.app-tabbar a.on .ico { transform: translateY(-1px); }
.app-tabbar .ico { font-size: 18px; line-height: 1; transition: transform .2s var(--ease); }
.app-tabbar .cart-count {
  top: 4px;
  inset-inline-start: calc(50% + 4px);
}

body.has-tabbar { --bottom-chrome: calc(var(--tabbar) + var(--safe-b)); }
body.has-sticky .app-tabbar { display: none; }

/* ============ floating whatsapp (desktop only — the tab bar owns this on phones) ============ */
.float-wa { display: none; }
.float-wa svg { width: 28px; height: 28px; }

/* ============ animation ============ */
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 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;
  }
}

/* =============================================================
   ≥600px — large phones & small tablets
   ============================================================= */
@media (min-width: 600px) {
  :root {
    --gutter: 20px;
    --section-y: 44px;
    --t-base: 15.5px;
    --t-sm: 13.5px;
    --h2: clamp(24px, 3.4vw, 30px);
    --h1: clamp(32px, 5vw, 42px);
  }
  .topbar .tb-alt { display: block; }
  .topbar .tb-hours { display: inline; }
  .topbar .wrap { justify-content: space-between; text-align: start; }
  .prod-pic { height: 150px; }
  .prod-mark { width: 72px; height: 72px; border-radius: 18px; }
  .prod-body { padding: var(--sp-4); gap: 6px; }
  .prod-body h3 { font-size: 15.5px; }
  .prod-short { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ship-line { display: block; font-size: var(--t-xs); color: #666; margin-top: 0; }
  .price { font-size: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .copy { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); }
}

/* =============================================================
   ≥768px — tablets. Nav bar returns, tab bar retires,
   cart becomes a side drawer, phone number comes back.
   ============================================================= */
@media (min-width: 768px) {
  :root { --header: 64px; --section-y: 56px; }

  .catnav { display: block; }
  .trust-strip { display: block; }
  .catnav .wrap { overflow-x: auto; scrollbar-width: none; }
  .catnav .wrap::-webkit-scrollbar { display: none; }

  .burger { display: none; }
  .logo img { height: 42px; }
  .phone-col { display: block; }

  /* search joins the main row; the second row disappears entirely */
  .header-main {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: var(--header);
    grid-template-areas: "logo search phone actions";
    column-gap: var(--sp-4);
  }
  .logo { justify-self: start; }
  .search-box,
  body.compact-head .search-box,
  body.compact-head header.site.search-open .search-box {
    height: auto;
    margin-block-end: 0;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    align-self: center;
  }
  .search-drop { inset-block-start: 50px; }
  .search-toggle,
  body.compact-head .search-toggle { display: none; }

  /* cart returns to a side drawer */
  .drawer {
    inset-block: 0;
    inset-inline: auto;
    left: 0;
    width: min(420px, 100%);
    max-height: none;
    border-radius: 0;
    transform: translateX(-110%);
    box-shadow: none;
  }
  .drawer::before { content: none; }
  .drawer-h { padding: var(--sp-4) 18px; }
  .drawer-nav { display: none; }

  .app-tabbar { display: none; }
  body.has-tabbar { --bottom-chrome: 16px; }

  .float-wa {
    display: grid;
    position: fixed;
    inset-inline-end: var(--sp-4);
    bottom: var(--sp-4);
    z-index: 90;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366; color: #fff;
    place-items: center;
    box-shadow: 0 8px 24px rgba(37,211,102,.4);
    transition: transform .25s var(--ease);
  }
  .float-wa:hover { transform: scale(1.06); }

  .prod-pic { height: 168px; }
  .prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
  .prod-card:hover .prod-mark { transform: rotate(-6deg) scale(1.06); }
  .logo:hover img { transform: scale(1.03) rotate(-1deg); }

  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .foot-h { border-bottom: 0; cursor: default; pointer-events: none; margin-bottom: var(--sp-2); }
  .foot-h::after { content: none; }
  .foot-col ul { padding-block: 0; }
  footer ul { gap: 7px; }
  footer ul a { min-height: 0; }

  .rail-x { margin-inline: 0; padding-inline: 0; }
}

/* =============================================================
   ≥992px — DESKTOP. Values restored to the original design.
   ============================================================= */
@media (min-width: 992px) {
  :root {
    --header: 72px;
    --gutter: 16px;
    --section-y: 72px;
    --t-base: 15px;
    --t-sm: 13.5px;
    --t-xs: 12.5px;
    --h2: clamp(24px, 3vw, 34px);
    --h1: clamp(30px, 4.2vw, 52px);
  }
  body { padding-bottom: 0; }
  body.has-tabbar { --bottom-chrome: 0px; }

  .wrap { width: min(var(--max), calc(100% - 32px)); }

  .topbar { font-size: 13px; font-weight: 500; }
  .topbar .wrap { min-height: 34px; padding-block: 6px; flex-wrap: nowrap; white-space: nowrap; }

  .header-main { height: var(--header); }
  .logo img { height: 50px; }

  .search-box input { font-size: 15px; }

  .catnav a { font-size: 15px; }

  .trust-strip { font-size: 13.5px; font-weight: 700; }
  .trust-strip .wrap { flex-wrap: wrap; overflow: visible; padding-block: 10px; gap: 18px; }

  .faq-block { padding: 56px 0 8px; }
  .faq-block summary { padding: 14px 28px 14px 0; }
  .faq-block details p { font-size: 15px; padding: 0 0 16px; }

  .crumb { font-size: 13.5px; margin: 18px 0 8px; }
  .price { font-size: 20px; }

  .prod-card { border-radius: var(--radius); }
  .prod-pic { height: 176px; }
  .prod-mark { width: 86px; height: 86px; border-radius: 22px; }
  .prod-body { padding: 14px 14px 16px; gap: 6px; }
  .prod-body h3 { font-size: 15.5px; display: block; -webkit-line-clamp: initial; overflow: visible; }
  .prod-body .meta { font-size: 13px; }
  .prod-rate { white-space: normal; }
  .ship-line { margin-top: auto; }
  .prod-body .btn { margin-top: 0; padding-top: 12px; }
  .tag { font-size: 11px; padding: 4px 9px; top: 10px; inset-inline-start: 10px; }

  footer.site { padding: 48px 0 18px; }
  footer .logo img { height: 44px; }
  footer p.about { font-size: 14px; max-width: 36ch; margin-top: 10px; }
  footer h4 { font-size: 14px; }
  footer a, footer li { font-size: 14px; }
  .copy { font-size: 13px; margin-top: 28px; padding-top: 14px; }

  .float-wa { inset-inline-end: 16px; bottom: 16px; }

  .toast {
    bottom: 84px;
    inset-inline: auto;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    margin-inline: 0;
  }
  .toast.show { transform: translateX(-50%) translateY(0); }
}


/* =============================================================
   Touch refinements — LAST so they win over the width tiers.
   iPads take the ≥768/≥992 desktop layout but still have fingers
   on them, and iOS zooms any focused field under 16px.
   ============================================================= */
@media (pointer: coarse) {
  .search-drop a { min-height: var(--touch); }
  .hours a,
  .wa-line a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
  }
}
@media (pointer: coarse) and (min-width: 768px) {
  .search-box input { font-size: 16px; }
  footer ul a { min-height: 40px; }
  .side a { min-height: 40px; display: flex; align-items: center; }
  .catnav a { min-height: var(--touch); }
  /* one properly sized call target instead of two 16px text links;
     WhatsApp already has the floating button on screen */
  .phone-col a:not(.wa) {
    min-height: var(--touch);
    display: flex; align-items: center; justify-content: flex-end;
    font-size: var(--t-md);
  }
  .phone-col .wa { display: none; }
}

.prod-pic { position: relative; overflow: hidden; }
.prod-pic .prod-img, .prod-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cart-thumb { object-fit: cover; }


/* Square media — product stays whole inside 1:1 */
.prod-pic {
  height: auto !important;
  aspect-ratio: 1 / 1;
  background: #f4f4f4;
  display: grid;
  place-items: center;
}
.prod-pic img,
.prod-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.cart-thumb {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #f4f4f4;
  border-radius: 8px;
}
