/* ============================================
   COMMON FORM — Cinematic Luxury Streetwear
   fear of god tier · monochrome · architectural
   ============================================ */

/* --- RESET already in <head> inline style --- */

/* --- NAV --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 40px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(5,5,5,0.95) 0%, transparent 100%);
  backdrop-filter: blur(8px);
}

.nav-brand {
  font-size: 0.75rem; font-weight: 900; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--off);
  transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.6; }

.nav-links {
  display: flex; align-items: center; gap: 40px;
}

.nav-link {
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); transition: color 0.25s;
}
.nav-link:hover { color: var(--off); }

.nav-cta {
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--off); border: 1px solid var(--border);
  padding: 8px 20px; transition: all 0.25s;
}
.nav-cta:hover { background: var(--off); color: var(--bg); border-color: var(--off); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1px;
  background: var(--off); transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- HERO --- */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; background: var(--bg);
}

.hero-media {
  position: absolute; inset: 0; z-index: 0;
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: brightness(0.4) contrast(1.15) saturate(0.4);
}

.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(5,5,5,0.6) 100%),
    linear-gradient(to top, rgba(5,5,5,1) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(5,5,5,0.3) 0%, transparent 30%);
}

.hero-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 24px;
}

.hero-eyebrow-row {
  margin-bottom: 32px;
  opacity: 0; animation: heroFade 1s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}

.hero-title {
  font-size: clamp(4rem, 16vw, 11rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 0.88;
  color: var(--off); text-transform: uppercase;
  opacity: 0; animation: heroFade 1s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
}

.hero-tagline {
  margin-top: 20px;
  font-size: 0.65rem; letter-spacing: 0.6em; text-transform: uppercase;
  color: var(--muted);
  opacity: 0; animation: heroFade 1s cubic-bezier(0.16,1,0.3,1) 0.7s forwards;
}

.hero-actions {
  display: flex; gap: 16px; align-items: center;
  margin-top: 56px;
  opacity: 0; animation: heroFade 1s cubic-bezier(0.16,1,0.3,1) 0.9s forwards;
}

.btn-primary {
  display: inline-block; padding: 16px 40px;
  background: var(--off); color: var(--bg);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-primary:hover { background: var(--white); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block; padding: 16px 40px;
  border: 1px solid rgba(240,237,232,0.25);
  color: var(--off);
  font-size: 0.65rem; font-weight: 400; letter-spacing: 0.25em; text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-ghost:hover { border-color: var(--off); background: rgba(240,237,232,0.05); }

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  opacity: 0; animation: heroFade 1s ease 1.5s forwards;
}

.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2.5s ease infinite;
  margin: 0 auto;
}

/* --- TICKER --- */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0; overflow: hidden;
  background: var(--bg);
}

.ticker-track {
  display: flex; align-items: center;
  white-space: nowrap;
  animation: tickerScroll 25s linear infinite;
}

.ticker-item {
  font-size: 0.6rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--dim); flex-shrink: 0;
  padding: 0 28px;
}
.ticker-sep {
  font-size: 0.5rem; color: var(--border); flex-shrink: 0;
}

/* --- PHILOSOPHY --- */
.philosophy {
  padding: 160px 0; text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.philosophy-label { margin-bottom: 40px; }

.philosophy-statement {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.05;
  color: var(--off); margin-bottom: 48px;
}

.philosophy-body {
  font-size: 1rem; line-height: 1.9; color: var(--muted);
  max-width: 580px; margin: 0 auto 64px;
}

.philosophy-divider {
  width: 60px; height: 1px; background: var(--border);
  margin: 0 auto 40px;
}

.philosophy-tagline {
  font-size: 0.6rem; letter-spacing: 0.6em; text-transform: uppercase;
  color: var(--dim);
}

/* --- COLLECTION GRID --- */
.collection { padding-bottom: 160px; }

.collection-header {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.collection-title {
  margin-top: 16px;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -0.03em;
  color: var(--off);
}

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}

/* Product Card */
.product-card {
  position: relative; background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: background 0.3s ease;
}
.product-card:last-child { border-right: none; }
.product-card:hover { background: #0d0d0d; }

.product-img-wrap {
  position: relative; aspect-ratio: 3/4;
  overflow: hidden; cursor: pointer;
}

.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 1s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
}

.img-back {
  position: absolute; inset: 0; opacity: 0;
}
.product-img-wrap:hover .img-front { transform: scale(1.04); opacity: 0; }
.product-img-wrap:hover .img-back { opacity: 1; }

.img-toggle-hint {
  position: absolute; bottom: 16px; right: 16px;
  font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(240,237,232,0.4); background: rgba(5,5,5,0.6);
  padding: 5px 10px; backdrop-filter: blur(4px);
  pointer-events: none;
}

.product-body {
  padding: 32px; flex: 1;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}

.product-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}

