:root {
  --ink: #152238;
  --muted: #5d6b82;
  --line: #e3e9f2;
  --bg: #f6f8fc;
  --surface: #fff;
  --blue: #3d62ad;
  --blue-deep: #2c4a8a;
  --sky: #dfeafb;
  --cream: #f7f3ec;
  --red: #c8323a;
  --wa: #1fa855;
  --shadow: 0 1px 2px rgba(21, 34, 56, .04), 0 8px 24px rgba(44, 74, 138, .08);
  --shadow-lift: 0 2px 4px rgba(21, 34, 56, .05), 0 18px 40px rgba(44, 74, 138, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --on-ink: #fff;
  --header-bg: rgba(255, 255, 255, .82);
  --hero-top: #fff;
  --err-bg: #fdecec;
  --err-ink: #a3242b;
  --z-header: 10;
  --z-scrim: 20;
  --z-cart: 30;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #e8edf6;
  --on-ink: #0f1726;
  --muted: #9aa7bd;
  --line: #27334b;
  --bg: #0d1420;
  --surface: #151f31;
  --blue: #7493dd;
  --blue-deep: #5f7fcc;
  --sky: #13213a;
  --cream: #1b2638;
  --red: #ff7a80;
  --header-bg: rgba(13, 20, 32, .82);
  --hero-top: #0d1420;
  --err-bg: #3a1c22;
  --err-ink: #ffb4b9;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1rem/1.55 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Raleway', 'Outfit', sans-serif; letter-spacing: -.02em; text-wrap: balance; }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid rgba(61, 98, 173, .45); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* Theme toggle: show the moon in light mode, the sun in dark mode */
.theme-btn { color: var(--ink); }
.theme-btn .sun, [data-theme="dark"] .theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: block; }
body, .topbar, .card, .cart, .categories, .search, #checkout input { transition: background-color .3s, border-color .3s, color .3s; }
dialog { background: var(--surface); }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { height: 44px; width: auto; display: block; }
.logo-text { padding-left: 12px; border-left: 1px solid var(--line); }
.logo-text { display: flex; flex-direction: column; font: 700 1.02rem/1.1 'Raleway', sans-serif; letter-spacing: -.01em; }
.logo-text small { font: 500 .75rem 'Outfit', sans-serif; color: var(--blue); letter-spacing: .02em; }
.search {
  flex: 1; max-width: 420px; margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px;
  color: var(--muted); transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: var(--blue); background: var(--surface); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 0; outline: none; }
.cart-btn {
  display: flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 10px 14px;
  background: var(--ink); color: var(--on-ink); font-weight: 500; transition: transform .15s var(--ease), background .2s;
}
.cart-btn:hover { background: var(--blue-deep); }
.cart-btn:active { transform: scale(.97); }
.count {
  min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--on-ink); color: var(--ink);
  font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center;
}
.count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 110%, rgba(61, 98, 173, .22), transparent 70%),
    radial-gradient(50% 60% at 10% 0%, var(--hero-top), transparent 70%),
    linear-gradient(180deg, var(--hero-top) 0%, var(--sky) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 72px; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 4px 10px; border-radius: 6px;
  background: rgba(61, 98, 173, .1); color: var(--blue-deep); font-size: .82rem; font-weight: 600; letter-spacing: .02em;
}
.hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.lede { max-width: 32ch; margin: 16px 0 24px; font-size: 1.15rem; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.steps b {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: var(--surface); color: var(--blue); box-shadow: var(--shadow); font-size: .85rem;
}
.tagline { margin: 4px 0 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tagline span { font: 800 1.5rem 'Raleway', sans-serif; letter-spacing: -.01em; line-height: 1; }
.tl-the { font: 600 1rem 'Outfit', sans-serif; color: var(--muted); }
.tl-power, .tl-of { color: var(--red); }
.tl-clean { color: var(--blue-deep); }

.hero-art { position: relative; height: 380px; }
.art {
  position: absolute; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 22px;
  background: #fff; box-shadow: var(--shadow-lift); transition: opacity .6s, filter .6s;
  animation: float 6s ease-in-out infinite;
}
.art.swap { opacity: 0; filter: blur(6px); }
@keyframes float { 50% { translate: 0 -10px; } }
.art-1 { left: 0; top: 60px; transform: rotate(-6deg); }
.art-2 { left: 27%; top: 0; z-index: 2; width: 46%; animation-delay: -2s; }
.art-3 { right: 0; top: 110px; transform: rotate(7deg); animation-delay: -4s; }
.stamp {
  position: absolute; z-index: 3; left: 4%; bottom: 0; display: flex; align-items: baseline; gap: 6px;
  padding: 10px 16px; border-radius: 14px; background: var(--ink); color: var(--on-ink); font-weight: 500; box-shadow: var(--shadow-lift);
}
.stamp b { font: 800 1.6rem 'Raleway', sans-serif; letter-spacing: -.03em; }

/* Shelf */
main { padding-top: 48px; padding-bottom: 72px; }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.shelf-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.categories { flex: 1 0 100%; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.categories::-webkit-scrollbar { display: none; }
.categories button {
  flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 0; background: none; padding: 0; color: var(--muted); font-size: .75rem; font-weight: 500; line-height: 1.2; text-align: center;
}
.categories img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: var(--cream); border: 2px solid var(--line); margin-bottom: 4px; transition: border-color .2s, transform .2s; }
.categories button:hover img { transform: scale(1.06); }
.categories button.active { color: var(--ink); font-weight: 700; }
.categories button.active img { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.categories small { opacity: .6; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; outline: none; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.room { grid-column: 1 / -1; margin: 18px 0 -4px; font: 800 1.35rem 'Raleway', sans-serif; letter-spacing: -.02em; display: flex; align-items: center; gap: 14px; }
.room:first-child { margin-top: 0; }
.sale-head { color: var(--red); }
.card.sale { box-shadow: 0 0 0 2px var(--red), var(--shadow); }
.card.sale:hover { box-shadow: 0 0 0 2px var(--red), var(--shadow-lift); }
.sale-tag { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.room::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.save { position: absolute; z-index: 1; bottom: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; background: #1f9d55; color: #fff; font-size: .78rem; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.ctl .stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--blue); border-radius: 10px; padding: 2px; }
.ctl .stepper button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 1.1rem; font-weight: 700; }
.ctl .stepper button:hover { background: var(--blue); color: #fff; }
.ctl .stepper span { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.card .img { position: relative; aspect-ratio: 1; background: var(--cream); overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.card:hover .img img { transform: scale(1.04); }
.badge { color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.card .body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.card .cat { font-size: .78rem; font-weight: 500; color: var(--blue); }
.card h3 {
  margin: 4px 0 6px; font: 600 1rem/1.35 'Outfit', sans-serif; letter-spacing: 0;
}
.meta { margin: 0 0 14px; font-size: .82rem; color: var(--muted); }
.row { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.prices { display: flex; flex-direction: column; line-height: 1.15; }
.price { white-space: nowrap; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.was { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.add {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 8px 14px; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.add { white-space: nowrap; }
.add:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.add:active { transform: scale(.96); }
.add.added { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* Cart slide-over */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-scrim); background: rgba(21, 34, 56, .38);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.scrim.open { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-cart);
  width: min(420px, 100%); background: var(--surface); overflow-y: auto; padding: 20px 22px 32px;
  transform: translateX(100%); visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
  box-shadow: -20px 0 50px rgba(21, 34, 56, .18);
}
.cart.open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--bg); transition: background .2s; }
.icon-btn:hover { background: var(--line); }
.cart-items { list-style: none; margin: 16px 0 0; padding: 0; }
.cart-items li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-items img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--cream); }
.cart-items .name { font-size: .9rem; font-weight: 500; line-height: 1.3; }
.cart-items .name small { display: block; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; }
.stepper button { width: 30px; height: 30px; border: 0; background: none; border-radius: 9px; font-size: 1.05rem; transition: background .2s; }
.stepper button:hover { background: var(--bg); }
.stepper span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-empty { display: block !important; text-align: center; color: var(--muted); padding: 40px 0 !important; border: 0 !important; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 8px; font-size: 1.05rem; }
.total strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

#checkout { display: flex; flex-direction: column; gap: 12px; }
#checkout h3 { margin: 16px 0 0; font-size: 1.05rem; font-weight: 700; }
#checkout label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--muted); }
#checkout input {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink);
  transition: border-color .2s, background .2s;
}
#checkout input:focus { outline: none; border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 3px rgba(61, 98, 173, .15); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--err-bg); color: var(--err-ink); font-size: .9rem; }
.primary {
  border: 0; border-radius: 12px; padding: 14px; background: var(--blue); color: #fff; font-weight: 600;
  transition: background .2s, transform .15s var(--ease);
}
.primary:hover { background: var(--blue-deep); }
.primary:active { transform: scale(.98); }


/* Payment choice + QR in the order dialog */
.pay-methods { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pay-methods legend { padding: 0; margin-bottom: 8px; font-size: 1.05rem; font-weight: 700; font-family: 'Raleway', 'Outfit', sans-serif; }
.pay-opt {
  display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--ink) !important;
  transition: border-color .2s, background .2s;
}
.pay-opt:hover { border-color: var(--blue); }
.pay-opt:has(input:checked) { border-color: var(--blue); background: rgba(61, 98, 173, .08); }
#checkout .pay-opt input { margin: 2px 0 0; accent-color: var(--blue); width: 18px; height: 18px; flex: none; padding: 0; border: 0; background: none; box-shadow: none; }
.pay-opt b { display: block; font-weight: 600; font-size: .95rem; }
.pay-opt small { display: block; margin-top: 2px; font-size: .8rem; font-weight: 400; color: var(--muted); line-height: 1.4; }
.qr-block { margin: 16px 0 4px; }
.qr-card {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 18px 16px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow); /* stays white in dark mode so the QR scans */
}
.qr-card img { width: 280px; max-width: 100%; display: block; }
.qr-card strong { margin-top: 4px; color: #152238; letter-spacing: .04em; font-size: .92rem; }
.qr-card span { color: #5d6b82; font-size: .78rem; }
.save-qr {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 9px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.save-qr svg { width: 18px; height: 18px; }
.save-qr:hover { border-color: var(--blue); color: var(--blue); }
.qr-tip { margin: 10px auto 0 !important; max-width: 34ch; font-size: .82rem; line-height: 1.5; }
.wa-tip { margin: 8px 0 0 !important; padding: 10px 12px; border-radius: 10px; background: var(--err-bg); color: var(--err-ink) !important; font-size: .85rem; font-weight: 600; }

/* Logged-in bar */
.user-bar { border-top: 1px solid var(--line); background: var(--sky); font-size: .85rem; }
.user-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.user-bar-inner > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-bar b { font-weight: 600; }
.user-bar .dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--wa); }
.user-actions { display: flex; gap: 14px; flex: none; }
.user-actions .link-btn { padding: 2px 0; font-size: .85rem; }

/* Checkout note + login */
.pay-note { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.form-ok { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(31, 168, 85, .12); color: #14803d; font-size: .9rem; }
[data-theme="dark"] .form-ok { color: #6fe0a0; }
.account-btn { position: relative; color: var(--ink); }
.account-btn.signed-in::after {
  content: ''; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--wa); box-shadow: 0 0 0 2px var(--surface);
}
dialog.auth { text-align: left; width: min(420px, calc(100% - 32px)); padding: 26px 24px 22px; }
.auth-close { position: absolute; top: 12px; right: 12px; }
dialog.auth h2 { margin: 0 0 6px; }
dialog.auth h3 { margin: 18px 0 8px; font-size: 1rem; }
.auth-note { margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
.auth form { display: flex; flex-direction: column; gap: 12px; }
.auth label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--muted); }
.auth input {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink);
}
.auth input:focus { outline: none; border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 3px rgba(61, 98, 173, .15); }
.auth-switch { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0 0; }
.auth-switch .link-btn { padding: 4px 0; font-size: .88rem; }
.ghost {
  width: 100%; margin-top: 14px; padding: 11px; border: 1px solid var(--line); border-radius: 12px;
  background: none; color: var(--ink); font-weight: 600; transition: border-color .2s, color .2s;
}
.ghost:hover { border-color: var(--blue); color: var(--blue); }
.orders { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.orders li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.orders small { display: block; color: var(--muted); }
.orders .muted { color: var(--muted); justify-content: center; }
.ord-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.ord-right a { font-size: .82rem; color: var(--blue); }
.pill { padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.pill.paid { background: rgba(31, 168, 85, .14); color: #14803d; }
.pill.pending { background: rgba(224, 165, 38, .18); color: #9a6b00; }
[data-theme="dark"] .pill.paid { color: #6fe0a0; }
[data-theme="dark"] .pill.pending { color: #f0c15a; }
#payBtn:disabled { opacity: .7; cursor: progress; }

/* Order dialog */
dialog {
  border: 0; border-radius: 22px; padding: 28px 26px 20px; width: min(380px, calc(100% - 32px)); text-align: center;
  box-shadow: var(--shadow-lift); color: var(--ink);
}
dialog::backdrop { background: rgba(21, 34, 56, .45); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.done-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(31, 168, 85, .12); color: var(--wa); }
.done-icon svg { width: 26px; height: 26px; stroke-width: 2.4; }
dialog h2 { margin: 12px 0 6px; font-size: 1.5rem; font-weight: 800; }
dialog p { margin: 0; color: var(--muted); }
.wa-btn {
  display: block; margin: 20px 0 6px; padding: 14px; border-radius: 12px; background: var(--wa); color: #fff;
  font-weight: 600; text-decoration: none; transition: filter .2s, transform .15s var(--ease);
}
.wa-btn:hover { filter: brightness(1.06); }
.wa-btn:active { transform: scale(.98); }
.link-btn { border: 0; background: none; color: var(--blue); font-weight: 500; padding: 8px; }

footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 48px; }
  .hero-art { height: 250px; max-width: 420px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .topbar-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo { flex: 1; min-width: 0; gap: 8px; }
  .logo-mark { height: 36px; }
  .logo-text { padding-left: 8px; font-size: .92rem; }
  .cart-btn > span:not(.count) { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { border-radius: 16px; }
  .card .body { padding: 12px; }
  .card h3 { font-size: .9rem; }
  .price { font-size: 1.05rem; }
  .row { flex-direction: column; align-items: stretch; }
  .add { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
