/* ==========================================================
   Köşe — Van'ın Seçkin Esnafı · Demo
   Mobile-first
   ========================================================== */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f4efe6;
  --ink: #1d1b16;
  --ink-2: #3d3a33;
  --muted: #7a7266;
  --line: #ebe4d8;
  --primary: #0e5e6f;
  --primary-2: #0a4552;
  --primary-soft: #e3f0f2;
  --accent: #f59e0b;
  --accent-2: #e8772e;
  --accent-soft: #fff4e0;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(29, 27, 22, .06), 0 2px 8px rgba(29, 27, 22, .04);
  --shadow: 0 8px 30px rgba(29, 27, 22, .08);
  --shadow-lg: 0 20px 60px rgba(14, 94, 111, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --topbar-h: 64px;
  --bottomnav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-b));
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255, 255, 255, .7); }
.display { font-family: var(--display); letter-spacing: -.02em; }

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  background: var(--ink);
  color: #f5e9d4;
  font-size: 12px;
  text-align: center;
  padding: 6px 12px;
  letter-spacing: .02em;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 243, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.topbar.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 12px; }

.logo { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fbbf24; font-family: var(--display); font-weight: 800; font-size: 20px;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(14, 94, 111, .3);
}
.logo-text { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; color: var(--primary-2); }
.logo-dot { color: var(--accent); }
.logo-light .logo-text { color: #fff; }

.loc-chip {
  display: flex; align-items: center; gap: 6px;
  min-width: 0; flex: 1;
  padding: 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--primary);
  transition: border-color .2s;
}
.loc-chip:hover { border-color: var(--primary); }
.loc-text { display: flex; flex-direction: column; text-align: left; line-height: 1.1; min-width: 0; }
.loc-text small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.loc-text b { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-chip .chev { flex-shrink: 0; color: var(--muted); }

.search-desk, .desk-nav { display: none; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-grid; place-items: center;
  color: var(--ink-2); transition: background .2s;
}
.icon-btn:hover { background: var(--surface-2); }

.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 12px; border-radius: 14px;
  background: var(--primary); color: #fff; font-weight: 700;
  box-shadow: 0 6px 16px rgba(14, 94, 111, .28);
  transition: transform .15s, background .2s;
  flex-shrink: 0;
}
.cart-btn:hover { background: var(--primary-2); }
.cart-btn:active { transform: scale(.96); }
.cart-total { display: none; font-size: 14px; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.bump { animation: bump .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.18); } 70% { transform: scale(.94); } }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  height: calc(var(--bottomnav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  padding: 6px 0;
}
.bottom-nav a svg { width: 24px; height: 24px; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active svg { transform: translateY(-1px); }
.bn-cart { display: grid; place-items: center; }
.bn-cart-circle {
  position: relative; width: 56px; height: 56px; margin-top: -26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(232, 119, 46, .45), 0 0 0 5px var(--bg);
}
.bn-cart-circle svg { width: 26px; height: 26px; }
.bn-cart-circle .cart-count { background: var(--primary); color: #fff; border-color: #fff; top: -2px; right: -2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 14px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .15s, background .2s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(14, 94, 111, .25); }
.btn-primary:hover { background: var(--primary-2); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--ink); box-shadow: 0 8px 20px rgba(232, 119, 46, .3); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-light { background: #fff; color: var(--primary-2); }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2);
  white-space: nowrap;
}
.chip-primary { background: var(--primary-soft); color: var(--primary-2); }
.chip-accent { background: var(--accent-soft); color: #9a4b0b; }
.chip-dark { background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); }

/* ---------- Sections ---------- */
.section { padding: 28px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.see-all { font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 18px 0 8px; overflow: hidden; }
.hero-card {
  position: relative; border-radius: 26px; overflow: hidden;
  background: linear-gradient(150deg, var(--primary-2) 0%, var(--primary) 55%, #13788c 100%);
  color: #fff; padding: 26px 20px 22px;
  box-shadow: var(--shadow-lg);
}
.hero-card::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(251, 191, 36, .35), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, .12), transparent 45%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .18);
}
.hero-badge b { background: var(--accent); color: var(--ink); padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(32px, 8.6vw, 60px); letter-spacing: -.035em;
  margin: 16px 0 12px; line-height: 1.02;
}
.hero h1 em { font-style: italic; color: #fbbf24; font-weight: 700; }
.hero-sub { font-size: 15px; color: rgba(255, 255, 255, .82); max-width: 460px; }
.hero-search {
  margin-top: 20px; display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 16px; padding: 6px 6px 6px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.hero-search svg { color: var(--muted); flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 42px; font-size: 15px; color: var(--ink); }
.hero-search .btn { height: 42px; padding: 0 16px; }
.hero-trust { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust i { width: 18px; height: 18px; border-radius: 50%; background: rgba(251, 191, 36, .22); color: #fbbf24; display: grid; place-items: center; font-style: normal; font-size: 11px; }

.hero-collage { display: none; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.hero-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; text-align: center; }
.hero-stat b { display: block; font-family: var(--display); font-size: 22px; color: var(--primary-2); line-height: 1.1; }
.hero-stat span { font-size: 11.5px; color: var(--muted); }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-card {
  position: relative; display: block; aspect-ratio: 1 / 1.05;
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.cat-card:first-child { grid-column: span 2; aspect-ratio: 2 / 1.05; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; z-index: -2; }
.cat-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .72) 100%); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card:hover img { transform: scale(1.06); }
.cat-info { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.cat-info h3 { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.cat-info p { font-size: 12.5px; opacity: .85; margin-top: 2px; }
.cat-card .chip-dark { position: absolute; top: 10px; left: 10px; font-size: 11px; }

/* ---------- Horizontal scroller ---------- */
.h-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 16px 12px; margin: 0 -16px;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; }

/* ---------- Shop card ---------- */
.shop-card {
  display: block; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shop-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.shop-cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-cover .chip { position: absolute; top: 10px; left: 10px; }
.shop-cover .seal { position: absolute; right: 10px; bottom: -18px; }
.seal {
  width: 46px; height: 46px; border-radius: 50%;
  background: conic-gradient(from 0deg, #fbbf24, #f59e0b, #fbbf24, #f59e0b, #fbbf24);
  display: grid; place-items: center; color: var(--ink); font-size: 18px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, .45), 0 0 0 3px #fff;
}
.shop-body { padding: 14px 14px 16px; }
.shop-body h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; padding-right: 44px; }
.shop-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.shop-meta b { color: var(--ink); }
.star { color: var(--accent); }
.shop-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.shop-tags .chip { font-size: 11px; padding: 4px 9px; }

/* ---------- Product card ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.prod-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; transition: box-shadow .25s, transform .25s;
}
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.prod-img { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; cursor: pointer; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prod-card:hover .prod-img img { transform: scale(1.05); }
.prod-img .chip { position: absolute; top: 8px; left: 8px; font-size: 10.5px; padding: 3px 8px; }
.fav-btn {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--muted);
  box-shadow: var(--shadow-sm); transition: transform .2s, color .2s;
}
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn.on { color: #e11d48; }
.fav-btn:active { transform: scale(.85); }
.sold-out { position: absolute; inset: 0; background: rgba(255, 255, 255, .7); display: grid; place-items: center; font-weight: 800; color: var(--ink-2); font-size: 13px; letter-spacing: .04em; }
.prod-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.prod-shop { font-size: 11px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-name { font-size: 14px; font-weight: 700; line-height: 1.25; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.prod-unit { font-size: 12px; color: var(--muted); }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.price s { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.price.sale { color: var(--accent-2); }
.add-btn {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: var(--primary); color: #fff; font-size: 22px; font-weight: 600; line-height: 1;
  display: grid; place-items: center; transition: transform .15s, background .2s;
}
.add-btn:hover { background: var(--primary-2); }
.add-btn:active { transform: scale(.9); }

.stepper {
  display: inline-flex; align-items: center; height: 38px; border-radius: 12px;
  background: var(--primary); color: #fff; overflow: hidden;
}
.stepper button { width: 34px; height: 100%; font-size: 18px; font-weight: 700; display: grid; place-items: center; }
.stepper button:active { background: rgba(255, 255, 255, .15); }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; }
.stepper.light { background: var(--surface-2); color: var(--ink); }

/* ---------- Bundles ---------- */
.bundle-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 220px; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate;
  padding: 16px;
}
.bundle-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bundle-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 69, 82, .05) 20%, rgba(10, 69, 82, .92)); }
.bundle-card h3 { font-family: var(--display); font-size: 22px; }
.bundle-card p { font-size: 12.5px; opacity: .85; margin: 4px 0 12px; }
.bundle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bundle-row b { font-size: 18px; }
.bundle-row small { display: block; font-size: 11px; opacity: .75; font-weight: 500; }

/* ---------- Why / criteria ---------- */
.why { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid { display: grid; gap: 12px; }
.why-item { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.why-ico { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font-size: 22px; background: var(--primary-soft); }
.why-item h4 { font-size: 15px; font-weight: 800; }
.why-item p { font-size: 13px; color: var(--muted); margin-top: 3px; }

.quote-card {
  margin-top: 16px; padding: 20px; border-radius: var(--radius);
  background: var(--ink); color: #f5e9d4; position: relative; overflow: hidden;
}
.quote-card::before { content: '“'; position: absolute; right: 12px; top: -30px; font-family: var(--display); font-size: 160px; color: rgba(251, 191, 36, .15); }
.quote-card p { font-family: var(--display); font-size: 19px; line-height: 1.35; position: relative; }
.quote-card small { display: block; margin-top: 10px; color: rgba(245, 233, 212, .6); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 10px; counter-reset: s; }
.step { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; font-family: var(--display); font-size: 18px; }
.step h4 { font-size: 15px; font-weight: 800; }
.step p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Plus banner ---------- */
.plus-banner {
  position: relative; overflow: hidden; border-radius: 24px; padding: 24px 20px;
  background: linear-gradient(135deg, #1d1b16 0%, #3a2a12 100%); color: #fff;
}
.plus-banner::after {
  content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, .45), transparent 65%);
}
.plus-banner > * { position: relative; z-index: 1; }
.plus-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .02em;
}
.plus-badge::before { content: '★'; }
.plus-banner h3 { font-family: var(--display); font-size: 26px; margin: 12px 0 8px; letter-spacing: -.02em; }
.plus-banner h3 em { color: #fbbf24; font-style: italic; }
.plus-list { display: grid; gap: 8px; margin: 14px 0 18px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.plus-list li { display: flex; gap: 10px; align-items: flex-start; }
.plus-list li::before { content: '✓'; color: #fbbf24; font-weight: 800; }
.plus-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.plus-price b { font-family: var(--display); font-size: 34px; color: #fbbf24; }

/* ---------- Reviews ---------- */
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.review-stars { color: var(--accent); letter-spacing: 2px; }
.review p { font-size: 14px; color: var(--ink-2); }
.review-who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--primary); font-size: 14px; flex-shrink: 0; }
.review-who b { font-size: 13.5px; display: block; }
.review-who span { font-size: 12px; color: var(--muted); }

/* ---------- Apply CTA ---------- */
.apply-cta {
  border-radius: 24px; padding: 24px 20px; display: grid; gap: 16px;
  background: var(--accent-soft); border: 1px dashed #f3c27a;
}
.apply-cta h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; }
.apply-cta p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

/* ---------- Page header (category / shop) ---------- */
.page-hero { position: relative; height: 220px; overflow: hidden; color: #fff; isolation: isolate; }
.page-hero.tall { height: auto; min-height: 260px; }
.page-hero.tall .container { min-height: 260px; padding-top: 68px; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .75)); }
.page-hero .container { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 20px; }
.page-hero h1 { font-family: var(--display); font-size: 34px; letter-spacing: -.03em; }
.page-hero p { opacity: .88; font-size: 14px; margin-top: 4px; }
.back-btn {
  position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; z-index: 2;
  box-shadow: var(--shadow-sm);
}
.crit-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.crit-row .chip { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }

.shop-head { margin-top: -28px; position: relative; z-index: 2; }
.shop-head-card { background: var(--surface); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.shop-head-top { display: flex; align-items: flex-start; gap: 12px; }
.shop-head-top h1 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; }
.shop-head-top .seal { flex-shrink: 0; width: 52px; height: 52px; font-size: 20px; }
.shop-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.kpi { background: var(--bg); border-radius: 12px; padding: 10px; text-align: center; }
.kpi b { display: block; font-size: 17px; font-weight: 800; }
.kpi span { font-size: 11px; color: var(--muted); }
.story { margin-top: 14px; font-size: 14px; color: var(--ink-2); padding-left: 12px; border-left: 3px solid var(--accent); }

.score-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.score-card h4 { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.score { display: grid; grid-template-columns: 100px 1fr 38px; align-items: center; gap: 10px; font-size: 13px; margin-top: 8px; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #22a3b8); width: 0; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.score b { text-align: right; }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px 6px; scrollbar-width: none; }
.toolbar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: all .2s;
}
.filter-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.select { height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; font-size: 13px; font-weight: 600; flex-shrink: 0; }

/* ---------- Search page ---------- */
.search-page { padding-top: 16px; }
.search-big {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px; border-radius: 16px;
  background: var(--surface); border: 1.5px solid var(--line); transition: border-color .2s;
}
.search-big:focus-within { border-color: var(--primary); }
.search-big input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 20px; }
.empty .em { font-size: 52px; }
.empty h3 { font-family: var(--display); font-size: 22px; margin: 10px 0 6px; }
.empty p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ---------- Overlay / Drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(20, 18, 14, .45); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0;
  max-height: 92vh; height: 92vh;
  background: var(--bg); border-radius: 24px 24px 0 0;
  display: flex; flex-direction: column;
  transform: translateY(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; position: relative; }
.drawer-head::before { content: ''; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
.drawer-head h3 { font-family: var(--display); font-size: 24px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 16px 16px; overscroll-behavior: contain; }
.drawer-foot { padding: 12px 16px calc(14px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }

.cart-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 12px; overflow: hidden; }
.cart-group-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--bg)); }
.cart-group-head img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.cart-group-head b { font-size: 14px; display: block; }
.cart-group-head small { font-size: 11.5px; color: var(--muted); }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.cart-line + .cart-line { border-top: 1px dashed var(--line); }
.cart-line img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info b { font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-line-info span { font-size: 12px; color: var(--muted); }
.cart-line .stepper { height: 32px; }
.cart-line .stepper button { width: 28px; }
.cart-group-foot { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 12.5px; color: var(--muted); background: var(--bg); }

.notice { display: block; padding: 12px 14px; border-radius: 14px; font-size: 13px; margin-top: 12px; }
.notice-info { background: var(--primary-soft); color: var(--primary-2); }
.notice-warn { background: var(--accent-soft); color: #8a4a0c; }
.notice-ok { background: #e7f7ec; color: #166534; }

.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; transition: width .4s; }

.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.sum-row.total { font-size: 17px; font-weight: 800; padding-top: 8px; margin-top: 6px; border-top: 1px dashed var(--line); }
.sum-row .free { color: var(--success); font-weight: 700; }
.sum-row s { color: var(--muted); margin-right: 6px; font-weight: 500; }

/* ---------- Sheet / modal ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.sheet.open { pointer-events: auto; }
.sheet::before { content: ''; position: absolute; inset: 0; background: rgba(20, 18, 14, .5); opacity: 0; transition: opacity .25s; backdrop-filter: blur(3px); }
.sheet.open::before { opacity: 1; }
.sheet-card {
  position: relative; width: 100%; max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: 24px 24px 0 0;
  transform: translateY(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: var(--safe-b); overscroll-behavior: contain;
}
.sheet.open .sheet-card { transform: none; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); display: grid; place-items: center; font-size: 16px; }
.sheet-pad { padding: 22px 18px 20px; }
.sheet-title { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; margin-bottom: 4px; padding-right: 40px; }

.pd-img { aspect-ratio: 4 / 3; background: var(--surface-2); }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-shop { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; }
.pd-shop img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.pd-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.pd-meta div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; font-size: 11.5px; color: var(--muted); }
.pd-meta b { display: block; font-size: 14px; color: var(--ink); }
.pd-actions { display: flex; gap: 10px; align-items: center; position: sticky; bottom: 0; padding: 12px 18px calc(12px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }
.pd-actions .stepper { height: 48px; border-radius: 14px; }
.pd-actions .stepper button { width: 42px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); outline: 0; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: 84px; padding: 12px 14px; resize: vertical; }
.input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14, 94, 111, .1); }
.input.err { border-color: var(--danger); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.opt-list { display: grid; gap: 8px; margin-top: 10px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; transition: border-color .2s; }
.opt .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); transform: scale(0); transition: transform .2s; }
.opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.opt:has(input:checked) .radio { border-color: var(--primary); }
.opt:has(input:checked) .radio::after { transform: scale(1); }
.opt-ico { font-size: 22px; }
.opt-txt { flex: 1; min-width: 0; }
.opt-txt b { font-size: 14px; display: block; }
.opt-txt span { font-size: 12px; color: var(--muted); }
.opt-price { font-weight: 800; font-size: 14px; text-align: right; }
.opt-price s { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }

.slots { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; scrollbar-width: none; }
.slots::-webkit-scrollbar { display: none; }
.slot { flex-shrink: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; }
.slot.on { border-color: var(--primary); background: var(--primary); color: #fff; }

.toggle { position: relative; width: 48px; height: 28px; border-radius: 99px; background: var(--line); flex-shrink: 0; transition: background .2s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s; }
.toggle.on { background: var(--success); }
.toggle.on::after { transform: translateX(20px); }

/* ---------- Checkout ---------- */
.checkout { padding-top: 18px; display: grid; gap: 16px; }
.co-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.co-card h3 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.co-card h3 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; display: grid; place-items: center; }
.co-summary { position: relative; }
.page-title { font-family: var(--display); font-size: 30px; letter-spacing: -.02em; }

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: calc(var(--bottomnav-h) + var(--safe-b)); z-index: 44;
  padding: 10px 16px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px;
}
.mobile-cta .mc-total { flex: 1; line-height: 1.15; }
.mobile-cta .mc-total small { font-size: 11.5px; color: var(--muted); display: block; }
.mobile-cta .mc-total b { font-size: 18px; }
.has-mobile-cta { padding-bottom: 90px; }

