:root {
  --red: #e50914;
  --black: #080808;
  --paper: #f5f5f3;
  --white: #fff;
  --muted: #696966;
  --line: #d9d9d5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--black); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
body.no-scroll { overflow: hidden; }
button, input, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(8, 8, 8, .96);
  color: var(--white);
  border-bottom: 1px solid #252525;
}
.brand {
  display: inline-flex;
  width: 112px;
  height: 38px;
  overflow: hidden;
  background: url("assets/firekicks.jpeg") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  text-decoration: none;
}
.brand span { color: inherit; }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a, footer a { font-size: 13px; text-decoration: none; }
.site-header nav a:hover, footer a:hover { color: var(--red); }
.cart-button, .icon-button { border: 0; cursor: pointer; }
.cart-button { justify-self: end; padding: 8px 0; background: transparent; color: var(--white); font-weight: 700; }
.cart-button span { display: inline-grid; width: 24px; height: 24px; margin-left: 7px; place-items: center; background: var(--red); border-radius: 50%; font-size: 12px; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(500px, 72svh, 680px);
  padding: clamp(60px, 8vw, 100px) clamp(20px, 9vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.hero > :not(.hero-media) { position: relative; z-index: 1; }
.hero-media { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,.97) 0%, rgba(8,8,8,.82) 43%, rgba(8,8,8,.45) 100%), linear-gradient(0deg, rgba(8,8,8,.68), transparent 55%); }
.hero-image { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.04); will-change: transform; }
.hero-image.moving { animation: hero-pan 7s ease-out; }
@keyframes hero-pan { from { transform: scale(1.04) translateX(1%); } to { transform: scale(1.04) translateX(-1%); } }
.eyebrow { margin: 0 0 15px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; }
.hero h1, .section-heading h2, .about h2 { margin: 0; max-width: 950px; font-size: clamp(44px, 8vw, 98px); line-height: .93; letter-spacing: -.065em; }
.hero em { color: var(--red); font-style: normal; }
.hero > p:not(.eyebrow) { max-width: 540px; margin: 30px 0; color: #aaa; font-size: 17px; line-height: 1.65; }
.button { min-height: 50px; padding: 0 25px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 2px; background: var(--red); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; transition: background .18s, transform .18s; }
.button:hover { background: #c9000a; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .45; cursor: not-allowed; }

.catalog { padding: clamp(72px, 8vw, 120px) clamp(20px, 5vw, 72px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-heading h2, .about h2 { font-size: clamp(38px, 5vw, 66px); letter-spacing: -.055em; }
.catalog-tools { min-width: min(560px, 44vw); display: flex; align-items: end; justify-content: flex-end; gap: 18px; }
.search { flex: 1; }
.search input { width: min(330px, 100%); padding: 12px 2px; border: 0; border-bottom: 1px solid var(--black); background: transparent; outline: none; }
.search input:focus { border-color: var(--red); }
.sort select { max-width: 230px; padding: 11px 32px 11px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); color: var(--black); cursor: pointer; }
.sort select:hover, .sort select:focus { border-color: var(--black); }
.filters { display: flex; gap: 8px; margin-bottom: 30px; padding: 3px; overflow: auto; scrollbar-width: thin; }
.filter { padding: 10px 17px; border: 1px solid var(--line); border-radius: 2px; background: transparent; cursor: pointer; white-space: nowrap; }
.filter:hover { border-color: var(--black); }
.filter.active { border-color: var(--black); background: var(--black); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid transparent; background: var(--white); color: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.product-card:hover { border-color: var(--black); transform: translateY(-3px); }
.product-card:focus-visible { outline-offset: 2px; }
.product-media { position: relative; display: block; overflow: hidden; background: #e9e9e6; }
.product-card img { display: block; width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; transition: transform .35s; }
.product-card:hover img { transform: scale(1.025); }
.product-card.sold-out img { filter: grayscale(1); opacity: .7; }
.badge { position: absolute; top: 12px; left: 12px; padding: 6px 8px; background: var(--black); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.badge.sale { background: var(--red); }
.badge.stock { left: auto; right: 12px; }
.product-copy { display: flex; min-height: 126px; padding: 18px; flex-direction: column; align-items: flex-start; }
.product-copy small { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-name { margin: 8px 0 17px; font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.price { display: flex; align-items: baseline; gap: 9px; margin-top: auto; }
.price strong { font-size: 19px; }
.price del { color: var(--muted); font-size: 13px; }
.empty { padding: 70px 0; color: var(--muted); text-align: center; }

.about { padding: clamp(75px, 10vw, 140px) clamp(20px, 9vw, 140px); background: var(--red); color: #fff; }
.about .eyebrow { color: var(--black); }
.about > p:not(.eyebrow) { max-width: 650px; font-size: 18px; line-height: 1.7; }
.benefits { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.benefits span { padding: 12px 17px; border: 1px solid rgba(255,255,255,.6); }

.cart { position: fixed; z-index: 40; inset: 0 0 0 auto; width: min(460px, 100%); padding: 30px; display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 60px rgba(0,0,0,.16); transform: translateX(100%); transition: transform .25s ease; }
.cart.open { transform: none; }
.cart-head, .total { display: flex; align-items: center; justify-content: space-between; }
.cart-head h2 { margin: 0; font-size: 36px; letter-spacing: -.04em; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #eee; color: #111; font-size: 25px; }
.icon-button:hover { background: #ddd; }
.cart-items { flex: 1; padding: 24px 0; overflow: auto; }
.cart-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 13px; padding: 15px 0; align-items: center; border-bottom: 1px solid var(--line); }
.cart-row img { width: 78px; height: 78px; object-fit: cover; background: #eee; }
.cart-row h3 { margin: 0 0 5px; font-size: 14px; }
.cart-row p { margin: 0; color: var(--muted); font-size: 12px; }
.cart-copy { min-width: 0; }
.quantity { width: max-content; margin-top: 9px; display: grid; grid-template-columns: 28px 30px 28px; align-items: center; border: 1px solid var(--line); text-align: center; }
.quantity button { height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.quantity button:hover { background: #eee; }
.quantity button:disabled { opacity: .3; cursor: not-allowed; }
.quantity span { font-size: 12px; font-weight: 800; }
.cart-row .remove { padding: 8px 0; border: 0; background: transparent; color: var(--red); font-size: 12px; cursor: pointer; }
.cart-footer { padding-top: 20px; border-top: 1px solid var(--line); }
.total { margin-bottom: 18px; }
.total strong { font-size: 22px; }
.whatsapp { width: 100%; }
.cart-footer small { display: block; margin-top: 12px; color: var(--muted); text-align: center; }
.backdrop { position: fixed; z-index: 30; inset: 0; border: 0; background: rgba(0,0,0,.68); }

.product-dialog { width: min(920px, calc(100% - 28px)); max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 2px; }
.product-dialog::backdrop { background: rgba(0,0,0,.74); }
.dialog-close { position: absolute; z-index: 2; top: 18px; right: 18px; }
.detail { display: grid; grid-template-columns: 1.08fr .92fr; }
.detail > img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; background: #eee; }
.detail-copy { padding: 60px 40px 42px; }
.detail-copy h2 { margin: 10px 0 18px; font-size: clamp(30px, 4vw, 42px); line-height: 1; letter-spacing: -.05em; }
.detail-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.availability { padding-left: 11px; border-left: 3px solid var(--black); font-size: 13px; font-weight: 700; }
.availability.unavailable { border-color: var(--red); color: var(--red) !important; }
.sizes { display: flex; gap: 8px; margin: 18px 0 22px; flex-wrap: wrap; }
.size { min-width: 44px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 2px; background: #fff; cursor: pointer; }
.size:hover { border-color: var(--black); }
.size.active { border-color: var(--black); background: var(--black); color: #fff; }
.detail-copy .button { width: 100%; }

footer { padding: 40px clamp(20px,5vw,72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--black); color: #fff; }
footer p { color: #888; font-size: 12px; }
footer div { display: flex; gap: 18px; }
.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; }

@media (max-width: 950px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .site-header { grid-template-columns: 1fr 1fr; }
  .site-header nav { display: none; }
}
@media (max-width: 640px) {
  .site-header { height: 66px; padding: 0 16px; }
  .brand { width: 95px; height: 32px; }
  .hero { min-height: min(580px, calc(100svh - 66px)); padding-block: 60px; }
  .hero h1 { letter-spacing: -.055em; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .catalog-tools { min-width: 0; align-items: stretch; flex-direction: column; gap: 12px; }
  .search input { width: 100%; }
  .sort select { width: 100%; max-width: none; }
  .product-grid { gap: 8px; }
  .product-copy { min-height: 116px; padding: 13px; }
  .product-name { font-size: 14px; }
  .price { gap: 6px; flex-wrap: wrap; }
  .price strong { font-size: 16px; }
  .cart { padding: 22px 18px; }
  .cart-row { grid-template-columns: 66px 1fr auto; }
  .cart-row img { width: 66px; height: 72px; }
  .detail { display: block; }
  .detail > img { min-height: 0; aspect-ratio: 1 / .92; }
  .detail-copy { padding: 30px 20px; }
  footer { flex-direction: column; text-align: center; }
  footer div { justify-content: center; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image.moving { animation: none; }
}
