/* =========================================================
   ENDLESS SPORTS COMPLEX — Gear Shop cart drawer + checkout
   Concept: Stadium · Cinematic Dark (companion to styles.css)
   Everything here is namespaced `.shop-` (plus data-shop-*
   attributes owned by the shop module). Relies on the CSS
   variables declared in styles.css (:root).
   ========================================================= */

/* Body scroll lock while the drawer is open */
body.shop-lock { overflow: hidden; }

/* Cart count badge zero-state (JS manages text + hidden) */
[data-shop-cart-count][hidden] { display: none !important; }

/* =========================================================
   CATALOG UI (markup owned by page-shop.php)
   ========================================================= */

/* Floating cart button */
.shop-cart-fab {
  position: fixed;
  right: 1.5rem;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 95; /* under site nav (100) and drawer (150) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-width: 56px;
  min-height: 56px;
  padding: 0 1.15rem;
  background: var(--lime);
  color: var(--black);
  border: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
  transition: transform .2s, box-shadow .2s;
}
.shop-cart-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(var(--lime-rgb), .45);
}
.shop-cart-fab svg { display: block; }
.shop-cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .35rem;
  background: var(--black);
  color: var(--lime);
  border: 1px solid var(--lime);
  font-family: var(--mono);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .05em;
  line-height: 1;
}

/* Category anchor bar (sticky under the fixed site nav).
   Offsets measured against styles.css: site-nav renders 77.16px tall on
   desktop (1.1rem padding + 41px .nav-cta + 1px border) and 73px at ≤960px
   (1rem padding + 40px .nav-toggle + 1px border). */
.shop-nav {
  position: sticky;
  top: 77px;
  z-index: 90;
  display: flex;
  gap: 1.75rem;
  padding: .85rem 2rem;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.shop-nav::-webkit-scrollbar { display: none; }
.shop-nav a {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244, 245, 240, .65);
  white-space: nowrap;
  padding: .25rem 0;
  transition: color .15s;
}
.shop-nav a:hover { color: var(--lime); }

/* Category sections: anchors land below nav + sticky bar
   (77px nav + 54px bar + headroom) */
section.shop-category { scroll-margin-top: 136px; }

/* Card media: fixed aspect box (product imgs ship without
   width/height attributes — this prevents CLS) */
.shop-card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--black);
  position: relative;
}
.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.shop-card-media:hover img { transform: scale(1.04); }

/* =========================================================
   PRODUCT DIALOG (native <dialog class="shop-modal">)
   ========================================================= */
.shop-modal {
  /* styles.css resets * { margin: 0 } which kills the UA's dialog
     centering — margin: auto restores it. */
  margin: auto;
  background:
    radial-gradient(circle at 85% 0%, rgba(var(--lime-rgb), .06) 0%, transparent 55%),
    var(--ink);
  color: var(--bone);
  border: 1px solid var(--line-2);
  padding: 1.75rem;
  width: min(960px, calc(100vw - 2rem));
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9);
}
.shop-modal::backdrop {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.shop-modal [data-shop-close] {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  background: rgba(7, 9, 10, .85);
  border: 1px solid var(--line-2);
  color: var(--bone);
  font-size: 1.2rem;
  line-height: 1;
  transition: border-color .2s, color .2s;
}
.shop-modal [data-shop-close]:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* Gallery: fixed aspect boxes (no width/height attrs on imgs) */
.shop-modal img[data-shop-gallery-main] {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(62vh, 560px);
  object-fit: cover;
  background: var(--black);
  border: 1px solid var(--line);
}
.shop-gallery-thumb {
  width: 64px;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: var(--black);
  border: 1px solid var(--line-2);
  overflow: hidden;
  opacity: .65;
  transition: opacity .15s, border-color .15s;
}
.shop-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-gallery-thumb:hover { opacity: 1; }
.shop-gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--lime);
}

/* Modal price (kept in sync with the selected variant by shop.js) */
.shop-modal [data-shop-modal-price] {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--lime);
}

