/* ============================================================
   Coffeete — کافیته
   Blue-themed Persian RTL coffee e-commerce
   ============================================================ */

:root {
  /* Palette — indigo & cream (brand logo) */
  --primary: #2b36a9;
  --primary-dark: #222b8b;
  --primary-darker: #182069;
  --primary-light: #eaecf8;
  --primary-lighter: #f2eee1;
  --accent: #fef9e2;
  --accent-dark: #f5edc6;
  --accent-ink: #2b36a9;
  --accent-strong: #d58b00;

  --cream: #f8f3e9;
  --mascot-cream: #f8f3e9;

  --bg: #f7f2e8;
  --surface: #fffdf7;
  --ink: #1b2145;
  --ink-soft: #4c5178;
  --ink-mute: #7e819e;
  --line: #e8e1d1;

  --danger: #dc2626;
  --success: #16a34a;

  /* Type */
  --font-display: "Lalezar", "Vazirmatn", "Segoe UI", Tahoma, sans-serif;

  /* Radius & shadows */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(27, 33, 69, 0.07);
  --shadow-md: 0 6px 24px -6px rgba(43, 54, 169, 0.16);
  --shadow-lg: 0 16px 48px -12px rgba(27, 33, 69, 0.24);

  /* Type scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: clamp(2rem, 5vw, 3rem);

  --header-h: 72px;
  --bottomnav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

html, body { overflow-x: clip; }

[hidden] { display: none !important; }

body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
}

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; right: 16px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: var(--fs-sm);
  min-height: 44px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--primary-dark); }

.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: var(--primary-light); }

.btn--outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn--ghost { border-color: var(--line); color: var(--primary); background: var(--surface); }
.btn--ghost:hover { background: var(--primary-light); border-color: var(--primary); }

.btn--lg { padding: 14px 32px; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink-soft);
  transition: background 0.18s, color 0.18s;
}
.icon-btn:hover { background: var(--primary-light); color: var(--primary); }

/* ---------- Header ---------- */
.header {
  position: relative; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* ---------- Desktop header (two rows) ---------- */
.d-header { display: none; }

.d-header__row1 {
  display: flex; align-items: center; gap: 14px;
  padding-top: 16px;
}
.d-header__actions { display: flex; align-items: center; gap: 10px; }

.d-location-wrap { position: relative; flex-shrink: 0; }
.d-location {
  display: flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 8px 14px;
  border-radius: 12px;
  background: var(--primary-lighter);
  color: var(--ink-soft); font-size: var(--fs-sm);
  white-space: nowrap;
  transition: background 0.18s;
}
.d-location:hover { background: #ece7d8; }
.d-location > svg:first-child { color: var(--primary); }
.d-location strong { color: var(--ink); font-weight: 800; }
.d-location .chev { color: var(--ink-mute); transition: transform .2s; }
.d-location[aria-expanded="true"] .chev { transform: rotate(180deg); }
.d-location-wrap .city-pop { min-width: 180px; }

.d-search {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 18px;
  border-radius: 14px;
  background: var(--primary-lighter);
  color: var(--ink-mute);
  cursor: text;
}
.d-search:focus-within { outline: 2px solid var(--primary); outline-offset: 1px; }
.d-search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font-size: var(--fs-base); color: var(--ink);
}
.d-search input::placeholder { color: var(--ink-mute); }

.d-cart {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 16px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  color: var(--primary); font-weight: 700; font-size: var(--fs-sm);
  background: var(--surface);
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
}
.d-cart:hover { background: var(--primary-light); }
.d-cart:active { transform: scale(0.97); }
.d-cart__count {
  display: grid; place-items: center;
  min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px;
  background: var(--primary); color: #fff;
  font-size: var(--fs-xs); font-weight: 800;
}
.d-cart__total { font-weight: 800; }

.d-login { white-space: nowrap; }

.d-header__row2 {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 0 14px;
}
.chip--tint {
  background: var(--primary-light); border-color: var(--primary-light);
  color: var(--primary); min-height: 46px;
}
.chip--tint:hover { border-color: var(--primary); }
.d-link {
  font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft);
  padding: 8px 2px;
  transition: color 0.18s;
}
.d-link:hover { color: var(--primary); }
/* ---------- Categories mega menu ---------- */
.catmenu-wrap { position: relative; }
#catMenuBtn[aria-expanded="true"] .catmenu-chev { transform: rotate(180deg); }
.catmenu-chev { transition: transform .2s; }

.catmenu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 140;
  min-width: 620px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.catmenu__row {
  display: flex; gap: 10px;
}
.catmenu__item {
  flex: 1;
  display: grid; justify-items: center; gap: 10px;
  padding: 16px 10px;
  border-radius: var(--r-md);
  font-weight: 700; font-size: var(--fs-sm); color: var(--ink);
  text-align: center;
  transition: background .18s, color .18s;
}
.catmenu__item:hover { background: var(--primary-light); color: var(--primary); }
.catmenu__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 18px;
  background: var(--primary-light); color: var(--primary);
  transition: background .18s, color .18s;
}
.catmenu__item:hover .catmenu__icon { background: var(--primary); color: #fff; }
.catmenu__foot {
  display: flex; justify-content: flex-start;
  border-top: 1px solid var(--line);
  margin-top: 18px; padding-top: 18px;
}

/* ---------- Mobile app header ---------- */
.m-header { display: grid; gap: 12px; padding: 12px 0 14px; }

.m-header__top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.m-header__top > .icon-btn--circle { justify-self: start; }
.m-header__tools { display: flex; gap: 8px; justify-self: end; }

.icon-btn--circle {
  position: relative;
  width: 46px; height: 46px;
  border: 1.5px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink);
}
.icon-btn--circle:hover { background: var(--primary-light); color: var(--primary); }

