/* Around Maury shop (/shop). Loaded after site.css by server/shop/views.php; every
   color is a site.css token (ink, cream, paper, rule, red, pasture), cards follow the
   Where to Eat cards (paper, rule border, 6px radius), buttons are .btn-ink /
   .btn-outline, form controls follow the site's form standard (1.5px ink border,
   4px radius, one shared height for inputs AND selects). No new look. */

.shop-icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.shop-muted { color: var(--muted); }
.shop-small { font-size: 15px; }
.shop-page { max-width: var(--wrap); }

/* Mode note: preview / test. A paper strip with the postmark-red double rule. */
.shop-mode {
  margin: 0 0 24px; padding: 10px 14px; background: var(--paper); border: 3px double var(--red); border-radius: 6px;
  color: var(--ink); font: 600 14px/1.45 var(--label); letter-spacing: .04em;
}

/* ---------- Grid ---------- */
.shop-grid { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.shop-card a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
}
.shop-card a:hover .shop-card-title { text-decoration: underline; }
.shop-card-media { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--cream-deep); overflow: hidden; }
.shop-card-media img { width: 100%; height: 100%; object-fit: contain; }
.shop-card-media--art img { width: 80%; height: 80%; }
.shop-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.shop-card-title { font: 700 21px/1.25 var(--slab); }
.shop-card-price { font: 600 15px/1.4 var(--label); letter-spacing: .06em; color: var(--ink-soft); }
.shop-card-styles { font: 600 13px/1.4 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.shop-dots { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.shop-dots span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(11, 26, 23, .25); }
.shop-dots em { font: 600 13px/1 var(--label); font-style: normal; color: var(--muted); }
.shop-help { margin: 8px 0 0; font: 600 14px/1.5 var(--label); letter-spacing: .1em; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.shop-help a, .pdp-cart-link a { text-decoration: none; border-bottom: 2px solid var(--rule); }
.shop-cartlink { display: inline-flex; align-items: center; gap: 6px; }
.shop-count {
  display: inline-block; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: var(--cream);
  font: 600 13px/22px var(--label); letter-spacing: 0; text-align: center;
}
.shop-count[hidden] { display: none; }

/* ---------- Product page ---------- */
.shop-price-lede { font: 600 20px/1.3 var(--label) !important; letter-spacing: .06em; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); }
.pdp-main {
  display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--cream-deep); border: 1px solid var(--rule); border-radius: 6px;
}
.pdp-main img { width: 100%; height: 100%; object-fit: contain; }
.pdp-main--art img { width: 80%; height: 80%; }
.pdp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pdp-thumbs button { width: 68px; height: 68px; padding: 0; display: grid; place-items: center; overflow: hidden; cursor: pointer; background: var(--cream-deep); border: 2px solid transparent; border-radius: 4px; }
.pdp-thumbs button[aria-current="true"] { border-color: var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs .pdp-main--art img { width: 80%; height: 80%; }
.pdp-price { margin: 0 0 18px; font: 700 26px/1.2 var(--slab); }
.pdp-opt { margin: 0 0 18px; }
.pdp-opt-label { margin: 0 0 8px; font: 600 14px/1.4 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.pdp-opt-label strong { font-weight: 600; color: var(--ink-soft); }
.pdp-swatches, .pdp-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-sw { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid rgba(11, 26, 23, .3); cursor: pointer; outline-offset: 3px; }
.pdp-sw[aria-checked="true"] { outline: 2px solid var(--ink); }
.pdp-sz {
  min-width: 54px; height: 48px; padding: 0 14px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--rule); border-radius: 4px;
  font: 600 15px/1 var(--label); letter-spacing: .06em;
}
.pdp-sz[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pdp-sz:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
/* Style buttons (Tee, Heavyweight, ...): the size buttons' look, as links (each style has its own URL). */
.pdp-styles { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-style { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.pdp-style span { color: var(--ink-soft); font-weight: 500; }
.pdp-style[aria-checked="true"] { background: var(--ink); color: var(--cream); }
.pdp-style[aria-checked="true"] span { color: var(--cream); }
.pdp-count { margin-left: 6px; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.pdp-note { margin: 10px 0 0; font-size: 15px; color: var(--ink-soft); }
.pdp-arrives { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; font: 600 15px/1.45 var(--label); }
.pdp-buy { display: flex; gap: 12px; align-items: stretch; margin: 4px 0 8px; }
.pdp-qty { display: flex; height: 48px; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; }
.pdp-qty button { width: 42px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; }
.pdp-qty input { width: 38px; border: 0; background: none; text-align: center; color: var(--ink); font: 600 17px/1 var(--label); }
.pdp-add { flex: 1; border: 0; cursor: pointer; }
.shop-msg { min-height: 1.5em; margin: 4px 0; font: 600 15px/1.45 var(--label); }
.shop-msg.err { color: var(--red); }
.shop-msg.ok { color: var(--pasture); }
.pdp-cart-link { margin: 0 0 14px; font: 600 14px/1.4 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.pdp-blurb { margin: 0 0 12px; }
.pdp-details { margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft); font-size: 16px; }
.pdp-ship { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 16px; line-height: 1.5; }
.pdp-ship .shop-icon { margin-top: 4px; }

/* ---------- Cart ---------- */
.shop-cart-box { max-width: 760px; }
.shop-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.shop-line-thumb { width: 84px; height: 84px; display: grid; place-items: center; overflow: hidden; background: var(--cream-deep); border-radius: 4px; }
.shop-line-thumb img { width: 100%; height: 100%; object-fit: contain; }
.shop-line-thumb--art img { width: 80%; height: 80%; }
.shop-line h3 { margin: 0; font: 700 18px/1.3 var(--slab); }
.shop-line h3 a { text-decoration: none; }
.shop-line-ctrl { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.shop-line-ctrl .pdp-qty { height: 40px; }
.shop-line-ctrl .pdp-qty button { width: 34px; }
.shop-line-ctrl .pdp-qty input { width: 32px; font-size: 15px; }
.shop-remove { display: flex; padding: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.shop-totals { display: flex; justify-content: space-between; padding: 16px 0 6px; font: 700 20px/1.3 var(--slab); }
.shop-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ---------- Checkout (the site's form standard) ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); }
.co-summary { align-self: start; padding: 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; }
.co-summary h2 { margin: 0 0 4px; font-size: 22px; }
.co-summary .shop-line { grid-template-columns: 56px minmax(0, 1fr) auto; }
.co-summary .shop-line-thumb { width: 56px; height: 56px; }
.co-form fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.co-form legend { margin-bottom: 10px; font: 700 21px/1.3 var(--slab); }
.co-form label { display: block; margin: 0 0 14px; font: 600 14px/1.4 var(--label); letter-spacing: .06em; text-transform: uppercase; }
.co-form input:not([type=radio]), .co-form select {
  display: block; width: 100%; height: var(--control-h); margin-top: 6px; padding: 0 14px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 4px;
  font: 400 17px/1.4 var(--serif); letter-spacing: 0; text-transform: none;
}
.co-form select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.co-form .bad { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.co-row3 { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 0 12px; }
.co-form--narrow { max-width: 460px; }
.co-form .btn-ink, .co-form .btn-outline { border: 0; cursor: pointer; gap: 8px; }
.co-form .btn-outline { border: 1.5px solid var(--ink); background: none; color: var(--ink); }
.co-pay { width: 100%; margin-top: 4px; }
.co-pay:disabled { opacity: .5; cursor: not-allowed; }
.co-rate {
  display: flex !important; gap: 10px; align-items: center; margin: 0 0 8px !important; padding: 12px 14px;
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: 4px;
  font: 400 17px/1.4 var(--serif) !important; letter-spacing: 0 !important; text-transform: none !important;
}
.co-rate:has(input:checked) { border-color: var(--ink); }
.co-rate input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.co-rate span { flex: 1; }
.co-rate strong { white-space: nowrap; font-family: var(--label); }

/* ---------- Order ---------- */
.shop-order-box { max-width: 640px; }
.shop-lines { width: 100%; border-collapse: collapse; margin: 10px 0 16px; }
.shop-lines td { padding: 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.shop-lines .r { text-align: right; white-space: nowrap; }
.shop-lines .sub td { padding: 3px 0; border: 0; color: var(--muted); }
.shop-lines .total td { padding-top: 8px; border: 0; font: 700 19px/1.3 var(--slab); }

@media (max-width: 860px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pdp, .co { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .shop-card-body { padding: 10px 12px 12px; }
  .shop-card-title { font-size: 17px; }
  .shop-card-price { font-size: 14px; }
  .co-row3 { grid-template-columns: 1fr 1fr; }
  .co-row3 label:first-child { grid-column: 1 / -1; }
}

/* Category tabs (Old Guard pattern): Shop All, Tees, Hoodies, Hats, Stickers & Mugs. */
.shop-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 0 0 24px; padding: 0 0 12px; border-bottom: 1px solid var(--rule, rgba(11, 26, 23, .14)); }
.shop-cats a { font: 600 13px/1.4 var(--label); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); opacity: .7; padding: 4px 0; border-bottom: 2px solid transparent; }
.shop-cats a:hover { opacity: 1; }
.shop-cats a[aria-current="page"] { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 640px) { .shop-cats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 20px; } .shop-cats::-webkit-scrollbar { display: none; } .shop-cats a { white-space: nowrap; } }
