:root {
  --green: #254632;
  --gold: #cb871a;
  --beige: #ede2d0;
  --ink: #0d1c13;
  --paper: #f6f3ed;
  --sage: #73a364;
  --wine: #88232a;
  --muted: #5d6b62;
  --line: #d9cbb6;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(13, 28, 19, 0.08);
  --header: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 0.4em; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.ornament {
  height: 42px;
  background: url("/assets/img/ornament-web.png") repeat-x center;
  background-size: auto 100%;
  opacity: 0.95;
}
.site-header {
  position: relative;
  z-index: 40;
  background: var(--green);
  color: var(--paper);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  min-height: 0;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 14px;
}
.site-header .logo img {
  height: 48px;
  width: auto;
  max-width: min(240px, 52vw);
  object-fit: contain;
  border-radius: 10px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-size: 1.15rem; font-weight: 650; }
.logo-text span {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-top: 4px;
}
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.icon-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(246, 243, 237, 0.12);
  color: var(--paper);
  display: grid;
  place-items: center;
}
.icon-link:hover, .cart-link:hover { color: var(--gold); }

.nav {
  display: none;
  align-items: center;
  gap: 22px;
  font-weight: 550;
  font-size: 0.92rem;
}
.nav a:hover { color: var(--gold); }
.nav a.is-active { color: var(--gold); }
.icon-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 650;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-green { background: var(--green); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-wine { background: var(--wine); color: #fff; }
.btn:hover { filter: brightness(1.05); }
.cart-link {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(246, 243, 237, 0.12);
  color: var(--paper);
  display: grid;
  place-items: center;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px 18px;
  background: #1b3526;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(237, 226, 208, 0.08);
}
.flash {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 550;
}
.flash-success { background: #e5efd8; color: var(--green); }
.flash-error { background: #f4d6d4; color: var(--wine); }

.hero {
  padding: 24px 0 28px;
  background:
    radial-gradient(1200px 280px at 80% -40%, rgba(203, 135, 26, 0.18), transparent 60%),
    var(--beige);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  justify-items: center;
  align-items: center;
}
.hero-logo {
  width: min(200px, 58vw);
  max-width: 340px;
  margin: 0;
  border-radius: 24px;
  box-shadow: none;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  min-width: 0;
}
.hero-copy > .eyebrow {
  white-space: nowrap;
  letter-spacing: 0.12em;
  font-size: clamp(0.55rem, 2.6vw, 0.72rem);
}
.hero h1 {
  font-size: clamp(1.5rem, 7vw, 3.1rem);
  line-height: 1.2;
  max-width: none;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
.hero p {
  color: var(--muted);
  max-width: none;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.section { padding: 48px 0; }
.section-head { margin-bottom: 24px; }
.cert-page-head {
  text-align: center;
}
.cert-intro {
  max-width: 62ch;
  margin-inline: auto;
}
.cert-card {
  margin: 0 auto;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cert-card img {
  display: block;
  width: 100%;
  height: auto;
}
.grid-3, .grid-2, .product-grid {
  display: grid;
  gap: 16px;
}
.product-grid { grid-template-columns: 1fr; align-items: stretch; }
.card, .product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card .thumb {
  aspect-ratio: 1;
  background: var(--beige);
  overflow: hidden;
  display: grid;
}
.product-card .thumb > * {
  grid-area: 1 / 1;
  width: 100%;
  min-height: 0;
}
.product-card:not(.has-desc) .thumb {
  aspect-ratio: unset;
  background: #fff;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-gallery,
.product-card .gallery-slider,
.product-card .gallery-track-wrap,
.product-card .gallery-track,
.product-card .gallery-slide {
  height: 100%;
}
.product-card:not(.has-desc) .card-gallery,
.product-card:not(.has-desc) .gallery-slider,
.product-card:not(.has-desc) .gallery-track-wrap,
.product-card:not(.has-desc) .gallery-track,
.product-card:not(.has-desc) .gallery-slide {
  height: auto;
}
.product-card:not(.has-desc) .gallery-slide img {
  height: auto;
  aspect-ratio: unset;
}
.product-card.has-desc .gallery-slide img {
  aspect-ratio: unset;
  min-height: 100%;
}
.product-card .body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card { padding: 16px; }
.product-card h3 { font-size: 1.1rem; }
.card-desc {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-cart {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}
.card-add {
  display: grid;
  gap: 10px;
}
.card-cart-actions {
  --cart-action-h: calc(24px + 1.55em);
  display: grid;
  place-items: center;
  min-height: var(--cart-action-h);
}
.card-cart-actions .btn,
.card-cart-actions .card-qty {
  grid-area: 1 / 1;
}
.card-cart-actions .btn {
  width: 100%;
  justify-self: stretch;
}
.card-cart-actions .card-qty {
  justify-self: center;
}
[data-cart-add-btn][hidden],
[data-cart-qty-wrap][hidden] { display: none !important; }
.card-qty {
  width: auto;
  max-width: max-content;
  justify-content: center;
}
.product-card[hidden] { display: none !important; }
.section-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.section-pill {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.section-pill.is-active {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
}
.options-compact { margin: 0; }
.options-compact .option { padding: 8px 12px; font-size: 0.85rem; }
.price { color: var(--green); font-weight: 700; }
.muted { color: var(--muted); }
.steps { display: grid; gap: 14px; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--green);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.site-footer {
  background: var(--green);
  color: var(--paper);
  padding: 36px 0 28px;
}
.site-footer a { color: var(--gold); }
.footer-grid { display: grid; gap: 18px; }
.footer-review { max-width: 148px; }
.footer-review .eyebrow { display: block; line-height: 1.35; }
.footer-qr {
  display: inline-block;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
}
.footer-qr img {
  width: 110px;
  height: 110px;
}
.copy { opacity: 0.75; font-size: 0.85rem; margin-top: 18px; }

.sticky-cart {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--green);
  color: var(--paper);
  border-radius: 999px;
  padding: 10px 10px 10px 18px;
  box-shadow: var(--shadow);
}
.sticky-cart[hidden],
.cart-count[hidden] { display: none !important; }
.sticky-cart .btn { padding: 10px 16px; }

.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, filter 0.15s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.to-top:hover { filter: brightness(1.08); color: var(--beige); }
.to-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (max-width: 719px) {
  body:has([data-sticky-cart]:not([hidden])) .to-top {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

.toast-stack {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
@media (max-width: 719px) {
  .toast-stack { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
.toast {
  pointer-events: none;
  width: min(440px, 100%);
  padding: 13px 16px;
  border-radius: 16px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 30px rgba(13, 28, 19, 0.18);
  animation: toast-in 0.25s ease, toast-out 0.35s ease 2.35s forwards;
}
.toast-success { background: var(--green); color: var(--paper); }
.toast-error { background: var(--wine); color: #fff; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(10px); }
}

.product-layout { display: grid; gap: 20px; }
.product-gallery,
.card-gallery {
  position: relative;
  background: #fff;
}
.product-gallery {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-gallery { height: 100%; }
.gallery-slider { position: relative; width: 100%; height: 100%; }
.gallery-track-wrap {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.gallery-track-wrap.is-dragging {
  cursor: grabbing;
}
.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.28s ease;
  will-change: transform;
}
.gallery-track-wrap.is-dragging .gallery-track {
  transition: none;
}
.gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.gallery-slider.is-compact .gallery-slide img { object-fit: cover; }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 243, 237, 0.92);
  color: var(--green);
  font-size: 1.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 28, 19, 0.12);
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.gallery-dot {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 243, 237, 0.75);
  cursor: pointer;
}
.gallery-dot.is-active { background: var(--gold); }
.gallery-slider:not(.has-multiple) .gallery-nav,
.gallery-slider:not(.has-multiple) .gallery-dots { display: none; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.option {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}
.option input { display: none; }
.option:has(input:checked), .option.is-on {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.qty button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.2rem;
}
.qty input {
  width: 42px;
  border: 0;
  text-align: center;
  background: transparent;
}
.card-qty.qty {
  height: var(--cart-action-h, calc(24px + 1.55em));
  min-height: var(--cart-action-h, calc(24px + 1.55em));
  box-sizing: border-box;
}
.card-qty.qty button {
  width: 34px;
  height: 100%;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}
.card-qty.qty input {
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  height: 100%;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 650;
}

.cart-list { display: grid; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.cart-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-self: start;
}
.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}
.cart-item .qty { justify-self: center; }
.cart-item .qty.card-qty {
  width: auto;
  max-width: max-content;
}
.cart-item [data-cart-remove] { justify-self: end; }
.form {
  position: relative;
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
label span { display: block; font-size: 0.82rem; font-weight: 650; }
.when-field > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
}
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], textarea, select {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 14px;
}
.form input[type=date] {
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
}
.form input[type=date]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
}
textarea { min-height: 120px; resize: vertical; }
textarea.is-compact { min-height: 88px; }
.choice-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.choice-field legend {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 6px;
  padding: 0;
}
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
  font-weight: 550;
}
.choice:has(input:checked) {
  border-color: var(--green);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--green);
}
.choice input {
  width: auto;
  margin: 0;
  accent-color: var(--green);
}
.choice-note {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.when-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.when-controls input[type=date] { width: 100%; min-width: 0; }
.time-range {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 0 8px;
  min-width: 0;
}
.time-range select {
  flex: 1;
  min-width: 0;
  width: auto;
  border: 0;
  background: transparent;
  padding: 12px 2px;
}
.time-range-sep {
  color: var(--muted);
  font-weight: 700;
  flex: 0 0 auto;
}
.delivery-panel { display: grid; gap: 12px; }
.delivery-panel[hidden],
.address-results[hidden],
.zone-pill[hidden] { display: none !important; }
.delivery-map {
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--beige);
}
.delivery-note {
  margin: 0;
  background: var(--beige);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.92rem;
}
.address-suggest { position: relative; }
.address-results {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 8;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.address-results button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.address-results button:hover,
.address-results button.is-active { background: var(--beige); }
.zone-pill {
  margin: 8px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.zone-pill.is-in { color: var(--green); }
.zone-pill.is-out { color: var(--wine); }
.totals {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 16px 0;
}

.admin-shell { display: grid; min-height: 100vh; }
.admin-side {
  background: var(--green);
  color: var(--paper);
  padding: 20px 16px;
}
.admin-side a, .admin-side button.linkish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--paper);
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.admin-side a.is-active, .admin-side a:hover { background: rgba(246, 243, 237, 0.1); }
.badge {
  background: var(--gold);
  color: #fff;
  border-radius: 99px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
}
.admin-main { padding: 20px 16px 40px; }
.table-wrap { overflow: auto; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.check-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 18px;
  font-size: 0.92rem;
  max-width: 42rem;
}
.check-line input { margin-top: 3px; flex: 0 0 auto; }
.sort-actions { display: flex; flex-direction: row; gap: 4px; justify-content: flex-end; }
.sort-btn {
  min-width: 36px;
  padding: 6px 8px;
  line-height: 1;
}
.favorite-toggle { margin: 0; }
.favorite-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.favorite-label input { width: auto; margin: 0; accent-color: var(--gold); }
.row-actions form { margin: 0; }
.thumb-sm { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; background: var(--beige); }
.status { display: inline-block; border-radius: 99px; padding: 3px 10px; font-size: 0.78rem; font-weight: 700; }
.status-new { background: #f4e3c4; color: #8a5a00; }
.status-processing { background: #dce8f8; color: #1d4f91; }
.status-done { background: #e5efd8; color: var(--green); }
.status-cancelled { background: #f4d6d4; color: var(--wine); }
.option-rows, .option-blocks { display: grid; gap: 12px; }
.option-block {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: var(--paper);
}
.option-row { display: grid; grid-template-columns: 1fr 110px 44px 40px; gap: 8px; align-items: center; }
.image-gallery-admin { margin-top: 10px; }
.image-gallery-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 8px;
  color: var(--muted);
}
.image-gallery-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.gallery-item { display: grid; gap: 6px; width: 92px; cursor: pointer; }
.gallery-item img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.gallery-remove {
  font-size: 0.72rem;
  display: flex;
  gap: 4px;
  align-items: center;
  font-weight: 550;
}
.order-grid { display: grid; gap: 12px; }
@media (min-width: 720px) {
  .order-grid { grid-template-columns: repeat(3, 1fr); }
}
.form .order-grid strong { display: block; padding-top: 8px; }
.order-edit-table { min-width: 780px; }
.order-edit-table.is-readonly { min-width: 640px; }
.order-edit-table td { vertical-align: middle; }
.order-edit-table input[type=number] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
}
.order-edit-table th:nth-child(3),
.order-edit-table td:nth-child(3) { width: 88px; }
.order-edit-table th:nth-child(4),
.order-edit-table td:nth-child(4),
.order-edit-table th:nth-child(5),
.order-edit-table td:nth-child(5) { width: 120px; white-space: nowrap; }
.order-edit-table th:nth-child(6),
.order-edit-table td:nth-child(6) { width: 56px; text-align: right; }
.order-edit-table .cell-total { font-weight: 700; color: var(--green); }
.order-edit-table .btn { width: 40px; height: 40px; padding: 0; }
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: none;
  pointer-events: none;
}
.order-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.form .order-toolbar select {
  width: auto;
  min-width: 220px;
  flex: 1;
}
.history-list { display: grid; gap: 10px; }
.history-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 12px 14px;
}
.history-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.history-summary { white-space: pre-wrap; }
.login-card {
  width: min(420px, calc(100% - 32px));
  margin: 12vh auto;
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

@media (min-width: 720px) {
  .menu-toggle { display: none; }
  .nav { display: flex; }
  .product-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-layout, .checkout-layout, .footer-grid, .admin-shell { grid-template-columns: 1fr 1fr; }
  .footer-review { justify-self: end; }
  .admin-shell { grid-template-columns: 240px 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero-inner { grid-template-columns: minmax(240px, 340px) 1fr; gap: 40px; justify-items: stretch; }
  .hero-logo { width: 100%; }
  .hero h1 { max-width: 16ch; margin: 0 auto 0.4em; }
  .hero p { max-width: 50ch; margin: 0 auto 18px; }
  .icon-link { display: none; }
  .sticky-cart { display: none; }
  .site-header .logo img { height: 56px; max-width: 280px; border-radius: 12px; }
}
@media (max-width: 639px) {
  .cart-item {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "main main main"
      ". qty remove";
  }
  .cart-item-main { grid-area: main; width: 100%; }
  .cart-item .qty { grid-area: qty; }
  .cart-item [data-cart-remove] { grid-area: remove; }
}
@media (min-width: 768px) {
  #how .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #how .step {
    grid-template-columns: 1fr;
    text-align: center;
  }
  #how .step-num { margin-inline: auto; }
}
@media (min-width: 980px) {
  .product-grid, .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.1fr 0.9fr 1.4fr auto; align-items: start; }
  .footer-review { justify-self: end; }
}
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.delete-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 28, 19, 0.46);
}
.delete-dialog[hidden] { display: none; }
.delete-dialog-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.delete-dialog-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 650;
}
.delete-dialog-card label { display: block; margin-top: 12px; }
.delete-dialog-card input[type=text] {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 14px;
}
