:root {
  --ink: #050505;
  --ink-2: #111410;
  --lime: #b9f200;
  --lime-dim: #8fbd00;
  --paper: #f1f3ec;
  --white: #fff;
  --muted: #9aa092;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --shell: min(1180px, 100% - 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 1.0625rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.vitrine :focus-visible, .how :focus-visible { outline-color: var(--ink); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--lime); color: var(--ink); padding: .6rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.shell { width: var(--shell); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- botões ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .7rem 1.6rem; border: 2px solid transparent; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: var(--white); }
.button-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.button-ghost:hover { border-color: var(--lime); color: var(--lime); }
.button-ink { background: var(--ink); color: var(--lime); }
.button-ink:hover { background: var(--white); color: var(--ink); }

/* ---------- topo ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1.5rem; padding: .7rem max(1.25rem, calc((100% - 1180px) / 2)); background: rgba(5, 5, 5, .94); border-bottom: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.wordmark { display: inline-flex; align-items: center; gap: .5rem; font: 900 1.65rem/1 var(--display); letter-spacing: .06em; text-decoration: none; }
.mark { display: inline-grid; place-items: center; padding: .1em .38em .05em; background: var(--lime); color: var(--ink); transform: skewX(-12deg); letter-spacing: 0; }
.topnav { display: flex; gap: 1.6rem; margin-left: auto; }
.topnav a { text-decoration: none; font-weight: 500; color: #d7dbd0; }
.topnav a:hover { color: var(--lime); }
.cart-button { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .4rem 1.1rem; border: 2px solid var(--lime); background: transparent; color: var(--lime); font: 800 1.15rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.cart-button:hover { background: var(--lime); color: var(--ink); }
.cart-button b, .mobile-list b { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .3rem; background: var(--lime); color: var(--ink); font-size: 1rem; }
.cart-button:hover b { background: var(--ink); color: var(--lime); }
b.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.4); } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3rem; min-height: min(46rem, calc(100svh - 4rem)); padding: 4rem max(1.25rem, calc((100% - 1180px) / 2)); background: var(--ink); }
.hero h1 { display: grid; font-size: clamp(4.6rem, 13vw, 10.5rem); line-height: .82; text-transform: uppercase; font-weight: 900; margin-bottom: 1.6rem; }
.hero-copy > p { max-width: 34rem; font-size: 1.2rem; color: #d7dbd0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.shoe-run { position: relative; justify-self: end; width: min(100%, 24rem); }
.shoe-run::before { content: ""; position: absolute; left: -3rem; top: -6rem; bottom: -6rem; width: 6px; background: var(--lime); transform: skewX(-10deg); }
.shoe-run-title { font: 800 2rem/1 var(--display); margin-bottom: 1rem; }
.shoe-run-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.shoe-run-grid button { aspect-ratio: 1; border: 2px solid rgba(185, 242, 0, .55); background: transparent; color: var(--white); font: 800 2.1rem/1 var(--display); transition: background .12s, color .12s, transform .12s; }
.shoe-run-grid button:hover { background: var(--lime); color: var(--ink); transform: translateY(-3px) skewX(-6deg); }
.shoe-run-note { margin: 1rem 0 0; font-size: .95rem; color: var(--muted); }

/* ---------- seções ---------- */
section h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; margin-bottom: 1rem; max-width: 18ch; }
.vitrine, .how { background: var(--paper); color: var(--ink); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.lead { max-width: 40rem; font-size: 1.15rem; margin-bottom: 2.5rem; }

.dept-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(19rem, auto); gap: 1rem; }
.dept { position: relative; display: flex; flex-direction: column; justify-content: flex-end; grid-column: span 2; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--white); border-top: 6px solid var(--lime); }
.dept-tenis { grid-row: span 2; }
.dept-bolas, .dept-acessorios { grid-column: span 2; }
.dept > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(255, 255, 255, .1); outline-offset: -1px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.dept-camisas > img { object-position: 12% 50%; }
.dept-bolas > img { object-position: 22% 50%; }
.dept-acessorios > img { object-position: 45% 50%; }
.dept::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5, 5, 5, .94) 0, rgba(5, 5, 5, .6) 42%, rgba(5, 5, 5, 0) 78%); }
.dept-bolas { justify-content: flex-start; }
.dept-bolas::after { background: linear-gradient(to bottom, rgba(5, 5, 5, .9) 0, rgba(5, 5, 5, .55) 48%, rgba(5, 5, 5, 0) 82%); }
.dept:hover > img { transform: scale(1.05); }
.dept-body { padding: 1.4rem; }
.dept-range { margin: 0 0 .5rem; font: 900 3.4rem/.85 var(--display); color: var(--lime); font-variant-numeric: tabular-nums; }
.dept h3 { font-size: 2.2rem; text-transform: uppercase; margin-bottom: .4rem; text-wrap: balance; }
.dept-body p:not(.dept-range) { margin-bottom: 1rem; color: #e1e5da; text-wrap: pretty; }
.dept button { min-height: 3rem; padding: .4rem 1.3rem; border: 2px solid var(--lime); background: rgba(5, 5, 5, .55); color: var(--lime); font: 800 1.2rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; transition-property: background-color, color, transform; transition-duration: .15s; }
.dept button:hover { background: var(--lime); color: var(--ink); }

.brands { padding: clamp(3rem, 7vw, 5.5rem) 0; background: var(--ink); }
.brands ul { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.2rem; margin: 0; padding: 0; list-style: none; font: 900 clamp(2.4rem, 7vw, 5.5rem)/1.05 var(--display); text-transform: uppercase; }
.brands li + li::before { content: "/"; margin-right: 1.2rem; color: var(--lime); }

.how ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 2.5rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.how li { counter-increment: step; padding-top: 1rem; border-top: 3px solid var(--ink); }
.how li::before { content: counter(step); display: block; font: 900 3.2rem/1 var(--display); color: var(--lime-dim); }
.how b { display: block; font: 800 2rem/1 var(--display); text-transform: uppercase; margin: .3rem 0 .4rem; }

.vip { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--lime); color: var(--ink); }
.vip h2 { max-width: 16ch; }
.vip p { max-width: 32rem; font-size: 1.2rem; font-weight: 500; margin-bottom: 1.6rem; }