/* ---------- Order tracking ---------- */
.track-hero {
  background: linear-gradient(150deg, var(--primary-2), var(--primary)); color: #fff;
  border-radius: 24px; padding: 22px 18px; margin-top: 16px; position: relative; overflow: hidden;
}
.track-hero::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .35), transparent 70%); }
.track-hero h2 { font-family: var(--display); font-size: 26px; margin: 6px 0; position: relative; }
.track-hero p { opacity: .85; font-size: 14px; position: relative; }
.eta-big { font-family: var(--display); font-size: 46px; font-weight: 800; line-height: 1; margin-top: 12px; color: #fbbf24; position: relative; }
.eta-big small { font-size: 16px; color: #fff; opacity: .8; font-family: var(--font); font-weight: 600; }

.map-card { margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e6efe9; position: relative; height: 180px; }
.map-card svg { width: 100%; height: 100%; }
.courier-dot { transition: transform 1.2s ease-in-out; }

.timeline { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tl-item { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item.done::before { background: var(--primary); }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-2); font-size: 15px; transition: all .3s; position: relative; z-index: 1; }
.tl-item.done .tl-dot { background: var(--primary); color: #fff; }
.tl-item.current .tl-dot { background: var(--accent); box-shadow: 0 0 0 6px rgba(245, 158, 11, .2); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, .05); } }
.tl-item b { font-size: 14px; display: block; }
.tl-item span { font-size: 12.5px; color: var(--muted); }
.tl-item:not(.done):not(.current) b { color: var(--muted); }

.pkg { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg); margin-top: 8px; }
.pkg img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.pkg-info { flex: 1; min-width: 0; }
.pkg-info b { font-size: 13.5px; display: block; }
.pkg-info span { font-size: 12px; color: var(--muted); }

