:root {
  color-scheme: light dark;
  --bg: #f6f5f2;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --text: #24211d;
  --muted: #6f6a61;
  --line: #e3dfd6;
  --accent: #d83b18;
  --accent-dark: #a92e15;
  --accent-soft: #fff0e8;
  --green: #2f855a;
  --blue: #3574b6;
  --yellow: #e6a817;
  --shadow: 0 18px 45px rgba(74, 54, 32, 0.11);
  --radius: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181713;
    --surface: #24221d;
    --surface-strong: #2d2a24;
    --text: #f5efe5;
    --muted: #b7afa3;
    --line: #403b33;
    --accent: #ff7047;
    --accent-dark: #ff8a66;
    --accent-soft: #3a241d;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  margin: 12px 0 22px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 164px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.desktop-nav a,
.desktop-nav button {
  padding: 10px 11px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.desktop-nav a:hover,
.desktop-nav button:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.search-form {
  min-width: 0;
}

.toolbar-controls label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 12px;
  background: transparent;
  color: var(--text);
}

.search-box button,
.primary-link,
.checkout-button {
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.search-box button {
  border-radius: 0;
  padding: 0 16px;
}

.cart-button,
.secondary-link,
.icon-button,
.qty-button,
.bundle-card,
.filter-pill,
.category-card button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  font-weight: 800;
  white-space: nowrap;
}

.cart-button span,
#mobileCartCount {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(420px, 1.16fr);
  align-items: stretch;
  min-height: min(640px, calc(100dvh - 116px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(28px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.flash-copy h2,
.product-toolbar h2,
.service-card h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 8.5em;
  font-size: clamp(42px, 6vw, 82px);
}

.hero-subtitle {
  max-width: 25em;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  white-space: nowrap;
}

.secondary-link {
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 800;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center right;
}

.promo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 18px 0 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.promo-strip div {
  padding: 18px 20px;
  background: var(--surface);
}

.promo-strip strong,
.promo-strip span {
  display: block;
}

.promo-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.category-section,
.product-section,
.service-section {
  margin-top: 54px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 22px;
}

.section-heading h2,
.flash-copy h2,
.product-toolbar h2,
.service-card h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.section-heading p,
.flash-copy p,
.product-toolbar p,
.service-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.category-card strong,
.category-card span {
  display: block;
}

.category-card span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.category-card button {
  width: 100%;
  margin-top: 16px;
  padding: 9px 10px;
  font-weight: 800;
}

.category-swatch {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--swatch) 80%, white), var(--swatch)),
    var(--swatch);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.12);
}

.swatch-vegetable {
  --swatch: #2f855a;
}

.swatch-meat {
  --swatch: #b91c1c;
}

.swatch-drink {
  --swatch: #3574b6;
}

.swatch-frozen {
  --swatch: #7c3aed;
}

.swatch-snack {
  --swatch: #f59e0b;
}

.swatch-grain {
  --swatch: #c2410c;
}

.swatch-care {
  --swatch: #0891b2;
}

.swatch-stationery {
  --swatch: #6d28d9;
}

.swatch-homewear {
  --swatch: #be185d;
}

.swatch-kitchen {
  --swatch: #947100;
}

.swatch-fruit {
  --swatch: #65a30d;
}

.swatch-pettoy {
  --swatch: #0f766e;
}

.flash-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 54px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 62%),
    var(--surface);
}

.flash-copy {
  padding: clamp(12px, 3vw, 28px);
}

.bundle-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bundle-card {
  min-height: 156px;
  padding: 18px;
  text-align: left;
  background: var(--surface-strong);
}

.bundle-card span,
.bundle-card strong {
  display: block;
}

.bundle-card strong {
  margin-top: 52px;
  color: var(--accent-dark);
  font-size: 26px;
}

.product-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.toolbar-controls select {
  min-width: 160px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--surface-strong);
  color: var(--text);
}

.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pill {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: var(--muted);
  font-weight: 800;
}

.filter-pill.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.product-image-button {
  display: block;
  width: 100%;
  height: 178px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--surface-strong);
  cursor: pointer;
}

.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.product-photo.is-contain {
  object-fit: contain;
  padding: 14px;
}

.product-card:hover .product-photo {
  transform: scale(1.04);
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
}