.location { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.location-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.location p { font-size: 1.2rem; }
.location-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.storefront { width: 100%; max-width: 26rem; height: auto; justify-self: end; border-top: 6px solid var(--lime); }

footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 2rem max(1.25rem, calc((100% - 1180px) / 2)) 2.5rem; background: var(--ink-2); border-top: 1px solid rgba(255, 255, 255, .1); }
footer p { margin: 0; color: #c9cdc2; }
footer small { margin-left: auto; color: var(--muted); }

/* ---------- menu móvel ---------- */
.mobile-nav { display: none; }

/* ---------- lista (gaveta) ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .7); opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(100%, 27rem); display: flex; flex-direction: column; overflow-y: auto; background: var(--paper); color: var(--ink); transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; background: var(--ink); color: var(--white); border-bottom: 4px solid var(--lime); }
.drawer-head h2 { font-size: 2.3rem; text-transform: uppercase; margin: 0; }
.drawer-head button, .modal header button { width: 2.75rem; height: 2.75rem; border: 0; background: transparent; color: inherit; font-size: 2rem; line-height: 1; }
.empty { padding: 2.5rem 1.4rem; }
.empty h3 { font-size: 2rem; text-transform: uppercase; margin-bottom: .6rem; }
.empty button { min-height: 3rem; padding: .5rem 1.4rem; border: 0; background: var(--ink); color: var(--lime); font: 800 1.2rem/1 var(--display); text-transform: uppercase; }
.checkout { padding: 1.2rem 1.4rem 2rem; }
.lines { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.lines li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(0, 0, 0, .15); font-weight: 600; }
.qty { display: flex; align-items: center; gap: .6rem; flex: none; }
.qty button { width: 2.5rem; height: 2.5rem; border: 2px solid var(--ink); background: transparent; font-size: 1.3rem; line-height: 1; }
.qty button:hover { background: var(--ink); color: var(--lime); }
.qty b { min-width: 1.4rem; text-align: center; font-size: 1.15rem; }
fieldset { margin: 0 0 1.2rem; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: .6rem; font: 800 1.6rem/1 var(--display); text-transform: uppercase; }
fieldset label { display: block; margin-bottom: .8rem; font-weight: 600; font-size: .95rem; }
input, textarea { display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; border: 2px solid var(--ink); border-radius: 0; background: var(--white); font-weight: 400; }
textarea { min-height: 5rem; resize: vertical; }
.finish, .add-button { width: 100%; min-height: 3.4rem; border: 0; background: var(--ink); color: var(--lime); font: 800 1.4rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.finish:hover, .add-button:hover { background: var(--lime); color: var(--ink); outline: 2px solid var(--ink); outline-offset: -2px; }
.finish:disabled { opacity: .5; cursor: wait; }
.form-error { margin: .8rem 0 0; padding: .7rem .9rem; background: #ffe3e0; border-left: 4px solid #c8200e; color: #7a1007; font-weight: 600; }
.note { margin: .8rem 0 0; font-size: .9rem; color: #4d5247; }

/* ---------- escolha do item ---------- */
#picker { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1rem; }
.modal { position: relative; z-index: 2; width: min(100%, 34rem); max-height: 100%; overflow-y: auto; background: var(--paper); color: var(--ink); border-top: 6px solid var(--lime); }
#picker .overlay { z-index: 1; }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem .2rem; }
.modal h2 { font-size: 2.6rem; text-transform: uppercase; margin: 0; }
.picker-body { padding: 0 1.2rem; }
.picker-body h3 { margin: 1rem 0 .5rem; font-size: 1.4rem; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button { min-width: 3rem; min-height: 2.75rem; padding: .3rem .9rem; border: 2px solid var(--ink); background: transparent; font-weight: 600; }
.chips button:hover { background: rgba(0, 0, 0, .08); }
.chips button[aria-checked="true"] { background: var(--ink); color: var(--lime); }
.modal footer { display: block; padding: 1.2rem; background: transparent; border: 0; }

/* ---------- aviso ---------- */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; max-width: calc(100% - 2rem); padding: .8rem 1rem; background: var(--lime); color: var(--ink); font-weight: 600; transform: translate(-50%, 200%); transition: transform .25s; }
.toast.show { transform: translate(-50%, 0); }
.toast button { flex: none; padding: .3rem .8rem; border: 2px solid var(--ink); background: transparent; font-weight: 700; }

/* ---------- responsivo ---------- */
@media (max-width: 860px) {
  .topnav { display: none; }
  .cart-button { display: none; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3rem; }
  .shoe-run { justify-self: stretch; width: 100%; padding-top: 2.5rem; }
  .shoe-run::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 6px; transform: none; }
  .how ol, .location-grid { grid-template-columns: 1fr; }
  .storefront { justify-self: start; }
  body { padding-bottom: 4.5rem; }
  .mobile-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.3fr 1fr; background: var(--ink); border-top: 2px solid var(--lime); }
  .mobile-nav a, .mobile-nav button { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.5rem; border: 0; background: transparent; color: var(--white); font: 800 1.15rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
  .mobile-nav .mobile-list { background: var(--lime); color: var(--ink); }
  .mobile-list b { background: var(--ink); color: var(--lime); }
  .toast { bottom: 5.5rem; }
  footer small { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- refinos ---------- */
h1, h2, h3 { text-wrap: balance; }
.lead, .hero-copy > p, .vip p, .location p, .how li span { text-wrap: pretty; }
.cart-button b, .mobile-list b, .qty b, .shoe-run-grid button { font-variant-numeric: tabular-nums; }
.storefront { outline: 1px solid rgba(255, 255, 255, .1); outline-offset: -1px; }
.qty button { width: 2.75rem; height: 2.75rem; }
.button, .cart-button, .dept button, .finish, .add-button, .chips button, .shoe-run-grid button { transition-property: background-color, color, border-color, transform; transition-duration: .15s; }
.button:active, .cart-button:active, .dept button:active, .finish:active, .add-button:active, .chips button:active { transform: scale(.97); }

/* uma entrada só: os três títulos do topo sobem em sequência ao abrir a página */
@keyframes rise { from { opacity: 0; transform: translateY(.45em); } }
.hero h1 span { animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero h1 span:nth-child(2) { animation-delay: .12s; }
.hero h1 span:nth-child(3) { animation-delay: .24s; }

@media (max-width: 860px) {
  .dept-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(17rem, auto); }
  .dept, .dept-bolas, .dept-acessorios { grid-column: span 1; }
  .dept-tenis { grid-column: span 2; grid-row: span 1; min-height: 24rem; }
  .dept-acessorios { grid-column: span 2; }
  .dept-body { padding: 1rem; }
  .dept-range { font-size: 2.6rem; }
  .dept h3 { font-size: 1.8rem; }
}
@media (max-width: 520px) {
  .dept-grid { grid-template-columns: 1fr; }
  .dept, .dept-tenis, .dept-bolas, .dept-acessorios { grid-column: auto; min-height: 21rem; }
}

/* foto do campo bem escurecida atrás da régua de números */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("images/bolas.jpg") 70% 40% / cover no-repeat; opacity: .42; -webkit-mask-image: linear-gradient(to right, transparent 38%, #000 88%); mask-image: linear-gradient(to right, transparent 38%, #000 88%); }
@media (max-width: 860px) {
  .hero::before { opacity: .3; -webkit-mask-image: linear-gradient(to bottom, transparent 45%, #000 95%); mask-image: linear-gradient(to bottom, transparent 45%, #000 95%); }
}