/* Pickers inside the dialog (match .field controls in styles.css) */
.shop-modal .shop-variant,
.shop-modal .shop-size,
.shop-modal .shop-qty {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-2);
  color: var(--bone);
  padding: .8rem .9rem;
  font-family: var(--body);
  font-size: .95rem;
  border-radius: 0;
  transition: border-color .2s, background .2s;
}
.shop-modal .shop-variant:focus,
.shop-modal .shop-size:focus,
.shop-modal .shop-qty:focus {
  border-color: var(--lime);
  background: rgba(var(--lime-rgb), .04);
  outline: 0;
}
.shop-modal select.shop-variant,
.shop-modal select.shop-size {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23BDFF3E' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.4rem;
}
.shop-modal select.shop-variant option,
.shop-modal select.shop-size option {
  background: var(--ink);
  color: var(--bone);
}
.shop-modal input.shop-qty {
  width: 5.5rem;
  text-align: center;
  font-family: var(--mono);
}

/* Add-to-cart fallback style (skipped if the button already uses .btn) */
.shop-modal [data-shop-add]:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 2rem;
  background: var(--lime);
  color: var(--black);
  border: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.1;
  transition: transform .2s, box-shadow .2s;
}
.shop-modal [data-shop-add]:not(.btn):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(var(--lime-rgb), .5);
}

/* Transient highlight when a variant/size must be chosen first */
.shop-needs-choice {
  outline: 2px solid var(--lime) !important;
  outline-offset: 3px;
  animation: shop-nudge .3s ease 2;
}
@keyframes shop-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-4px); }
}

/* Screen-reader-only live region */
.shop-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   DRAWER OVERLAY
   ========================================================= */
.shop-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 150; /* above nav (100), below skip-link (200) */
}
.shop-drawer-root[hidden] { display: none !important; }

.shop-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}
.shop-open .shop-drawer-backdrop { opacity: 1; }

.shop-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 85% 0%, rgba(var(--lime-rgb), .07) 0%, transparent 55%),
    var(--ink);
  border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .85);
  transform: translateX(102%);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.shop-open .shop-drawer { transform: none; }
.shop-drawer:focus { outline: 0; }

/* --- Head --- */
.shop-drawer-head {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.shop-drawer-eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--lime);
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.shop-drawer-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.shop-drawer-count {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--black);
  background: var(--lime);
  padding: .12rem .5rem;
}
.shop-drawer-close {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--bone);
  font-size: 1.2rem;
  line-height: 1;
  transition: border-color .2s, color .2s;
}
.shop-drawer-close:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* --- Body / line items --- */
.shop-drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .25rem 1.5rem;
}
.shop-cart-list { list-style: none; }
.shop-cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.shop-cart-thumb {
  width: 64px;
  height: 64px;
  background: var(--black);
  border: 1px solid var(--line-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-cart-thumb-ph {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  color: rgba(var(--lime-rgb), .5);
}
.shop-cart-info { min-width: 0; }
.shop-cart-name {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
  margin-bottom: .25rem;
}
.shop-cart-meta {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(244, 245, 240, .55);
  margin-bottom: .65rem;
}
.shop-cart-price {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--lime);
  text-align: right;
  padding-top: .15rem;
  white-space: nowrap;
}

/* Qty stepper + remove */
.shop-cart-controls {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.shop-cart-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-2);
}
.shop-cart-qty-btn {
  width: 30px;
  height: 30px;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-family: var(--mono);
  font-size: .95rem;
  line-height: 1;
  transition: color .15s, background .15s;
}
.shop-cart-qty-btn:hover {
  color: var(--lime);
  background: rgba(var(--lime-rgb), .06);
}
.shop-cart-qty-input {
  width: 2.6rem;
  height: 30px;
  text-align: center;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--mono);
  font-size: .8rem;
  border-radius: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.shop-cart-qty-input::-webkit-outer-spin-button,
