/* ===== POW Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --black: #0a0a0a;
  --white: #f5f5f0;
  --red: #c41e3a;
  --red-hover: #a01830;
  --red-dim: rgba(196, 30, 58, 0.15);
  --grey: #888;
  --grey-dark: #333;
  --grey-light: #bbb;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.15);
  --card-bg: rgba(255,255,255,0.03);
  --card-hover: rgba(255,255,255,0.06);
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

a { color: var(--white); text-decoration: none; }

img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--white);
  text-decoration: none;
}

.nav-logo span { color: var(--red); }

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

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-links .cart-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cart-count:empty { display: none; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s;
  }
  .nav-links.open { transform: translateY(0); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: white;
}
.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196,30,58,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--grey);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { color: var(--white); }

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1.1rem 3rem;
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196,30,58,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--red);
  border-radius: 100px;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 .accent { color: var(--red); }

.hero p {
  font-size: 1.2rem;
  color: var(--grey-light);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== KORU DECORATION ===== */
.koru {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
}

.koru svg {
  width: 100%;
  height: 100%;
}

/* ===== SECTION ===== */
.section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--grey);
  font-size: 1.1rem;
  margin-top: 0.75rem;
  max-width: 500px;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.product-card:hover {
  background: var(--card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Product image wrapper (replaces color swatch when image available) */
.product-image-wrap {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.product-swatch {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-swatch .hoodie-icon {
  width: 60%;
  height: 60%;
  opacity: 0.3;
}

.product-info {
  padding: 1.25rem;
}

.product-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-color {
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 0.5rem;
}

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

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-top: 8rem;
  min-height: 100vh;
  align-items: start;
}

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

.product-detail-image {
  position: sticky;
  top: 6rem;
  background: #f8f8f8;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product-detail-img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.product-detail-swatch {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 6rem;
}

.product-detail-swatch .hoodie-icon {
  width: 50%;
  opacity: 0.25;
}

.product-detail-info {
  padding-top: 2rem;
}

.product-detail-info h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

.product-detail-info .description {
  color: var(--grey-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ===== SIZE SELECTOR ===== */
.size-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.size-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.size-btn:hover {
  border-color: var(--white);
}

.size-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

/* ===== COLOR SELECTOR ===== */
.color-selector {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.color-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.color-btn:hover {
  transform: scale(1.1);
}

.color-btn.active {
  border-color: var(--white);
  box-shadow: 0 0 0 3px var(--black), 0 0 0 5px var(--white);
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--red);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select option {
  background: var(--black);
}

/* ===== PLACEMENT SELECTOR ===== */
.placement-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.placement-btn {
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--grey);
}

.placement-btn:hover {
  border-color: var(--border-light);
  color: var(--white);
}

.placement-btn.active {
  border-color: var(--red);
  background: var(--red-dim);
  color: var(--white);
}

.placement-btn .icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.placement-btn .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Space Grotesk', sans-serif;
}

/* ===== CART ===== */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  align-items: center;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  flex-shrink: 0;
  overflow: hidden;
  background: #f8f8f8;
}

.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cart-item-swatch {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-swatch .hoodie-icon {
  width: 50%;
  opacity: 0.3;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-meta {
  font-size: 0.85rem;
  color: var(--grey);
}

.cart-item-custom {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 0.25rem;
}

.cart-item-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--grey);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: color 0.2s;
}

.cart-item-remove:hover { color: var(--red); }

.cart-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.cart-qty button:hover {
  border-color: var(--white);
}

.cart-qty span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

@media (max-width: 640px) {
  .cart-item {
    flex-wrap: wrap;
  }
}

/* ===== CART SUMMARY ===== */
.cart-summary {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 6rem;
}

.cart-summary h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.cart-summary-row.total {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cart-summary .btn {
  width: 100%;
  margin-top: 1.5rem;
}

/* ===== TWO COL LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 8rem 0 3rem;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--grey);
  font-size: 1.1rem;
  margin-top: 0.75rem;
  max-width: 500px;
}

/* ===== BUILDER ===== */
.builder-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }
}

.builder-preview {
  position: sticky;
  top: 6rem;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  transition: background 0.3s;
}

.builder-preview .hoodie-icon {
  width: 40%;
  opacity: 0.2;
  margin-bottom: 1.5rem;
}

.builder-preview .preview-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
}

.builder-preview .preview-date {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 0.25rem;
}

.builder-preview .preview-message {
  font-style: italic;
  opacity: 0.5;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  max-width: 200px;
}

.builder-preview .preview-placement {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.3;
}

.builder-form {
  padding: 2rem 0;
}

.builder-form h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.builder-form .subtitle {
  color: var(--grey);
  margin-bottom: 2rem;
}

.builder-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  margin: 1.5rem 0;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 6rem 2rem;
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--grey);
  margin-bottom: 2rem;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.success-page h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.success-page .order-number {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.success-page p {
  color: var(--grey);
  max-width: 400px;
  margin-bottom: 2rem;
}

/* ===== FEATURED COLORS ===== */
.color-strip {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  transition: transform 0.2s;
}

.color-dot:hover {
  transform: scale(1.2);
}

/* ===== MISSION SECTION ===== */
.mission {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.mission-content {
  max-width: 600px;
}

.mission blockquote {
  font-size: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--red);
}

.mission p {
  color: var(--grey-light);
  line-height: 1.8;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--grey);
  margin-bottom: 2rem;
}

/* ===== FOOTER ===== */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--grey);
  font-size: 0.85rem;
}

footer a {
  color: var(--grey);
  transition: color 0.2s;
}

footer a:hover { color: var(--white); }

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--red);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(196,30,58,0.3);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== LOADING ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: var(--grey);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-light);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.75rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== CHECKOUT FORM ===== */
.checkout-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.checkout-form h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ===== HOODIE SVG ICON ===== */
.hoodie-icon {
  fill: currentColor;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--grey-dark);
  border-radius: 4px;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
