/* Big Lettuce Entertainment — Shop (merch store) styles.
   Additive: loaded after css/styles.css and reuses its tokens (--bg, --bg2,
   --lime, --white, --muted, --border) and type scale. Nothing here overrides a
   site-wide rule, so the rest of the site is unaffected.

   Product cards are .product-card rather than the site's .shop-card because
   these cards contain interactive controls (selects, number inputs, buttons)
   and must not lift/scale on hover the way the old outbound link cards did. */

/* The store toggles elements with the `hidden` attribute. Several of them are
   flex/grid containers here, and an explicit `display` beats the user-agent
   `[hidden] { display: none }` rule — so restate it with priority. */
[hidden] { display: none !important; }

/* ─── PREVIEW / STATUS BANNERS ───────────────────────────────────────────────── */

.preview-banner {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--lime);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Preview mode persists for the browser session, so it needs an exit. */
.preview-banner button {
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 11px;
  padding: 3px 12px;
  cursor: pointer;
}

.preview-banner button:hover { background: rgba(0, 0, 0, 0.12); }

/* One dropdown per option axis (colour, size) instead of one giant list. */
.option-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
}

.notice {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  border-radius: 8px;
  background: var(--bg2);
  padding: 1rem 1.25rem;
  margin: 0 auto 2rem;
  max-width: 1280px;
}

.notice strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.notice span { color: var(--muted); font-size: 14px; }

