:root {
  --surface: #fffdf8;
  --warm-line: #ded9cf;
  --warm-panel: #eeebe3;
  --warm-accent: #8a7860;
}

.gallery-icon svg, .gallery-controls svg, .quick-cart svg, .favorite-detail svg, .account-dashboard svg,
.order-check svg, .pickup-head svg, .pickup-selected svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gallery-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--warm-line);
  transition: background .2s, color .2s;
}
.gallery-icon:hover, .gallery-icon[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.gallery-actions { justify-content: flex-end; gap: 8px; margin-top: 12px; }
.gallery-actions .gallery-lens-control { display: none; }
.gallery-controls button { display: grid; place-items: center; }
.photo-dialog-bar { justify-content: flex-end; gap: 8px; }
@media (hover: hover) and (pointer: fine) {
  .gallery-actions .gallery-lens-control { display: inline-grid; }
}
.header-actions a[aria-current="page"] { background: var(--warm-panel); }

.card-photo { position: relative; }
.card-favorite { position: absolute; inset: 10px 10px auto auto; z-index: 2; }
.card-favorite .gallery-icon { border-color: transparent; background: #fffdf8ef; }
.card-favorite .gallery-icon:hover, .card-favorite .gallery-icon[aria-pressed="true"] { background: var(--surface); color: #703e48; }
.card-favorite .gallery-icon[aria-pressed="true"] svg, .favorite-detail[aria-pressed="true"] svg { fill: currentColor; }
.favorite-detail { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 5px 0; color: var(--ink); }
.quick-cart { display: grid; gap: 8px; margin-top: 13px; }
.quick-cart select {
  min-height: 44px;
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--warm-line);
  background: var(--surface);
}
.quick-cart-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--warm-line);
  background: transparent;
  font-size: 13px;
  transition: background .2s, color .2s;
}
.quick-cart-button:hover { background: var(--ink); color: var(--surface); }
.quick-cart-button svg { width: 16px; height: 16px; }
.product-availability { color: var(--muted); font-size: 13px; }
.swipe-stage { max-width: 570px; margin-inline: auto; }
.swipe-stage .product-visual { aspect-ratio: 4 / 5; max-height: min(62vh, 630px); }
.store-toast {
  position: fixed;
  z-index: 2000;
  inset: auto 20px 20px auto;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 18px;
  color: var(--surface);
  background: var(--ink);
  pointer-events: none;
  transition: opacity .2s;
}
.store-toast:empty { opacity: 0; }

.account-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-content: start;
  max-width: 1040px;
}
.account-editorial { padding: clamp(28px, 6vw, 76px); background: var(--warm-panel); }
.account-editorial .eyebrow { display: block; color: var(--muted); }
.account-editorial h1, .account-dashboard h1, .order-window h1 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.18; overflow-wrap: anywhere; }
.account-editorial > p:last-child { max-width: 30ch; margin-top: 18px; color: var(--muted); }
.account-form-panel {
  min-width: 0;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--warm-line);
  background: var(--surface);
}
.account-form-panel .form-stack { display: grid; gap: 15px; }
.account-form-panel .form-field { margin-bottom: 0; }
.account-form-panel .form-field input { border-color: var(--warm-line); }
.account-form-panel .form-stack > .button { width: 100%; }
.account-form-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; }
.account-form-links a, .account-form-links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
}
.account-form-links form { margin: 0; }
.sms-actions { display: grid; gap: 10px; }
.sms-send.is-resend { color: var(--ink); background: transparent; border-color: var(--warm-line); }
.sms-status:empty { display: none; }
.sms-code-field input { letter-spacing: .28em; max-width: 15ch; }

