/* ===========================================================
   AUTST — Design System
   Clean street. Preto + branco + neon verde. Sem frescura.
   =========================================================== */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem 0; }

/* ---------- Tokens ---------- */
:root {
  /* Colors */
  --c-black:    #000000;
  --c-white:    #FFFFFF;
  --c-neon:     #B0FF2D;
  --c-gray-900: #0A0A0A;
  --c-gray-800: #1A1A1A;
  --c-gray-700: #262626;
  --c-gray-500: #737373;
  --c-gray-400: #A3A3A3;
  --c-gray-200: #E5E5E5;

  /* Type */
  --font-display: 'Anton', 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

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

  /* Layout */
  --container: 1280px;
  --container-narrow: 960px;
  --radius: 0;           /* street = bordas afiadas */
  --radius-pill: 999px;
  --shadow: 0 10px 40px rgba(0,0,0,.35);

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* ---------- Body ---------- */
body {
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

::selection { background: var(--c-neon); color: var(--c-black); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .95;
  text-transform: uppercase;
  margin: 0 0 var(--sp-4) 0;
}
h1 { font-size: clamp(48px, 9vw, 120px); letter-spacing: -.02em; }
h2 { font-size: clamp(36px, 6vw, 72px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: 20px; letter-spacing: .03em; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--c-neon);
  margin: 0 0 var(--sp-3) 0;
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--c-gray-200);
  max-width: 58ch;
}

.muted { color: var(--c-gray-400); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-7) 0; }
.section--dark { background: var(--c-gray-900); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  border: 1px solid var(--c-white);
  background: transparent;
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--c-white); color: var(--c-black); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-neon);
  border-color: var(--c-neon);
  color: var(--c-black);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-black);
}
.btn--block { width: 100%; }
.btn--ghost { border-color: var(--c-gray-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-gray-800);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo__img {
  display: block;
  height: 40px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.site-nav a:hover,
.site-nav a.is-active {
  border-bottom-color: var(--c-neon);
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-gray-700);
  font-family: var(--font-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 14px;
  background: transparent;
  color: var(--c-white);
}
.cart-btn:hover { border-color: var(--c-neon); color: var(--c-neon); }
.cart-btn__count {
  background: var(--c-neon);
  color: var(--c-black);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  color: var(--c-white);
  font-size: 24px;
  line-height: 1;
  padding: var(--sp-2);
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .hamburger { display: inline-flex; }
  .site-header.is-open .site-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--c-black);
    padding: var(--sp-5);
    gap: var(--sp-5);
    border-bottom: 1px solid var(--c-gray-800);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--c-gray-800);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero__title {
  font-size: clamp(56px, 10vw, 144px);
  line-height: .9;
}
.hero__title strong { color: var(--c-neon); font-weight: inherit; }
.hero__ctas {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}
.hero__noise {
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 80% 20%, rgba(176,255,45,.15), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Marquee (linha rolante com mensagem) ---------- */
.marquee {
  background: var(--c-neon);
  color: var(--c-black);
  padding: var(--sp-3) 0;
  overflow: hidden;
  border-top: 1px solid var(--c-black);
  border-bottom: 1px solid var(--c-black);
}
.marquee__track {
  display: flex;
  gap: var(--sp-6);
  animation: scroll 30s linear infinite;
  width: max-content;
}
.marquee span {
  font-family: var(--font-display);
  letter-spacing: .25em;
  font-size: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee span::after { content: '★'; margin-left: var(--sp-6); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Grid de produtos ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-5);
}
.product-card {
  background: var(--c-gray-900);
  border: 1px solid var(--c-gray-800);
  transition: border-color .2s var(--ease), transform .3s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--c-neon);
  transform: translateY(-2px);
}
.product-card__img {
  aspect-ratio: 4/5;
  background: var(--c-gray-800);
  overflow: hidden;
  position: relative;
}
.product-card__badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: var(--c-neon);
  color: var(--c-black);
  padding: 4px var(--sp-3);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  z-index: 2;
}
.product-card__price-old {
  margin-left: 8px;
  color: var(--c-gray-400);
  text-decoration: line-through;
  font-size: 14px;
  font-weight: 400;
}
.product-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__body {
  padding: var(--sp-4) var(--sp-4) var(--sp-5) var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0;
}
.product-card__price {
  font-weight: 600;
  color: var(--c-neon);
  margin-top: auto;
}
.product-card__tag {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  background: var(--c-neon);
  color: var(--c-black);
  padding: 4px var(--sp-3);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  z-index: 2;
}