.product-name {
  font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em;
  color: var(--off); line-height: 1;
}
.product-sub { margin-top: 6px; }

.product-price {
  font-size: 1rem; font-weight: 700; color: var(--off);
  letter-spacing: 0.05em;
}

.product-desc {
  font-size: 0.8rem; line-height: 1.75; color: var(--muted);
  flex: 1; margin-bottom: 28px;
}

.product-actions { margin-top: auto; }

.btn-product {
  display: inline-block; width: 100%; text-align: center;
  padding: 16px 24px;
  background: var(--off); color: var(--bg);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  transition: all 0.25s ease;
}
.btn-product:hover { background: var(--white); }

.btn-product-ghost {
  background: transparent; color: var(--off);
  border: 1px solid var(--border);
}
.btn-product-ghost:hover { border-color: var(--off); background: rgba(240,237,232,0.05); }

/* Product Selectors */
.product-selectors {
  display: flex; gap: 20px; align-items: center;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.selector-group {
  display: flex; align-items: center; gap: 10px;
}

.selector-label {
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

.selector-options {
  display: flex; gap: 6px; align-items: center;
}

.color-options { gap: 8px; }

.color-swatch {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  padding: 0; background: none;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--off) !important; transform: scale(1.1); }

.size-options { gap: 4px; }

.size-btn {
  min-width: 36px; height: 32px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.05em; cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 8px;
}
.size-btn:hover { border-color: var(--muted); color: var(--off); }
.size-btn.selected { background: var(--off); color: var(--bg); border-color: var(--off); }

/* Mystery card */
.product-card-mystery .product-img-wrap {
  background: #080808;
}

.mystery-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,0.02) 60px,
    rgba(255,255,255,0.02) 61px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,0.02) 60px,
    rgba(255,255,255,0.02) 61px
  );
}

.mystery-lines { display: none; }

.mystery-label {
  position: relative; z-index: 1;
  text-align: center;
}

.mystery-tag { margin-bottom: 16px; }

.mystery-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; letter-spacing: -0.04em;
  color: var(--off); line-height: 0.9;
  margin-bottom: 20px;
}

.mystery-sub {
  font-size: 0.75rem; line-height: 1.6; color: var(--muted);
}

/* --- SYSTEM STORY --- */
.story {
  padding: 160px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.story-inner { max-width: 900px; margin: 0 auto; padding: 0 40px; }

.story-content { max-width: 640px; }

.story-label { margin-bottom: 40px; }

.story-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.0;
  color: var(--off); margin-bottom: 40px;
}

.story-body {
  font-size: 0.9rem; line-height: 1.9; color: var(--muted);
  margin-bottom: 64px;
}

.story-stat-row {
  display: flex; gap: 48px; align-items: flex-start;
  padding-top: 48px; border-top: 1px solid var(--border);
}

.story-stat { display: flex; flex-direction: column; gap: 8px; }

.story-stat-num {
  font-size: 2.5rem; font-weight: 900; letter-spacing: -0.04em;
  color: var(--off); line-height: 1;
}

.story-stat-label {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dim); line-height: 1.4;
}

/* --- EMAIL JOIN --- */
.join {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.join::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border));
}

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

.join-title {
  margin-top: 24px; margin-bottom: 20px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.0;
  color: var(--off);
}

.join-sub {
  font-size: 0.85rem; line-height: 1.8; color: var(--muted);
  margin-bottom: 48px;
}

.join-form {
  display: flex; gap: 0; max-width: 480px; margin: 0 auto;
}

.join-form input {
  flex: 1;
  background: var(--bg-mid); border: 1px solid var(--border);
  color: var(--off); font-family: var(--font);
  font-size: 0.8rem; letter-spacing: 0.05em;
  padding: 18px 24px; outline: none; transition: border-color 0.25s;
}
.join-form input::placeholder { color: var(--dim); }
.join-form input:focus { border-color: var(--muted); }