.account-dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: clamp(20px, 5vw, 48px) 0 28px;
  border-bottom: 1px solid var(--warm-line);
}
.account-dashboard-heading .eyebrow { color: var(--muted); }
.account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 66px); padding-top: 28px; }
.account-nav { display: grid; align-self: start; gap: 2px; }
.account-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--warm-line);
}
.account-nav a:hover, .account-nav [aria-current="page"] { background: var(--warm-panel); }
.account-content { min-width: 0; }
.account-content h2 { font-size: clamp(27px, 3vw, 40px); line-height: 1.25; margin-bottom: 18px; }
.account-section-head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 6px 20px; }
.account-section-head .text-link { min-height: 40px; }
.account-orders { display: grid; gap: 10px; }
.account-order {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(100px, auto) 18px;
  align-items: center;
  gap: 16px;
  padding: 12px 15px;
  border: 1px solid var(--warm-line);
  background: var(--surface);
  transition: border-color .18s;
}
.account-order:hover { border-color: var(--warm-accent); }
.account-order img, .account-order-placeholder { width: 72px; height: 84px; object-fit: cover; background: var(--warm-panel); }
.account-order-placeholder { display: grid; place-items: center; }
.account-order-name, .account-order-meta { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.account-order-meta { justify-items: end; text-align: right; }
.account-order small { font-size: 12px; color: var(--muted); }
.account-order-name > span { margin-top: 3px; }
.account-pill { display: inline-block; max-width: 100%; padding: 3px 9px; font-size: 11px; background: var(--warm-panel); }
.account-pill.verified { background: #edf0e9; color: #425a49; }
.account-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-address, .account-empty { padding: 20px; border: 1px solid var(--warm-line); background: var(--surface); overflow-wrap: anywhere; }
.account-address h3 { margin-bottom: 12px; font-size: 22px; line-height: 1.2; }
.account-address .account-form-links { margin-top: 8px; }
.account-empty .button { margin-top: 16px; }
.account-data { margin: 0; padding: 0 20px; border: 1px solid var(--warm-line); background: var(--surface); }
.account-data > div { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 12px; padding: 14px 0; }
.account-data > div + div { border-top: 1px solid var(--warm-line); }
.account-data dt { color: var(--muted); }
.account-data dd { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.account-data dd p, .account-data dd form { flex-basis: 100%; }

.checkout-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 62px); align-items: start; }
.checkout-form { width: 100%; max-width: none; }
.checkout-section { padding: 18px 0 26px; border-top: 1px solid var(--warm-line); }
.checkout-section > h2, .checkout-review h2 { font-size: 28px; margin-bottom: 18px; line-height: 1.2; }
.checkout-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checkout-form .form-field input, .checkout-form .form-field textarea { border-color: var(--warm-line); background: var(--surface); }
.checkout-form .contact-check { margin: 0; border: 0; padding: 0; }
.checkout-form .contact-check > button { min-height: 34px; }
.delivery-fieldset { border: 0; margin: 0 0 17px; padding: 0; min-width: 0; }
.delivery-methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.delivery-methods label { position: relative; display: flex; }
.delivery-methods label input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.delivery-methods label span {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 48px;
  padding: 6px 5px;
  border: 1px solid var(--warm-line);
  background: var(--surface);
  font-size: 12px;
  text-align: center;
}
.delivery-methods input:checked + span { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.delivery-methods input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.checkout-form .checkout-comment { margin-top: 17px; }
.checkout-comment[open] summary { margin-bottom: 12px; }
.checkout-agreement .consent-fields { margin: 0 0 14px; border-color: var(--warm-line); }
.checkout-agreement > .button { width: 100%; }
.checkout-review {
  position: sticky;
  top: 20px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--warm-line);
  background: var(--surface);
}
.checkout-items, .order-product-list { list-style: none; margin: 0 0 14px; padding: 0; }
.checkout-items li, .order-product-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--warm-line); }
.checkout-items li > span, .order-product-list li > span { flex: 1; min-width: 0; }
.checkout-items li > strong, .order-product-list li > strong { flex: 0 0 auto; }
.checkout-items img { flex: 0 0 54px; width: 54px; height: 64px; object-fit: cover; }
.checkout-items small, .order-product-list small { display: block; margin-top: 4px; color: var(--muted); }

