:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --ink: #231f20;
  --soft-ink: #665b5d;
  --muted: #8c8283;
  --brand: #ef5360;
  --brand-dark: #cb404c;
  --coffee: #442b24;
  --cocoa: #765244;
  --spice: #b76537;
  --tea: #768466;
  --dry: #c59a5d;
  --line: rgba(35, 31, 32, 0.12);
  --shadow: 0 24px 80px rgba(35, 31, 32, 0.1);
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 247, 243, 0.75) 0%, rgba(247, 247, 244, 0.97) 34%, rgba(243, 246, 240, 0.75) 100%),
    var(--bg);
  color: var(--ink);
}

/* Sticky footer: .page grows to fill any leftover space so .footer always sits at the
   bottom of the viewport on short pages, instead of leaving a gap above it. On pages
   with enough content to exceed the viewport, this has no effect — footer just follows
   normally at the end. */
.page { flex: 1 0 auto; }
.footer { flex-shrink: 0; }

/* Fixed, viewport-pinned decorative layer behind the whole site — soft diagonal color
   washes plus repeating-radial-gradient rings (infinite concentric circles from a single
   origin point), giving a faint topographic-contour texture. Sits behind everything via
   z-index:-1 and never scrolls, so it reads as one continuous backdrop for every page. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
  background:
    linear-gradient(115deg, rgba(239, 83, 96, 0.09) 0%, transparent 32%),
    linear-gradient(290deg, rgba(118, 132, 102, 0.1) 0%, transparent 38%),
    repeating-radial-gradient(circle at 91% 18%, transparent 0 220px, rgba(239, 83, 96, 0.09) 221px 223px, transparent 224px 360px),
    repeating-radial-gradient(circle at 8% 64%, transparent 0 180px, rgba(197, 154, 93, 0.12) 181px 183px, transparent 184px 340px);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0.85rem;
  z-index: 20;
  width: min(1180px, calc(100% - 2rem));
  margin: 0.85rem auto 0;
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 55px rgba(35, 31, 32, 0.08);
  backdrop-filter: blur(22px);
}

.nav {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) auto minmax(9rem, 1fr);
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 64px;
  margin: 0 auto;
  padding: 0.42rem 0.55rem 0.42rem 1.05rem;
}

.nav > a:first-child { display: flex; align-items: center; justify-self: start; }
.nav-logo { width: clamp(6.4rem, 9vw, 8.2rem); max-height: 46px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 0.25rem;
  padding: 0.24rem;
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 999px;
  background: rgba(247, 247, 244, 0.72);
  color: var(--soft-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border-radius: 999px;
  padding: 0 0.95rem;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover, .nav-links a.active { background: #fff; color: var(--ink); }

.nav-actions { display: flex; align-items: center; justify-self: end; gap: 0.5rem; }

.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  padding: 0 1.1rem;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-cta { min-height: 2.55rem; padding: 0 1.2rem; }
.nav-cta:hover, .button:hover { background: var(--brand); transform: translateY(-1px); }

.button.secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.68); color: var(--ink); }
.button.secondary:hover { border-color: rgba(239, 83, 96, 0.34); background: #fff; }

.cart-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.cart-chip .count {
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
}

/* ---------- Shared layout ---------- */
.page { overflow: hidden; }

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.75fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow { margin: 0 0 1rem; color: var(--brand); font-size: 0.8rem; font-weight: 900; text-transform: uppercase; }

h1, h2, h3, p { margin-top: 0; }

h1 { margin-bottom: 1.3rem; max-width: 20ch; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1.05; }
h2 { margin-bottom: 0; max-width: 14ch; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 0.98; }
.section-header p { margin-bottom: 0.35rem; color: var(--soft-ink); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.65; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 1.05fr);
  align-items: center;
  gap: clamp(2.4rem, 6vw, 6rem);
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

/* Breaks out of the centered .hero column to bleed full-viewport-wide, so the decoration
   spans edge to edge behind the constrained content — same trick the reference site uses. */
.hero-bg {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  /* Fades the whole decorative layer out at its top/bottom edges so it blends into the
     page instead of ending in a hard rectangular cutoff where the hero section stops. */
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(239, 83, 96, 0.1), transparent 32%),
    linear-gradient(245deg, rgba(197, 154, 93, 0.16), transparent 38%);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(239, 83, 96, 0.18);
  border-radius: 50%;
}

.hero-orbit-one {
  width: 42vw;
  height: 42vw;
  min-width: 420px;
  min-height: 420px;
  right: -12vw;
  top: 8vh;
}

.hero-orbit-two {
  width: 30vw;
  height: 30vw;
  min-width: 290px;
  min-height: 290px;
  left: -9vw;
  bottom: -8vh;
  border-color: rgba(118, 132, 102, 0.26);
}

.hero-beam {
  position: absolute;
  width: 70vw;
  height: 22rem;
  right: -16vw;
  bottom: 4vh;
  background: linear-gradient(100deg, transparent, rgba(239, 83, 96, 0.14), rgba(118, 132, 102, 0.1), transparent);
  transform: rotate(-9deg);
  filter: blur(4px);
}

