/* ============================================
   Powdah Store — Shared Styles
   Design language: Deep navy, winter whites,
   Space Grotesk headings, DM Sans body
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --snow: #f8f9fa;
  --ice: #e8edf2;
  --slate: #2d3436;
  --deep: #0c1015;
  --accent: #4a90d9;
  --warm: #e17055;
  --success: #2d8b2d;
  --card-bg: #ffffff;
  --text-muted: #636e72;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: all 0.25s ease;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--slate);
  background: var(--snow);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   Navigation
   ============================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 16, 21, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ============================================
   Shop Hero
   ============================================ */

.shop-hero {
  background: linear-gradient(175deg, #0c1015 0%, #1a2332 40%, #2d4a6f 70%, #4a7aaa 100%);
  padding: 10rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
  animation: snowDrift 20s linear infinite;
}

@keyframes snowDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(30px); }
}

.shop-hero-inner {
  position: relative;
  z-index: 1;
}

.shop-hero .section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1rem;
  font-weight: 600;
}

.shop-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

.shop-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   Product Grid
   ============================================ */

.product-grid-section {
  padding: 4rem 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.product-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.product-card-image {
  background: linear-gradient(135deg, #f0f4f8, #e8edf2);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

.product-card-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.product-card:hover .product-card-image::after {
  transform: scaleX(1);
}

.product-card-image .tshirt-mockup {
  width: 100%;
  height: auto;
  max-height: 100%;
}

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

.product-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 0.25rem;
}

.product-card-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.product-card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deep);
}

/* ============================================
   Product Detail
   ============================================ */

.product-detail {
  padding: 7rem 2rem 4rem;
  background: var(--snow);
}

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

.product-image-wrap {
  background: linear-gradient(135deg, #f0f4f8, #e8edf2);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 80px;
}

.product-image-wrap .tshirt-mockup {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.product-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.product-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.product-breadcrumb span {
  margin: 0 0.4rem;
}

.product-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--deep);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.product-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 1.5rem;
}

.product-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Options */
.product-options {
  margin-bottom: 2rem;
}

.option-group {
  margin-bottom: 1.25rem;
}

.option-group label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 0.6rem;
}

.option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.opt-btn {
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--slate);
  cursor: pointer;
  transition: var(--transition);
}

.opt-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.opt-btn.selected {
  border-color: var(--deep);
  background: var(--deep);
  color: white;
}

.color-opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.opt-btn.selected .color-dot {
  border-color: rgba(255,255,255,0.4);
}

/* Buy Button */
.btn-buy {
  width: 100%;
  padding: 1.1rem 2rem;
  background: var(--deep);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.btn-buy:hover {
  background: #1a2332;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.btn-buy.processing {
  opacity: 0.7;
  pointer-events: none;
}

/* Product Meta */
.product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-item svg {
  flex-shrink: 0;
  opacity: 0.5;
}

/* More Trails */
.more-trails {
  padding: 4rem 2rem 6rem;
  background: white;
}

.more-trails-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.more-trails h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--deep);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: #1a2332;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--slate);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--slate);
  background: var(--snow);
}

/* ============================================
   Success Page
   ============================================ */

.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 4rem;
  text-align: center;
}

.success-inner {
  max-width: 560px;
}

.success-icon {
  margin-bottom: 2rem;
}

.success-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 0.75rem;
}

.success-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.success-details {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.success-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.success-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.success-details .detail-row:last-child {
  border-bottom: none;
}

.success-details .detail-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.success-details .detail-value {
  font-weight: 600;
  color: var(--deep);
  font-size: 0.9rem;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ============================================
   404 Page
   ============================================ */

.not-found {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem;
}

.not-found h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  color: var(--deep);
  margin-bottom: 1rem;
}

.not-found p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

.site-footer p {
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.8rem !important;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .product-detail-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-image-wrap {
    position: static;
    padding: 2rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-card-image {
    padding: 1rem;
  }

  .product-card-info {
    padding: 1rem;
  }

  .nav-inner {
    padding: 0 1rem;
  }

  .success-actions {
    flex-direction: column;
  }

  .option-buttons {
    gap: 0.4rem;
  }

  .opt-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }
}

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

  .shop-hero {
    padding: 8rem 1.5rem 3rem;
  }

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

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