.notif-dot {
  position: absolute; top: 8px; left: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 2px var(--surface);
}

.m-header__brand { justify-self: center; gap: 8px; }
.m-header__brand .brand__mascot { width: 42px; height: 33px; }
.m-header__brand .brand__name { font-size: 1.65rem; padding-top: 4px; }

.m-header__location-wrap { position: relative; }
.m-header__location {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 8px 14px;
  border-radius: 14px;
  background: var(--primary-lighter);
  color: var(--ink-soft); font-size: var(--fs-sm);
  transition: background 0.18s;
}
.m-header__location:hover { background: #ece7d8; }
.m-header__location > svg:first-child { color: var(--primary); flex-shrink: 0; }
.m-header__location strong { color: var(--ink); font-weight: 800; }
.m-header__location .chev { margin-inline-start: auto; color: var(--ink-mute); transition: transform .2s; }
.m-header__location[aria-expanded="true"] .chev { transform: rotate(-90deg); }

.city-pop {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 130;
  display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 6px;
  box-shadow: var(--shadow-lg);
}
.city-pop button {
  width: 100%; text-align: start;
  padding: 11px 14px; border-radius: 10px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.city-pop button:hover { background: var(--primary-light); color: var(--primary); }
.city-pop button.is-selected { color: var(--primary); font-weight: 800; background: var(--primary-light); }

.m-header__search {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 16px;
  border-radius: 14px;
  background: var(--primary-lighter);
  color: var(--ink-mute);
  cursor: text;
}
.m-header__search:focus-within { outline: 2px solid var(--primary); outline-offset: 1px; }
.m-header__search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font-size: var(--fs-base); color: var(--ink);
}
.m-header__search input::placeholder { color: var(--ink-mute); }

.m-header__chips {
  display: flex; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
  margin-inline: -16px; padding-inline: 16px; padding-bottom: 2px;
}
.m-header__chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line);
  font-weight: 700; font-size: var(--fs-sm); color: var(--ink);
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
}
.chip:active { transform: scale(0.97); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip--primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: var(--shadow-md);
}
.chip--primary:hover { background: var(--primary-dark); color: #fff; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mascot {
  width: 54px; height: 43px;
  color: var(--primary);
  flex-shrink: 0;
}
.brand__badge {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 18px;
  background: var(--cream);
  flex-shrink: 0;
}
.brand__badge .brand__mascot { width: 44px; height: 35px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 400; color: var(--primary);
  line-height: 1.2; padding-top: 6px;
}

