:root {
  color-scheme: dark;
  --bg: oklch(0.135 0.01 100);
  --surface: oklch(0.175 0.012 100);
  --surface-2: oklch(0.215 0.014 100);
  --surface-3: oklch(0.26 0.014 100);
  --product-surface: oklch(0.18 0.01 100);
  --cart-surface: oklch(0.19 0.012 100);
  --ink: oklch(0.965 0.01 100);
  --muted: oklch(0.72 0.015 100);
  --accent: oklch(0.91 0.19 105);
  --checkout-accent: oklch(0.955 0.205 105);
  --checkout-hover: oklch(0.985 0.18 105);
  --accent-text: var(--accent);
  --accent-soft: oklch(0.91 0.19 105 / 0.13);
  --accent-ink: oklch(0.15 0.02 105);
  --line: oklch(0.31 0.014 100);
  --focus-ring: var(--accent);
  --placeholder: oklch(0.75 0.012 100);
  --topbar-bg: oklch(0.135 0.01 100 / 0.96);
  --hover-line: oklch(0.58 0.02 100);
  --pressed-surface: oklch(0.31 0.014 100);
  --dialog-backdrop: oklch(0.08 0.01 100 / 0.78);
  --dialog-close-bg: oklch(0.14 0.01 100 / 0.9);
  --dialog-close-ink: oklch(0.965 0.01 100);
  --danger: oklch(0.7 0.17 25);
  --brand-green: oklch(0.7 0.18 135);
  --card-radius: 14px;
  --control-radius: 999px;
  --z-sticky: 20;
  --z-backdrop: 40;
  --z-modal: 50;
  --z-toast: 60;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:active { transform: translateY(1px); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.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;
  left: 16px;
  top: 12px;
  z-index: var(--z-toast);
  padding: 10px 16px;
  border-radius: var(--control-radius);
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: 236px minmax(240px, 1fr) auto 46px;
  align-items: center;
  gap: 18px;
  height: 72px;
  padding-inline: max(24px, calc((100vw - 1680px) / 2 + 24px));
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
}

.brand { width: 130px; }
.brand img { width: 100%; height: 58px; object-fit: contain; }
.hours { color: var(--muted); font-size: 13px; }
.hours { display: flex; align-items: center; gap: 6px; }
.hours::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); }

.search { position: relative; width: 100%; max-width: calc(min(100vw, 1680px) - 666px); }
.search input {
  width: 100%;
  height: 46px;
  padding: 0 50px 0 18px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  background: var(--surface-2);
  color: var(--ink);
}
.search input::placeholder { color: var(--placeholder); }
.search input:hover { background: var(--surface-3); }
.search input:focus { border-color: var(--focus-ring); outline: none; }
.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}
.search-icon svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.search:focus-within .search-icon { color: var(--accent); }

.topbar-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}
.phone { font-size: 14px; font-weight: 750; }
.phone:hover { color: var(--accent); }

.account-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.account-toggle:hover { border-color: var(--accent); background: transparent; color: var(--accent-text); }
.account-toggle svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-text); }
.app-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 340px;
  gap: 24px;
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.category-sidebar, .cart-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100dvh - 120px);
}

.category-sidebar { display: flex; flex-direction: column; }
.cart-panel-header h2, .catalog-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.category-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.category-button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 4px 10px 4px 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.category-button:hover { background: var(--surface-2); color: var(--ink); }
.category-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.category-button img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.category-button span { font-size: 14px; font-weight: 650; }
.category-button small { color: currentColor; font-size: 12px; font-weight: 650; opacity: 0.72; }

.main-content { min-width: 0; }

