/* VK cycling · tienda
   Identidad: negro VK + rojo racing, Saira (estrecha y en cursiva para titulares),
   y la inclinación de 12° de la banda racing del logo como gesto propio. */

:root {
  --ink: #16181b;
  --red: #e10600;
  --red-press: #b80500;
  --paper: #ffffff;
  --cement: #eceeef;
  --asphalt: #2b2f35;
  --mute: #5e656d;
  --line: #d9dcdf;
  --ok: #1d7a3e;
  --slant: 12deg;
  --cut: 10px; /* corte diagonal de botones y etiquetas */
  --wrap: 1240px;
  --radius: 2px;
  --font: 'Saira', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--mute); }
.small { font-size: .875rem; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 800; font-stretch: 72%; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-style: italic; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
h3 { font-size: 1.15rem; font-stretch: 85%; }
p { margin: 0 0 1em; }

/* ---------- Botones: paralelogramo con el ángulo del logo ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1.6rem;
  background: var(--red); color: #fff; border: 0; cursor: pointer;
  font-weight: 700; font-stretch: 85%; font-size: 1.05rem; text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: background-color .15s;
}
.btn:hover { background: var(--red-press); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: none; filter: drop-shadow(0 0 0 var(--ink)); background: var(--ink); }
.btn-ghost { background: var(--ink); }
.btn-ghost:hover { background: var(--asphalt); }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--line); color: var(--mute); cursor: not-allowed; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand img { width: 112px; height: auto; }
.search { display: flex; grid-column: 1 / -1; grid-row: 2; border: 2px solid var(--ink); background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; padding: .55rem .75rem; font-size: 1rem; background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--red); outline-offset: 1px; }
.search button { border: 0; background: var(--ink); color: #fff; width: 48px; display: grid; place-items: center; cursor: pointer; }
.search svg, .cart-link svg, .filters-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-link { grid-column: 3; position: relative; display: grid; place-items: center; width: 48px; height: 48px; color: var(--ink); }
.cart-count {
  position: absolute; top: 4px; right: 0; min-width: 22px; height: 20px; padding: 0 5px;
  background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.cats { background: var(--ink); }
.cats-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 0; padding-bottom: 0; }
.cats-inner::-webkit-scrollbar { display: none; }
.nav-link {
  flex: none; color: #fff; text-decoration: none; padding: .7rem .8rem; font-weight: 600; font-stretch: 85%;
  white-space: nowrap; border-bottom: 3px solid transparent;
}
.nav-link:hover { border-bottom-color: #fff; }
.nav-link.is-active { border-bottom-color: var(--red); }
.nav-link.is-deal { color: #fff; background: var(--red); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-left: 1.1rem; padding-right: 1.1rem; order: -1; }

@media (min-width: 820px) {
  .bar { grid-template-columns: auto minmax(0, 560px) 1fr; gap: 28px; }
  .brand img { width: 134px; }
  .search { grid-column: 2; grid-row: 1; }
  .cart-link { justify-self: end; }
}

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 8px; padding-top: 40px; padding-bottom: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); font-stretch: 64%; line-height: .95; max-width: 12ch; margin-bottom: .35em; }
.hero .lead { font-size: 1.15rem; max-width: 46ch; color: var(--asphalt); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.hero-art { position: absolute; right: -120px; bottom: -150px; width: 380px; opacity: .1; pointer-events: none; }
.hero-art img { width: 100%; animation: crank 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.hero-band { position: absolute; left: 0; bottom: 18px; width: 180px; }
@keyframes crank { from { transform: rotate(-120deg); } to { transform: rotate(0); } }
@media (min-width: 820px) {
  .hero-inner { grid-template-columns: 1.3fr 1fr; padding-top: 72px; padding-bottom: 96px; }
  .hero-art { position: static; width: 100%; max-width: 420px; justify-self: end; opacity: 1; }
  .hero-band { width: 305px; bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  * { scroll-behavior: auto !important; }
}

.shelf { padding-top: 40px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.shelf-head h2 { margin: 0; position: relative; padding-bottom: 10px; }
.shelf-head h2::after, .listing-head h1::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 5px;
  background: linear-gradient(90deg, var(--ink) 0 72%, transparent 72% 76%, var(--red) 76%);
  transform: skewX(calc(-1 * var(--slant)));
}
.shelf-head a { font-weight: 600; color: var(--red); text-decoration: none; white-space: nowrap; }
.shelf-head a:hover { text-decoration: underline; }

.cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cat-tiles a {
  display: flex; align-items: flex-end; min-height: 92px; padding: 14px 16px; text-decoration: none;
  background: var(--cement); font-weight: 800; font-stretch: 72%; font-style: italic; font-size: clamp(1.15rem, 5.4vw, 1.5rem); line-height: 1;
  position: relative; overflow: hidden; overflow-wrap: anywhere;
}
.cat-tiles a::before { content: ''; position: absolute; top: 0; right: 14px; width: 28px; height: 6px; background: var(--red); transform: skewX(calc(-1 * var(--slant))); }
.cat-tiles a:hover { background: var(--ink); color: #fff; }
@media (min-width: 820px) { .cat-tiles { grid-template-columns: repeat(4, 1fr); } .cat-tiles a { min-height: 130px; font-size: 1.9rem; } }

.perks { display: grid; gap: 20px; padding-top: 48px; padding-bottom: 56px; }
.perks h3 { margin-bottom: .25em; }
.perks p { color: var(--mute); margin: 0; }
@media (min-width: 820px) { .perks { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; } }
.card-link { display: block; text-decoration: none; }
.card-img { position: relative; aspect-ratio: 1; background: var(--cement); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.noimg { width: 100%; height: 100%; aspect-ratio: 1; background: var(--cement) url('/assets/brand/vk-10-banda-racing-negro.svg') center / 34% no-repeat; opacity: .5; }
.card-link:hover .card-title { text-decoration: underline; }
.badge-used { position: absolute; left: 0; bottom: 0; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; padding: .2rem .7rem .2rem .55rem; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.card-body { padding-top: 10px; }
.card-brand { margin: 0; font-size: .82rem; color: var(--mute); font-weight: 600; }
.card-title { font-size: 1rem; font-weight: 600; font-stretch: 100%; font-style: normal; line-height: 1.3; margin: .1rem 0 .35rem; }
.card-out { margin: .2rem 0 0; color: var(--mute); font-weight: 600; font-size: .9rem; }
.card.is-out .card-img { opacity: .55; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.price .now { font-weight: 800; font-stretch: 85%; font-size: 1.15rem; }
.price .before { color: var(--mute); font-size: .92rem; }
.price .msrp { color: var(--mute); font-size: .92rem; }
.price .msrp abbr { text-decoration: none; font-weight: 600; }
.price-big .msrp { font-size: 1.1rem; }
.tag-deal { background: var(--red); color: #fff; font-weight: 700; font-size: .8rem; padding: 0 .55rem; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.price-big .now { font-size: 2rem; }
.price-big .before { font-size: 1.1rem; }
.price-big .tag-deal { font-size: 1rem; padding: .1rem .7rem; }
.price:has(.tag-deal) .now { color: var(--red); }

/* ---------- Listados ---------- */
.listing { padding-top: 16px; padding-bottom: 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--mute); margin-bottom: 12px; }
.crumbs a { color: var(--mute); }
.listing-head h1 { position: relative; padding-bottom: 12px; margin-bottom: 12px; }
.listing-head p { color: var(--asphalt); max-width: 62ch; }
.listing-head.is-deal h1 { color: var(--red); }
.chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips a { display: block; white-space: nowrap; padding: .45rem .9rem; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chips a:hover { background: var(--ink); color: #fff; }
.listing-tools { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'filt count' 'sort sort'; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.count { grid-area: count; margin: 0; color: var(--mute); font-size: .92rem; justify-self: end; }
.filters-toggle { grid-area: filt; }
.sort { grid-area: sort; }
.sort select { flex: 1; min-width: 0; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort label { font-size: .9rem; color: var(--mute); }
.sort select { border: 1.5px solid var(--ink); padding: .4rem .5rem; background: #fff; border-radius: 0; }
.filters-toggle > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; padding: .45rem .8rem; border: 1.5px solid var(--ink); }
.filters-toggle > summary::-webkit-details-marker { display: none; }
.filters-toggle[open] > summary { background: var(--ink); color: #fff; }
.filters-toggle > .filters { position: fixed; inset: auto 0 0 0; max-height: 82vh; overflow: auto; z-index: 40; background: #fff; padding: 20px 16px 24px; border-top: 5px solid var(--ink); box-shadow: 0 -20px 60px rgba(22, 24, 27, .3); }
.filters-side { display: none; }
@media (min-width: 1040px) {
  .listing-tools { grid-template-columns: 1fr auto; grid-template-areas: 'count sort'; }
  .count { justify-self: start; }
  .sort select { flex: none; }
  .filters-toggle { display: none; }
  .listing-body { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
  .filters-side { display: block; }
}
.filters-head { display: flex; justify-content: space-between; align-items: baseline; }
.filters-head h2 { font-size: 1.3rem; }
.filters-head a { color: var(--red); font-weight: 600; font-size: .92rem; }
.fgroup { border: 0; padding: 0; margin: 0 0 18px; }
.fgroup legend { font-weight: 700; margin-bottom: 6px; font-stretch: 85%; font-size: 1.05rem; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin: 0; flex: none; }
.check small { margin-left: auto; color: var(--mute); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range input, .qty-row input { width: 100%; border: 1.5px solid var(--ink); padding: .45rem .6rem; border-radius: 0; }
.filters-side .btn-block { display: none; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 32px; }
.pager a { font-weight: 700; color: var(--red); }
.pager a[rel='next'] { justify-self: end; }

.empty { padding: 48px 0; max-width: 60ch; }

/* ---------- Ficha de producto ---------- */
.product { padding-top: 16px; padding-bottom: 56px; }
.product-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; } }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--cement); }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: none; width: 100%; aspect-ratio: 1; object-fit: contain; scroll-snap-align: center; mix-blend-mode: multiply; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs a { flex: none; width: 72px; background: var(--cement); border: 2px solid transparent; }
.thumbs a:hover, .thumbs a:focus-visible { border-color: var(--ink); }
.thumbs img { mix-blend-mode: multiply; }
.buybox h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-style: normal; font-stretch: 78%; margin-bottom: .4em; }
@media (min-width: 900px) { .buybox { position: sticky; top: 140px; } }
.tax { color: var(--mute); font-size: .88rem; margin: .2rem 0 1rem; }
.used-box { border-left: 5px solid var(--ink); background: var(--cement); padding: 12px 14px; margin-bottom: 16px; }
.used-box p { margin: 0 0 .3em; }
.used-box p:last-child { margin: 0; color: var(--asphalt); font-size: .94rem; }
.variants { border: 0; padding: 0; margin: 0 0 14px; }
.variants legend { font-weight: 700; margin-bottom: 8px; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: block; min-width: 52px; text-align: center; padding: .5rem .8rem; border: 1.5px solid var(--ink); font-weight: 600; }
.pill input:checked + span { background: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.pill.is-out span { color: var(--mute); border-color: var(--line); text-decoration: line-through; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.qty-row input { width: 84px; }
.btn-buy { min-height: 56px; font-size: 1.15rem; }
.added { min-height: 1.5em; margin: .6rem 0 0; font-weight: 600; color: var(--ok); }
.added a { color: var(--ink); }
.soldout { font-weight: 600; }
.delivery { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.delivery li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.delivery .low { color: var(--red); font-weight: 700; }
.product-info { display: grid; gap: 32px; margin-top: 48px; max-width: 80ch; }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--mute); text-transform: capitalize; }
.specs dd { margin: 0; font-weight: 600; }

/* ---------- Carrito ---------- */
.cart-page { padding-top: 24px; padding-bottom: 56px; }
.cart-layout { display: grid; gap: 28px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-row .thumb { background: var(--cement); aspect-ratio: 1; }
.cart-row .thumb img { mix-blend-mode: multiply; }
.cart-row h3 { font-size: 1rem; font-stretch: 100%; font-weight: 600; margin: 0 0 .2rem; }
.cart-row h3 a { text-decoration: none; }
.cart-row .opts { font-size: .9rem; color: var(--mute); margin: 0 0 .4rem; }
.cart-row .line-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; border: 1.5px solid var(--ink); }
.stepper button { width: 36px; height: 36px; border: 0; background: #fff; cursor: pointer; font-size: 1.2rem; }
.stepper output { min-width: 32px; display: grid; place-items: center; font-weight: 700; }
.remove { background: none; border: 0; color: var(--mute); text-decoration: underline; cursor: pointer; padding: 6px 0; font-size: .9rem; }
.cart-summary { background: var(--cement); padding: 20px; }
@media (min-width: 900px) { .cart-summary { position: sticky; top: 140px; } }
.delivery-choice { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; background: #fff; padding: 12px; border: 1.5px solid transparent; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--ink); }
.radio-card input { accent-color: var(--red); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.radio-card small { display: block; color: var(--mute); }
.radio-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.totals { margin: 0 0 4px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; font-variant-numeric: tabular-nums; }
.totals dd { margin: 0; font-weight: 600; }
.totals .grand { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; font-size: 1.25rem; font-weight: 800; }
.cart-warn { background: #fff; border-left: 5px solid var(--red); padding: 10px 12px; font-weight: 600; }

/* ---------- Textos legales ---------- */
.prose { max-width: 72ch; padding-top: 24px; padding-bottom: 56px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose li { margin-bottom: .3em; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #fff; padding-top: 40px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-brand p { color: #c9cdd1; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 28px; margin-top: 28px; border-top: 1px solid #3a3f46; color: #c9cdd1; font-size: .88rem; }
.footer-base .band { width: 110px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr; } .footer-links { grid-template-columns: 1fr 1fr; } }
