/* Acid Alchamy shop — leans on the site's :root palette
   (--bg/--text/--muted/--card/--border/--accent/--brand/--brand-2, Space Grotesk/Inter). */

.shop-main { max-width: 1180px; margin: 0 auto; padding: 32px 20px 80px; }

.shop-hero { text-align: center; padding: 28px 0 26px; }
.shop-kicker {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--brand, #61dafb); margin: 0 0 8px;
}
.shop-hero h1 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0 0 12px; line-height: 1.05;
  background: linear-gradient(120deg, #fff 30%, var(--brand-2, #6ab7ff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shop-sub { color: var(--muted, #9aa3af); max-width: 640px; margin: 0 auto; line-height: 1.6; }

.shop-status { text-align: center; color: var(--muted, #9aa3af); padding: 28px 0; font-family: var(--font-mono, monospace); font-size: .85rem; }
.shop-status.error { color: #fca5a5; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }

.product-card {
  background: var(--card, #1e1e1e); border: 1px solid var(--border, #1f2937);
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.product-card:hover { border-color: rgba(97,218,251,.4); transform: translateY(-2px); }

.pc-gallery { position: relative; background: #0a0c12; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.pc-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-thumbs { display: flex; gap: 8px; padding: 10px 14px 0; flex-wrap: wrap; }
.pc-thumb { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border, #1f2937); background: #0a0c12; cursor: pointer; padding: 0; }
.pc-thumb.active { border-color: var(--brand, #61dafb); }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pc-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pc-title { font-family: var(--font-display, sans-serif); font-size: 1.08rem; margin: 0; line-height: 1.25; }
.pc-price { font-family: var(--font-mono, monospace); color: var(--accent, #a7f3d0); font-size: 1rem; }
.pc-desc { color: var(--muted, #9aa3af); font-size: .86rem; line-height: 1.5; margin: 0; }

.pc-row { display: flex; flex-direction: column; gap: 6px; }
.pc-row > label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #9aa3af); }
.pc-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border, #1f2937);
  cursor: pointer; padding: 0; position: relative;
}
.pc-swatch.active { border-color: var(--brand, #61dafb); box-shadow: 0 0 0 2px rgba(97,218,251,.25); }
.pc-swatch[title]:hover::after {
  content: attr(title); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%);
  background: #000; color: #fff; font-size: .68rem; padding: 2px 6px; border-radius: 4px; white-space: nowrap; z-index: 5;
}
.pc-select {
  background: #0a0c12; color: var(--text, #f4f4f4); border: 1px solid var(--border, #1f2937);
  border-radius: 8px; padding: 9px 10px; font: inherit; font-size: .9rem;
}
.pc-add { margin-top: 2px; }

.btn.btn-primary { cursor: pointer; }
.pc-add.btn { width: 100%; padding: 11px; border-radius: 9px; font-weight: 600; }

/* Cart */
.cart-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  background: var(--brand, #61dafb); color: #04121b; border: none; border-radius: 999px;
  padding: 13px 18px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4);
  display: flex; align-items: center; gap: 8px;
}
.cart-count { background: #04121b; color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: .72rem; padding: 0 4px; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 92vw); z-index: 80;
  background: #0b0d14; border-left: 1px solid var(--border, #1f2937);
  transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid var(--border, #1f2937); }
.cart-close { background: none; border: none; color: var(--muted, #9aa3af); font-size: 1.2rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 18px; display: flex; flex-direction: column; gap: 12px; }
.cart-empty { color: var(--muted, #9aa3af); text-align: center; padding: 30px 0; }
.cart-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; }
.cart-line img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: #0a0c12; }
.cart-line .cl-meta { font-size: .82rem; }
.cart-line .cl-meta small { color: var(--muted, #9aa3af); display: block; }
.cart-line .cl-qty { display: flex; align-items: center; gap: 6px; }
.cart-line button.qtybtn { background: #161922; color: #fff; border: 1px solid var(--border,#1f2937); border-radius: 6px; width: 24px; height: 24px; cursor: pointer; }
.cart-line .cl-rm { background: none; border: none; color: #fca5a5; cursor: pointer; font-size: .76rem; }
.cart-foot { padding: 16px 18px; border-top: 1px solid var(--border, #1f2937); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-mono, monospace); font-size: 1.05rem; margin-bottom: 4px; }
.cart-note { color: var(--muted, #9aa3af); font-size: .74rem; margin: 0 0 12px; }
.cart-checkout { width: 100%; padding: 13px; border-radius: 9px; font-weight: 700; }
.cart-checkout:disabled { opacity: .5; cursor: not-allowed; }
.cart-error { color: #fca5a5; font-size: .8rem; margin: 10px 0 0; }
.cart-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 70; }

.shop-fineprint { text-align: center; color: var(--muted, #9aa3af); font-size: .78rem; margin: 40px auto 0; max-width: 620px; line-height: 1.6; }

/* Success page */
.shop-success { max-width: 640px; margin: 0 auto; padding: 70px 20px; text-align: center; }
.shop-success h1 { font-family: var(--font-display, sans-serif); font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 12px; }
.shop-success p { color: var(--muted, #9aa3af); line-height: 1.6; }
.shop-success .ok-badge { font-size: 3rem; margin-bottom: 10px; }