/* ---------- Section: Sobre (banner split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.split__media {
  aspect-ratio: 4/5;
  background: var(--c-gray-800) url('/assets/img/split_hero.png') center/cover no-repeat;
  border: 1px solid var(--c-gray-800);
}

/* ---------- PDP (página de produto) ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: start;
}
.pdp > * { min-width: 0; }
@media (max-width: 960px) { .pdp { grid-template-columns: minmax(0, 1fr); } }

/* Bloca a regra global de h1 (9vw) na PDP — coluna é estreita */
.pdp h1 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.pdp__gallery { display: grid; gap: var(--sp-3); min-width: 0; }
.pdp__main-img { background: var(--c-gray-800); aspect-ratio: 4/5; overflow: hidden; }
.pdp__main-img img { width:100%; height:100%; object-fit: cover; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.pdp__thumbs button {
  background: var(--c-gray-800); border: 1px solid var(--c-gray-800);
  aspect-ratio: 1; padding: 0;
}
.pdp__thumbs button.is-active { border-color: var(--c-neon); }
.pdp__thumbs img { width:100%; height:100%; object-fit: cover; }

.pdp__price { font-family: var(--font-display); font-size: 40px; color: var(--c-neon); margin: var(--sp-3) 0; }
.pdp__selector { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-4) 0; }
.pdp__selector button {
  padding: var(--sp-3) var(--sp-4);
  background: transparent;
  border: 1px solid var(--c-gray-700);
  color: var(--c-white);
  font-family: var(--font-display);
  letter-spacing: .15em;
}
.pdp__selector button.is-active,
.pdp__selector button:hover { border-color: var(--c-neon); color: var(--c-neon); }
.pdp__selector button[disabled] { opacity: .3; cursor: not-allowed; }

/* ---------- Cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
  z-index: 80;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 440px;
  background: var(--c-black);
  border-left: 1px solid var(--c-gray-800);
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  z-index: 90;
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5);
  border-bottom: 1px solid var(--c-gray-800);
}
.drawer__body {
  flex: 1; overflow-y: auto; padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.drawer__foot {
  padding: var(--sp-5);
  border-top: 1px solid var(--c-gray-800);
  display: flex; flex-direction: column; gap: var(--sp-3);
}

.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: var(--sp-3); align-items: center; }
.cart-item img { width: 80px; height: 100px; object-fit: cover; background: var(--c-gray-800); }
.cart-item__name { font-family: var(--font-display); letter-spacing: .04em; font-size: 16px; text-transform: uppercase; }
.cart-item__meta { font-size: 13px; color: var(--c-gray-400); }
.cart-item__qty { display: inline-flex; align-items: center; gap: var(--sp-2); }
.cart-item__qty button { width: 28px; height: 28px; border: 1px solid var(--c-gray-700); background: transparent; color: var(--c-white); }
.cart-item__remove { background: transparent; border: 0; color: var(--c-gray-400); font-size: 13px; text-decoration: underline; padding: 0; }

/* ---------- Forms ---------- */
.input, .textarea {
  width: 100%;
  padding: var(--sp-4);
  background: var(--c-gray-900);
  border: 1px solid var(--c-gray-800);
  color: var(--c-white);
}
.input:focus, .textarea:focus { outline: 2px solid var(--c-neon); outline-offset: 1px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-black);
  border-top: 1px solid var(--c-gray-800);
  padding: var(--sp-8) 0 var(--sp-5);
  margin-top: var(--sp-9);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sp-6);
}
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 {
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--c-gray-400);
  margin-bottom: var(--sp-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.site-footer a:hover { color: var(--c-neon); }
.site-footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-gray-800);
  display: flex; justify-content: space-between;
  color: var(--c-gray-500);
  font-size: 13px;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--c-neon); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Respeita "reduzir movimento" — importante pro público atípico */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
