/* ==========================================================
   ESCALA — Design System
   ========================================================== */

:root {
  /* Colors */
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-muted: #f4f4f4;
  --line: #e8e8e8;
  --line-soft: #f0f0f0;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-3: #555555;
  --ink-4: #8a8a8a;
  --ink-5: #b8b8b8;

  /* Accent — used very sparingly */
  --accent: #0a0a0a;

  /* Aurora hero gradient — azul + lila, paleta acotada */
  --aurora-1: oklch(78% 0.15 255);
  --aurora-2: oklch(80% 0.16 305);
  --aurora-3: oklch(85% 0.10 270);
  --aurora-4: oklch(88% 0.08 290);

  /* Type */
  --font-display: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 520ms;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

::selection { background: var(--ink); color: var(--bg); }

/* ============ Typography ============ */
.t-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.t-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--full { width: 100%; }
.btn--lg { padding: 18px 28px; font-size: 14px; }
.btn--sm { padding: 9px 14px; font-size: 12px; }

/* ============ Inputs ============ */
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border var(--t-fast) var(--ease);
}
.input:focus { outline: none; border-color: var(--ink); }
.input::placeholder { color: var(--ink-5); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }

/* ============ Aurora gradient ============ */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
.aurora::before {
  top: -25%; left: -15%;
  background: radial-gradient(circle, var(--aurora-1) 0%, transparent 65%);
}
.aurora::after {
  bottom: -30%; right: -15%;
  background: radial-gradient(circle, var(--aurora-2) 0%, transparent 65%);
  animation-delay: -8s;
}
.aurora-3 {
  position: absolute;
  width: 70%; height: 70%;
  top: 25%; left: 28%;
  border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(circle, var(--aurora-3) 0%, transparent 65%);
  opacity: 0.65;
  animation: auroraDrift 18s ease-in-out infinite alternate-reverse;
}
.aurora-4 {
  position: absolute;
  width: 55%; height: 55%;
  top: 5%; right: 25%;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(circle, var(--aurora-4) 0%, transparent 65%);
  opacity: 0.55;
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(6%, -4%, 0) scale(1.12); }
}

/* ============ Layout helpers ============ */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-5 { gap: 24px; } .gap-6 { gap: 32px; } .gap-7 { gap: 48px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 32px;
  max-width: 1600px;
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 20px;
}
.brand sup { font-size: 8px; letter-spacing: 0.1em; vertical-align: super; opacity: 0.6; margin-left: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 13px;
  color: var(--ink-2);
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 1px; background: var(--ink);
}

.icon-btn {
  background: none; border: none;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  position: relative;
  transition: background var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--bg-muted); }
.icon-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
}

/* Mobile nav toggle */
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav.nav--desktop { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 80px 0 40px;
  margin-top: 120px;
  background: var(--bg);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.site-footer h4 { font-size: 12px; font-weight: 500; color: var(--ink-4); margin: 0 0 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { font-size: 13px; color: var(--ink-2); transition: color var(--t-fast) var(--ease); }
.site-footer a:hover { color: var(--ink); }
.site-footer__bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-4);
  flex-wrap: wrap; gap: 12px;
}

/* ============ Product card ============ */
.product-card {
  display: flex; flex-direction: column;
  gap: 12px;
  cursor: pointer;
}
.product-card__media {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-muted);
  border-radius: var(--r-md);
  overflow: hidden;
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
}
.product-card__title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 14px;
}
.product-card__title h3 {
  font-weight: 500; margin: 0;
  letter-spacing: -0.01em;
}
.product-card__sub {
  font-size: 12px; color: var(--ink-4);
}
.product-card__swatches {
  display: flex; gap: 6px; margin-top: 4px;
}
.swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.swatch--white { background: #ffffff; }
.swatch--black { background: #0a0a0a; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }

/* ============ Page section padding ============ */
.section { padding: 80px 0; }
.section--lg { padding: 120px 0; }
.section__head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 40px; gap: 24px; flex-wrap: wrap;
}
.section__head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  margin: 0;
}

/* ============ Drawer (cart) ============ */
.drawer-mask {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.32);
  backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 460px; max-width: 100vw;
  background: var(--bg);
  z-index: 101;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-med) var(--ease);
  box-shadow: -20px 0 60px rgba(0,0,0,0.06);
}
.drawer.open { transform: translateX(0); }
.drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__head h3 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 28px; }
.drawer__foot { padding: 24px 28px; border-top: 1px solid var(--line-soft); }

/* Cart line item */
.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-line:last-child { border-bottom: none; }
.cart-line__media {
  aspect-ratio: 4/5;
  background: var(--bg-muted);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.cart-line__info h4 { margin: 0; font-weight: 500; font-size: 14px; letter-spacing: -0.01em; }
.cart-line__info span { color: var(--ink-4); font-size: 12px; }
.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  margin-top: 6px;
}
.qty-stepper button {
  width: 28px; height: 28px; background: none; border: none;
  font-size: 14px; color: var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center;
}
.qty-stepper span { padding: 0 8px; font-size: 12px; min-width: 20px; text-align: center; }
.cart-line__price { font-size: 14px; font-weight: 500; }

/* ============ Filters ============ */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--ink-3); }
.chip.active {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}

/* ============ Marquee ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
  background: var(--bg);
}
.marquee__track {
  display: flex; gap: 64px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Helpers / utilities ============ */
.muted { color: var(--ink-4); }
.center { text-align: center; }
.divider { height: 1px; background: var(--line-soft); margin: 32px 0; }

.fade-in { animation: fadeIn 0.6s var(--ease) both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.skeleton-img {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      #f0f0f0 0 1px,
      transparent 1px 10px
    ),
    #f7f7f7;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* Mobile */
@media (max-width: 720px) {
  .hero { padding: 60px 0 60px; }
  .section { padding: 56px 0; }
  .section--lg { padding: 80px 0; }
  .drawer { width: 100vw; }
}