.rate-stars { display: flex; gap: 6px; font-size: 32px; justify-content: center; margin: 12px 0; }
.rate-stars button { color: var(--line); transition: transform .15s, color .15s; }
.rate-stars button.on { color: var(--accent); }
.rate-stars button:active { transform: scale(.85); }

.order-row { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 10px; }
.order-row .stack { display: flex; }
.order-row .stack img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -10px; }
.order-row .stack img:first-child { margin-left: 0; }
.order-row-info { flex: 1; min-width: 0; }
.order-row-info b { font-size: 14px; display: block; }
.order-row-info span { font-size: 12px; color: var(--muted); }
.status-pill { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: #9a4b0b; white-space: nowrap; }
.status-pill.ok { background: #e7f7ec; color: #166534; }

/* ---------- Plus page ---------- */
.plus-hero { background: linear-gradient(160deg, #1d1b16, #3a2a12); color: #fff; padding: 36px 0 40px; position: relative; overflow: hidden; }
.plus-hero::after { content: ''; position: absolute; right: -100px; top: -100px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .4), transparent 65%); }
.plus-hero .container { position: relative; z-index: 1; }
.plus-hero h1 { font-family: var(--display); font-size: clamp(32px, 8vw, 52px); letter-spacing: -.03em; margin: 14px 0 10px; }
.plus-hero h1 em { color: #fbbf24; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: 14px; }
.compare th, .compare td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { background: var(--bg); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare td:nth-child(3), .compare th:nth-child(3) { background: #fff8e8; font-weight: 700; }
.compare tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; margin-top: 8px; }
.faq summary { padding: 14px 0; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--primary); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 0 14px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 36px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: span 2; }
.footer-grid p { margin-top: 12px; font-size: 14px; max-width: 320px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fbbf24; margin-bottom: 12px; }
.footer li { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.footer li a:hover { color: #fff; }
.store-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.store { padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); font-size: 12px; color: rgba(255, 255, 255, .8); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: rgba(255, 255, 255, .5); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(var(--bottomnav-h) + var(--safe-b) + 14px); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 420px; width: 100%;
  background: var(--ink); color: #fff; padding: 10px 10px 10px 14px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 13.5px; pointer-events: auto;
  animation: toastIn .35s cubic-bezier(.2, .8, .2, 1);
}
.toast img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.toast span { flex: 1; }
.toast button { color: #fbbf24; font-weight: 800; font-size: 13px; padding: 6px 8px; }
.toast.out { animation: toastOut .25s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Skeleton / image fallback ---------- */
.img-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; background: linear-gradient(135deg, var(--surface-2), #efe6d6); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.page-enter { animation: pageIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   ≥ 640px
   ========================================================== */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .h-scroll { grid-auto-columns: 46%; padding: 4px 24px 12px; margin: 0 -24px; }
  .toolbar { padding: 2px 24px 10px; margin: 0 -24px 6px; }
  .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-card:first-child { grid-column: span 1; aspect-ratio: 1 / 1.05; grid-row: span 2; aspect-ratio: auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
  .apply-cta { grid-template-columns: 1fr auto; align-items: center; padding: 30px; }
  .loc-chip { flex: 0 1 auto; }
  .page-hero { height: 280px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 1; }
}

/* ==========================================================
   ≥ 960px (desktop)
   ========================================================== */
@media (min-width: 960px) {
  body { padding-bottom: 0; font-size: 15.5px; }
  .bottom-nav, .mobile-cta { display: none; }
  .has-mobile-cta { padding-bottom: 0; }
  .toast-wrap { bottom: 24px; align-items: flex-end; padding: 0 24px; }
  :root { --topbar-h: 76px; }
  .topbar-inner { gap: 18px; }
  .loc-chip { flex: 0 0 auto; max-width: 230px; }
  .search-desk {
    display: flex; align-items: center; gap: 10px; flex: 1; height: 46px; padding: 0 16px;
    border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); color: var(--muted);
    transition: border-color .2s;
  }
  .search-desk:focus-within { border-color: var(--primary); }
  .search-desk input { flex: 1; border: 0; outline: 0; background: none; height: 100%; color: var(--ink); }
  .desk-nav { display: flex; align-items: center; gap: 4px; }
  .plus-link { margin-right: 6px; }
  .cart-total { display: inline; }
  .cart-btn { padding: 0 16px; height: 46px; }

  .section { padding: 48px 0; }
  .section-head h2 { font-size: 34px; }

  .hero { padding: 28px 0 12px; }
  .hero-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; padding: 56px 48px; border-radius: 34px; min-height: 480px; align-items: center; }
  .hero-sub { font-size: 17px; }
  .hero-search { max-width: 520px; }
  .hero-collage { display: grid; position: relative; z-index: 1; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 380px; }
  .hero-collage figure { margin: 0; border-radius: 22px; overflow: hidden; position: relative; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
  .hero-collage figure:first-child { grid-row: span 2; }
  .hero-collage img { width: 100%; height: 100%; object-fit: cover; }
  .hero-collage figcaption { position: absolute; left: 10px; bottom: 10px; }
  .float-card {
    position: absolute; z-index: 2; left: -34px; top: 28px;
    background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px; align-items: center;
    box-shadow: var(--shadow-lg); animation: floaty 5s ease-in-out infinite;
  }
  .float-card .ic { width: 38px; height: 38px; border-radius: 12px; background: #e7f7ec; display: grid; place-items: center; font-size: 18px; }
  .float-card b { font-size: 13.5px; display: block; }
  .float-card span { font-size: 12px; color: var(--muted); }
  @keyframes floaty { 50% { transform: translateY(-8px); } }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
  .hero-stat { padding: 18px; }
  .hero-stat b { font-size: 30px; }

  .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .cat-card, .cat-card:first-child { grid-row: auto; aspect-ratio: 3 / 4; }
  .h-scroll { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 18px; }
  .h-scroll.four { grid-template-columns: repeat(4, 1fr); }
  .prod-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .prod-grid.five { grid-template-columns: repeat(5, 1fr); }
  .why-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
  .why-layout .quote-card { margin-top: 24px; }
  .plus-banner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 44px; border-radius: 30px; }
  .plus-banner h3 { font-size: 38px; }

  .page-hero { height: 340px; }
  .page-hero.tall, .page-hero.tall .container { min-height: 340px; }
  .page-hero h1 { font-size: 52px; }
  .shop-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
  .shop-aside { position: sticky; top: calc(var(--topbar-h) + 16px); display: grid; gap: 14px; }
  .shop-head-card { padding: 24px; }

  .drawer { left: auto; top: 0; bottom: 0; width: 440px; height: 100vh; max-height: none; border-radius: 26px 0 0 26px; transform: translateX(105%); }
  .drawer-head::before { display: none; }

  .sheet { align-items: center; padding: 24px; }
  .sheet-card { max-width: 560px; border-radius: 26px; transform: translateY(20px) scale(.97); opacity: 0; transition: transform .3s, opacity .3s; max-height: 88vh; }
  .sheet.open .sheet-card { transform: none; opacity: 1; }
  .sheet-card.wide { max-width: 860px; }
  .sheet-card.wide .pd-wrap { display: grid; grid-template-columns: 1fr 1fr; }
  .sheet-card.wide .pd-img { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .sheet-card.wide .pd-actions { position: static; border-top: 0; background: none; padding: 0 18px 22px; }

  .checkout { grid-template-columns: 1fr 380px; align-items: start; gap: 24px; }
  .co-summary { position: sticky; top: calc(var(--topbar-h) + 16px); }
  .track-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
  .map-card { height: 260px; }
}