.cart-badge {
  position: absolute; top: 2px; left: 2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--line);
  border-radius: 999px; font-size: 11px; font-weight: 800;
  box-shadow: 0 0 0 2px #fff;
}



/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--primary-darker) 0%, var(--primary) 55%, #4553cc 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 90px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.12) 0, transparent 32%),
    radial-gradient(circle at 12% 85%, rgba(255,255,255,.08) 0, transparent 40%);
}
.hero__inner {
  position: relative;
  display: grid; gap: 40px; align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  color: #ffe9c2;
  padding: 7px 16px; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600;
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 400; line-height: 1.35;
  margin-bottom: 16px;
}
.hero__title span { color: #ffd88a; }
.hero__subtitle {
  font-size: var(--fs-lg); color: rgba(255,255,255,.85);
  max-width: 54ch; margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero__stats {
  display: flex; gap: clamp(20px, 5vw, 48px); list-style: none;
}
.hero__stats li { display: grid; gap: 2px; }
.hero__stats strong { font-size: var(--fs-xl); font-weight: 900; }
.hero__stats span { font-size: var(--fs-sm); color: rgba(255,255,255,.75); }

.hero__wave {
  position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0;
}
.hero__wave svg { width: 100%; height: 70px; }

/* ---------- Hero area: banner + side cards ---------- */
.hero-area {
  display: grid; gap: 14px;
  padding-top: 16px;
}

.hero-banner {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: var(--primary-light);
}
.hero-banner__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.5s ease;
  pointer-events: none;
  display: block;
}
.hero-banner__slide.is-active { opacity: 1; pointer-events: auto; }
.hero-banner__slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-banner__default {
  width: 100%; height: 100%;
  display: grid; place-items: center; align-content: center; gap: 10px;
  text-align: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.12) 0, transparent 36%),
    radial-gradient(circle at 15% 85%, rgba(255,255,255,.08) 0, transparent 40%),
    linear-gradient(150deg, var(--primary-darker), var(--primary));
  color: #fff;
  padding: 20px;
}
.hero-banner__default h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.6rem); line-height: 1.5;
}
.hero-banner__default h2 span { color: #ffd88a; }
.hero-banner__default p {
  color: rgba(255,255,255,.85); font-size: var(--fs-sm);
  max-width: 52ch;
  display: none;
}

.hero-banner__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  z-index: 5;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 253, 247, 0.92); color: var(--ink);
  box-shadow: var(--shadow-md);
  transition: background .18s, transform .18s;
}
.hero-banner__nav:hover { background: #fff; }
.hero-banner__nav:active { transform: scale(.92); }
.hero-banner__nav--next { left: 12px; }
.hero-banner__nav--prev { right: 12px; }

.hero-banner__dots {
  position: absolute; bottom: 12px; right: 50%; translate: 50% 0;
  z-index: 5;
  display: flex; gap: 6px;
}
.hero-banner__dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.55);
  transition: width .25s, background .25s;
  cursor: pointer;
}
.hero-banner__dot.is-active { width: 22px; background: #fff; }

.hero-side {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.side-card {
  position: relative; overflow: hidden;
  display: grid; gap: 4px; align-content: center; justify-items: start;
  text-align: start;
  border-radius: var(--r-lg);
  padding: 18px 20px;
  min-height: 130px;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.side-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.side-card strong { font-size: var(--fs-lg); font-weight: 800; }
.side-card__desc { font-size: var(--fs-xs); opacity: .85; }
.side-card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(255,255,255,.16);
  margin-bottom: 8px;
}
.side-card--game { background: linear-gradient(150deg, #14194a, #2b36a9); }
.side-card--guide { background: linear-gradient(150deg, var(--accent-dark), var(--accent)); }
.side-card--guide { color: var(--accent-ink); border: 1px solid #ebe2bd; }
.side-card--guide .side-card__icon,
.side-card--guide .side-card__arrow { background: rgba(43,54,169,.1); }
.side-card__soon {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--fs-xs); font-weight: 800;
  padding: 3px 12px; border-radius: 999px;
}
.side-card__arrow {
  position: absolute; bottom: 14px; left: 14px;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.2);
}

/* ---------- Trust strip ---------- */
.trust {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 16px;
}
.trust__item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.trust__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--primary-light); color: var(--primary);
}
.trust__item strong { display: block; font-size: var(--fs-sm); font-weight: 800; }
.trust__item span { font-size: var(--fs-xs); color: var(--ink-mute); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section--tint { background: var(--primary-lighter); }
.section__head { text-align: center; margin-bottom: 36px; }
.section__head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  text-align: start; gap: 16px;
}
.section__title {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 400; margin-bottom: 6px;
}
.section__title--light { color: #fff; }
.section__desc { color: var(--ink-mute); }

.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 700; font-size: var(--fs-sm);
  white-space: nowrap; padding: 8px 4px;
}
.link-more:hover { text-decoration: underline; }
.link-more svg { transition: transform .2s; }
.link-more:hover svg { transform: translateX(-4px); }

/* ---------- Categories ---------- */
.categories {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.category-card {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; gap: 10px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 16px 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.category-card__icon {
  display: grid; place-items: center;
  width: 74px; height: 74px; border-radius: 24px;
  background: var(--primary-light); color: var(--primary);
  transition: background .22s, color .22s;
}
.category-card:hover .category-card__icon { background: var(--primary); color: #fff; }
.category-card h3 { font-size: var(--fs-base); font-weight: 800; }
.category-card span { font-size: var(--fs-xs); color: var(--ink-mute); }

/* ---------- Featured scroll ---------- */
.featured-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px);
  gap: 16px; overflow-x: auto; padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--primary) transparent;
}
.featured-scroll > * { scroll-snap-align: start; }

/* ---------- Product card ---------- */
.products-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}

