/* shop.css — OBSIDYN storefront styles
   Owns: nav, drop header, countdown, product grid, product detail, size selector.
   Inherits: design tokens from theme.css (:root vars). */

/* ── SITE NAV ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--accent-border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--fg-primary);
  text-decoration: none;
  background: linear-gradient(135deg, var(--fg-primary), var(--accent-ice));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--fg-primary);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-ice);
  border: 1px solid var(--accent-border);
  padding: 0.4rem 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--accent-glow);
  color: var(--fg-primary);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--bg-primary);
  background: var(--accent-ice);
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fg-secondary);
  border: 1px solid rgba(125,211,252,0.2);
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent-ice);
  color: var(--fg-primary);
}

.btn-sold-out,
.btn-locked {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.9rem 2.2rem;
  cursor: not-allowed;
  margin-top: 1.5rem;
}

/* ── HERO CTA (landing page addition) ── */
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-cta-note {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* Landing body needs top padding for fixed nav */
body {
  padding-top: 60px;
}

/* ── CLOSING CTA ── */
.closing-cta {
  margin-bottom: 3rem;
}

/* ── DROP EMPTY ── */
.drop-empty {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.drop-empty-inner {
  text-align: center;
  max-width: 500px;
}

.drop-empty-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--fg-primary);
  margin: 1.5rem 0 1rem;
}

.drop-empty-text {
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}

/* ── DROP HEADER ── */
.drop-header {
  padding: 5rem 2rem 4rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(125,211,252,0.06);
  position: relative;
  overflow: hidden;
}

.drop-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(125,211,252,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.drop-header-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.drop-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
  background: linear-gradient(135deg, var(--fg-primary) 0%, var(--accent-chrome) 40%, var(--accent-ice) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1.5rem 0 1rem;
}

.drop-description {
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ── COUNTDOWN ── */
.countdown-block {
  margin-top: 1rem;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.countdown-timer {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--accent-ice);
  line-height: 1;
  min-width: 2.5ch;
  text-align: center;
  /* Subtle glow */
  text-shadow: 0 0 20px rgba(125,211,252,0.3);
}

.countdown-unit-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--fg-muted);
  line-height: 1;
  opacity: 0.4;
}

/* ── LIVE BADGE ── */
.drop-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-ice);
  border: 1px solid var(--accent-border);
  padding: 0.5rem 1.2rem;
  background: var(--accent-glow);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-ice);
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── PRODUCT GRID ── */
.product-grid-section {
  padding: 4rem 2rem 6rem;
}

.product-grid-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(125,211,252,0.06);
}

.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  color: var(--fg-muted);
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--bg-primary);
  transition: background 0.25s;
}

.product-card:hover {
  background: var(--bg-card);
}

.product-card.sold-out {
  opacity: 0.6;
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.03);
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

.product-img-placeholder.large {
  height: 500px;
}

.placeholder-icon {
  font-size: 3rem;
  color: var(--fg-muted);
  opacity: 0.3;
}

/* Sold-out overlay */
.sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,11,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sold-out-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--fg-secondary);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.4rem 1rem;
}

/* Pre-drop lock overlay */
.locked-overlay {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  background: rgba(10,10,11,0.8);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.locked-icon {
  font-size: 1rem;
  color: var(--accent-ice);
  opacity: 0.7;
}

.product-card-info {
  padding: 1.2rem 1.4rem 1.5rem;
}

.product-type-tag {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.product-card-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg-primary);
}

.product-inventory {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent-ice);
  opacity: 0.7;
}

/* ── PRODUCT DETAIL ── */
.product-detail {
  padding: 5rem 2rem 6rem;
}

.product-detail-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 80px;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid rgba(125,211,252,0.06);
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-sold-out-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--fg-muted);
  background: rgba(10,10,11,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.35rem 0.8rem;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gallery-thumb {
  flex: 1;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--accent-ice);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product info panel */
.product-breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb-link {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--accent-ice);
}

.product-detail-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--fg-primary);
  line-height: 1.1;
  margin: 0.5rem 0 0.8rem;
}

.product-detail-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--fg-primary);
  margin-bottom: 1.5rem;
}

/* Pre-drop countdown on detail page */
.pre-drop-notice {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Inventory */
.inventory-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--accent-ice);
  margin-bottom: 1.5rem;
}

.inventory-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-ice);
}

.product-detail-desc {
  color: var(--fg-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* Size selector */
.size-select-block {
  margin-bottom: 1rem;
}

.size-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--fg-secondary);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  min-width: 52px;
  text-align: center;
}

.size-btn:hover {
  border-color: var(--accent-ice);
  color: var(--fg-primary);
}

.size-btn.active {
  background: var(--accent-ice);
  border-color: var(--accent-ice);
  color: var(--bg-primary);
}

.size-error {
  font-size: 0.72rem;
  color: #f87171;
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
}

.add-to-cart {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
}

.add-feedback {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent-ice);
  margin-top: 1rem;
}

.feedback-icon {
  font-size: 1rem;
}

/* Product meta */
.product-meta {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.meta-key {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
}

.meta-val {
  font-size: 0.72rem;
  color: var(--fg-secondary);
  letter-spacing: 0.05em;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .product-gallery {
    position: static;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    padding: 0.8rem 1.2rem;
  }

  .drop-header {
    padding: 3.5rem 1.5rem 3rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .product-detail {
    padding: 3rem 1.2rem 4rem;
  }

  .countdown-num {
    font-size: 2rem;
  }
}
