/* Super On Point shop: /shop, /shop/product and /shop/thanks. Uses the site's own colors and fonts from sop.css. */
.shop-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; }
.shop-grid > .shop-status { grid-column:1 / -1; }
.shop-card { display:flex; flex-direction:column; background:var(--panel); border:1px solid var(--line); border-radius:14px; overflow:hidden; color:var(--ink); text-decoration:none; transition:border-color .15s; }
.shop-card:hover, .shop-card:focus-visible { border-color:var(--blue); }
.shop-photo { display:block; position:relative; aspect-ratio:1 / 1; background:#eef1f6; }
.shop-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.shop-card-text { display:flex; align-items:baseline; justify-content:space-between; gap:6px 14px; flex-wrap:wrap; padding:14px 16px 16px; }
.shop-card-name { font:700 17px/1.25 var(--display); }
.shop-price { color:var(--muted); font-size:15px; white-space:nowrap; }

.shop-back { margin-bottom:-24px; font-size:15px; }
.shop-back a { color:var(--muted); text-decoration:none; }
.shop-back a:hover { color:var(--ink); }
.shop-product { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:28px; align-items:start; }
.shop-product > .shop-status { grid-column:1 / -1; }
.shop-product .shop-photo { border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.shop-gallery { display:flex; flex-direction:column; gap:10px; min-width:0; }
.shop-thumbs { display:flex; gap:10px; flex-wrap:wrap; }
.shop-thumb { width:76px; aspect-ratio:1 / 1; padding:0; border:3px solid transparent; border-radius:10px; overflow:hidden; background:#eef1f6; cursor:pointer; }
.shop-thumb img { display:block; width:100%; height:100%; object-fit:contain; }
.shop-thumb[aria-pressed="true"] { border-color:var(--blue); }
.shop-thumb:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.shop-info { display:flex; flex-direction:column; gap:18px; min-width:0; }
.wrap .shop-info h1 { font-size:34px; line-height:1.05; overflow-wrap:anywhere; }
.shop-info .shop-price { font-size:22px; color:var(--ink); }
.shop-field { border:0; display:flex; flex-direction:column; gap:8px; min-width:0; }
.shop-field legend, .shop-field > label { font:500 12px var(--mono); text-transform:uppercase; letter-spacing:.08em; color:var(--dim); padding:0; margin-bottom:8px; }
.shop-sizes { display:flex; flex-wrap:wrap; gap:8px; }
.shop-size { position:relative; }
.shop-size input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.shop-size span { display:inline-flex; align-items:center; justify-content:center; min-width:48px; min-height:44px; padding:0 12px; border:1px solid var(--line); border-radius:10px; background:var(--panel); font:600 15px var(--font); color:var(--ink); }
.shop-size input:hover + span { border-color:var(--muted); }
.shop-size input:checked + span { background:var(--blue); border-color:var(--blue); color:#06101f; }
.shop-size input:focus-visible + span { outline:2px solid var(--blue); outline-offset:2px; }
.shop-size input:disabled { cursor:not-allowed; }
.shop-size input:disabled + span { color:var(--dim); text-decoration:line-through; background:none; }
.shop-qty { width:84px; min-height:44px; padding:0 10px; background:var(--panel); color:var(--ink); border:1px solid var(--line); border-radius:10px; font:600 15px var(--font); }
.shop-buy { cursor:pointer; align-self:flex-start; }
.shop-buy:disabled { opacity:.7; cursor:wait; }
.shop-note { color:var(--muted); font-size:14px; }
.shop-error { color:var(--red); font-size:15px; }
.shop-error:empty { display:none; }
@media (max-width:680px) {
  .shop-product { grid-template-columns:minmax(0, 1fr); }
  .shop-buy { width:100%; text-align:center; }
}
@media (max-width:440px) {
  .shop-grid { gap:10px; }
  .shop-card-text { padding:10px 12px 12px; }
  .shop-card-name { font-size:15px; }
}
@media (prefers-reduced-motion:reduce) { .shop-card { transition:none; } }