.product-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.product-card__media {
  position: relative;
  background: linear-gradient(160deg, #f6f1e4, #ece4d0);
  padding: 18px 18px 8px;
  display: grid; place-items: center;
  aspect-ratio: 1 / 0.82;
}
.product-card__media svg { width: 74%; height: auto; filter: drop-shadow(0 10px 14px rgba(27,33,69,.14)); }
.product-card__media img {
  width: 88%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(27,33,69,.14));
}

.product-card__badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid #ebe2bd;
  font-size: var(--fs-xs); font-weight: 800;
  padding: 3px 10px; border-radius: 999px;
}
.product-card__badge--roast { background: var(--primary); }

.product-card__body {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 14px 12px; flex: 1;
}
.product-card__title { font-size: var(--fs-sm); font-weight: 800; line-height: 1.6; }
.product-card__meta { font-size: var(--fs-xs); color: var(--ink-mute); }

.product-card__rating {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-xs); color: var(--ink-soft); font-weight: 600;
}
.product-card__rating svg { color: var(--accent-strong); }

.product-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px;
  background: var(--primary);
  color: #fff;
}
.product-card__price { display: grid; line-height: 1.5; }
.product-card__price strong { font-size: var(--fs-sm); font-weight: 800; }
.product-card__price s { font-size: var(--fs-xs); opacity: .7; }

.add-btn {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 14px;
  background: rgba(255,255,255,.16); color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  transition: background .18s, transform .18s;
}
.add-btn:hover { background: rgba(255,255,255,.3); }
.add-btn:active { transform: scale(.92); }

.products-empty { text-align: center; color: var(--ink-mute); padding: 40px 0; }

