/* ═══════════════════════════════════════════════════
   DriftGhost Shop CSS
   Extends theme.css — import theme.css first in layout
   ═══════════════════════════════════════════════════ */

/* ═══ NAV ═══ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand .ghost { color: var(--neon-red); text-shadow: var(--glow-red); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

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

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-red);
  text-decoration: none;
  border: 1px solid rgba(255, 45, 85, 0.4);
  padding: 8px 20px;
  background: rgba(255, 45, 85, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  background: rgba(255, 45, 85, 0.14);
  border-color: var(--neon-red);
}

/* ═══ HERO ACTIONS ═══ */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0a0a0c;
  background: var(--neon-red);
  padding: 14px 32px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: var(--glow-red);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 60px rgba(255, 45, 85, 0.5);
}

.btn-ghost-outline {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 14px 32px;
  background: transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost-outline:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* ═══ SHOP MAIN ═══ */
.shop-main {
  min-height: 100vh;
}

.shop-header {
  padding: 80px 40px 60px;
  position: relative;
  overflow: hidden;
}

.shop-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 45, 85, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.shop-header-inner {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.shop-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
}

.shop-title .ghost {
  color: var(--neon-red);
  text-shadow: var(--glow-red);
}

.shop-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 480px;
}

/* ═══ CATALOG FILTERS ═══ */
.catalog-section {
  padding: 0 40px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.catalog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.filter-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.filter-btn.active {
  color: var(--neon-red);
  border-color: rgba(255, 45, 85, 0.5);
  background: rgba(255, 45, 85, 0.06);
}

/* ═══ CATALOG GRID ═══ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.product-card {
  background: var(--bg-surface);
  transition: background 0.2s ease;
  position: relative;
}

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

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

/* ═══ PRODUCT IMAGE ═══ */
.product-img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background: var(--bg-elevated);
}

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

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

.product-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111116 0%, #1a1a22 100%);
  flex-direction: column;
  gap: 12px;
}

.placeholder-ghost {
  font-size: 3rem;
  color: rgba(255, 45, 85, 0.2);
  line-height: 1;
  transition: color 0.3s ease;
}

.product-card:hover .placeholder-ghost {
  color: rgba(255, 45, 85, 0.4);
}

.product-drop-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--neon-red);
  padding: 4px 10px;
}

.product-drop-badge.inline {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--neon-red);
  padding: 4px 10px;
}

.product-tag-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.product-tag-badge.bestseller {
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.08);
}

.product-tag-badge.featured {
  color: var(--neon-purple);
  border: 1px solid rgba(179, 71, 255, 0.4);
  background: rgba(179, 71, 255, 0.08);
}

/* ═══ PRODUCT CARD INFO ═══ */
.product-info {
  padding: 24px 28px;
  border-top: 1px solid var(--border);
}

.product-category-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.2;
}

.product-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.product-cta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--neon-red);
  text-transform: uppercase;
  transition: letter-spacing 0.2s ease;
}

.product-card:hover .product-cta { letter-spacing: 0.16em; }

/* ═══ CATALOG EMPTY ═══ */
.catalog-empty {
  padding: 80px 0;
  text-align: center;
}

.catalog-empty-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* ═══ CATALOG BANNER ═══ */
.catalog-banner {
  padding: 60px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.catalog-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.catalog-banner-text h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.catalog-banner-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.catalog-banner-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ═══ PRODUCT DETAIL PAGE ═══ */
.product-main {
  min-height: 100vh;
  padding: 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.product-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-breadcrumb a:hover { color: var(--text-secondary); }

.breadcrumb-sep { color: var(--border); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: start;
}

/* ═══ PRODUCT GALLERY ═══ */
.product-gallery { position: sticky; top: 80px; }

.product-main-img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
}

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

.product-main-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
}

.fallback-glyph {
  font-size: 4rem;
  color: rgba(255, 45, 85, 0.25);
}

.fallback-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.product-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.thumbnail {
  width: 72px;
  height: 72px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.thumbnail.active { border-color: var(--neon-red); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* ═══ PRODUCT INFO PANEL ═══ */
.product-info-panel {
  padding-top: 8px;
}

.product-detail-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.product-detail-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 32px;
  line-height: 1.6;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.product-detail-price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--text-primary);
}

.product-price-note {
  font-size: 0.8rem;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
}

/* ═══ SIZE SELECTOR ═══ */
.product-variants-section {
  margin-bottom: 28px;
}

.variant-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.variant-label-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.variant-selected {
  font-size: 0.8rem;
  color: var(--neon-red);
  font-weight: 600;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: transparent;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  min-width: 56px;
  text-align: center;
}

.size-btn:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.size-btn.selected {
  color: var(--bg-deep);
  background: var(--neon-red);
  border-color: var(--neon-red);
}

.size-btn:disabled,
.size-btn.sold-out {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.sold-out-x {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 0.6rem;
  color: var(--neon-red);
  font-weight: 700;
}

.variant-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.03em;
}

/* ═══ ADD TO CART ═══ */
.product-actions {
  margin-bottom: 40px;
}

.btn-add-cart {
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--neon-red);
  border: none;
  padding: 18px 32px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  margin-bottom: 12px;
  box-shadow: var(--glow-red);
}

.btn-add-cart:disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-add-cart:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 0 60px rgba(255, 45, 85, 0.5);
}

.btn-add-cart.added {
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.fulfillment-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.06em;
}

/* ═══ PRODUCT DESCRIPTION ═══ */
.product-description {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}

.desc-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.desc-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.product-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ═══ RELATED PRODUCTS ═══ */
.related-section {
  padding-top: 80px;
  border-top: 1px solid var(--border);
}

.related-section .section-label {
  margin-bottom: 32px;
}

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

.related-card {
  background: var(--bg-surface);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

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

.related-img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}

.related-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-card:hover .related-img-wrap img { transform: scale(1.04); }

.related-info {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* ═══ SHOP ERROR PAGE ═══ */
.shop-error-main {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

.shop-error-inner {
  text-align: center;
  max-width: 480px;
}

.shop-error-glyph {
  font-size: 4rem;
  color: rgba(255, 45, 85, 0.3);
  margin-bottom: 24px;
}

.shop-error-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 16px;
}

.shop-error-message {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; gap: 40px; }
  .product-gallery { position: static; }
  .product-main { padding: 24px; }
}

@media (max-width: 768px) {
  .site-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .shop-header { padding: 60px 24px 40px; }
  .catalog-section { padding: 0 24px 60px; }
  .catalog-banner { padding: 40px 24px; }
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .product-main { padding: 20px; }
  .product-detail { gap: 32px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .site-nav { padding: 0 16px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .shop-header { padding: 40px 16px; }
  .catalog-section { padding: 0 16px 60px; }
  .catalog-banner { padding: 32px 16px; }
  .product-info { padding: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