.pickup-finder { display: grid; gap: 10px; padding: 15px; border: 1px solid var(--warm-line); background: var(--surface); }
.pickup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pickup-head h3 { font-size: 21px; line-height: 1.3; margin-bottom: 5px; }
.pickup-head .map-toggle { flex: 0 0 auto; min-height: 38px; gap: 5px; }
.pickup-search { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--warm-line); background: var(--paper); }
.pickup-map { height: clamp(220px, 30vw, 345px); background: #e9ece5; z-index: 0; }
.pickup-map-status { padding: 4px 0; }
.pickup-marker { display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #526e7b; box-shadow: 0 1px 6px #14242e66; }
.pickup-marker span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pickup-marker.is-selected { background: #603640; box-shadow: 0 0 0 2px #60364070; }
.pickup-results { display: grid; align-content: start; gap: 5px; max-height: 252px; overflow-y: auto; }
.pickup-result { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--warm-line); text-align: left; }
.pickup-result span { color: var(--muted); font-size: 12px; }
.pickup-result:hover, .pickup-result[aria-pressed="true"] { background: var(--warm-panel); }
.pickup-result[aria-pressed="true"] { border-color: var(--warm-accent); }
.pickup-selected { display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: #edf0e9; color: #364d3c; }
.pickup-selected > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pickup-selected svg { flex: 0 0 20px; }
.pickup-selected .text-link { min-height: 39px; }
.checkout-form .manual-pickup { margin-top: 9px; border-color: var(--warm-line); }
.manual-pickup .help-text a { text-decoration: underline; }

.order-flow { max-width: 730px; }
.order-window { padding: clamp(20px, 5vw, 50px); border: 1px solid var(--warm-line); background: var(--surface); }
.order-window h1 { font-size: clamp(30px, 4.8vw, 51px); margin: 7px 0 12px; }
.order-window .eyebrow { color: var(--muted); }
.order-window .payment-amount { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; line-height: 1.2; }
.order-transfer { margin: 0 0 12px; border-top: 1px solid var(--warm-line); }
.order-transfer > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; min-height: 48px; border-bottom: 1px solid var(--warm-line); }
.order-transfer dt { color: var(--muted); }
.order-transfer dd { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 0; text-align: right; overflow-wrap: anywhere; }
.copy-icon { flex: 0 0 44px; border-color: transparent; }
.payment-submit { margin: 12px 0 6px; }
.order-details { margin-top: 14px; border-top: 1px solid var(--warm-line); }
.order-details summary { padding: 11px 0; }
.order-details .order-address { margin-top: 11px; }
.order-history { margin: 0; padding-left: 22px; }
.order-history time { color: var(--muted); font-size: 12px; }
.order-thanks { text-align: center; }
.order-thanks .button { margin: 22px auto 0; min-width: 180px; }
.order-check { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 17px; border: 1px solid var(--warm-accent); border-radius: 50%; }
.order-next { margin-top: 10px; }
.order-next .text-link { min-height: 34px; }

@media (max-width: 850px) {
  .account-layout { grid-template-columns: 165px minmax(0, 1fr); }
  .checkout-columns { grid-template-columns: minmax(0, 1fr); }
  .checkout-review { position: static; }
}
@media (max-width: 640px) {
  .account-shell, .account-layout { grid-template-columns: minmax(0, 1fr); }
  .account-layout { gap: 22px; padding-top: 14px; }
  .account-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .account-dashboard-heading { align-items: flex-start; }
  .account-dashboard-heading h1 { font-size: clamp(25px, 7.8vw, 38px); }
  .account-order { grid-template-columns: 54px minmax(0, 1fr) minmax(62px, auto); gap: 8px; padding: 8px; }
  .account-order img, .account-order-placeholder { width: 54px; height: 66px; }
  .account-order-arrow { display: none; }
  .account-order-name, .account-order-meta { font-size: 12px; }
  .account-addresses, .account-data > div { grid-template-columns: minmax(0, 1fr); }
  .account-data > div { gap: 3px; }
  .checkout-contacts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .delivery-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-favorite { inset: 5px 5px auto auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-icon, .account-order, .store-toast, .quick-cart-button { transition: none; }
}