.hero-copy, .hero-visual { position: relative; z-index: 1; }

.hero-copy { max-width: 42rem; }

.hero-lede { max-width: 38rem; color: var(--soft-ink); font-size: clamp(1.05rem, 1.6vw, 1.32rem); line-height: 1.65; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 5rem; }

.hero-visual { position: relative; min-height: clamp(24rem, 40vw, 32rem); display: flex; align-items: center; justify-content: center; }

.hero-logo { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
  }
  @keyframes spinSlow {
    to { transform: rotate(360deg); }
  }
  @keyframes beamDrift {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-9deg); opacity: 0.65; }
    50% { transform: translate3d(-5%, -4%, 0) rotate(-6deg); opacity: 1; }
  }

  .hero-copy .eyebrow { animation: fadeInUp 0.7s ease both; }
  .hero-copy h1 { animation: fadeInUp 0.7s ease 0.1s both; }
  .hero-copy .hero-lede { animation: fadeInUp 0.7s ease 0.2s both; }
  .hero-copy .hero-actions { animation: fadeInUp 0.7s ease 0.3s both; }
  .hero-visual { animation: fadeIn 1s ease 0.15s both; }
  .hero-logo { animation: floatY 5s ease-in-out 1s infinite; }
  .hero-orbit { animation: spinSlow 24s linear infinite; }
  .hero-orbit-two { animation-direction: reverse; }
  .hero-beam { animation: beamDrift 9s ease-in-out infinite; }

  /* Scroll-reveal: JS marks below-the-fold elements .reveal-pending on load, then clears it
     as each scrolls into view. Elements already visible, or if JS never runs, stay fully shown —
     this only ever hides content that's confirmed off-screen already, never a live page. */
  .reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.reveal-pending { opacity: 0; transform: translateY(24px); }

  .category-grid.reveal-group .category,
  .product-grid.reveal-group .product-card {
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .category-grid.reveal-group.reveal-pending .category,
  .product-grid.reveal-group.reveal-pending .product-card {
    opacity: 0;
    transform: translateY(24px);
  }
  .category-grid .category:nth-child(2), .product-grid .product-card:nth-child(2) { transition-delay: 0.08s; }
  .category-grid .category:nth-child(3), .product-grid .product-card:nth-child(3) { transition-delay: 0.16s; }
  .category-grid .category:nth-child(4), .product-grid .product-card:nth-child(4) { transition-delay: 0.24s; }
  .category-grid .category:nth-child(5), .product-grid .product-card:nth-child(5) { transition-delay: 0.32s; }
  .category-grid .category:nth-child(6), .product-grid .product-card:nth-child(6) { transition-delay: 0.4s; }
  .category-grid .category:nth-child(7), .product-grid .product-card:nth-child(7) { transition-delay: 0.48s; }
  .category-grid .category:nth-child(8), .product-grid .product-card:nth-child(8) { transition-delay: 0.56s; }
}

/* ---------- Category tiles ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.category {
  min-height: 14rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid rgba(35, 31, 32, 0.08);
  box-shadow: 0 18px 44px rgba(35, 31, 32, 0.06);
  border-radius: 1rem;
  transition: transform 180ms ease;
}

.category:hover { transform: translateY(-3px); }

.category-visual { position: relative; height: 6rem; margin-bottom: 1.1rem; border-radius: 0.7rem; overflow: hidden; background: var(--accent-soft); }
.category-visual::before { content: ""; position: absolute; width: 5rem; height: 5rem; border-radius: 50%; background: var(--accent); right: 1rem; bottom: -1.2rem; }

.category h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.category p { margin-bottom: 0; color: var(--soft-ink); line-height: 1.5; font-size: 0.92rem; }

.coffee-cat { --accent: var(--coffee); --accent-soft: #e8ddd8; }
.spice-cat { --accent: var(--spice); --accent-soft: #f1dfd4; }
.tea-cat { --accent: var(--tea); --accent-soft: #e5eadf; }
.dry-cat { --accent: var(--dry); --accent-soft: #f2e6d1; }

/* ---------- Product grid / cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(35, 31, 32, 0.05);
  transition: transform 180ms ease;
}

.product-card:hover { transform: translateY(-3px); }

.product-card .thumb { aspect-ratio: 1; background: #efe6df; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-card .cat-tag { color: var(--brand); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 0; }
.product-card .desc { color: var(--soft-ink); font-size: 0.86rem; line-height: 1.5; flex: 1; }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; }
.product-card .price { font-weight: 900; font-size: 1.1rem; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.product-gallery img { border-radius: 1rem; width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }
.variant-options { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.variant-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  background: #fff;
}
.variant-pill.selected { border-color: var(--brand); background: rgba(239, 83, 96, 0.08); color: var(--brand-dark); }
.variant-pill[disabled] { opacity: 0.4; cursor: not-allowed; }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 2.4rem; height: 2.4rem; background: #fff; border: 0; font-weight: 900; cursor: pointer; }
.qty-stepper input { width: 3rem; text-align: center; border: 0; background: transparent; }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: 1rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-thumb { width: 4rem; height: 4rem; border-radius: 0.6rem; object-fit: cover; background: #efe6df; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow); }
.summary-row { display: flex; justify-content: space-between; padding: 0.4rem 0; color: var(--soft-ink); }
.summary-row.total { color: var(--ink); font-weight: 900; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.8rem; }

/* ---------- Forms ---------- */
.auth-section { display: flex; align-items: center; justify-content: center; min-height: 60vh; }

