/* Storefront and order desk. Scope shared rules to their two containers. */
.shop-public,
#shop-panel {
  --shop-paper: #faf6ee;
  --shop-surface: #fffdfa;
  --shop-ink: #29231c;
  --shop-muted: #675b4d;
  --shop-wine: #652a2c;
  --shop-line: #d6c8b4;
  --shop-dark: #251613;
  --shop-gold: #e2bd80;
}

.shop-public { background: var(--shop-paper); color: var(--shop-ink); }
.shop-public h1 { font-size: clamp(2.85rem, 8vw, 6rem); }
.shop-public h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.shop-public h3 { font-size: 1.45rem; }
.shop-shell { width: min(1190px, calc(100% - 3rem)); margin-inline: auto; }
.shop-header { color: var(--shop-paper); background: var(--shop-dark); }
.shop-header-inner { display: flex; justify-content: space-between; align-items: center; gap: .8rem; min-height: 4.1rem; }
.shop-brand { display: inline-flex; align-items: center; gap: .4rem; font: 1.65rem Georgia, serif; color: var(--shop-gold); text-decoration: none; white-space: nowrap; }
.shop-brand img { height: auto; border-radius: .25rem; }
.shop-brand span { color: var(--shop-paper); font: .78rem system-ui, sans-serif; margin-inline-start: .3rem; }
.shop-header-links { display: flex; gap: .75rem; align-items: center; font-size: .83rem; }
.shop-header-links a[aria-current="page"] { font-weight: 700; color: var(--shop-gold); }
.shop-languages { position: relative; }
.shop-languages summary { padding: .45rem; border: 1px solid #dfbb7850; cursor: pointer; }
.shop-language-options {
  position: absolute; z-index: 2; top: calc(100% + .25rem); inset-inline-end: 0;
  display: grid; width: max-content; min-width: 8rem; background: var(--shop-dark); border: 1px solid #dfbb7850;
}
.shop-language-options a { padding: .65rem .75rem; text-decoration: none; }
.shop-language-options a:hover { background: #ffffff16; }
.shop-intro { padding-block: clamp(2.2rem, 6vw, 4.5rem) 1.7rem; }
.shop-intro > p:last-child { margin-top: .7rem; color: var(--shop-muted); }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1rem, 4vw, 3rem); align-items: start; margin-bottom: 4rem; }
.shop-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: 1rem; }
.shop-public button,
#shop-panel .shop-action {
  min-height: 2.65rem; padding: .46rem .7rem; border: 1px solid var(--shop-line); border-radius: 4px;
  background: var(--shop-surface); color: var(--shop-ink); cursor: pointer; font: inherit;
}
.shop-public button:hover, #shop-panel .shop-action:hover { border-color: var(--shop-wine); }
.shop-public button:disabled, #shop-panel .shop-action:disabled { opacity: .55; cursor: default; }
.shop-public .shop-primary,
#shop-panel .shop-primary,
.shop-public [aria-pressed="true"],
#shop-panel [aria-pressed="true"] {
  color: white; background: var(--shop-wine); border-color: var(--shop-wine);
}
.shop-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.shop-product { display: flex; min-width: 0; flex-direction: column; gap: .5rem; padding: .8rem; border: 1px solid var(--shop-line); background: var(--shop-surface); border-radius: 6px; }
.shop-product img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.shop-product p { font-size: .88rem; }
.shop-product-price { display: block; margin-top: auto; font-weight: 700; }
.shop-product button { align-self: start; }
.shop-cart { background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: 6px; padding: 1rem; }
.shop-cart h2 { margin-bottom: .6rem; }
.shop-cart-row, .shop-total-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-block: .45rem; }
.shop-cart-row + .shop-cart-row, .shop-cart-row:first-child, .shop-totals { border-top: 1px solid var(--shop-line); }
.shop-cart-controls { display: flex; flex: none; align-items: center; gap: .4rem; }
.shop-cart-controls button { min-width: 2.4rem; padding-inline: .4rem; }
.shop-muted, .shop-notice { color: var(--shop-muted); }
.shop-totals { margin-top: .6rem; }
.shop-totals .shop-total-row:last-child { font-weight: 700; }
.shop-checkout { display: grid; gap: .65rem; margin-top: 1.15rem; }
.shop-checkout fieldset { margin: 0; border: 1px solid var(--shop-line); border-radius: 4px; padding: .65rem; display: grid; gap: .55rem; min-width: 0; }
.shop-checkout label { display: grid; gap: .25rem; min-width: 0; font-size: .87rem; font-weight: 650; }
.shop-checkout :is(input, select, textarea) {
  width: 100%; min-width: 0; min-height: 2.45rem; padding: .42rem .55rem; border: 1px solid var(--shop-line);
  border-radius: 4px; color: var(--shop-ink); background: white; font-weight: 400;
}
.shop-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.shop-map :is(button, .shop-fields) { margin-block: .4rem; }
.shop-map :is(p, summary), #shop-reservation-note { font-size: .85rem; }
.shop-error { color: var(--shop-wine); font-size: .9rem; }
.shop-error:empty { display: none; }
.shop-confirmation { padding: 1rem; margin-block: .75rem; border: 1px solid var(--shop-line); border-radius: 4px; }
.shop-confirmation strong { display: block; }
.shop-notice { margin-bottom: 1rem; }
.shop-notice button { margin-inline-start: .5rem; }
.shop-public [hidden], #shop-panel [hidden] { display: none !important; }