/* ---------- Product detail modal ---------- */
.product-modal {
  position: fixed; inset: 0; z-index: 175;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(20, 25, 74, .55);
  backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .22s;
}
.product-modal.is-open { opacity: 1; }
.product-modal__card {
  position: relative;
  width: min(760px, 100%); max-height: min(720px, 92vh);
  overflow-y: auto;
  display: grid;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98);
  transition: transform .22s;
}
.product-modal.is-open .product-modal__card { transform: translateY(0) scale(1); }
.product-modal__close {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,253,247,.92); box-shadow: var(--shadow-sm);
}
.product-modal__media {
  min-height: 260px;
  display: grid; place-items: center;
  padding: 28px;
  background: linear-gradient(160deg, #f6f1e4, #ece4d0);
}
.product-modal__media svg { width: min(230px, 64%); filter: drop-shadow(0 14px 20px rgba(27,33,69,.16)); }
.product-modal__media img { width: min(330px, 90%); max-height: 300px; object-fit: contain; }
.product-modal__body { padding: clamp(22px, 5vw, 38px); display: grid; gap: 12px; align-content: center; }
.product-modal__brand { color: var(--primary); font-size: var(--fs-sm); font-weight: 800; }
.product-modal__title { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 900; line-height: 1.7; }
.product-modal__meta { color: var(--ink-mute); }
.product-modal__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.product-modal__price strong { color: var(--primary); font-size: var(--fs-xl); font-weight: 900; }
.product-modal__price s { color: var(--ink-mute); font-size: var(--fs-sm); }
.product-modal__actions { margin-top: 8px; }

@media (min-width: 700px) {
  .product-modal__card { grid-template-columns: .9fr 1.1fr; }
}

/* ---------- Filters ---------- */
.filters {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 18px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 9px 20px; min-height: 42px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink-soft);
  font-weight: 700; font-size: var(--fs-sm);
  transition: all 0.18s;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.is-active {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: var(--shadow-md);
}

/* ---------- Roast banner ---------- */
.roast-banner {
  background: linear-gradient(150deg, var(--primary-darker), var(--primary));
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
}
.roast-banner__head { text-align: center; margin-bottom: 32px; }
.roast-banner__head p { color: rgba(255,255,255,.8); }

.roast-cards { display: grid; gap: 14px; }
.roast-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
}
.roast-card:hover { background: rgba(255,255,255,.16); transform: translateY(-4px); }
.roast-card h3 { font-size: var(--fs-lg); font-weight: 800; margin: 14px 0 6px; }
.roast-card p { font-size: var(--fs-sm); color: rgba(255,255,255,.82); }

