:root {
  color-scheme: dark;
  --bg: #271e16;
  --surface: #35281d;
  --surface-raised: #433222;
  --surface-soft: #4a3828;
  --oak: #4a2f1d;
  --oak-light: #765034;
  --cream: #fff1db;
  --muted: #ceb99d;
  --gold: #dca46b;
  --gold-bright: #f1c48f;
  --success: #a7c788;
  --danger: #e08b79;
  --border: rgba(246, 235, 218, 0.13);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(214, 161, 90, 0.32);
  color: var(--cream);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(118, 80, 52, 0.3), transparent 28rem),
    linear-gradient(180deg, #1d130e 0%, var(--bg) 35%, #120c09 100%);
  color: var(--cream);
  min-height: 100vh;
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(237, 189, 120, 0.75);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold);
  color: #20140b;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 15, 11, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 161, 90, 0.42);
  border-radius: 50%;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

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

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.hours-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--cream);
  cursor: pointer;
  font-size: 0.83rem;
  transition: border-color 160ms ease, background 160ms ease;
}

.hours-button::after {
  width: 7px;
  height: 7px;
  margin: -4px 1px 0 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  opacity: 0.65;
  transform: rotate(45deg);
  transition: margin 160ms ease, transform 160ms ease;
}

.hours-button[aria-expanded="true"]::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.hours-button:hover {
  border-color: rgba(214, 161, 90, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(156, 189, 120, 0.12);
}

.hours-panel {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}

.hours-list {
  width: min(420px, 100%);
  display: grid;
  gap: 6px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.hours-list strong {
  color: var(--cream);
  font-weight: 650;
}

.pickup-address {
  width: min(420px, 100%);
  display: grid;
  gap: 5px;
  margin: 12px auto 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.pickup-address-label {
  color: var(--cream);
  font-weight: 650;
}

.pickup-address a {
  color: var(--gold-bright);
  text-underline-offset: 3px;
}

.pickup-address a:hover,
.pickup-address a:focus-visible {
  color: var(--cream);
}

.hours-button.is-disabled .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(224, 139, 121, 0.12);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 0 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  line-height: 1.08;
}

h3 {
  margin: 6px 0 16px;
  font-size: 1rem;
}

.intro-copy {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.prototype-note {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(214, 161, 90, 0.28);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: 0.76rem;
}

.freshness {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(156, 189, 120, 0.22);
  border-radius: 16px;
  background: rgba(156, 189, 120, 0.075);
}

.freshness-icon {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  line-height: 1;
  border-radius: 50%;
  background: rgba(156, 189, 120, 0.16);
  color: var(--success);
  font-weight: 800;
}

.freshness > div > strong,
.freshness > div > span {
  display: block;
}

.freshness strong {
  margin-bottom: 3px;
  font-size: 0.9rem;
}

.freshness div > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.freshness.is-stale {
  border-color: rgba(224, 139, 121, 0.28);
  background: rgba(224, 139, 121, 0.07);
}

.freshness.is-stale .freshness-icon {
  background: rgba(224, 139, 121, 0.14);
  color: var(--danger);
}

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-button {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.filter-button:hover {
  border-color: rgba(214, 161, 90, 0.38);
  color: var(--cream);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #21140b;
  font-weight: 700;
}

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

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(51, 33, 23, 0.94), rgba(33, 22, 16, 0.98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
  border-color: rgba(214, 161, 90, 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.product-card.is-selected {
  border-color: rgba(214, 161, 90, 0.62);
  box-shadow: 0 0 0 1px rgba(214, 161, 90, 0.16), 0 18px 40px rgba(0, 0, 0, 0.24);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f0c0b;
}

.product-image-wrap.is-image-missing::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(214, 161, 90, 0.16), transparent 45%),
    linear-gradient(145deg, #251810, #120c09);
  color: rgba(237, 189, 120, 0.62);
  content: "GK";
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 700;
}

.product-image-wrap.is-image-missing::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  color: rgba(246, 235, 218, 0.46);
  content: "Фото незабаром";
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

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

.product-card:hover .product-image {
  transform: scale(1.025);
}

.stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(22, 15, 11, 0.86);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid rgba(255, 190, 159, 0.46);
  border-radius: 999px;
  background: rgba(151, 47, 29, 0.94);
  color: #fff1e9;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(57, 10, 4, 0.3);
}

.stock-badge.below-discount {
  top: 50px;
}

.stock-badge.low {
  color: var(--gold-bright);
}

.stock-badge.preorder {
  border: 1px solid rgba(237, 189, 120, 0.32);
  background: rgba(80, 45, 22, 0.9);
  color: var(--gold-bright);
}

.product-card.is-preorder {
  border-color: rgba(214, 161, 90, 0.3);
}

.stock-badge.out {
  color: #f2b4a7;
}

.product-card.is-out .product-image {
  opacity: 0.48;
  filter: grayscale(0.45);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.product-category {
  margin-bottom: 7px;
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-name {
  min-height: 2.55em;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
}

.product-description {
  min-height: 2.7em;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.product-stock-detail {
  margin: -7px 0 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  margin-top: auto;
}

.product-price {
  color: var(--cream);
  font-weight: 800;
}

.product-price-block {
  display: grid;
  gap: 2px;
}

.product-original-price {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.product-card.is-discount .product-price {
  color: var(--gold-bright);
  font-size: 1.08rem;
}

.product-step {
  color: var(--muted);
  font-size: 0.75rem;
}

.add-button,
.quantity-control {
  width: 100%;
  min-height: 46px;
}

.add-button {
  border: 1px solid rgba(214, 161, 90, 0.4);
  border-radius: 13px;
  background: rgba(214, 161, 90, 0.08);
  color: var(--gold-bright);
  cursor: pointer;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.add-button:hover {
  background: rgba(214, 161, 90, 0.15);
}

.add-button:active,
.primary-button:active,
.secondary-button:active,
.cart-bar:not(:disabled):active {
  transform: translateY(1px);
}

.add-button:disabled {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: #776b61;
  cursor: not-allowed;
}

.quantity-control {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(214, 161, 90, 0.38);
  border-radius: 13px;
}

.quantity-control button {
  align-self: stretch;
  border: 0;
  background: rgba(214, 161, 90, 0.1);
  color: var(--gold-bright);
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 140ms ease, color 140ms ease;
}

.quantity-control button:not(:disabled):hover,
.cart-item-controls button:not(:disabled):hover {
  background: rgba(214, 161, 90, 0.2);
}

.quantity-control button:disabled {
  color: #6f6257;
  cursor: not-allowed;
}

.quantity-value {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 750;
}

.cart-bar {
  position: fixed;
  right: max(20px, calc((100vw - 1120px) / 2));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 30;
  width: min(420px, calc(100% - 32px));
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: var(--gold);
  color: #20140b;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, opacity 180ms ease;
}

.cart-bar:not(:disabled):hover {
  transform: translateY(-2px);
}

.cart-bar:disabled {
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
}

.cart-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.cart-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

dialog {
  color: var(--cream);
}

dialog::backdrop {
  background: rgba(7, 4, 2, 0.76);
  backdrop-filter: blur(5px);
}

.dialog-fallback {
  position: fixed;
  inset: auto 0 0 auto;
  z-index: 60;
  display: block;
}

.sheet-dialog {
  width: min(600px, 100%);
  max-width: none;
  max-height: min(92dvh, 850px);
  margin: auto 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px 26px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sheet-content {
  max-height: min(92dvh, 850px);
  padding: 12px 22px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.sheet-handle {
  width: 44px;
  height: 4px;
  margin: 0 auto 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.sheet-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease;
}

.icon-button:hover {
  border-color: rgba(214, 161, 90, 0.34);
  background: rgba(255, 255, 255, 0.045);
}

.cart-items {
  display: grid;
  gap: 11px;
}

.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.cart-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-image-placeholder {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.cart-item-name,
.cart-item-meta {
  display: block;
}

.cart-item-name {
  margin-bottom: 5px;
  font-size: 0.9rem;
  font-weight: 750;
}

.cart-item-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.cart-item-controls {
  display: grid;
  grid-template-columns: 34px minmax(48px, auto) 34px;
  align-items: center;
  text-align: center;
}

.cart-item-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--cream);
  cursor: pointer;
}

.cart-item-controls span {
  font-size: 0.78rem;
  font-weight: 750;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 17px 0 10px;
  border-top: 1px solid var(--border);
}

.cart-summary strong {
  font-size: 1.25rem;
}

.order-discount-progress {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(224, 169, 86, 0.42);
  border-radius: 11px;
  background: rgba(224, 169, 86, 0.09);
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.order-discount-progress.is-earned {
  border-color: rgba(156, 189, 120, 0.42);
  background: rgba(156, 189, 120, 0.1);
  color: var(--success);
}

.weight-note,
.submit-note,
.prototype-instagram-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.prototype-warning {
  margin: 8px 0 0;
  color: #f2b4a7;
  font-size: 0.78rem;
  font-weight: 700;
}

.reserve-expiry {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.82rem;
  line-height: 1.45;
}

.weight-note {
  margin-bottom: 24px;
}

.checkout-form {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pickup-suggestion {
  margin: -2px 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--cream);
  font-size: 1rem;
  color-scheme: dark;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field input:hover {
  border-color: rgba(246, 235, 218, 0.22);
}

.field input:focus {
  border-color: rgba(214, 161, 90, 0.72);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(214, 161, 90, 0.09);
}

.field input::placeholder {
  color: #7d6e61;
}

.form-error {
  margin: 3px 0 13px;
  padding: 11px 12px;
  border: 1px solid rgba(224, 139, 121, 0.25);
  border-radius: 10px;
  background: rgba(224, 139, 121, 0.07);
  color: #f2b4a7;
  font-size: 0.85rem;
}

.catalog-status {
  max-width: 560px;
  margin: 28px auto;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

.catalog-status.is-error {
  color: #f2b4a7;
}

.retry-button {
  min-height: 46px;
  margin: 0 auto;
  padding: 10px 18px;
  border: 1px solid rgba(214, 161, 90, 0.4);
  border-radius: 13px;
  background: rgba(214, 161, 90, 0.08);
  color: var(--gold-bright);
  cursor: pointer;
  font-weight: 750;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  transition: filter 160ms ease, transform 120ms ease, border-color 160ms ease;
}

.primary-button:not(:disabled):hover,
.secondary-button:hover {
  filter: brightness(1.08);
}

.primary-button {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #20140b;
}

.primary-button:disabled {
  border-color: var(--border);
  background: #6f6257;
  color: #d7cbc0;
  cursor: not-allowed;
}

#open-instagram,
#open-telegram {
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
}

#open-telegram[hidden],
.confirmation-channel-note[hidden] {
  display: none;
}

#open-instagram[aria-disabled="true"],
#open-telegram[aria-disabled="true"] {
  border-color: var(--border);
  background: #6f6257;
  color: #d7cbc0;
  cursor: not-allowed;
}

.secondary-button {
  border: 1px solid rgba(214, 161, 90, 0.35);
  background: rgba(214, 161, 90, 0.07);
  color: var(--gold-bright);
}

.submit-note {
  margin: 10px 0 0;
  text-align: center;
}

.success-dialog {
  width: min(500px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  max-height: min(94dvh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.success-content {
  position: relative;
  padding: 30px 24px 24px;
  text-align: center;
}

.success-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  font-size: 1.45rem;
  line-height: 1;
}

.success-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(156, 189, 120, 0.14);
  color: var(--success);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.success-order {
  display: inline-block;
  margin: 18px 0;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-bright);
  font-weight: 800;
}

.success-copy {
  color: var(--muted);
  line-height: 1.55;
}

.success-summary {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.success-summary h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.success-summary ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.success-summary li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.success-summary li strong {
  color: var(--text);
}

.success-summary li span {
  flex: 0 0 auto;
  color: var(--gold-bright);
  text-align: right;
}

.success-summary > p {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
}

.message-preview {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.message-preview summary {
  padding: 13px 14px;
  color: var(--gold-bright);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
}

.message-preview pre {
  margin: 0;
  padding: 0 14px 14px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.success-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.text-button {
  min-height: 44px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.prototype-instagram-note {
  margin: 8px 0 0;
}

.confirmation-channel-note {
  margin: 10px 0 0;
  color: var(--success);
  font-size: 0.82rem;
  line-height: 1.45;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 80;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #3a281d;
  color: var(--cream);
  box-shadow: var(--shadow);
  text-align: center;
  transform: translateX(-50%);
  font-size: 0.86rem;
}

@media (max-width: 820px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cart-bar {
    right: 16px;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .header-inner,
  .page-shell {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand small {
    display: none;
  }

  .hours-button {
    max-width: 134px;
    justify-content: center;
    padding: 8px 10px;
    line-height: 1.15;
    text-align: left;
  }

  .intro {
    display: block;
    padding: 30px 0 20px;
  }

  .prototype-note {
    width: fit-content;
    margin-top: 18px;
  }

  .freshness {
    align-items: start;
  }

  .filter-button {
    min-height: 44px;
  }

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

  .product-card {
    border-radius: 17px;
  }

  .product-card:hover {
    transform: none;
  }

  .product-image-wrap {
    aspect-ratio: 1 / 1;
  }

  .product-body {
    padding: 12px;
  }

  .stock-badge {
    top: 8px;
    left: 8px;
    padding: 6px 8px;
    font-size: 0.64rem;
  }

  .discount-badge {
    top: 8px;
    left: 8px;
    padding: 6px 8px;
    font-size: 0.62rem;
  }

  .stock-badge.below-discount {
    top: 42px;
  }

  .product-name {
    min-height: 2.7em;
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .product-price-row {
    display: block;
    margin-bottom: 12px;
  }

  .product-price,
  .product-step {
    display: block;
  }

  .product-price-block {
    margin-bottom: 4px;
  }

  .product-price {
    margin-bottom: 3px;
    font-size: 0.88rem;
  }

  .product-step {
    font-size: 0.68rem;
  }

  .add-button,
  .quantity-control {
    min-height: 44px;
  }

  .quantity-control {
    grid-template-columns: 38px 1fr 38px;
  }

  .sheet-dialog {
    max-height: 94dvh;
  }

  .sheet-content {
    max-height: 94dvh;
    padding-inline: 16px;
    scrollbar-gutter: auto;
  }

  .cart-item {
    grid-template-columns: 48px 1fr;
  }

  .cart-item img,
  .cart-image-placeholder {
    width: 48px;
    height: 48px;
  }

  .cart-item-controls {
    grid-column: 1 / -1;
    grid-template-columns: 44px 1fr 44px;
  }

  .cart-item-controls button {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 460px) {
  .brand {
    gap: 9px;
  }

  .brand strong {
    font-size: 1.02rem;
  }

  .hours-button {
    max-width: 142px;
    font-size: 0.75rem;
  }

  .cart-bar {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: calc(100% - 24px);
  }

  .success-dialog {
    width: calc(100% - 20px);
  }

  .success-content {
    padding: 26px 18px 20px;
  }
}

@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-name {
    min-height: 0;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

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

/* Wood storefront: the approved #wood concept, with legible action typography.
   Shared order/dialog hooks above remain unchanged; this layer is presentation only. */
[hidden] { display: none !important; }
html { scroll-padding-top: 100px; }
body {
  background:
    radial-gradient(ellipse at 0 5%, #97674233, transparent 65%),
    repeating-linear-gradient(90deg, #ffffff02 0 5px, #00000002 5px 8px, transparent 8px 25px),
    linear-gradient(110deg, #2b2118, #211912);
  background-attachment: fixed;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
}
h1, h2, .brand strong, .brand-mark, .product-name { font-family: inherit; }
.site-header { background: #291f17ef; border-bottom: 0; box-shadow: 0 6px 28px #0002; }
.header-inner, .page-shell { width: min(1120px, calc(100% - 40px)); }
.header-inner { min-height: 80px; }
.brand { min-width: 0; }
.brand > span:last-child { min-width: 0; }
.brand-mark {
  width: 46px; height: 46px; flex-shrink: 0;
  border: 0; border-radius: 13px;
  background: #62452b; color: #ffdbad;
  font-size: 16px; font-weight: 800;
  box-shadow: inset 0 1px 0 #ffffff14;
}
.brand strong { font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
.brand small { font-size: 12px; }
.hours-button { background: #ffffff0d; border: 0; border-radius: 12px; font-size: 13px; }
.status-dot, .hours-button::after { flex-shrink: 0; }
.intro { padding: 30px 0 22px; align-items: center; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 0.035em; text-transform: none; }
h1 { max-width: none; font-size: clamp(26px, 3vw, 36px); line-height: 1.18; font-weight: 750; margin-bottom: 10px; }
h2 { font-size: clamp(25px, 3vw, 30px); font-weight: 700; line-height: 1.2; }
.intro-copy { max-width: 680px; font-size: 15px; line-height: 1.6; }
.prototype-note { border-radius: 9px; font-size: 11px; max-width: 220px; }
.freshness { background: #45513a70; border: 1px solid #ffffff08; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }
.freshness-icon { width: 32px; height: 32px; border-radius: 10px; }
.freshness strong { font-size: 14px; font-weight: 650; }
.freshness div > span { font-size: 12px; line-height: 1.5; color: #c8d0be; }
.freshness.is-stale { background: #693b2e40; }
.filters { gap: 9px; margin-bottom: 20px; padding: 4px; margin-inline: -4px; }
.filter-button { background: #ffffff0a; border: 0; border-radius: 12px; min-height: 44px; padding: 10px 20px; font-size: 14px; color: var(--cream); }
.filter-button[aria-pressed="true"] { background: var(--gold); color: #24180f; box-shadow: 0 3px 10px #0002; }
.product-grid { gap: 22px; }
.product-card {
  position: relative; border: 0; border-radius: 16px;
  background: linear-gradient(140deg, #4a3626, #392a1e);
  box-shadow: 0 10px 25px #0b07062e, inset 0 1px 0 #ffffff0b;
}
.product-card:hover { box-shadow: 0 14px 30px #0b070640, inset 0 1px 0 #ffffff14; }
.product-card.is-selected { box-shadow: 0 0 0 2px var(--gold), 0 12px 25px #0b07063d; }
.product-image-wrap { aspect-ratio: 1.6; margin: 0; border-radius: 0; }
.product-image { object-position: center; }
.stock-badge, .discount-badge { top: 10px; left: 10px; padding: 6px 9px; border: 0; border-radius: 8px; font-size: 11px; line-height: 1.35; letter-spacing: 0; text-transform: none; box-shadow: 0 3px 12px #0002; }
.stock-badge { background: #172017ed; color: #d1e5bd; }
.stock-badge.low { background: #553b1af2; color: #ffdea4; }
.stock-badge.out { background: #3d302bf2; color: #e9cfc0; }
.stock-badge.preorder { background: #4b3e2ff2; color: #ffe0c0; }
.discount-badge { background: #983e2e; color: #fff1db; }
.stock-badge.below-discount { top: 43px; }
.product-card.is-out .product-image { opacity: 0.62; filter: saturate(0.65); }
.product-body { min-width: 0; padding: 18px; }
.product-category { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0 0 7px; }
.product-name { font-size: 21px; font-weight: 700; min-height: 0; line-height: 1.3; margin: 0 0 12px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.product-description { min-height: 0; font-size: 14px; line-height: 1.55; margin: 0 0 18px; overflow-wrap: anywhere; }
.product-price-row { display: block; margin-top: auto; margin-bottom: 16px; }
.product-price, .product-card.is-discount .product-price { font-size: 21px; line-height: 1.35; font-weight: 750; letter-spacing: -0.02em; }
.product-original-price { font-size: 13px; line-height: 1.4; }
.product-price-block { margin-bottom: 5px; }
.product-step { display: block; font-size: 12px; line-height: 1.5; }
.add-button {
  display: flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 10px; border: 0; border-radius: 11px;
  background: var(--gold); color: #25170e;
  font-size: 16px; font-weight: 800; letter-spacing: 0.025em; line-height: 1.35;
  text-align: center; box-shadow: 0 3px 10px #0001;
}
.add-button:not(:disabled):hover { background: var(--gold-bright); }
.add-button:disabled { background: #ffffff0a; color: #d0bdab; font-size: 13px; letter-spacing: 0; box-shadow: none; }
.quantity-control { min-height: 50px; grid-template-columns: 46px minmax(0, 1fr) 46px; background: #211912; border: 0; border-radius: 11px; box-shadow: inset 0 0 0 1px #ffffff14; }
.quantity-control button { min-height: 50px; background: #ffffff08; color: var(--cream); font-size: 23px; }
.quantity-value { font-size: 15px; color: var(--gold-bright); line-height: 1.3; }
.quantity-control button:focus-visible { outline-offset: -4px; }
.cart-bar { background: var(--gold); border: 0; border-radius: 14px; color: #23170f; box-shadow: 0 7px 24px #0004; }
.cart-bar-label { font-size: 16px; font-weight: 750; }
.cart-bar-total { font-size: 18px; font-weight: 800; }
.sheet-dialog, .success-dialog { border-color: #ffffff1a; background: var(--surface); }
.primary-button, .secondary-button { font-size: 16px; line-height: 1.4; letter-spacing: 0.01em; text-align: center; }
.secondary-button { border-color: #ffffff30; }
.icon-button, .cart-item-controls button { display: grid; place-items: center; }
.cart-item { grid-template-columns: 58px minmax(0, 1fr) auto; }
.cart-item-name { overflow-wrap: anywhere; line-height: 1.4; }
.cart-item-controls { grid-template-columns: 44px minmax(60px, auto) 44px; }
.cart-item-controls button { width: 44px; height: 44px; font-size: 20px; }
.cart-item-controls span { font-size: 14px; }
.field, .field-row > * { min-width: 0; }
.field input { min-width: 0; max-width: 100%; }
.success-order { overflow-wrap: anywhere; }
.success-summary li strong { min-width: 0; overflow-wrap: anywhere; color: var(--cream); }
.success-summary > p { color: var(--cream); }
.toast { background: var(--surface-raised); }

@media (max-width: 820px) {
  .product-grid { gap: 16px; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 84px; }
  .header-inner, .page-shell { width: calc(100% - 24px); }
  .header-inner { min-height: 70px; gap: 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 14px; }
  .brand strong { font-size: 16px; }
  .hours-button { max-width: 126px; min-height: 44px; font-size: 11px; gap: 6px; padding: 8px; border-radius: 10px; }
  .status-dot { width: 6px; height: 6px; }
  .intro { padding: 24px 0 18px; }
  .eyebrow { font-size: 11px; }
  h1 { font-size: 27px; line-height: 1.2; }
  .intro-copy { font-size: 14px; }
  .freshness { padding: 11px 12px; gap: 10px; margin-bottom: 15px; border-radius: 12px; }
  .freshness strong { font-size: 12px; line-height: 1.4; }
  .freshness div > span { font-size: 11px; }
  .freshness-icon { width: 28px; height: 28px; border-radius: 9px; }
  .filters { gap: 7px; margin-bottom: 16px; }
  .filter-button { padding: 10px 15px; font-size: 13px; border-radius: 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .product-card { border-radius: 13px; }
  .product-image-wrap { aspect-ratio: 1.18; }
  .product-body { padding: 12px 11px; }
  .product-category { font-size: 10px; margin-bottom: 6px; }
  .product-name { font-size: 16px; line-height: 1.3; margin-bottom: 10px; }
  .product-description { font-size: 12px; line-height: 1.5; margin-bottom: 14px; }
  .stock-badge, .discount-badge { top: 7px; left: 7px; max-width: calc(100% - 14px); font-size: 9px; padding: 5px 6px; border-radius: 6px; }
  .stock-badge.below-discount { top: 35px; }
  .product-price-row { margin-bottom: 12px; }
  .product-price, .product-card.is-discount .product-price { font-size: 17px; }
  .product-original-price { font-size: 11px; }
  .product-step { font-size: 11px; }
  .add-button { min-height: 48px; padding: 11px 6px; font-size: 14px; letter-spacing: 0.015em; border-radius: 9px; }
  .add-button:disabled { font-size: 12px; }
  .quantity-control { min-height: 48px; grid-template-columns: 44px minmax(0, 1fr) 44px; border-radius: 9px; }
  .quantity-control button { min-height: 48px; }
  .quantity-value { font-size: 13px; overflow-wrap: anywhere; }
  .cart-bar { border-radius: 12px; }
  .cart-bar-label { font-size: 15px; }
  .cart-bar-total { font-size: 17px; }
  .cart-item { grid-template-columns: 48px minmax(0, 1fr); }
  .cart-item-controls { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .sheet-header { gap: 12px; }
  .sheet-header h2 { font-size: 26px; }
}
@media (max-width: 360px) {
  .brand strong { font-size: 14px; }
  .brand { gap: 7px; }
  .hours-button { max-width: 116px; }
  .product-body { padding-inline: 9px; }
  .product-name { font-size: 15px; }
  .product-price, .product-card.is-discount .product-price { font-size: 16px; }
  .add-button { font-size: 13px; letter-spacing: 0.01em; }
  .quantity-value { font-size: 12px; }
}
@media (hover: none) {
  .product-card:hover { transform: none; }
  .product-card:hover .product-image { transform: none; }
}
/* Fixed-weight packs share the same gram-based basket and stock. */
.pack-controls { display: grid; gap: 8px; width: 100%; min-width: 0; }
.pack-controls label { display: grid; gap: 5px; font-size: 13px; }
.pack-controls select { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: #291d13; color: #f8e8cc; font: inherit; font-size: 16px; }
.pack-counter { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; text-align: center; gap: 4px; }
.pack-counter > span { min-width: 0; font-size: 12px; }
.pack-counter button { min-height: 48px; border-radius: 9px; border: 0; background: #ffffff08; color: var(--cream); font-size: 24px; cursor: pointer; }
.pack-counter button:disabled { opacity: .4; cursor: default; }
.pack-controls small { line-height: 1.5; overflow-wrap: anywhere; }
.cart-item > .pack-controls { grid-column: 1 / -1; }
.cart-item-heading { display: flex; align-items: flex-start; gap: 8px; }
.cart-item-heading .cart-item-name { flex: 1; min-width: 0; }
.cart-item-remove { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; margin-top: -8px; border: 1px solid var(--border); border-radius: 9px; background: #ffffff08; color: var(--cream); font-size: 24px; cursor: pointer; }
.cart-item-remove:hover { background: #ffffff14; }

/* Approved cream emblem: retain the supplied artwork and responsive proportions. */
html { scroll-padding-top: 126px; }
.header-inner { min-height: 114px; padding-block: 10px; gap: 20px; }
.brand { gap: 15px; flex-shrink: 1; }
.brand-logo { display: block; width: 88px; height: 88px; flex-shrink: 0; overflow: hidden; border-radius: 50%; background: #faf7ee; box-shadow: 0 4px 15px #0002; }
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { min-width: 0; }
.brand-copy strong { font-size: 22px; line-height: 1.25; }
.brand-copy small { margin-top: 5px; }
.hours-button { flex-shrink: 0; }
@media (max-width: 620px) {
  html { scroll-padding-top: 110px; }
  .header-inner { min-height: 92px; padding-block: 9px; gap: 9px; }
  .brand { gap: 9px; }
  .brand-logo { width: 62px; height: 62px; }
  .brand-copy strong { font-size: 16px; line-height: 1.2; }
  .brand-copy small { display: none; }
}
@media (max-width: 360px) {
  .header-inner { min-height: 78px; }
  .brand { gap: 7px; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-copy strong { font-size: 14px; }
  .hours-button { max-width: 113px; font-size: 10px; gap: 5px; }
}