.promo-stage {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: #ffdc00;
}
.promo-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.promo-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 92px 42px 42px;
  align-content: center;
  justify-items: start;
  width: 48%;
  height: 100%;
  padding: 20px 28px 28px;
  background: linear-gradient(90deg, #ffdc00 0%, rgb(255 220 0 / .92) 55%, rgb(255 220 0 / 0) 100%);
  color: var(--accent-ink);
}
.promo-copy h1 {
  max-width: 9ch;
  margin: 5px 0 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(38px, 3.7vw, 50px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}
.promo-stage[data-short-title="true"] .promo-copy h1 { margin-top: 36px; }
.promo-stage[data-long-title="true"] .promo-copy h1 { margin-top: -11px; }
.promo-copy p { max-width: 28ch; margin: 0; font-weight: 700; line-height: 1.25; }
.promo-copy button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: var(--control-radius);
  background: var(--accent-ink);
  color: var(--accent);
  cursor: pointer;
  font-weight: 760;
  white-space: nowrap;
}
.promo-copy button[hidden] { display: none; }
.promo-copy button svg { width: 17px; height: 17px; flex: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promo-controls { position: absolute; z-index: 2; left: 50%; bottom: 8px; display: flex; align-items: center; transform: translateX(-50%); }
.promo-controls button { display: grid; width: 18px; height: 24px; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.promo-controls button::after { width: 6px; height: 6px; border: 1px solid #171714; border-radius: 50%; background: #66665f; content: ""; }
.promo-controls button.active::after { background: #171714; }
.promo-controls button:focus-visible { outline: 2px solid #171714; outline-offset: 1px; border-radius: 50%; }

.mobile-categories {
  display: none;
  gap: 8px;
  margin: 16px -24px 0;
  padding: 0 24px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mobile-categories::-webkit-scrollbar { display: none; }
.mobile-category {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 5px 13px 5px 7px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.mobile-category img { width: 32px; height: 32px; object-fit: contain; }
.mobile-category.active { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 2px 16px;
}
.catalog-heading h2 { font-size: 28px; }
.sort-control { position: relative; display: inline-flex; align-items: center; color: var(--muted); }
.sort-control::after {
  content: "";
  position: absolute;
  right: 2px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  pointer-events: none;
  transform: translateY(-2px) rotate(45deg);
}
.sort-control select {
  min-height: 40px;
  padding: 0 24px 0 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}
.sort-control:hover { color: var(--ink); }
.sort-control option { background: var(--surface-2); color: var(--ink); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 12px;
}
.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--product-surface);
  transition: border-color 180ms ease, transform 180ms cubic-bezier(.16, 1, .3, 1);
}
.product-card:hover { border-color: var(--hover-line); transform: translateY(-2px); }
.product-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface-2);
  cursor: pointer;
}
.product-image-button img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1);
}
.product-card:hover .product-image-button img { transform: scale(1.025); }
.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
  background: var(--product-surface);
}
.product-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 0; margin-bottom: 7px; }
.product-flag {
  font-size: 11px;
  font-weight: 760;
}
.product-flag-new { color: var(--brand-green); }
.product-flag-hit { color: var(--accent-text); }
.product-flag-separator { color: oklch(0.52 0.014 100); font-size: 11px; }
.product-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.product-description {
  display: -webkit-box;
  min-height: 40px;
  margin: 7px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.product-weight { color: var(--muted); font-size: 12px; white-space: nowrap; }
.add-button {
  min-width: 104px;
  min-height: 40px;
  border: 0;
  border-radius: var(--control-radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 780;
}
.add-button { padding: 0 15px; cursor: pointer; white-space: nowrap; }
.quantity-control {
  display: grid;
  grid-template-columns: 32px minmax(24px, 1fr) 32px;
  align-items: center;
  min-width: 104px;
  min-height: 40px;
  padding: 3px;
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--ink);
}
.quantity-control button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--pressed-surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.quantity-control button:hover { background: var(--accent); color: var(--accent-ink); }
.quantity-control span { text-align: center; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

.product-skeleton {
  height: 370px;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--surface);
}
.product-skeleton span, .product-skeleton i {
  display: block;
  background: var(--surface-2);
}
.product-skeleton span { width: 100%; aspect-ratio: 1; }
.product-skeleton i { width: 70%; height: 14px; margin: 18px 14px 0; border-radius: 5px; }
.product-skeleton i:last-child { width: 44%; margin-top: 10px; }

.empty-state, .error-state {
  grid-column: 1 / -1;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  text-align: center;
}
.empty-state strong, .error-state strong { font-size: 22px; }
.empty-state p, .error-state p { max-width: 42ch; margin: 0; color: var(--muted); }
.empty-state button, .error-state button {
  margin-top: 8px;
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: var(--control-radius);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font-weight: 760;
}

.cart-panel {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--cart-surface);
}
.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--cart-surface);
  color: var(--ink);
}
.cart-panel-header h2 { font-size: 26px; letter-spacing: -0.03em; }
.cart-panel-header span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.clear-cart, .dialog-close-inline {
  min-height: 32px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.clear-cart {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #d0d0c9;
}
.clear-cart[hidden] { display: none; }
.clear-cart img { width: 26px; height: 26px; object-fit: contain; }
.clear-cart:hover { background: transparent; color: var(--ink); }
.clear-cart:focus-visible { outline-color: var(--ink); }
.dialog-close-inline:hover { background: var(--pressed-surface); color: var(--ink); }
.cart-content { flex: 1; overflow-y: auto; }
.cart-empty {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 22px 20px 20px;
}
.cart-empty-copy strong { font-size: 20px; letter-spacing: -0.02em; }
.cart-empty-copy p { max-width: 30ch; margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.cart-suggestions { margin-top: 20px; border-top: 1px solid var(--line); }
.cart-suggestion {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.cart-suggestion-image { padding: 0; border: 0; border-radius: 9px; background: var(--surface-2); cursor: pointer; overflow: hidden; }
.cart-suggestion-image img { width: 52px; height: 52px; object-fit: cover; transition: transform 180ms cubic-bezier(.16, 1, .3, 1); }
.cart-suggestion-image:hover img { transform: scale(1.04); }
.cart-suggestion > div { min-width: 0; }
.cart-suggestion > div strong { display: block; overflow: hidden; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.cart-suggestion > div span { display: block; margin-top: 3px; color: var(--accent-text); font-size: 13px; font-weight: 750; }
.cart-suggestion-add {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font-size: 23px;
}
.cart-browse {
  min-height: 42px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}
.cart-browse:hover { border-color: var(--accent); color: var(--accent-text); }
.cart-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 11px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.cart-line-body { min-width: 0; }
.cart-line-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cart-line-heading > strong:first-child { overflow: hidden; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-unit { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.cart-line .quantity-control { width: 94px; min-width: 94px; min-height: 34px; margin-top: 10px; grid-template-columns: 28px 1fr 28px; }
.cart-line .quantity-control button { width: 28px; height: 28px; border-radius: 7px; font-size: 16px; }
.cart-line-price { flex: 0 0 auto; color: var(--accent-text); font-weight: 780; font-size: 14px; white-space: nowrap; }
.cart-summary { padding: 17px 18px 18px; border-top: 1px solid var(--line); background: var(--cart-surface); color: var(--ink); }
.cart-summary > div { display: flex; align-items: baseline; justify-content: space-between; }
.cart-delivery { margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.cart-total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 800; }
.cart-total strong { font-size: 25px; letter-spacing: -0.035em; }
.checkout-button {
  width: 100%;
  min-height: 50px;
  margin-top: 15px;
  border: 0;
  border-radius: var(--control-radius);
  background: var(--checkout-accent);
  color: var(--accent-ink);
  cursor: pointer;
  font-weight: 800;
}
.checkout-button:hover { background: var(--checkout-hover); }
.cart-summary small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; text-align: center; }

.mobile-cart-bar { display: none; }

dialog {
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--ink);
}
dialog::backdrop { background: var(--dialog-backdrop); backdrop-filter: blur(5px); }
.product-dialog {
  width: min(860px, calc(100% - 32px));
  max-height: min(780px, calc(100dvh - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--dialog-close-bg);
  color: var(--dialog-close-ink);
  cursor: pointer;
  font-size: 24px;
}
.product-dialog-layout { display: grid; grid-template-columns: 1fr 1fr; }
.product-dialog-layout > img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.product-dialog-copy { display: flex; flex-direction: column; padding: 38px 32px 30px; }
.product-dialog-copy .product-flags { margin-bottom: 13px; }
.product-dialog-copy h2 { margin: 0; font-size: 34px; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.product-dialog-copy p { margin: 16px 0; color: var(--muted); text-wrap: pretty; }
.product-dialog-meta { display: flex; gap: 18px; margin-top: auto; padding: 20px 0 16px; border-top: 1px solid var(--line); }
.product-dialog-meta span { color: var(--muted); font-size: 13px; }
.product-dialog-meta strong { display: block; margin-top: 3px; color: var(--ink); font-size: 17px; }
.product-dialog-copy .add-button, .product-dialog-copy .quantity-control { width: 100%; min-height: 50px; }

.cart-dialog { display: none; background: var(--cart-surface); }

/* Catalog overlays: task-focused surfaces, not miniature standalone pages. */
.flow-dialog { --surface: #111111; --surface-2: #1c1c1c; --bg: #0d0d0d; --line: #303030; --muted: #b8b8b8; --placeholder: #a5a5a5; width: min(980px, calc(100% - 32px)); max-height: min(88dvh, 860px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); }
.flow-dialog::backdrop { background: rgb(0 0 0 / .78); }
.flow-dialog[open] { display: flex; flex-direction: column; }
.flow-head { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 30px 22px; border-bottom: 1px solid var(--line); }
.flow-overline { display: block; margin-bottom: 5px; color: var(--accent-text); font-size: 12px; font-weight: 800; }
.flow-head h2 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.flow-head h2:focus { outline: none; }
.flow-close { display: grid; flex: none; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 27px; line-height: 1; }
.flow-close:hover { color: #bdbdbd; }
.flow-close:focus-visible { outline: 2px solid #e8e8e8; outline-offset: 1px; }
.account-flow-body { min-height: 0; overflow-y: auto; padding: 0 30px 30px; }
.account-identity { display: grid; gap: 2px; padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.account-identity > span { color: var(--muted); font-size: 12px; }
.account-identity strong { font-size: 22px; line-height: 1.2; }
.account-identity small { color: var(--muted); font-size: 13px; }
.flow-logout { justify-self: start; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.flow-logout:hover, .flow-logout:focus-visible { color: var(--text); }
.flow-logout[hidden] { display: none; }
.account-flow-columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); gap: 32px; padding-top: 26px; }
.account-flow-section { min-width: 0; }
.flow-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.flow-section-head h3 { margin: 0; font-size: 18px; line-height: 1.2; letter-spacing: -.02em; }
.flow-section-head > span { color: var(--muted); font-size: 12px; }
.flow-subtext, .flow-empty { color: var(--muted); font-size: 13px; line-height: 1.5; }
.flow-subtext { margin: 7px 0 15px; }
.flow-empty { margin: 18px 0; }
.flow-offers { display: grid; gap: 0; }
.flow-offer { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 76px; padding: 11px 0; border-top: 1px solid var(--line); }
.flow-offer img { width: 56px; height: 52px; object-fit: contain; }
.flow-offer strong { display: block; font-size: 14px; line-height: 1.25; }
.flow-offer span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.flow-offer button { min-width: 86px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--accent-text); font-size: 12px; font-weight: 800; }
.flow-offer button:hover { border-color: var(--accent); }
.flow-orders { margin-top: 17px; }
.flow-order { padding: 15px 0; border-top: 1px solid var(--line); }
.flow-order > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.flow-order > span, .flow-order p { color: var(--muted); font-size: 12px; }
.flow-order > span { display: block; margin-top: 6px; }
.flow-order p { margin: 8px 0 0; line-height: 1.4; }
.flow-login { display: inline-flex; padding: 11px 15px; border-radius: 7px; background: var(--checkout-accent); color: var(--accent-ink); font-size: 13px; font-weight: 800; }
.checkout-flow { width: min(900px, calc(100% - 32px)); }
.checkout-flow-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr); min-height: 0; overflow-y: auto; }
.flow-form { padding: 26px 30px 30px; }
.flow-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 23px; }
.flow-fields label { display: grid; align-content: start; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.flow-fields .wide { grid-column: 1 / -1; }
.flow-fields input, .flow-fields textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; outline: none; background: var(--bg); color: var(--ink); font-size: 14px; resize: vertical; }
.flow-fields input::placeholder, .flow-fields textarea::placeholder { color: var(--placeholder); }
.flow-fields input:focus, .flow-fields textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.flow-hint { min-height: 15px; color: var(--accent-text); font-size: 12px; font-weight: 500; }
.flow-consent { display: flex; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.flow-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.flow-consent a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.flow-summary { display: flex; flex-direction: column; padding: 26px 25px 28px; border-left: 1px solid var(--line); background: var(--surface-2); }
.flow-summary-lines { margin-top: 20px; }
.flow-summary-line { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.flow-summary-line span { color: var(--muted); }
.flow-summary-line strong { flex: none; white-space: nowrap; }
.flow-gift, .flow-gift span { color: var(--accent-text); }
.flow-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: auto 0 17px; padding-top: 24px; font-size: 15px; }
.flow-total strong { font-size: 27px; line-height: 1; }
.flow-summary .checkout-button { width: 100%; }
.flow-summary .checkout-button:disabled { opacity: .6; cursor: wait; }
.flow-message { min-height: 0; margin: 10px 0 0; color: var(--danger); font-size: 12px; }
.flow-message:empty { display: none; }
.flow-payment-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.flow-success { display: grid; justify-items: start; gap: 12px; width: 100%; padding: 50px; }
.flow-success span { color: var(--accent-text); font-size: 13px; font-weight: 800; }
.flow-success h3 { margin: 0; font-size: 32px; }
.flow-success p { margin: 0 0 14px; color: var(--muted); }
.flow-success .checkout-button { width: auto; padding-inline: 25px; border-radius: 8px; }

.checkout-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.checkout-dialog form { max-height: calc(100dvh - 24px); overflow-y: auto; }
.checkout-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 28px 20px; border-bottom: 1px solid var(--line); }
.checkout-heading span { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.checkout-heading h2 { margin: 5px 0 0; font-size: 28px; line-height: 1.08; letter-spacing: -.035em; }
.checkout-fields { display: grid; gap: 15px; padding: 24px 28px; }
.checkout-fields label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.checkout-fields input, .checkout-fields textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--control-radius); outline: none; background: var(--surface-2); color: var(--ink); resize: vertical; }
.checkout-fields input:focus, .checkout-fields textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.checkout-submit { padding: 20px 28px 26px; border-top: 1px solid var(--line); }
.checkout-submit > div { display: flex; align-items: baseline; justify-content: space-between; }
.checkout-submit > div span { color: var(--muted); font-size: 13px; }
.checkout-submit > div strong { font-size: 24px; letter-spacing: -.035em; }
.checkout-submit small { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; text-align: center; }
.checkout-submit .checkout-button:disabled { cursor: wait; opacity: .7; }

.account-dialog {
  width: min(520px, calc(100% - 24px));
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  margin: 12px 12px 12px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.account-dialog[open] { display: flex; flex-direction: column; }
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.account-person { min-width: 0; }
.account-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.account-person h2 { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -0.03em; }
.account-person p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.account-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
}
.account-close:hover { background: var(--surface-3); color: var(--ink); }
.account-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.account-content { flex: 1; overflow-y: auto; padding: 28px; }
.bonus-balance {
  display: flex;
  min-height: 144px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: var(--card-radius);
  background: var(--accent);
  color: var(--accent-ink);
}
.bonus-balance span { display: block; font-size: 13px; font-weight: 750; }
.bonus-balance strong { display: block; margin-top: 5px; font-size: 29px; line-height: 1; letter-spacing: -0.035em; }
.bonus-balance p { max-width: 20ch; margin: 0; font-size: 13px; font-weight: 650; line-height: 1.4; text-align: right; }
.account-section { margin-top: 28px; }
.account-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.account-section-heading h3 { margin: 0; font-size: 17px; letter-spacing: -0.015em; }
.account-section-heading > span { color: var(--muted); font-size: 12px; }
.account-promos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.account-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 15px 0;
}
.account-promo + .account-promo { border-top: 1px solid var(--line); }
.account-promo.account-promo-personal {
  min-height: 96px;
  margin: 10px 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
}
.account-promo-personal + .account-promo { border-top: 0; }
.account-promo > div em {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-green);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.account-promo > div strong { display: block; color: var(--accent-text); font-size: 22px; line-height: 1; letter-spacing: -0.025em; }
.account-promo-gift > div strong { color: var(--ink); font-size: 17px; line-height: 1.15; }
.account-promo > div span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.account-promo button {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.account-promo button:hover { border-color: var(--accent); color: var(--accent-text); }
.account-promo button svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.order-history { border-top: 1px solid var(--line); }
.account-empty { margin: 0; padding: 22px 0; color: var(--muted); font-size: 13px; }
.order-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.order-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-row-top > div { min-width: 0; }
.order-row-top strong { font-size: 14px; }
.order-row-top > strong { flex: 0 0 auto; color: var(--accent-text); }
.order-row-top span { display: block; margin-top: 3px; color: var(--brand-green); font-size: 12px; font-weight: 650; }
.order-row p { margin: 10px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.order-row button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}
.order-row button:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: var(--z-toast);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--control-radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 180ms ease, transform 180ms cubic-bezier(.16, 1, .3, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

footer {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding: 34px max(24px, calc((100vw - 1632px) / 2));
  border-top: 0;
  background: var(--accent);
  color: var(--accent-ink);
}
footer img { width: 145px; border-radius: 8px; }
footer p { margin: 0; font-weight: 750; }
footer .footer-contact { display: flex; align-items: center; gap: 20px; font-size: 14px; }
footer a { font-weight: 850; }
footer a:hover { color: oklch(0.33 0.12 135); }
footer button { min-height: 38px; padding: 0 14px; border: 1px solid oklch(0.15 0.02 105 / 0.4); border-radius: var(--control-radius); background: transparent; color: var(--accent-ink); cursor: pointer; font-weight: 750; }
footer button:hover { background: var(--accent-ink); color: var(--accent); }
footer .footer-bottom { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid currentColor; }
footer .footer-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; }
footer .footer-legal a { font-weight: 600; }
footer .footer-year { flex: none; font-size: 12px; font-weight: 600; }
footer p small { font-size: 12px; font-weight: 500; }
@media (max-width: 1280px) {
  .topbar { grid-template-columns: 200px minmax(220px, 1fr) auto 44px; padding-inline: 18px; }
  .search { max-width: calc(100vw - 582px); }
  .app-shell { grid-template-columns: 200px minmax(0, 1fr) 310px; gap: 18px; padding: 18px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

@media (max-width: 1050px) {
  .topbar { grid-template-columns: 135px minmax(200px, 1fr) auto 44px; gap: 12px; padding: 0 18px; }
  .search { max-width: none; }
  .app-shell { grid-template-columns: minmax(0, 1fr) 300px; }
  .category-sidebar { display: none; }
  .mobile-categories { display: flex; }
}

@media (max-width: 760px) {
  .flow-dialog { width: calc(100% - 16px); max-height: calc(94dvh - 8px); margin: auto 8px 8px; border-radius: 16px 16px 0 0; }
  .flow-head { padding: 20px; }
  .flow-head h2 { font-size: 24px; }
  .account-flow-body { padding: 0 20px 24px; }
  .account-flow-columns { grid-template-columns: 1fr; gap: 28px; }
  .checkout-flow-body { display: block; }
  .flow-form { padding: 23px 20px; }
  .flow-fields { grid-template-columns: 1fr; gap: 14px; }
  .flow-summary { padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); border-left: 0; border-top: 1px solid var(--line); }
  .flow-total { margin-top: 0; }
  .flow-success { padding: 35px 22px; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .topbar {
    grid-template-columns: 112px minmax(0, 1fr) 42px;
    height: 64px;
    padding: 0 14px;
    gap: 10px;
  }
  .brand { width: 104px; }
  .brand img { height: 52px; }
  .topbar-meta { display: none; }
  .account-toggle { width: 42px; height: 42px; }
  .search input { height: 42px; padding: 0 42px 0 14px; font-size: 14px; }
  .search-icon { right: 13px; }
  .app-shell { display: block; width: 100%; padding: 12px 14px 24px; }
  .cart-panel { display: none; }
  .promo-stage { height: 220px; }
  .promo-stage img { object-position: 57% center; }
  .promo-copy { grid-template-rows: 64px 42px 36px; width: 77%; padding: 16px 16px 34px; background: linear-gradient(90deg, #ffdc00 0%, #ffdc00 64%, rgb(255 220 0 / .88) 82%, rgb(255 220 0 / 0) 100%); }
  .promo-copy h1 { margin-top: 3px; font-size: clamp(28px, 7.2vw, 34px); }
  .promo-stage[data-short-title="true"] .promo-copy h1 { margin-top: 28px; }
  .promo-stage[data-long-title="true"] .promo-copy h1 { margin-top: -9px; }
  .promo-copy p { max-width: 26ch; font-size: 13px; }
  .promo-copy button { min-height: 36px; padding: 0 12px; gap: 6px; font-size: 12px; }
  .promo-copy button svg { width: 15px; height: 15px; }
  .promo-controls { right: 8px; bottom: 6px; left: auto; transform: none; }
  .mobile-categories { margin: 14px -14px 0; padding: 0 14px 4px; }
  .catalog-heading { align-items: flex-start; padding: 22px 1px 12px; }
  .catalog-heading h2 { font-size: 24px; }
  .sort-control { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-card-body { padding: 11px; }
  .product-card h3 { font-size: 15px; }
  .product-description { min-height: 36px; margin: 6px 0 10px; font-size: 12px; -webkit-line-clamp: 2; }
  .product-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
  .product-weight { order: -1; }
  .add-button, .quantity-control { width: 100%; min-width: 0; min-height: 38px; }
  .mobile-cart-bar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: var(--z-sticky);
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--control-radius);
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 800;
    cursor: pointer;
  }
  .mobile-cart-bar:not([hidden]) { display: flex; }
  .mobile-cart-bar span { display: flex; align-items: center; gap: 8px; }
  .mobile-cart-bar i { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--accent-ink); color: var(--accent); font-style: normal; font-size: 12px; }
  .product-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .product-dialog-layout { grid-template-columns: 1fr; max-height: calc(100dvh - 16px); overflow-y: auto; }
  .product-dialog-layout > img { min-height: 0; aspect-ratio: 1.45; }
  .product-dialog-copy { padding: 22px 18px 20px; }
  .product-dialog-copy h2 { font-size: 27px; }
  .product-dialog-meta { margin-top: 8px; }
  .cart-dialog {
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    margin: auto 0 0;
    border-radius: 14px 14px 0 0;
  }
  .cart-dialog[open] { display: flex; flex-direction: column; }
  .cart-dialog-handle { position: absolute; left: 50%; top: 8px; z-index: 1; width: 42px; height: 4px; border-radius: 2px; background: oklch(0.15 0.02 105 / 0.24); transform: translateX(-50%); }
  .cart-dialog .cart-panel-header { padding-top: 24px; }
  .cart-dialog .cart-content { min-height: 180px; max-height: 48dvh; }
  .checkout-dialog { width: calc(100% - 16px); max-height: calc(92dvh - 8px); margin: auto 8px 8px; border-radius: 18px; }
  .checkout-heading, .checkout-fields, .checkout-submit { padding-left: 20px; padding-right: 20px; }
  .account-dialog {
    width: calc(100% - 16px);
    height: auto;
    max-height: calc(92dvh - 8px);
    margin: auto 8px 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .account-header { padding: 20px; }
  .account-person h2 { font-size: 23px; }
  .account-content { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
  .bonus-balance { min-height: 132px; padding: 20px; }
  footer { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; padding: 24px 16px; }
  footer .footer-contact { flex-direction: column; align-items: flex-start; gap: 8px; }
  footer .footer-bottom { gap: 12px; }
}

@media (max-width: 370px) {
  .topbar { grid-template-columns: 88px minmax(0, 1fr) 40px; padding: 0 10px; gap: 8px; }
  .brand { width: 88px; }
  .account-toggle { width: 40px; height: 40px; }
  .bonus-balance { min-height: 148px; align-items: flex-start; flex-direction: column; }
  .bonus-balance p { max-width: none; text-align: left; }
  .account-promo { align-items: flex-start; flex-direction: column; gap: 12px; }
  .promo-stage { height: 220px; }
  .promo-stage img { display: block; width: 100%; right: 0; bottom: 0; opacity: 1; }
  .promo-copy { width: 79%; }
  .product-grid { grid-template-columns: 1fr; }
}

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

@supports not (backdrop-filter: blur(1px)) {
  .topbar { background: var(--bg); }
  dialog::backdrop { background: var(--dialog-backdrop); }
}