#shop-panel { margin-top: 1rem; min-width: 0; }
#shop-panel .shop-desk-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .6rem; }
#shop-panel .shop-desk-status { min-height: 1.6rem; margin: .55rem 0; color: var(--shop-wine); }
#shop-panel .shop-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; align-items: start; }
#shop-panel .shop-card { padding: .85rem; border: 1px solid var(--shop-line); border-radius: 6px; background: var(--shop-surface); min-width: 0; }
#shop-panel .shop-card + .shop-card { margin-top: .55rem; }
#shop-panel .shop-desk-controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
#shop-panel .shop-desk-controls label { flex: 1; min-width: 8rem; }
#shop-panel .shop-desk-status[role="alert"] { font-weight: 650; }
#shop-panel .shop-order-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: .7rem; }
#shop-panel .shop-order-list .shop-card { margin-top: 0; }
#shop-panel .shop-order-items { margin: .6rem 0; padding-left: 1.2rem; }
#shop-panel .shop-order-details p { overflow-wrap: anywhere; }
#shop-panel .shop-order-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
#shop-panel .shop-order-tools label { flex: 1; min-width: 9rem; }
#shop-panel .shop-product-list { list-style: none; margin: 0; padding: 0; }
#shop-panel .shop-product-list li { display: flex; justify-content: space-between; align-items: center; gap: .55rem; border-bottom: 1px solid var(--shop-line); padding-block: .55rem; }
#shop-panel .shop-product-list button { flex: none; }
#shop-panel .shop-inline-check { display: flex; align-items: center; gap: .4rem; }
#shop-panel .shop-inline-check input { margin: 0; }
#shop-panel .shop-desk-title { overflow-wrap: anywhere; }
#shop-panel .shop-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
#shop-panel .shop-form-actions { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .7rem; }
#shop-panel .shop-product-photos { margin-block: .55rem; }
#shop-panel .shop-product-photos img { display: block; width: min(100%, 10rem); height: 6.5rem; object-fit: cover; }

@media (max-width: 760px) {
  .shop-layout, #shop-panel .shop-editor { grid-template-columns: minmax(0, 1fr); }
  .shop-shell { width: calc(100% - 2rem); }
}
@media (max-width: 425px) {
  .shop-brand span { display: none; }
  .shop-header-links { gap: .48rem; }
  .shop-product { padding: .65rem; }
  .shop-products, .shop-fields, #shop-panel .shop-split { grid-template-columns: minmax(0, 1fr); }
}

#shop-print-area { display: none; }
@media print {
  body.shop-print-mode > * { display: none !important; }
  body.shop-print-mode > #shop-print-area { display: block !important; color: #000; padding: 0; background: #fff; }
  #shop-print-area a { color: #000; text-decoration: none; }
  #shop-print-area .shop-order-tools { display: none; }
}
