/* Shop page (Tim, 2026-11-30): image carousel like a marketplace listing, license choice next to it.
   Site look: paper background, ink type, hairlines, 2px corners, orange only for the chosen license. */
.shop { padding-block: clamp(36px, 6vw, 80px) var(--s1); }
.shop-head { margin-bottom: clamp(22px, 3vw, 36px); }
.shop-title { margin: 10px 0 0; font-size: clamp(2.1rem, 4.4vw, 3.6rem); letter-spacing: -.038em; line-height: 1; }
.shop-by { margin: 12px 0 0; color: var(--muted); font-size: .98rem; }

.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-areas: "gallery buy" "about buy"; column-gap: clamp(24px, 3.4vw, 48px); row-gap: clamp(28px, 4vw, 48px); align-items: start; }
.gallery { grid-area: gallery; }
.buy { grid-area: buy; }

/* The product description below the carousel: a copy of the page Superhive shows in its iframe, without its banner
   (/pages/superhive-ba/shop.html).
   shop.js sizes it to its content, so it scrolls with this page instead of inside the frame. */
.shop-about { grid-area: about; display: block; width: 100%; height: 900px; border: 0; border-radius: 2px; background: #000; }

/* ---------- carousel ---------- */
.gallery { min-width: 0; }
.gallery-stage { position: relative; overflow: hidden; background: var(--theatre); border-radius: 2px; aspect-ratio: 2 / 1; }
.gallery-track { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; transition: transform .45s var(--ease); touch-action: pan-y; }
.gallery-slide { flex: 0 0 100%; height: 100%; }
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.gallery-arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(237, 237, 235, .22); border-radius: 2px; background: rgba(11, 11, 11, .62); color: var(--t-ink);
  cursor: pointer; opacity: 0; transition: opacity .18s var(--ease), background-color .18s;
}
.gallery-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-stage:hover .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; }
.gallery-arrow:hover { background: rgba(11, 11, 11, .86); }
.gallery-arrow:disabled { opacity: 0 !important; pointer-events: none; }
.gallery-count {
  position: absolute; right: 14px; top: 12px; margin: 0; padding: 4px 8px; border-radius: 2px;
  background: rgba(11, 11, 11, .62); color: var(--t-ink); font: 500 11px/1.2 var(--mono); letter-spacing: .08em;
}

.gallery-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 8 * 8px) / 9); gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button {
  position: relative; padding: 0; border: 0; border-radius: 2px; overflow: hidden; background: var(--theatre);
  aspect-ratio: 2 / 1; cursor: pointer; opacity: .55; transition: opacity .18s var(--ease);
}
.gallery-thumbs button::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: transparent; }
.gallery-thumbs button:hover { opacity: .85; }
.gallery-thumbs button[aria-current="true"] { opacity: 1; }
.gallery-thumbs button[aria-current="true"]::after { background: var(--ink); }
.gallery-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- license choice ---------- */
.buy { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 18px; }
.buy-options { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.buy-options legend { margin-bottom: 10px; padding: 0; }
.buy-option { display: flex; gap: 14px; padding: 18px 18px 18px 16px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); cursor: pointer; transition: border-color .18s var(--ease); }
.buy-option:hover { border-color: var(--ink-2); }
.buy-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--signal); }
.buy-option input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.buy-option input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.buy-option-body { display: grid; gap: 8px; min-width: 0; }
.buy-option-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.buy-option-top strong { font-size: 1.08rem; font-weight: 650; letter-spacing: -.01em; }
.buy-price { font-size: 1.5rem; font-weight: 600; letter-spacing: -.035em; font-feature-settings: "tnum"; }
.buy-option-text { color: var(--muted); font-size: .9rem; line-height: 1.5; }
/* Compact choice: only the picked option shows its description, so the buy button stays in view. */
.buy-option { padding: 14px 16px 14px 14px; align-items: center; }
.buy-option:has(input:checked) { align-items: flex-start; }
.buy-option:not(:has(input:checked)) .buy-option-text { display: none; }
.buy-option-body { flex: 1; }
.buy-option:not(:has(input:checked)) .buy-option-body { gap: 0; }
/* No radio dots: the picked option is marked by the orange edge fading out to the right. The input stays for keyboard and screen readers. */
.buy-option { position: relative; }
.buy-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.buy-option:has(input:checked) { background: linear-gradient(90deg, rgba(253, 92, 0, .22), rgba(253, 92, 0, 0) 70%), var(--paper); }
.buy-option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }


/* Launch offer (Tim, 2026-11-30): only at the prices (and in the site banner), nothing above the shop content. */
.buy-off { margin-right: 8px; padding: 2px 6px; border-radius: 2px; background: var(--signal); color: #0b0b0b; font: 700 11px/1.3 var(--mono); letter-spacing: .04em; vertical-align: 3px; }
.buy-was { margin-right: 6px; font-size: 1.05rem; font-weight: 500; color: var(--muted); text-decoration-thickness: 2px; }
.buy-save { justify-self: start; padding: 3px 8px; border: 1px solid var(--signal); border-radius: 2px; color: var(--signal); font: 600 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.buy-submit-was { margin-right: 10px; font-weight: 500; opacity: .55; }
.buy-fact-launch { color: var(--ink); font-weight: 600; }
.buy-fact-launch::before { background: var(--signal) !important; }
.buy-coupon { margin-top: -6px; }
.buy-coupon-toggle { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.buy-coupon-toggle:hover { color: var(--ink); }
.buy-coupon-field { display: grid; gap: 6px; }
.buy-coupon-field[hidden] { display: none; }
.buy-coupon-field input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); color: var(--ink); font: inherit; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.buy-coupon-field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.buy-coupon-note { margin: 0; font-size: .8rem; color: var(--muted); }
.buy-submit { justify-content: space-between; width: 100%; min-height: 52px; font-size: 1rem; cursor: pointer; }
.buy-submit-price { font-feature-settings: "tnum"; }
.buy-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.buy-facts li { position: relative; padding-left: 18px; }
.buy-facts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 1px; background: var(--ink-2); }
.buy-note { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; line-height: 1.55; }
.buy-note + .buy-note { padding-top: 0; border-top: 0; }
.buy-note a { color: var(--ink); }

@media (max-width: 1000px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "buy" "about"; }
  .buy { position: static; }
  .gallery-arrow { opacity: 1; }
  .gallery-thumbs { grid-auto-columns: 22%; }
}
@media (hover: none) { .gallery-arrow { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gallery-track { transition: none; } }