.roast-card__bean {
  display: block; width: 34px; height: 48px; border-radius: 50%;
  position: relative;
}
.roast-card__bean::after {
  content: ""; position: absolute; inset: 5px 42%;
  border-radius: 999px; background: rgba(0,0,0,.25);
}
.roast-card__bean--light { background: #d9a55f; }
.roast-card__bean--medium { background: #9c6635; }
.roast-card__bean--dark { background: #52301a; }

.roast-banner__cta { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Testimonials (carousel) ---------- */
.t-carousel { position: relative; padding-bottom: 34px; }
.testimonials {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--r-lg);
}
.testimonials::-webkit-scrollbar { display: none; }
.testimonial {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px clamp(24px, 6vw, 56px);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.testimonial__stars { justify-content: center; }
.testimonial__person { justify-content: center; text-align: start; }
.t-nav { position: absolute; top: 42%; }
.t-nav--next { left: -6px; }
.t-nav--prev { right: -6px; }
.t-dots { position: absolute; bottom: 0; }
.t-dots .hero-banner__dot { background: var(--line); }
.t-dots .hero-banner__dot.is-active { background: var(--primary); }
.testimonial__stars { display: flex; gap: 2px; color: var(--accent-strong); margin-bottom: 12px; }
.testimonial__text { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 16px; }
.testimonial__person { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-weight: 800; font-size: var(--fs-sm);
}
.testimonial__person strong { display: block; font-size: var(--fs-sm); }
.testimonial__person span { font-size: var(--fs-xs); color: var(--ink-mute); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; gap: 16px; }

.blog-card {
  overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.blog-card__cover { display: block; aspect-ratio: 16 / 9; background: var(--primary-light); }
.blog-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__ph {
  display: block; width: 100%; height: 100%;
  background:
    radial-gradient(circle at 78% 24%, rgba(255,255,255,.35) 0, transparent 34%),
    linear-gradient(150deg, var(--primary-darker), var(--primary));
}

.blog-card__body { display: grid; gap: 8px; padding: 18px; }
.blog-card__date { font-size: var(--fs-xs); color: var(--ink-mute); }
.blog-card__title { font-size: var(--fs-lg); font-weight: 800; line-height: 1.7; }
.blog-card__title a { transition: color .18s; }
.blog-card__title a:hover { color: var(--primary); }
.blog-card__excerpt {
  font-size: var(--fs-sm); color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-tag {
  font-size: var(--fs-xs); font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary);
}

/* ---------- Blog pages (SSR) ---------- */
.blog-body { padding-bottom: 0; }
.blog-body.has-bottomnav { padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) {
  .blog-body.has-bottomnav { padding-bottom: 0; }
}
.post-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 12px;
  flex-wrap: wrap;
}
.post-nav { display: flex; align-items: center; gap: 16px; }
.post-main { min-height: 60vh; padding-bottom: 60px; }

.post { max-width: 760px; margin-inline: auto; padding-top: 32px; }
.post-crumbs { font-size: var(--fs-xs); color: var(--ink-mute); margin-bottom: 18px; }
.post-crumbs a { color: var(--primary); }
.post-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.5;
  margin-bottom: 14px;
}
.post-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  color: var(--ink-mute); font-size: var(--fs-sm);
  padding-bottom: 22px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.post-cover { width: 100%; border-radius: var(--r-lg); margin-bottom: 26px; }
.post-content { font-size: 1.06rem; line-height: 2.1; color: var(--ink); display: grid; gap: 18px; }
.post-content h2 {
  font-size: var(--fs-xl); font-weight: 800; color: var(--ink);
  margin-top: 10px;
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--primary);
  border-radius: 2px;
}
.post-content ul, .post-content ol { padding-inline-start: 24px; display: grid; gap: 8px; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content img { border-radius: var(--r-md); }

.post-cta {
  margin-top: 44px; padding: 32px;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--primary-darker), var(--primary));
  color: #fff; text-align: center;
  display: grid; gap: 10px; justify-items: center;
}
.post-cta h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.post-cta p { color: rgba(255,255,255,.85); font-size: var(--fs-sm); }

.post-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0; text-align: center;
  color: var(--ink-mute); font-size: var(--fs-sm);
}

/* ---------- Newsletter ---------- */
.newsletter {
  display: grid; gap: 24px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-sm);
}
.newsletter h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; margin-bottom: 8px; }
.newsletter p { color: var(--ink-mute); font-size: var(--fs-sm); }
.newsletter__form { display: flex; flex-direction: column; gap: 10px; }
.newsletter__form input {
  flex: 1; min-height: 48px;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 10px 20px; background: var(--bg);
  transition: border-color .18s;
}
.newsletter__form input:focus { outline: none; border-color: var(--primary); }

