:root {
  --brand: #fb7701;        /* fields and fills with dark text */
  --brand-strong: #e05a00; /* buttons and big prices: 3:1+ against white */
  --brand-ink: #b84300;    /* small orange text */
  --red: #d01c1c;
  --ink: #111;
  --ink-2: #3d3d3d;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --bg: #fff;
  --soft: #f6f6f6;
  --green: #0a6b33;
  --green-bg: #e9f7ee;
  --radius: 8px;
  --wrap: 1320px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Cairo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Promise strip */
.promise-bar {
  background: var(--green); color: #fff; display: flex; justify-content: center; gap: 40px;
  padding: 7px 16px; font-size: 14px;
}
.promise { display: flex; align-items: center; gap: 6px; }
.promise small { font-size: inherit; }
.promise svg { width: 18px; height: 18px; }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: #fff; }
.header-in { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 10px 24px; }
.logo-mark {
  display: inline-grid; place-items: center; background: var(--brand); color: #000;
  font-weight: 900; font-size: 22px; height: 46px; padding: 0 14px; border-radius: 8px; letter-spacing: -.5px;
}
.main-links { display: flex; gap: 18px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.main-links a:hover { color: var(--brand-ink); }
.search {
  flex: 1; display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px;
  padding: 3px; max-width: 560px; margin-inline-start: auto;
}
.search input { flex: 1; border: 0; padding: 8px 16px; font: inherit; font-size: 15px; outline: none; background: none; min-width: 0; }
.search button {
  border: 0; background: var(--ink); color: #fff; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
}
.header-actions { display: flex; gap: 4px; align-items: center; }
.hbtn {
  position: relative; display: flex; align-items: center; gap: 6px; background: none; border: 0;
  padding: 8px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.2;
}
.hbtn:hover { background: var(--soft); }
.hbtn svg { width: 26px; height: 26px; }
.badge {
  position: absolute; top: 0; inset-inline-end: 2px; background: var(--brand-strong); color: #fff;
  font-size: 13px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px;
  display: grid; place-items: center; font-weight: 800;
}

main { max-width: var(--wrap); margin: 0 auto; padding: 16px 24px 48px; min-height: 60vh; }

/* Hero banner */
.hero {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch; background: var(--brand);
  border-radius: 12px; overflow: hidden; margin-bottom: 20px; min-height: min(560px, calc(100vh - 160px));
}
.header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.08); } /* taste-skill-ignore: sticky bar */
.hero-copy { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; color: #000; }
.hero-copy h1 { margin: 0 0 16px; font-size: clamp(40px, 6.6vw, 96px); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.hero-copy p { margin: 0 0 26px; font-size: 20px; font-weight: 600; max-width: 26em; }
.hero-copy .hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-pics { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 14px; }
.hero-pic:first-child { grid-row: span 2; }
.hero-pic { position: relative; background: #fff; border-radius: 10px; overflow: hidden; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; }
.hero-pic .pill-price {
  position: absolute; bottom: 8px; inset-inline-start: 8px; background: #fff; color: var(--brand-strong);
  font-weight: 900; font-size: 19px; padding: 2px 10px; border-radius: 999px;
}

/* Buttons */
.btn {
  border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 800; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .1s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand-strong); color: #fff; font-size: 19px; }
.btn-primary:hover { background: #c94f00; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-outline { background: #fff; border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--soft); }
.btn-lg { padding: 14px 30px; }
.btn-block { width: 100%; }
.icon-btn { border: 0; background: none; padding: 6px; border-radius: 50%; display: grid; place-items: center; }
.icon-btn:hover { background: var(--soft); }

/* Lightning deals */
.deals { background: #1a1a1a; border-radius: 12px; padding: 16px; margin-bottom: 24px; color: #fff; }
.deals-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.deals-head h2 { margin: 0; font-size: 26px; font-weight: 900; display: flex; align-items: center; gap: 6px; color: var(--brand); }
.deals-head h2 svg { width: 28px; height: 28px; }
.deals-head .ends { font-size: 14px; color: #ddd; }
.deals-head .see-all { margin-inline-start: auto; font-weight: 700; display: flex; align-items: center; gap: 2px; }
.countdown { display: flex; gap: 4px; align-items: center; font-weight: 800; direction: ltr; }
.countdown span { background: var(--brand); color: #000; border-radius: 4px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.deals .rail { display: grid; grid-template-columns: repeat(7, 1fr); overflow: visible; }
.deal-card { flex: 0 0 176px; background: #fff; color: var(--ink); border-radius: 10px; overflow: hidden; cursor: pointer; }
.deal-card .thumb { aspect-ratio: 1; }
.deal-card .card-body { padding: 8px 10px 10px; }

/* Category circles */
.circles { display: flex; gap: 18px; overflow-x: auto; padding: 4px 0 8px; margin-bottom: 20px; scrollbar-width: none; }
.circle { flex: none; width: 92px; text-align: center; background: none; border: 0; padding: 0; font-weight: 700; font-size: 14px; }
.circle span { display: block; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--soft); margin-bottom: 6px; border: 3px solid transparent; transition: border-color .15s; }
.circle img { width: 100%; height: 100%; object-fit: cover; }
.circle:hover span, .circle.active span { border-color: var(--brand); }
.circle.active { color: var(--brand-ink); }

/* Product grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 22px 14px; }
.card { position: relative; cursor: pointer; min-width: 0; }
.thumb { aspect-ratio: 1; background: var(--soft); border-radius: var(--radius); overflow: hidden; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .thumb img, .deal-card:hover .thumb img { transform: scale(1.04); }
.card-body { padding-top: 8px; }
.card-title { font-size: 15px; margin: 0 0 2px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--ink-2); }
.tags { display: flex; gap: 6px; margin-bottom: 2px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 800; }
.tag-local { color: var(--green); }
.tag-star { color: var(--brand-ink); }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price { color: var(--brand-strong); font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.price small { font-size: 14px; }
.old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.sold { color: var(--muted); font-size: 13px; }
.off { color: var(--brand-ink); font-size: 13px; font-weight: 800; }
.rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.stars { display: inline-flex; color: var(--ink); }
.stars svg { width: 13px; height: 13px; }
.stars .dim { color: #c9c9c9; }
.wish-btn {
  position: absolute; top: 8px; inset-inline-end: 8px; background: #fff; border: 0; width: 34px; height: 34px;
  border-radius: 50%; display: grid; place-items: center; z-index: 2;
}
.wish-btn svg { width: 19px; height: 19px; }
.add-btn {
  position: absolute; bottom: 2px; inset-inline-end: 0; width: 38px; height: 30px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: #fff; display: grid; place-items: center;
}
.add-btn svg { width: 19px; height: 19px; }
.add-btn:hover { background: var(--brand); border-color: var(--brand); }
.urgent {
  position: absolute; bottom: 0; right: 0; left: 0; background: var(--red); color: #fff;
  font-size: 13px; font-weight: 800; padding: 3px 8px; text-align: center;
}
.stock-bar { height: 5px; border-radius: 3px; background: #ffe2d0; margin-top: 6px; overflow: hidden; }
.stock-bar i { display: block; height: 100%; background: var(--brand-strong); }
.stock-text { font-size: 13px; color: var(--red); font-weight: 800; margin-top: 3px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.toolbar h2 { margin: 0; font-size: 26px; font-weight: 900; }
.toolbar h2 small { color: var(--muted); font-size: 15px; font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 14px; }
.chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.load-more { display: flex; margin: 30px auto 0; min-width: 260px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { width: 72px; height: 72px; color: #cfcfcf; margin: 0 auto 6px; display: block; }
.empty p { font-size: 17px; }

/* Product page */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 10px; align-self: start; position: sticky; top: 90px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.gallery-thumbs button.active { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: 22px; margin: 0 0 6px; line-height: 1.45; font-weight: 700; }
.pdp .rating { font-size: 14px; margin-bottom: 12px; }
.pdp .rating .stars svg { width: 16px; height: 16px; }
.price-box { background: #fff4ec; border-radius: 10px; padding: 12px 16px; }
.price-box .price { font-size: 36px; }
.price-box .off-pill { background: var(--brand-strong); color: #fff; font-weight: 900; padding: 2px 10px; border-radius: 6px; font-size: 16px; }
.deal-strip { background: var(--red); color: #fff; border-radius: 8px; padding: 8px 14px; margin-top: 10px; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.deal-strip svg { width: 18px; height: 18px; }
.deal-strip .countdown span { background: #fff; color: var(--red); }
.opt-label { font-weight: 800; margin: 18px 0 8px; }
.opt-label span { font-weight: 600; color: var(--muted); }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 16px; font-weight: 700; }
.opt:hover { border-color: var(--ink-2); }
.opt.active { border-color: var(--ink); border-width: 2px; padding: 5px 15px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { border: 0; background: none; width: 36px; height: 36px; font-size: 18px; font-weight: 700; }
.qty span { min-width: 28px; text-align: center; font-weight: 800; }
.pdp-actions { display: flex; gap: 10px; margin-top: 22px; }
.pdp-actions .btn-primary { flex: 1; flex-direction: column; gap: 0; line-height: 1.2; }
.pdp-actions .btn-primary small { font-size: 13px; font-weight: 600; }
.pdp-actions .wish { flex: 0 0 56px; padding: 0; }
.pdp-actions .wish svg { width: 24px; height: 24px; }
.assure { margin-top: 20px; border-radius: 10px; background: var(--green-bg); padding: 12px 16px; display: grid; gap: 10px; font-size: 14px; }
.assure div { display: flex; gap: 10px; align-items: flex-start; }
.assure svg { color: var(--green); width: 20px; height: 20px; margin-top: 2px; }
.assure b { color: var(--green); }
.reviews { margin-top: 24px; }
.reviews h2 { font-size: 20px; margin: 0 0 8px; }
.review { padding: 12px 0; font-size: 15px; background: var(--soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.review-head { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.related { margin-top: 36px; }
.related h2 { font-size: 24px; margin: 0 0 14px; }

/* Categories page */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.cat-tile { text-align: center; font-weight: 800; background: none; border: 0; padding: 0; }
.cat-tile span { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); margin-bottom: 6px; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: .2s; z-index: 40; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); background: #fff; z-index: 50;
  transform: translateX(-100%); transition: transform .25s; display: flex; flex-direction: column;
}
.drawer.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.2); } /* taste-skill-ignore: a real overlay */
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.drawer-head h3 { margin: 0; font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 16px 12px; }
.drawer-foot { padding: 14px 16px; background: var(--soft); }
.ship-progress { background: var(--green-bg); color: var(--green); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.ship-progress .bar { height: 6px; background: #c8ebd5; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.ship-progress .bar i { display: block; height: 100%; background: var(--green); transition: width .3s; }
.line { display: flex; gap: 12px; padding: 12px 0; margin-bottom: 6px; padding: 10px; background: var(--soft); border-radius: 10px; }
.line-thumb { width: 84px; height: 84px; flex: none; border-radius: 8px; overflow: hidden; background: var(--soft); }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-info { flex: 1; min-width: 0; }
.line-info .name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.line-info .variant { font-size: 13px; color: var(--muted); }
.line-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.line-bottom .price { font-size: 18px; }
.line .qty button { width: 30px; height: 30px; font-size: 16px; }
.remove { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.totals { display: grid; gap: 4px; font-size: 15px; margin-bottom: 12px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 20px; font-weight: 900; }
.totals .save { color: var(--green); font-weight: 800; }
.coupon { display: flex; gap: 6px; margin-bottom: 12px; }
.coupon input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; min-width: 0; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.panel { background: #fff; border-radius: 12px; padding: 20px; background: var(--soft); }
.panel h2 { margin-top: 0; font-size: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.field input, .field select { width: 100%; border: 1.5px solid #d4d4d4; border-radius: 8px; padding: 10px 12px; font: inherit; background: #fff; }
.field input:focus, .field select:focus { outline: 2px solid var(--brand-strong); border-color: transparent; }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; font-weight: 700; }
.pay-opt:has(input:checked) { border-color: var(--brand-strong); background: #fff4ec; }
.pay-opt input { accent-color: var(--brand-strong); }
.mini-line { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.mini-line img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.mini-line span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.success { text-align: center; padding: 50px 20px; }
.success svg { width: 80px; height: 80px; color: var(--green); }
.success h1 { font-size: 32px; margin: 8px 0; }

/* Orders */
.order { background: var(--soft); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.order-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 15px; align-items: center; }
.status { background: var(--green-bg); color: var(--green); font-weight: 800; padding: 2px 10px; border-radius: 999px; font-size: 13px; }
.order-items { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.order-items .line-thumb { width: 64px; height: 64px; }

/* Spin wheel */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal-card { background: #fff; border-radius: 18px; padding: 24px; width: min(420px, 100%); text-align: center; position: relative; }
.modal-close { position: absolute; top: 10px; inset-inline-end: 10px; }
.spin-card { background: var(--brand); }
.spin-card h2 { margin: 0; font-size: 26px; font-weight: 900; }
.spin-card p { margin: 4px 0 14px; font-weight: 600; }
.wheel-wrap { position: relative; width: 280px; height: 280px; margin: 0 auto 18px; }
.pointer {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--ink);
}
.wheel {
  width: 100%; height: 100%; border-radius: 50%; border: 8px solid #fff;
  transition: transform 4s cubic-bezier(.17,.67,.12,.99); position: relative; overflow: hidden;
}
.wheel-hub {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; font-weight: 900; font-size: 16px; z-index: 2;
}
.wheel .seg-label {
  position: absolute; top: 50%; left: 50%; width: 50%; height: 0; transform-origin: 0 0;
  font-weight: 900; font-size: 18px; color: #000; direction: ltr;
}
.wheel .seg-label span { position: absolute; left: 62px; top: -13px; }
.spin-result { font-weight: 900; font-size: 17px; min-height: 1.5em; }

/* Floating welcome gift */
.gift-fab {
  position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 36; border: 0; background: var(--ink); color: #fff;
  border-radius: 999px; padding: 10px 18px 10px 12px; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; gap: 8px; outline: 3px solid #fff;
  animation: nudge 2.4s ease-in-out infinite;
}
.gift-fab svg { width: 26px; height: 26px; color: var(--brand); }
.gift-fab:hover { background: #333; }
@keyframes nudge { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-4deg) scale(1.04); } 92% { transform: rotate(4deg) scale(1.04); } }

/* Motion: entrances (only once JS marks the page ready, so content never stays hidden without it) */
.js-motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.js-motion .reveal.in { opacity: 1; transform: none; }
.card, .deal-card, .circle { transition: transform .2s; }
.card:active, .deal-card:active { transform: scale(.98); }
.deal-card:hover { transform: translateY(-4px); }
.hero-pic img { animation: drift 14s ease-in-out infinite alternate; }
.hero-pic:nth-child(2) img { animation-delay: -5s; }
.hero-pic:nth-child(3) img { animation-delay: -9s; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }
.add-btn { transition: background .15s, transform .15s; }
.add-btn:hover { transform: scale(1.08); }
.add-btn.pop { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.3); } }
.wish-btn { transition: transform .15s; }
.wish-btn:hover { transform: scale(1.1); }
.chip, .opt, .circle span { transition: background .15s, border-color .15s, color .15s; }

/* Toast */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(160px);
  background: rgba(0,0,0,.88); color: #fff; padding: 10px 20px; border-radius: 999px; z-index: 70;
  transition: transform .25s; font-weight: 700;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Footer */
.footer { background: #111; color: #e8e8e8; margin-top: 40px; }
.footer-in { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 28px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-cols h4 { margin: 0 0 10px; font-size: 16px; color: #fff; }
.footer-cols a { display: block; padding: 3px 0; font-size: 14px; }
.footer-cols a:hover { color: var(--brand); }
.footer-cols p { margin: 0; font-size: 14px; }
.footer-big { font-size: clamp(64px, 14vw, 200px); font-weight: 900; color: var(--brand); margin: 24px 0 0; line-height: 1; letter-spacing: -.04em; }
.footer-note { font-size: 13px; color: #bdbdbd; margin: 12px 0 0; }
.footer-note a { text-decoration: underline; }

/* Mobile tab bar */
.tabbar { display: none; }

@media (max-width: 1000px) {
  .main-links { display: none; }
  .deals .rail { display: flex; overflow-x: auto; }
  .deals .rail .deal-card:nth-child(n+9) { display: none; }
}
@media (max-width: 860px) {
  .hero, .pdp, .checkout { grid-template-columns: 1fr; }
  .hero-pics { grid-template-rows: 160px 160px; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; }
  .gallery-thumbs button { width: 64px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { padding-bottom: 64px; font-size: 15px; }
  .hide-sm { display: none !important; }
  .promise-bar { gap: 14px; font-size: 13px; padding: 7px 16px; justify-content: space-between; }
  .promise small { display: none; }
  .header-in { padding: 8px 16px; gap: 8px 10px; flex-wrap: wrap; }
  .header .search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .header-actions { margin-inline-start: auto; }
  .logo-mark { height: 40px; font-size: 19px; padding: 0 10px; }
  .search button { width: 34px; height: 34px; }
  .search input { padding: 6px 10px; }
  main { padding: 12px 16px 40px; }
  .hero-copy { padding: 24px 20px; }
  .hero-copy p { font-size: 18px; }
  .hero-pics { grid-template-rows: 130px 130px; padding: 0 12px 12px; }
  .circles { gap: 12px; }
  .circle, .circle span { width: 72px; }
  .circle span { height: 72px; }
  .circle { font-size: 13px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .price { font-size: 20px; }
  .deal-card { flex-basis: 148px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-in { padding: 28px 16px 20px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.08); /* taste-skill-ignore: sticky bar */ z-index: 35; padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; font-weight: 700;
    background: none; border: 0; padding: 2px; position: relative; color: var(--muted);
  }
  .tabbar .active { color: var(--brand-ink); }
  .tabbar .badge { left: calc(50% - 22px); }
  .pdp-actions { position: fixed; bottom: 64px; left: 0; right: 0; background: #fff; padding: 10px 16px; margin: 0; z-index: 34; box-shadow: 0 -4px 16px rgba(0,0,0,.08); /* taste-skill-ignore: sticky bar */ }
  .pdp { padding-bottom: 80px; }
  .gift-fab { bottom: 80px; inset-inline-start: 16px; font-size: 14px; }
  [data-page="product"] .gift-fab, [data-page="checkout"] .gift-fab { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
}

/* Auth, account, form messages */
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
.hint { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.form-error { background: #fde8e8; color: #a11212; border-radius: 8px; padding: 10px 12px; font-weight: 700; margin: 14px 0 0; }
.auth { display: grid; place-items: center; padding: 24px 0 40px; }
.auth-card { width: min(440px, 100%); display: grid; gap: 14px; padding: 28px; }
.auth-card h1 { margin: 0; font-size: 28px; }
.auth-sub { margin: -6px 0 4px; color: var(--muted); }
.auth-switch { text-align: center; margin: 0; }
.auth-switch a { color: var(--brand-ink); font-weight: 800; text-decoration: underline; }
.account { display: grid; gap: 14px; max-width: 760px; }
.account-head { display: flex; align-items: center; gap: 14px; }
.account-head h1 { margin: 0; font-size: 24px; }
.account-head p { margin: 0; color: var(--muted); text-align: start; }
.avatar-lg { width: 60px; height: 60px; font-size: 24px; background: var(--brand); }
.account-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.account-links a { display: grid; gap: 2px; transition: background .15s; }
.account-links a:hover { background: #ececec; }
.account-links svg { width: 28px; height: 28px; color: var(--brand-ink); margin-bottom: 6px; }
.account-links span { color: var(--muted); font-size: 14px; }
.account > .btn { justify-self: start; }
.status-shipped { background: #e6f0fb; color: #144d8a; }
.status-delivered { background: var(--green-bg); color: var(--green); }
.status-cancelled { background: #f1f1f1; color: var(--muted); }
.status-pending { background: #fff1e5; color: var(--brand-ink); }