.notice[data-tone="success"] { border-left-color: var(--lime); }
.notice[data-tone="success"] strong { color: var(--lime); }
.notice[data-tone="error"]   { border-left-color: var(--horror, #ff4d00); }
.notice[data-tone="error"] strong { color: #ff4d00; }
.notice[data-tone="info"]    { border-left-color: var(--drama, #4a9eff); }

/* ─── STORE LAYOUT ───────────────────────────────────────────────────────────── */

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}

/* ─── CATALOG ────────────────────────────────────────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.product-card:hover { border-color: var(--lime); }

.product-media {
  aspect-ratio: 1 / 1;
  background: #111;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.product-media:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

/* Only hint at the larger view once the shopper is on the image. */
.zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 15, 10, 0.82);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.product-media:hover .zoom-hint,
.product-media:focus-visible .zoom-hint { opacity: 1; }

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.product-title { font-size: 1.05rem; }

.product-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-price {
  color: var(--lime);
  font-size: 14px;
  font-weight: 600;
}

.draft-flag {
  align-self: flex-start;
  background: rgba(200, 240, 38, 0.12);
  border: 1px solid var(--lime);
  color: var(--lime);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.product-controls {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qty-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.75rem;
  align-items: end;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

/* Inputs match the site's contact-form treatment (.form-group input). */
.store select,
.store input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  width: 100%;
}

.store select:focus,
.store input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 240, 38, 0.12);
}

.store select option { background: #1a2a1a; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */

.button {
  background: var(--lime);
  color: #000;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  width: 100%;
  transition: opacity 0.2s;
}

.button:hover:not(:disabled) { opacity: 0.88; }

.button:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

/* ─── CART ───────────────────────────────────────────────────────────────────── */

.cart {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  position: sticky;
  top: 88px;
}

.cart h2 { font-size: 1.35rem; margin-bottom: 1rem; }

.cart-items { list-style: none; }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.ci-title { font-size: 14px; font-weight: 600; }
.ci-qtyprice { font-size: 14px; color: var(--lime); text-align: right; white-space: nowrap; }
.ci-variant { font-size: 12px; color: var(--muted); }

.ci-remove {
  grid-column: 2;
  justify-self: end;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
}

.ci-remove:hover { color: #ff4d00; }

.cart-empty { color: var(--muted); font-size: 14px; }

.cart-summary { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 14px;
  color: var(--muted);
}

.cart-row.total { color: var(--white); font-weight: 700; }
.cart-row.total span:last-child { color: var(--lime); }

.hint { color: var(--muted); font-size: 12px; }

/* ─── CHECKOUT OVERLAY ───────────────────────────────────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 8, 4, 0.82);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.overlay.open { display: flex; }

.checkout-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  margin: auto;
}

.checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.checkout-head h2 { font-size: 1.5rem; }

.checkout-close {
  color: var(--muted);
  font-size: 1.75rem;
  line-height: 1;
  padding: 0 0.25rem;
}

.checkout-close:hover { color: var(--white); }

.checkout-body { padding: 1.5rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-grid .full { grid-column: 1 / -1; }

.checkout-summary {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.agree input { width: auto; margin-top: 2px; accent-color: var(--lime); }
.agree a { color: var(--lime); text-decoration: underline; }

.checkout-actions { display: flex; flex-direction: column; gap: 0.75rem; }

.button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
}

.button.secondary:hover:not(:disabled) { border-color: var(--lime); opacity: 1; }

.payment-step { min-height: 340px; }

.payment-back {
  color: var(--lime);
  font-size: 13px;
  margin-bottom: 1.25rem;
}

.payment-back:hover { text-decoration: underline; }

.payment-heading { margin-bottom: 1.25rem; }
.payment-heading h3 { color: var(--white); font-size: 1.35rem; margin: 0.2rem 0 0.4rem; }
.payment-heading p:last-child { color: var(--muted); font-size: 13px; margin: 0; }
.payment-element { min-height: 160px; }

/* ─── ADDED-TO-CART CONFIRMATION ─────────────────────────────────────────────── */

/* Above the checkout overlay (200) and the image viewer (300), so it is still
   visible if an item is added while one of those is open. */
.cart-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 400;
  display: grid;
  gap: 2px;
  max-width: min(320px, calc(100vw - 2.5rem));
  padding: 12px 16px;
  border: 1px solid var(--lime);
  border-radius: 10px;
  background: var(--bg2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-toast.show { opacity: 1; transform: none; }

.cart-toast strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--lime);
}

.cart-toast span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .cart-toast { transition: none; }
}

@media (max-width: 560px) {
  .cart-toast { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
}

/* ─── ENLARGED MOCKUP VIEWER ─────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 8, 4, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.lightbox.open { display: flex; }

.lightbox-panel {
  width: 100%;
  max-width: 860px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lightbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.lightbox-head h2 { font-size: 1.35rem; }

.lightbox-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

/* Separates the variant name from the camera angle without markup in the JS. */
#lightbox-angle:not(:empty)::before { content: " · "; }

.lightbox-close {
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  padding: 0 0.25rem;
}

.lightbox-close:hover { color: var(--white); }

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 15, 10, 0.8);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.lightbox-nav:hover { border-color: var(--lime); color: var(--lime); }
#lightbox-prev { left: 8px; }
#lightbox-next { right: 8px; }

.lightbox-counter {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

@media (max-width: 560px) {
  .lightbox-stage img { max-height: 60vh; }
  .lightbox-nav { width: 38px; height: 38px; }
}

/* ─── EMPTY / LOADING STATES ─────────────────────────────────────────────────── */

.state {
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--bg2);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.state .coming {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

/* ─── POLICY PAGES ───────────────────────────────────────────────────────────── */

.policy {
  max-width: 720px;
}

.policy h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.policy p,
.policy li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.policy p { margin-bottom: 1rem; }
.policy strong { color: var(--white); }
.policy a { color: var(--lime); text-decoration: underline; }
.policy ul { margin: 0 0 1rem 1.25rem; }
.policy li { margin-bottom: 0.5rem; }

.policy-meta {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  margin-bottom: 2rem;
}

.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.policy-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.policy-nav a:hover { color: var(--lime); }

/* ─── STORE FOOTER POLICY LINKS ──────────────────────────────────────────────── */

.store-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.store-legal a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-legal a:hover { color: var(--lime); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .store-layout { grid-template-columns: 1fr; }
  .cart { position: static; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
