/* Hallmark: editorial storefront with the established The Table palette. */
/* Image-led browsing, a quiet purchase panel, and direct checkout controls. */
:root { --shop-border: #9b867c; --shop-image: #e5d6c3; --shop-paper: #fbf9f4; }
.shop-page { min-height: 100dvh; display: flex; flex-direction: column; }
.shop-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shop-header :focus-visible { outline-color: var(--ivory); }
.shop-frame { --shop-gutter: var(--gut); width: min(100% - max(var(--shop-gutter), env(safe-area-inset-left)) - max(var(--shop-gutter), env(safe-area-inset-right)), 1200px); margin-inline: auto; min-width: 0; }
.shop-header { padding-block-start: var(--safe-t); background: var(--burgundy); color: var(--ivory); }
.shop-header nav { min-height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.shop-header a { color: inherit; text-decoration: none; display: inline-flex; min-height: 48px; align-items: center; width: fit-content; }
.shop-header nav > a:last-child { justify-self:end; }
.shop-header-start { display:flex; align-items:center; flex-wrap:wrap; column-gap:12px; }
.shop-sound { padding:0; min-height:32px; border:0; background:transparent; color:var(--champagne); font-size:.78rem; text-decoration:underline; text-underline-offset:3px; }
@media (max-width:460px) {
  .shop-header-start { column-gap:8px; }
  .shop-header-start a, .shop-header-start .shop-sound { min-height:32px; }
}
/* one sign-in with thetable.tz (Era, 25 Nov): who's signed in, or Sign in, beside the bag */
.shop-header-end { justify-self:end; display:flex; align-items:center; gap:6px; }
.shop-account { display:flex; align-items:center; }
.shop-header .shop-account-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 4px; border:0; background:transparent; color:var(--ivory); font:inherit; font-size:.92rem; cursor:pointer; }
.shop-account-initial { display:inline-grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--champagne); color:var(--burgundy); font-weight:600; font-size:.85rem; }
.shop-header .shop-account-signin { text-decoration:underline; text-underline-offset:3px; }
@media (max-width:460px) { .shop-account-name { display:none; } }
.shop-header .shop-bag-link { position: relative; justify-content:center; min-width: 48px; }
.shop-bag-count { position:absolute; top:3px; right:0; min-width:1.3rem; padding-inline:4px; border-radius:999px; background:var(--champagne); color:var(--ink); font-size:.72rem; line-height:1.3rem; font-weight:600; text-align:center; }
.shop-brand img { object-fit: contain; display: block; }
.shop-skip { position: absolute; z-index: 1001; background: var(--shop-paper); padding: .75rem; inset-inline-start: .75rem; transform: translateY(-200%); }
.shop-skip:focus { transform: none; }
#shop-main { flex: 1; padding-block: 2.2rem 4.5rem; }
.shop-intro { padding-block: clamp(.75rem, 2.5vw, 2.2rem); max-width: 48rem; }
.shop-page h1 { font-size: clamp(2.85rem, 7vw, 5.5rem); overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
.shop-intro p { margin-block-start: .8rem; font-size: 1.12rem; color: var(--muted); }
.shop-filters { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center; border-top: 1px solid var(--line); padding-block: .6rem; }
.shop-filters button, .shop-text-button { border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: none; color: var(--accent); padding: .35rem .15rem; min-height: 48px; font: inherit; }
.shop-filters button[aria-pressed="true"] { border-color: var(--accent); font-weight: 600; }
.shop-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem, 2.5vw, 2.1rem); }
.shop-card { display: block; text-decoration: none; color: var(--ink); }
.shop-card img { width: 100%; display: block; object-fit: cover; background: var(--shop-image); }
.shop-card img { aspect-ratio: 1; }
.shop-card h2 { margin-block: .65rem .2rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.shop-price { font-weight: 600; color: var(--accent); }
.shop-back { display: inline-flex; align-items: center; min-height: 48px; }
.shop-product { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: clamp(1.5rem,4vw,3.5rem); margin-top: 1rem; align-items:start; }
.shop-gallery { --thumb-size:76px; display:grid; min-width:0; gap:12px; }
.shop-gallery.has-thumbnails { grid-template-columns:calc(var(--thumb-size) + 6px) minmax(0,1fr); }
.shop-gallery-thumbs { display:flex; flex-direction:column; gap:8px; align-items:start; }
.shop-gallery-stage { position:relative; display:grid; place-items:center; aspect-ratio:1.12; background:#eae1d4; min-width:0; overflow:clip; }
.shop-gallery-stage > img { position:absolute; inset:0; margin:auto; width:auto; height:auto; max-width:calc(100% - 2 * clamp(12px,3vw,32px)); max-height:calc(100% - 2 * clamp(12px,3vw,32px)); object-fit:contain; }
.shop-thumb { padding:2px; background:transparent; border:1px solid transparent; border-radius:4px; }
.shop-thumb[aria-pressed="true"] { border-color:var(--accent); }
.shop-thumb img { width:var(--thumb-size); height:var(--thumb-size); object-fit:contain; background:#eae1d4; display:block; border-radius:2px; }
.shop-gallery-arrow { position:absolute; top:50%; translate:0 -50%; display:grid; place-items:center; min-width:44px; min-height:44px; padding:0; border:1px solid var(--line); border-radius:50%; background:var(--shop-paper); color:var(--accent); font:1.6rem/1 var(--sans); }
.shop-gallery-arrow.previous { left:8px; }
.shop-gallery-arrow.next { right:8px; }
.shop-gallery-position { position:absolute; right:10px; bottom:10px; padding:3px 9px; background:var(--shop-paper); color:var(--muted); font-size:.8rem; }
.shop-purchase { min-width:0; }
.shop-purchase h1 { font-size:clamp(2.4rem,3.8vw,3.65rem); line-height:1.02; margin-block:.2rem .65rem; text-wrap:pretty; }
.shop-purchase > p { margin-block: .7rem; }
.shop-item-form { display:grid; gap:8px; margin-block:1.1rem .3rem; }
.shop-item-form .shop-field { justify-self:start; margin-block-end:6px; }
.shop-page .shop-action-outline:not(:disabled) { background:transparent; color:var(--burgundy); }
.shop-delivery { margin-block:1rem .4rem; padding:12px 16px; border:1px solid var(--line); background:var(--shop-paper); }
.shop-delivery p { margin:4px 0 0; color:var(--muted); }
.shop-purchase .shop-state:empty { min-height:0; margin:0; }
.shop-field { display: grid; gap: .35rem; min-width: 0; }
.shop-field input, .shop-field textarea { width: 100%; border: 1px solid var(--shop-border); background: var(--shop-paper); border-radius: 0; min-height: 48px; font: inherit; font-size: max(1rem, 1em); padding: .65rem; }
.shop-field input[type=number] { width: 5.25rem; text-align: center; appearance: textfield; }
.shop-field input[type=number]::-webkit-inner-spin-button,
.shop-field input[type=number]::-webkit-outer-spin-button { appearance: none; margin: 0; }
.shop-action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1.3rem; border: 1px solid var(--burgundy); border-radius: 0; background: var(--burgundy); color: var(--ivory); text-decoration: none; font: 600 1rem var(--sans); text-align: center; }
.shop-action:active:not(:disabled) { background: var(--burgundy-2); }
.shop-action:disabled { background: var(--line); border-color: var(--shop-border); color: var(--muted); cursor: not-allowed; }
.shop-details { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.shop-details summary { cursor: pointer; font-weight: 600; }
.shop-details p { margin-top: .65rem; }
.shop-state { color: var(--muted); min-height: 1.5em; }
.shop-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: clamp(1.5rem, 5vw, 4rem); margin-top: 2rem; }
.shop-line { display: grid; grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr) auto; gap: .85rem; padding-block: .9rem; border-bottom: 1px solid var(--line); align-items: start; }
.shop-line img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--shop-image); }
.shop-line p { margin-top: .25rem; }
.shop-qty { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem .75rem; margin-block-start:8px; }
.shop-stepper { display:inline-grid; grid-template-columns:44px 44px 44px; border:1px solid var(--shop-border); background:var(--shop-paper); }
.shop-stepper button, .shop-stepper input[type=number] { height:44px; min-height:44px; min-width:0; margin:0; padding:0; border:0; border-radius:0; background:transparent; color:var(--ink); text-align:center; font:inherit; line-height:1; }
.shop-stepper button, .shop-qty > .shop-text-button { display:grid; place-items:center; }
.shop-qty > .shop-text-button { height:46px; min-height:46px; padding-block:0; line-height:1; }
.shop-stepper input[type=number] { width:100%; min-height:44px; appearance:textfield; border-inline:1px solid var(--line); }
.shop-stepper input::-webkit-inner-spin-button, .shop-stepper input::-webkit-outer-spin-button { appearance:none; margin:0; }
.shop-stepper button[aria-disabled="true"] { color:var(--muted); opacity:.55; cursor:default; }
.shop-line h2 { font-size:clamp(1.35rem,2vw,1.7rem); line-height:1.13; }
.shop-line h2 a { text-decoration:none; overflow-wrap:anywhere; }
.shop-line h2 a:hover { text-decoration:underline; }
.shop-line .shop-submit-error:empty { display:none; }
.shop-page .shop-bag-title { font-size:clamp(2.75rem, 5vw, 4.25rem); }
.shop-bag-layout { margin-top:1.35rem; }
.shop-bag-layout .shop-line { grid-template-columns:7.25rem minmax(0,1fr) auto; }
.shop-bag-layout .shop-line > img { height:auto; object-fit:contain; }
.shop-bag-layout .shop-line > .shop-price { text-align:end; white-space:nowrap; }
.shop-summary { background: var(--shop-paper); align-self: start; border: 1px solid var(--line); padding: 1.4rem; display: grid; gap: .75rem; }
.shop-pair { display: flex; gap: .8rem; justify-content: space-between; }
.shop-total { border-top: 1px solid var(--line); padding-top: .75rem; font-weight: 600; }
.shop-checkout-heading h1 { margin: 0; font-size: clamp(2.75rem, 2rem + 3.1vw, 4.25rem); line-height: 1; }
.shop-checkout-layout { margin-top: 1.5rem; gap: clamp(1rem, 3vw, 2.5rem); }
.shop-checkout { display: grid; gap: .875rem; min-width: 0; }
.shop-checkout-panel { min-width: 0; display: grid; gap: .75rem; padding: clamp(1rem, 2.2vw, 1.45rem); border: 1px solid var(--line); background: var(--shop-paper); }
.shop-checkout-panel h2, .shop-checkout-layout .shop-summary h2 { margin: 0; font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); line-height: 1.1; }
.shop-checkout-contact { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.shop-checkout-check { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.shop-checkout-check input[type=checkbox] { accent-color: var(--accent); width: 1.15rem; height: 1.15rem; min-height: 0; padding: 0; margin: 0; flex: none; }
.shop-gift-fields { display: grid; gap: .75rem; }
.shop-checkout fieldset { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.shop-checkout fieldset label { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .65rem; align-items: center; min-height: 48px; padding: .5rem .65rem; border: 1px solid var(--line); cursor: pointer; }
.shop-checkout fieldset label:has(input:checked) { border-color: var(--accent); }
.shop-checkout fieldset label > span:last-child { text-align: end; font-weight: 600; font-size: .875rem; }
.shop-checkout input[type=radio] { accent-color: var(--accent); width: 1.15rem; height: 1.15rem; min-height: 0; padding: 0; margin: 0; }
.shop-checkout-mode { margin: 0; color: var(--muted); font-size: .875rem; }
.shop-checkout-layout .shop-summary-item > span:first-child { overflow-wrap: anywhere; }
.shop-checkout-layout .shop-pair > span:last-child { white-space: nowrap; }
.shop-checkout-layout .shop-submit-error:empty { display: none; }
.shop-page [hidden] { display: none; }
.shop-submit-error { color: var(--bad); }
.shop-field input[aria-invalid="true"] { border-color: var(--bad); }
.shop-receipt { max-width: 40rem; display: grid; gap: 1rem; }
.shop-receipt .shop-action { justify-self: start; }
.shop-footer { padding-block-end: var(--safe-b); border-top: 1px solid var(--line); color: var(--muted); }
.shop-footer div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1.4rem; }
@media (max-width: 720px) {
  #shop-main { padding-block: 1.2rem 2.5rem; }
  .shop-product, .shop-layout { gap: 1.25rem; }
  .shop-intro p { font-size: 1rem; }
  .shop-card h2, .shop-purchase h1 { overflow-wrap: anywhere; }
  .shop-bag-layout .shop-summary, .shop-checkout-layout .shop-summary { padding: 1rem; }
  .shop-scene { margin-block: 2rem; }
  .shop-scene-actions .shop-action { flex: 1 0 100%; }
  .shop-scene-choices button { min-height: 44px; }
  .shop-footer a, .shop-footer button { min-height: 44px; }

  .shop-product, .shop-layout { grid-template-columns: minmax(0,1fr); }
  .shop-gallery { --thumb-size:68px; }
  .shop-gallery.has-thumbnails { grid-template-columns:minmax(0,1fr); }
  .shop-gallery-thumbs { flex-direction: row; align-items: center; overflow-x: auto; padding: 5px; margin: -5px; }
  .shop-gallery-thumbs > button { flex: 0 0 auto; }
  .shop-gallery-stage { grid-row:1; }
  .shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shop-line { grid-template-columns: minmax(0,4.25rem) minmax(0,1fr); }
  .shop-bag-layout .shop-line { grid-template-columns:5rem minmax(0,1fr); }
  .shop-bag-layout .shop-line > .shop-price { grid-column: 2; text-align:start; }
}

.shop-family-form{display:grid;margin-block:1.1rem .75rem}
.shop-family-form .shop-action{margin-block-start:16px;width:100%}
.shop-family-piece{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding-block:12px;border-top:1px solid var(--shop-border)}
.shop-family-piece:last-of-type{border-bottom:1px solid var(--shop-border)}
.shop-family-piece a{overflow-wrap:anywhere}
.shop-family-piece p{margin:4px 0 0}
.shop-provenance{font-weight:600}
.shop-scene{margin-block:48px}
.shop-scene-image{position:relative}
.shop-scene-image img{display:block;width:100%;height:auto}
.shop-scene-pin{position:absolute;translate:-50% -50%;min-width:44px;min-height:44px;border-radius:50%;background:#541c27;color:#fff;border:2px solid #fff}
.shop-scene-pin:focus-visible{outline:3px solid #541c27;outline-offset:2px}
.shop-scene-choices{display:flex;flex-wrap:wrap;gap:12px;list-style:none;padding:0}
.shop-scene-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}

.shop-closed {
  display:grid;
  place-items:center;
  min-height:100svh;
  padding:clamp(16px,5vw,64px);
  background:var(--ivory);
}
.shop-closed-card {
  display:grid;
  grid-template-columns:minmax(0, .95fr) minmax(0, 1.05fr);
  width:min(100%, 68rem);
  background:var(--burgundy);
  color:var(--ivory);
}
.shop-closed-copy {
  display:grid;
  align-content:space-between;
  gap:clamp(32px,7vw,96px);
  min-width:0;
  padding:clamp(24px,5vw,64px);
}
.shop-closed-brand { justify-self:start; }
.shop-closed-brand img { display:block; object-fit:contain; }
.shop-closed-copy h1 {
  margin:0;
  font-size:clamp(2.6rem,2rem + 3.4vw,5.1rem);
  line-height:.98;
  text-wrap:balance;
}
.shop-closed-copy p { margin:1.25rem 0; max-width:31ch; color:var(--ivory); }
.shop-closed-link {
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  min-height:44px;
  border-bottom:1px solid currentColor;
  color:var(--champagne);
  font-weight:600;
  text-decoration:none;
}
.shop-closed-link:hover { color:var(--ivory); }
.shop-closed-copy a:focus-visible { outline:2px solid var(--champagne); outline-offset:5px; }
.shop-closed-photo { display:block; width:100%; height:100%; min-height:0; object-fit:cover; }
@media (max-width:720px) {
  .shop-closed-card { grid-template-columns:minmax(0,1fr); }
  .shop-closed-photo { height:auto; aspect-ratio:3/2; }
}

.shop-state:empty { display:none; }
.shop-confirmation {
  width:fit-content;
  max-width:100%;
  padding:.3rem .65rem;
  border:1px solid var(--line);
  border-radius:6px;
  color:var(--good);
  background:var(--shop-paper);
  font-size:.875rem;
}

@media (max-width: 390px) {
  .shop-header nav { min-height: 64px; }
  .shop-header-start a, .shop-header-start .shop-sound { min-height: 44px; }
  .shop-header-start { flex-wrap: nowrap; }
  .shop-header-start .shop-sound { max-width: 3.15rem; text-align: start; }
  .shop-brand img { max-width: 110px; }
  .shop-family-piece { gap: 8px; }
  .shop-gallery-stage { aspect-ratio: 1; }
}
@media (pointer: coarse) {
  .shop-page :is(input, textarea, select) { font-size: max(16px, 1em); }
}