/* ---------- Footer ---------- */
.footer {
  background: #14194a; color: #c8cdec;
  margin-top: 24px;
}
.footer__grid {
  display: grid; gap: 32px;
  padding: clamp(40px, 6vw, 64px) 0 32px;
}
.brand--footer .brand__name { color: #fff; }
.footer__brand p { font-size: var(--fs-sm); margin-top: 14px; color: #9aa2cc; max-width: 44ch; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h3 { color: #fff; font-size: var(--fs-base); font-weight: 800; margin-bottom: 4px; }
.footer__col a { font-size: var(--fs-sm); color: #9aa2cc; transition: color .18s; width: fit-content; }
.footer__col a:hover { color: #fff; }
.footer__contact { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: #9aa2cc; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0; font-size: var(--fs-xs); color: #7d85b4;
}

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 110;
  display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--primary);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 30px rgba(27, 33, 69, 0.25);
}
.bottom-nav__item {
  position: relative;
  display: grid; place-items: center;
  justify-self: center;
  width: 48px; height: 48px; border-radius: 16px;
  color: rgba(255,255,255,.6);
  transition: color .18s, background .18s;
}
.bottom-nav__item:hover { color: #fff; }
.bottom-nav__item.is-active {
  color: #fff;
  background: rgba(255,255,255,.14);
}
.bottom-nav__item.is-active::after {
  content: "";
  position: absolute; bottom: 5px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

.bottom-nav__cart {
  position: relative;
  display: grid; place-items: center;
  width: 64px; height: 64px; margin-top: -34px;
  background: #fff; color: var(--primary);
  border-radius: 50%;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow-lg);
  transition: transform .18s;
}
.bottom-nav__cart:active { transform: scale(.94); }
.cart-badge--mobile { top: -2px; left: -2px; box-shadow: 0 0 0 2px #fff; }

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(13, 18, 48, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s;
}
.overlay.is-open { opacity: 1; }

.cart-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 160;
  width: min(420px, 100vw);
  background: var(--surface);
  display: flex; flex-direction: column;
  transform: translateX(-105%);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.cart-drawer__head h2 { font-size: var(--fs-lg); font-weight: 900; }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 14px 20px; display: grid; gap: 12px; align-content: start; }

.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px;
}
.cart-item__thumb {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 12px;
  background: var(--primary-light);
}
.cart-item__thumb svg { width: 44px; height: 44px; }
.cart-item__info strong { display: block; font-size: var(--fs-xs); font-weight: 800; line-height: 1.6; }
.cart-item__info span { font-size: var(--fs-xs); color: var(--primary); font-weight: 700; }

.cart-item__qty { display: grid; justify-items: center; gap: 4px; }
.qty-controls { display: flex; align-items: center; gap: 4px; }
.qty-btn {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--primary-light); color: var(--primary);
  font-weight: 800; transition: background .15s;
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-num { min-width: 26px; text-align: center; font-weight: 800; font-size: var(--fs-sm); }
.cart-item__remove {
  font-size: var(--fs-xs); color: var(--danger); font-weight: 600;
  padding: 2px 6px;
}

.cart-drawer__empty {
  flex: 1; display: grid; place-items: center; align-content: center; gap: 14px;
  color: var(--ink-mute); text-align: center; padding: 20px;
}
.cart-drawer__empty svg { color: var(--line); margin-inline: auto; }

.cart-drawer__foot {
  border-top: 1px solid var(--line); padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 12px;
}
.cart-drawer__total { display: flex; align-items: center; justify-content: space-between; }
.cart-drawer__total strong { color: var(--primary); font-size: var(--fs-lg); font-weight: 900; }

/* ---------- Shop page (products.html) ---------- */
.page-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.page-header__inner {
  display: flex; align-items: center; gap: 14px;
  padding-block: 12px; flex-wrap: wrap;
}
.page-header .d-search { min-width: 200px; }
.page-header__links { display: none; align-items: center; gap: 16px; }

.shop-main { padding: 28px 0 60px; }
.shop-title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin-bottom: 4px; }
.shop-count { color: var(--ink-mute); font-size: var(--fs-sm); margin-bottom: 22px; }

.shop-layout { display: grid; gap: 20px; align-items: start; }

.fpanel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px;
  display: grid; gap: 20px;
}
.fpanel h2 { font-size: var(--fs-lg); font-weight: 900; }
.fgroup { display: grid; gap: 4px; }
.fgroup > h3 {
  font-size: var(--fs-sm); font-weight: 800; color: var(--ink);
  padding-bottom: 8px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.fcheck {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 4px; border-radius: 8px;
  font-size: var(--fs-sm); color: var(--ink-soft); font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.fcheck:hover { background: var(--primary-light); color: var(--primary); }
.fcheck input {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid var(--line); border-radius: 6px;
  background: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.fcheck input:checked { background: var(--primary); border-color: var(--primary); }
.fcheck input:checked::after {
  content: ""; width: 10px; height: 6px;
  border: 2.5px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) translateY(-1px);
}
.fbrand-search {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 9px 14px; background: var(--bg); font: inherit; font-size: var(--fs-sm);
  margin-bottom: 8px;
}
.fbrand-search:focus { outline: none; border-color: var(--primary); }
.fclear {
  color: var(--danger); font-weight: 700; font-size: var(--fs-sm);
  justify-self: start; padding: 4px;
}
.fclear:hover { text-decoration: underline; }

.filters-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}

@media (min-width: 900px) {
  .shop-layout { grid-template-columns: 264px 1fr; }
  .filters-toggle { display: none; }
  .fpanel { position: sticky; top: 96px; }
  .page-header__links { display: flex; }
}
@media (max-width: 899.98px) {
  .fpanel[hidden] { display: none !important; }
}

/* ---------- Taste finder ---------- */
.taste-finder {
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.1) 0, transparent 36%),
    linear-gradient(150deg, var(--primary-darker), var(--primary));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 28px;
  display: grid; gap: 18px;
}
.taste-finder__head h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 1.7rem;
  margin-bottom: 4px;
}
.taste-finder__head p { color: rgba(255,255,255,.82); font-size: var(--fs-sm); }
.taste-finder__groups { display: grid; gap: 16px; }
.taste-group h3 { font-size: var(--fs-sm); font-weight: 800; margin-bottom: 10px; color: #ffd88a; }
.taste-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.taste-chip {
  padding: 10px 20px; min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff; font-weight: 700; font-size: var(--fs-sm);
  transition: all .18s;
}
.taste-chip:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.taste-chip.is-active {
  background: #fff; color: var(--primary); border-color: #fff;
}
.taste-finder__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.taste-finder__actions .btn[disabled] { opacity: .5; cursor: not-allowed; }
.taste-finder__clear {
  color: rgba(255,255,255,.75); font-weight: 700; font-size: var(--fs-sm);
  text-decoration: underline;
}
.taste-finder__clear:hover { color: #fff; }
.taste-finder__result {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-md);
  padding: 12px 18px;
  font-size: var(--fs-sm); font-weight: 700;
}

@media (min-width: 640px) {
  .taste-finder__groups { grid-template-columns: 1fr 1fr; }
}

/* ---------- Full-screen cart on phones ---------- */
@media (max-width: 639.98px) {
  .cart-drawer { width: 100vw; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: calc(var(--bottomnav-h) + 18px); right: 50%;
  transform: translateX(50%) translateY(10px);
  z-index: 190;
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none;
  max-width: 90vw; text-align: center;
}
.toast.is-visible { opacity: 1; transform: translateX(50%) translateY(0); }

/* ---------- iOS hint ---------- */
.ios-hint {
  position: fixed; bottom: calc(var(--bottomnav-h) + 14px); right: 16px; left: 16px; z-index: 180;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--primary);
  border-radius: var(--r-md); padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
}

/* ============================================================
   Responsive — tablet & desktop
   ============================================================ */
@media (min-width: 640px) {
  .categories { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .roast-cards { grid-template-columns: repeat(3, 1fr); }
  .newsletter { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .newsletter__form { flex-direction: row; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .toast { bottom: 28px; }
  .ios-hint { bottom: 20px; left: auto; max-width: 380px; }

  html { scroll-padding-top: 156px; }

  .m-header { display: none; }
  .header {
    position: sticky; top: 0;
    background: rgba(255, 253, 247, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .d-header { display: block; }

  .hero-area { grid-template-columns: 1fr 320px; align-items: stretch; }
  .hero-banner { aspect-ratio: auto; min-height: 340px; }
  .hero-side { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .hero-banner__default p { display: block; }

  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .product-card__title { font-size: var(--fs-base); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