.join-form button {
  background: var(--off); color: var(--bg);
  border: 1px solid var(--off);
  font-family: var(--font);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
  padding: 18px 28px; cursor: pointer; transition: background 0.25s;
  white-space: nowrap;
}
.join-form button:hover { background: var(--white); }
.join-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.join-note {
  font-size: 0.65rem; color: var(--dim); margin-top: 20px;
  letter-spacing: 0.05em;
}

/* --- FOOTER --- */
.footer {
  padding: 80px 40px 48px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 80px;
  padding-bottom: 80px; border-bottom: 1px solid var(--border);
}

.footer-brand {
  font-size: 1.1rem; font-weight: 900; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--off); margin-bottom: 12px;
}

.footer-est { margin-bottom: 8px; }
.footer-tagline {
  font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--dim);
}

.footer-links-label { margin-bottom: 20px; }

.footer-nav {
  display: flex; flex-direction: column; gap: 12px;
}

.footer-nav a {
  font-size: 0.75rem; color: var(--muted); transition: color 0.2s;
}
.footer-nav a:hover { color: var(--off); }

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

.footer-copy {
  font-size: 0.6rem; letter-spacing: 0.1em; color: var(--dim);
}

/* --- ANIMATIONS --- */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- CART DRAWER --- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 301;
  width: 400px; max-width: 100vw;
  background: var(--bg-mid); border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 32px; border-bottom: 1px solid var(--border);
}
.cart-title {
  font-size: 0.65rem; font-weight: 900; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--off);
}
.cart-close {
  background: none; border: none; color: var(--muted);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.cart-close:hover { color: var(--off); }

.cart-body {
  flex: 1; overflow-y: auto; padding: 24px 32px;
}

.cart-empty {
  text-align: center; padding: 80px 0;
  color: var(--muted); font-size: 0.8rem;
}
.cart-empty-sub { margin-top: 8px; font-size: 0.7rem; color: var(--dim); }

.cart-items { display: flex; flex-direction: column; gap: 0; }

.cart-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  gap: 16px;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-info { flex: 1; }
.cart-item-name {
  font-size: 0.9rem; font-weight: 900; color: var(--off);
  letter-spacing: -0.01em; margin-bottom: 4px;
}
.cart-item-variant {
  font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em;
}

.cart-item-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.qty-control { display: flex; align-items: center; gap: 0; }
.qty-btn {
  width: 28px; height: 28px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: var(--off); color: var(--off); }
.qty-num { min-width: 24px; text-align: center; font-size: 0.75rem; color: var(--off); }

.cart-item-price { font-size: 0.8rem; font-weight: 700; color: var(--off); min-width: 48px; text-align: right; }

.cart-remove {
  background: none; border: none; color: var(--dim);
  font-size: 1.1rem; cursor: pointer; transition: color 0.2s;
  padding: 0 4px;
}
.cart-remove:hover { color: var(--off); }

.cart-footer {
  padding: 24px 32px 32px;
  border-top: 1px solid var(--border);
}
.cart-subtotal-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.cart-subtotal-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.cart-subtotal-amount { font-size: 1.1rem; font-weight: 900; color: var(--off); }
.cart-note { font-size: 0.65rem; color: var(--dim); margin-bottom: 20px; }

.btn-checkout {
  display: block; width: 100%; text-align: center;
  padding: 18px;
  background: var(--off); color: var(--bg);
  font-family: var(--font); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
  border: none; transition: background 0.25s ease;
}
.btn-checkout:hover { background: var(--white); }
.btn-checkout:disabled { opacity: 0.5; cursor: not-allowed; }

.nav-cart-btn { order: -1; }

/* --- MOBILE --- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card { border-right: none; border-bottom: 1px solid var(--border); }
  .product-card:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(5,5,5,0.98); backdrop-filter: blur(16px);
    padding: 32px 24px; gap: 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }

  .container { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .story-stat-row { gap: 28px; }
  .join-form { flex-direction: column; }
  .join-form button { width: 100%; }
  .philosophy { padding: 100px 0; }
  .collection { padding-bottom: 100px; }
  .story { padding: 100px 0; }
  .join { padding: 100px 0; }
  .footer { padding: 60px 20px 40px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(3rem, 20vw, 5rem); }
  .hero-actions { flex-direction: column; gap: 12px; width: 100%; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; text-align: center; }
  .footer-top { grid-template-columns: 1fr; }
}