/* ============================================================
   VARIANCE COLLECTIVE — core stylesheet
   Sleek, minimal, black.
   ============================================================ */

:root {
  --bg: #000000;
  --surface: #0b0b0b;
  --surface-2: #121212;
  --line: #1f1f1f;
  --line-strong: #2c2c2c;
  --text: #f4f4f4;
  --text-dim: #8a8a8a;
  --text-faint: #5a5a5a;
  --accent: #ffffff;
  --radius: 2px;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-size: 15px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 600;
  padding-left: 0.42em; /* optical centering for tracked caps */
}
.brand span { color: var(--text-dim); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}
.nav a:hover { color: var(--text); }
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}
.cart-count[data-empty="true"] { opacity: 0.28; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 120px 0 96px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 70% 10%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(40% 60% at 20% 90%, rgba(255,255,255,0.03), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(44px, 9vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 22px 0 28px;
}
.hero h1 em {
  font-style: normal;
  color: var(--text-faint);
}
.hero p {
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 16px;
}
.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.2s;
  font-family: inherit;
}
.btn:hover { border-color: var(--text); }
.btn--solid { background: var(--text); color: #000; border-color: var(--text); }
.btn--solid:hover { background: #d9d9d9; border-color: #d9d9d9; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- Section headings ---------- */
.section { padding: 96px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.01em;
  font-weight: 600;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4px;
}
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: var(--line-strong); }
.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-2);
}
.product-media svg { width: 100%; height: 100%; display: block; }
.product-media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.product-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product-body .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.product-body h3 { font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }
.product-body .price { font-size: 15px; color: var(--text); white-space: nowrap; }
.product-body .desc { color: var(--text-dim); font-size: 13px; margin: 6px 0 18px; }
.product-actions { margin-top: auto; display: flex; gap: 8px; }

/* size selector */
.sizes { display: flex; gap: 6px; margin: 4px 0 18px; flex-wrap: wrap; }
.size {
  min-width: 40px;
  height: 36px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  cursor: pointer;
  background: transparent;
  transition: all 0.2s var(--ease);
  font-family: inherit;
}
.size:hover { color: var(--text); border-color: var(--text-faint); }
.size[aria-pressed="true"] { background: var(--text); color: #000; border-color: var(--text); }

/* ---------- Marquee strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
}
.strip-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 28s linear infinite;
}
.strip-track span {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-faint);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Cart / Checkout layout ---------- */
.page-head { padding: 64px 0 12px; }
.page-head h1 {
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: -0.01em;
  font-weight: 600;
}
.page-head p { color: var(--text-dim); margin-top: 12px; }

.layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4px;
  align-items: start;
  padding-bottom: 120px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
}
.panel h2 {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.summary { position: sticky; top: 92px; }

/* cart line items */
.line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.line:first-of-type { padding-top: 0; }
.line-thumb {
  width: 72px;
  aspect-ratio: 4/5;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.line-info h4 { font-size: 14px; font-weight: 600; }
.line-info .meta { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.line-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  margin-top: 10px;
}
.line-qty button {
  width: 28px; height: 28px;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s;
}
.line-qty button:hover { color: var(--text); }
.line-qty span { min-width: 28px; text-align: center; font-size: 13px; }
.line-price { font-size: 14px; text-align: right; white-space: nowrap; }
.line-remove {
  display: block;
  margin-top: 8px;
  background: none;
  border: 0;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: right;
  margin-left: auto;
  transition: color 0.2s;
}
.line-remove:hover { color: var(--text); }

/* totals */
.totals { display: flex; flex-direction: column; gap: 12px; }
.totals .t-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}
.totals .t-row.grand {
  color: var(--text);
  font-size: 18px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.totals .t-row.grand span:last-child { font-weight: 600; }

/* empty state */
.empty {
  text-align: center;
  padding: 100px 0 140px;
  color: var(--text-dim);
}
.empty h2 { font-size: 24px; color: var(--text); margin-bottom: 12px; letter-spacing: -0.01em; }

/* forms */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input, .field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--text-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* paypal mount + notice */
.pay-mount { margin-top: 8px; min-height: 52px; }
.pay-notice {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}
.pay-notice b { color: var(--text); font-weight: 600; }
.pay-notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--text);
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 3px;
}
.secure-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.site-footer .brand { font-size: 13px; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); transition: color 0.2s; }
.foot-links a:hover { color: var(--text); }
.foot-fine { width: 100%; margin-top: 32px; color: var(--text-faint); font-size: 11px; letter-spacing: 0.08em; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #000;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .nav { gap: 20px; }
  .nav .nav-hide { display: none; }
  .wrap { padding: 0 20px; }
  .hero { padding: 84px 0 64px; }
  .section { padding: 64px 0; }
}