.shop-cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.shop-cart-remove {
  background: transparent;
  border: 0;
  padding: .25rem 0;
  color: rgba(244, 245, 240, .45);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: color .15s;
}
.shop-cart-remove:hover { color: #ff6b6b; }

/* --- Empty state --- */
.shop-drawer-empty {
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.shop-drawer-empty-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.shop-drawer-empty-copy {
  font-size: .92rem;
  color: rgba(244, 245, 240, .6);
  max-width: 30ch;
  margin: 0 auto 1.75rem;
}
.shop-drawer-browse {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(255, 255, 255, .25);
  font-family: var(--display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.shop-drawer-browse:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* --- Foot: error, fulfillment, subtotal, checkout --- */
.shop-drawer-foot {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .35);
  padding: 1.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.shop-drawer-error {
  border-left: 3px solid #ff6b6b;
  background: rgba(255, 107, 107, .08);
  color: var(--bone);
  padding: .85rem 1rem;
  font-size: .88rem;
  margin-bottom: 1rem;
}
.shop-fulfill {
  border: 0;
  margin: 0 0 1.1rem;
  padding: 0;
  min-width: 0;
}
.shop-fulfill-legend {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--lime);
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: .4rem;
}
.shop-fulfill-opt {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  cursor: pointer;
}
.shop-fulfill-opt:last-of-type { border-bottom: 1px solid var(--line); }
.shop-fulfill-radio {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--lime);
  cursor: pointer;
}
.shop-fulfill-text { flex: 1; min-width: 0; }
.shop-fulfill-detail {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244, 245, 240, .55);
  text-align: right;
  transition: color .15s;
}
.shop-fulfill-radio:checked ~ .shop-fulfill-detail { color: var(--lime); }
.shop-fulfill:disabled .shop-fulfill-opt { opacity: .55; cursor: default; }

.shop-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .35rem;
}
.shop-subtotal-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(244, 245, 240, .7);
}
.shop-subtotal-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--lime);
}
.shop-drawer-note {
  font-size: .72rem;
  color: rgba(244, 245, 240, .45);
  margin-bottom: 1.1rem;
}

.shop-checkout-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.05rem 1.5rem;
  background: var(--lime);
  color: var(--black);
  border: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.1;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.shop-checkout-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(var(--lime-rgb), .5);
}
.shop-checkout-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.shop-checkout-idle,
.shop-checkout-busy {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
/* display above would defeat the hidden attribute JS toggles */
.shop-checkout-idle[hidden],
.shop-checkout-busy[hidden] { display: none !important; }
.shop-checkout-arrow {
  display: inline-block;
  transition: transform .2s;
}
.shop-checkout-btn:hover:not(:disabled) .shop-checkout-arrow { transform: translateX(4px); }
.shop-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(0, 0, 0, .3);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: shop-spin .7s linear infinite;
}
@keyframes shop-spin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   MOBILE (≤480px)
   ========================================================= */
@media (max-width: 960px) {
  .shop-nav {
    top: 73px;
    gap: 1.25rem;
    padding: .75rem 1.25rem;
  }
  /* 73px nav + 51px bar + headroom */
  section.shop-category { scroll-margin-top: 129px; }
}