.product-name {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.product-meta {
  color: var(--muted);
  font-size: 13px;
}

.stock-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.stock-line strong {
  color: var(--green);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.price {
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 900;
}

.old-price {
  color: var(--muted);
  font-size: 13px;
  text-decoration: line-through;
}

.product-card .card-buy-row button,
.secondary-card-button {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 900;
  cursor: pointer;
}

.card-buy-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.card-qty,
.detail-qty-row input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  background: var(--surface-strong);
  color: var(--text);
}

.secondary-card-button {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.empty-state {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state span {
  margin-top: 8px;
  color: var(--muted);
}

.service-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
}

.service-card,
.service-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-card {
  padding: clamp(22px, 4vw, 42px);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.service-list article {
  padding: 20px;
}

.service-list strong,
.service-list span {
  display: block;
}

.service-list span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 54px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(20, 18, 15, 0.42);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: flex;
  width: min(420px, 100%);
  height: 100dvh;
  flex-direction: column;
  transform: translateX(104%);
  visibility: hidden;
  pointer-events: none;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, visibility 0s linear 220ms;
}

.cart-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 220ms ease;
}

.cart-head,
.cart-footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cart-head strong,
.cart-head span {
  display: block;
}

.cart-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  width: 38px;
  height: 38px;
  font-weight: 900;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 12px 18px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 7px;
}

.qty-button {
  width: 30px;
  height: 30px;
  font-weight: 900;
}

.cart-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cart-total strong {
  color: var(--accent-dark);
  font-size: 24px;
}

.checkout-button {
  width: 100%;
  min-height: 46px;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 18, 15, 0.48);
}

.modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: min(860px, calc(100dvh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.product-modal-card {
  width: min(920px, 100%);
}

.order-modal-card {
  width: min(1080px, 100%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  gap: 24px;
  padding: 22px;
}

.product-detail img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.product-detail img.is-contain {
  object-fit: contain;
  padding: 18px;
}

.product-detail-copy {
  align-self: center;
  padding-right: 36px;
}

.modal-kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.product-detail-copy h2,
.order-flow h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.product-detail-copy p,
.ship-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-price {
  margin: 18px 0;
  color: var(--accent-dark);
  font-size: 34px;
  font-weight: 900;
}

.detail-price span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 16px;
  text-decoration: line-through;
}

.detail-qty-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-qty-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.detail-qty-row span,
.source-link {
  color: var(--muted);
  font-size: 13px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-actions .primary-link,
.detail-actions .secondary-link {
  border: 0;
}

.source-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-flow {
  padding: 26px;
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-right: 52px;
}

.order-steps span {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.order-steps span.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.order-lines {
  display: grid;
  gap: 10px;
}

.order-lines.compact {
  margin-top: 16px;
}

.order-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.order-line img {
  width: 72px;
  height: 62px;
  object-fit: cover;
  border-radius: var(--radius);
}

.order-line span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 11px;
  background: var(--surface);
  color: var(--text);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font-weight: 800;
}

.choice-row button.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.summary-box,
.pay-panel,
.ship-panel,
.done-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.summary-box span,
.summary-box strong,
.pay-panel div,
.ship-panel strong,
.ship-panel span,
.done-panel strong,
.done-panel span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pay-panel {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 14px;
}

.pay-panel span {
  color: var(--muted);
  font-size: 13px;
}

.pay-panel strong {
  font-size: 20px;
}

.pay-methods {
  margin-bottom: 16px;
}

.ship-panel {
  margin-bottom: 16px;
}

.ship-panel span,
.done-panel span {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.timeline-item.is-done {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
  background: color-mix(in srgb, var(--green) 12%, var(--surface-strong));
}

.timeline-item span {
  color: var(--muted);
  font-size: 13px;
}

.reset-order-button {
  margin-top: 16px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 80;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.mobile-tabbar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 22;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mobile-tabbar a,
.mobile-tabbar button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

button:active,
.primary-link:active,
.secondary-link:active,
.desktop-nav a:active,
.desktop-nav button:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 36%, transparent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .product-card,
  .category-card,
  .bundle-card {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }

  .product-card:hover,
  .category-card:hover,
  .bundle-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    box-shadow: var(--shadow);
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto minmax(260px, 1fr) auto;
  }

  .desktop-nav {
    display: none;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 24px, 760px);
    padding-bottom: 88px;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr auto;
  }

  .search-form {
    grid-column: 1 / -1;
    order: 3;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 34px 24px 20px;
  }

  .hero h1 {
    max-width: 10em;
    font-size: clamp(38px, 11vw, 58px);
  }

  .hero-image {
    min-height: 300px;
  }

  .promo-strip,
  .flash-panel,
  .service-section {
    grid-template-columns: 1fr;
  }

  .bundle-list,
  .service-list {
    grid-template-columns: 1fr;
  }

  .product-detail,
  .checkout-layout,
  .pay-panel {
    grid-template-columns: 1fr;
  }

  .product-detail img {
    height: 280px;
  }

  .product-detail-copy {
    padding-right: 0;
  }

  .order-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: 48px;
  }

  .product-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-tabbar {
    display: grid;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 12px;
    padding: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .cart-button {
    padding: 0 10px;
  }

  .promo-strip,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .order-flow,
  .product-detail {
    padding: 16px;
  }

  .order-line {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .order-line b {
    grid-column: 2;
  }

  .order-line img {
    width: 58px;
    height: 54px;
  }

  .footer {
    flex-direction: column;
  }
}