.site-form { display: grid; gap: 0.85rem; padding: clamp(1.2rem, 3vw, 1.8rem); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 1rem; max-width: 32rem; }
.site-form label { display: grid; gap: 0.4rem; color: var(--soft-ink); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; }
.site-form input, .site-form textarea, .site-form select { width: 100%; border: 1px solid var(--line); background: #fbfbf9; color: var(--ink); padding: 0.9rem 1rem; border-radius: 0.6rem; outline: 0; }
.site-form input:focus, .site-form textarea:focus { border-color: rgba(239, 83, 96, 0.55); background: #fff; }

.form-alert { padding: 0.7rem 0.9rem; border-radius: 0.6rem; background: rgba(203, 64, 76, 0.1); color: var(--brand-dark); font-weight: 700; font-size: 0.9rem; }
.form-success { padding: 0.7rem 0.9rem; border-radius: 0.6rem; background: rgba(118, 132, 102, 0.14); color: var(--tea); font-weight: 700; font-size: 0.9rem; }

/* ---------- UPI manual-payment checkout ---------- */
.upi-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  padding: 2rem 1.8rem;
  text-align: center;
}
.upi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--dry), var(--tea));
}
.upi-qr-frame {
  display: inline-block;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(35, 31, 32, 0.08);
  margin-bottom: 1.2rem;
}
.upi-qr-frame img { display: block; width: 220px; max-width: 100%; }
.upi-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(118, 132, 102, 0.12);
  color: var(--tea);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.upi-amount-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0; }
.upi-amount-value { font-size: 2.1rem; font-weight: 900; color: var(--ink); margin: 0.2rem 0 1rem; }
.upi-instructions { color: var(--muted); font-size: 0.9rem; line-height: 1.6; max-width: 22rem; margin: 0 auto; }

.upi-upload-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  padding: 2rem 1.8rem;
}
.upi-upload-card h3 { margin: 0 0 0.3rem; font-size: 1.35rem; }
.upi-upload-card .upi-upload-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.4rem; }

.upi-file-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  border: 2px dashed rgba(239, 83, 96, 0.35);
  border-radius: 1rem;
  background: rgba(239, 83, 96, 0.04);
  padding: 2.2rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upi-file-zone:hover, .upi-file-zone.has-file { border-color: var(--brand); background: rgba(239, 83, 96, 0.07); }
.upi-file-zone .upi-file-icon { font-size: 2.2rem; }
.upi-file-zone .upi-file-text { font-weight: 800; color: var(--ink); font-size: 0.95rem; }
.upi-file-zone .upi-file-sub { color: var(--muted); font-size: 0.8rem; }
.upi-file-zone input[type="file"] { display: none; }

.upi-order-ref {
  text-align: center;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.upi-order-ref strong { color: var(--ink); }

/* ---------- Order history cards (account page) ---------- */
.order-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.5rem 1.7rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
}
.order-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--dry), var(--tea));
}
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.order-card-number { font-weight: 900; font-size: 1.15rem; }
.order-card-meta { color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; }
.order-card-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.order-status-pill { display: inline-flex; align-items: center; padding: 0.32rem 0.85rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.order-status-new, .order-status-pending { background: rgba(183, 101, 55, 0.14); color: var(--spice); }
.order-status-processing, .order-status-packed, .order-status-shipped, .order-status-out_for_delivery { background: rgba(118, 132, 102, 0.14); color: var(--tea); }
.order-status-delivered, .order-status-paid { background: rgba(118, 132, 102, 0.22); color: var(--tea); }
.order-status-cancelled, .order-status-failed { background: rgba(203, 64, 76, 0.12); color: var(--brand-dark); }

.order-items-list { display: grid; gap: 0.55rem; margin-bottom: 1.1rem; }
.order-item-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: var(--soft-ink); }
.order-item-row .qty { color: var(--muted); }

.order-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px dashed var(--line); flex-wrap: wrap; gap: 0.6rem; }
.order-payment-method { color: var(--muted); font-size: 0.85rem; }
.order-total-value { font-weight: 900; font-size: 1.25rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; margin-top: 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; color: var(--muted); font-size: 0.9rem; font-weight: 700; flex-wrap: wrap; }
.footer-brand { color: var(--ink); font-weight: 900; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 940px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .hero, .section-header, .product-detail { grid-template-columns: 1fr; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { top: 0.55rem; width: min(100% - 1rem, 1180px); margin-top: 0.55rem; }
  .nav { min-height: 58px; padding: 0.34rem 0.38rem 0.34rem 0.7rem; }
  .nav-logo { width: 6.8rem; max-height: 40px; }
  .hero, .section { width: min(100% - 1.25rem, 1180px); padding: 2.4rem 0 3rem; }
  h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-actions, .category-grid, .product-grid { grid-template-columns: 1fr; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