@media (max-width: 480px) {
  .shop-cart-fab {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  .shop-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    padding: 1.15rem;
  }
  .shop-gallery-thumb { width: 56px; }
  .shop-drawer {
    width: 100%;
    border-left: 0;
  }
  .shop-drawer-head { padding: 1.25rem 1.15rem 1.1rem; }
  .shop-drawer-body { padding: .25rem 1.15rem; }
  .shop-drawer-foot { padding: 1.1rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
  .shop-drawer-close { right: 1rem; }
  .shop-cart-item { grid-template-columns: 56px 1fr; }
  .shop-cart-thumb { width: 56px; height: 56px; }
  .shop-cart-price {
    grid-column: 2 / -1;
    text-align: left;
    padding-top: .35rem;
  }
  /* Bigger touch targets */
  .shop-cart-qty-btn { width: 38px; height: 38px; }
  .shop-cart-qty-input { height: 38px; }
}

/* =========================================================
   CATALOG + MODAL INNER LAYOUT — integrator-appended
   Layout-only rules for page-shop.php wrappers that had NO
   rules in this file or styles.css (verified by grep + a
   headless render check). Everything B authored above is
   untouched; the only additions on a B-covered selector are
   width/border on .shop-card-media, two properties B never
   declared (the <button> otherwise shrink-wraps and shows
   the UA border). Breakpoints + variables match B's.
   ========================================================= */

/* Category sections: match the .container rhythm other pages
   get from styles.css (A's markup has no .container wrapper). */
.shop-category-head,
.shop-grid {
  max-width: 1320px;
  margin: 0 auto;
}
.shop-category-head { margin-bottom: 2.5rem; }
.shop-category-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.shop-category-title em { color: var(--lime); font-style: italic; }
.shop-category-count {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244, 245, 240, .55);
  margin-top: .6rem;
}

/* Hero meta line + noscript notice */
.shop-hero-meta {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244, 245, 240, .6);
}
.shop-noscript {
  padding: 1rem 2rem;
  background: rgba(var(--lime-rgb), .08);
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}

/* Category bar: label + count chip inside each link */
.shop-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.shop-nav-count {
  font-size: .62rem;
  color: var(--lime);
  border: 1px solid rgba(var(--lime-rgb), .35);
  padding: .05rem .3rem;
}

/* Product grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Card frame + body (the media box itself is styled by B above) */
.shop-card {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border: 1px solid var(--line);
}
.shop-card-media {
  width: 100%; /* gap-fill on B's selector: <button> shrink-wraps otherwise */
  border: 0;   /* gap-fill on B's selector: UA button border */
}
.shop-card-noimg {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--lime-rgb), .08) 0%, transparent 60%),
    var(--black);
}
.shop-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
}
.shop-card-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.25;
  overflow-wrap: break-word;
}
.shop-price {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--lime);
}
.shop-card-price { font-size: .85rem; }
.shop-card-view {
  margin-top: auto;
  padding: .7rem 1.3rem; /* .btn scaled down to card size */
  font-size: .7rem;
}

/* Modal inner layout: two-column desktop, stacked ≤960px */
.shop-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.shop-gallery,
.shop-modal-info { min-width: 0; }
.shop-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.shop-modal-info .eyebrow { margin-bottom: .75rem; }
.shop-modal-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.shop-modal .shop-modal-price { margin-bottom: 1.1rem; } /* typography via B's [data-shop-modal-price] */
.shop-modal-desc {
  font-size: .95rem;
  color: rgba(244, 245, 240, .7);
  margin-bottom: 1.5rem;
}
.shop-modal-desc p + p,
.shop-modal-desc ul { margin-top: .6rem; }
.shop-modal-desc ul { padding-left: 1.1rem; } /* global reset zeroes list padding */

/* Option pickers: variant/size/qty row + full-width add button */
.shop-options {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}
.shop-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 0;
}
.shop-field-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(244, 245, 240, .6);
}
.shop-field-variant select,
.shop-field-size select { width: 100%; }
.shop-add {
  grid-column: 1 / -1;
  justify-content: center;
}

@media (max-width: 960px) {
  .shop-modal-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  .shop-card-body { padding: .85rem .9rem 1rem; }
  .shop-options { grid-template-columns: 1fr 1fr; }
  .shop-field-qty { grid-column: 1 / -1; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .shop-drawer,
  .shop-drawer-backdrop,
  .shop-checkout-btn,
  .shop-checkout-arrow,
  .shop-drawer-close,
  .shop-drawer-browse,
  .shop-cart-fab,
  .shop-card-media img,
  .shop-gallery-thumb,
  .shop-modal [data-shop-close],
  .shop-modal [data-shop-add]:not(.btn) {
    transition: none;
  }
  .shop-card-media:hover img { transform: none; }
  .shop-spinner,
  .shop-needs-choice {
    animation: none;
  }
}
