:root {
  --sports-ink: #1C1917;
  --sports-red: #D97706;
  --sports-green: #D97706;
  --sports-gold: #F59E0B;
  --sports-paper: #FDF8F0;
  --sports-line: #E7DDD0;
  --sports-muted: #78716C;
}

* { box-sizing: border-box; }
body { margin: 0; background: #FEFDF8; color: var(--sports-ink); font-family: Inter, -apple-system, system-ui, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.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; }

.sports-intro { text-align: center; padding: 60px 20px 32px; background: linear-gradient(135deg, #FFF0E6 0%, #FFFBEB 100%); }
.sports-back { display: inline-flex; align-items: center; gap: 6px; color: #92400E; text-decoration: none; font-size: .88rem; font-weight: 500; margin-bottom: 20px; }
.sports-back:hover { text-decoration: underline; }
.sports-intro h1 { margin: 0 0 8px; color: #92400E; font: 700 2.2rem/1.2 "Playfair Display", Georgia, serif; letter-spacing: 0; }
.sports-intro__copy > p { max-width: 600px; margin: 0 auto 20px; color: #78716C; font-size: 1.05rem; line-height: 1.6; }
.sports-price-note { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border: 1px solid #E7DDD0; border-radius: 100px; color: #57534E; background: rgba(255,255,255,.8); font-size: .8rem; }

.catalog-shell { max-width: 1200px; margin: 0 auto; padding: 14px 20px 60px; }
.catalog-toolbar { padding: 0; background: transparent; }
.sport-tabs { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 0 14px; }
.sport-tabs button { flex: 0 0 auto; padding: 6px 14px; border: 1.5px solid #E7DDD0; border-radius: 100px; color: #78716C; background: #fff; font-size: .8rem; font-weight: 500; transition: all .2s; }
.sport-tabs button:hover { border-color: #92400E; color: #92400E; }
.sport-tabs button[aria-selected="true"] { border-color: #92400E; color: #fff; background: #92400E; }
.sport-tabs span { margin-left: 5px; color: inherit; opacity: .7; font-size: .75rem; }
.catalog-controls { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, 280px) auto; gap: 8px; }
.catalog-controls input, .catalog-controls select { width: 100%; min-height: 42px; padding: 9px 12px; border: 1.5px solid #E7DDD0; border-radius: 10px; color: #57534E; background: #fff; }
.catalog-controls input:focus, .catalog-controls select:focus { outline: 2px solid rgba(217,119,6,.25); border-color: #D97706; }
.size-guide-button { min-height: 42px; padding: 9px 14px; border: 1.5px solid #E7DDD0; border-radius: 10px; color: #92400E; background: #fff; font-weight: 600; }
.size-guide-button:hover { border-color: #92400E; }
.catalog-status { min-height: 46px; display: flex; align-items: center; justify-content: space-between; color: var(--sports-muted); font-size: .88rem; }

.sports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.sports-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #E7DDD0; border-radius: 16px; background: #fff; animation: sportsReveal .4s ease both; transition: transform .3s, box-shadow .3s; }
.sports-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(217,119,6,.12); }
.sports-card__image { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border: 0; background: #F5F3F1; cursor: pointer; }
.sports-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s; }
.sports-card:hover .sports-card__image img { transform: scale(1.05); }
.sports-card__badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; justify-content: space-between; align-items: start; }
.sports-badge { max-width: 72%; padding: 3px 10px; overflow: hidden; border: 1px solid #E7DDD0; border-radius: 100px; color: #57534E; background: rgba(255,255,255,.92); font-size: .72rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sports-badge--code { color: #92400E; background: #FEF3C7; }
.sports-card__body { flex: 1; min-width: 0; padding: 14px 18px 18px; display: flex; flex-direction: column; }
.sports-card__category { margin: 0 0 4px; color: #A8A29E; font-size: .78rem; font-weight: 500; text-transform: none; }
.sports-card h2 { min-height: 2.6em; margin: 0 0 10px; overflow-wrap: anywhere; color: #1C1917; font: 700 .98rem/1.3 Inter, sans-serif; }
.sports-features { margin: 0 0 14px; padding: 0; list-style: none; color: #78716C; font-size: .78rem; line-height: 1.45; }
.sports-features li { position: relative; padding-left: 13px; }
.sports-features li::before { content: ""; position: absolute; left: 0; top: .58em; width: 5px; height: 5px; border-radius: 50%; background: #D97706; }
.sports-variant-label { display: block; margin-top: auto; color: #78716C; font-size: .72rem; font-weight: 600; }
.sports-variant-select { width: 100%; min-height: 40px; margin-top: 5px; padding: 8px 10px; border: 1.5px solid #E7DDD0; border-radius: 8px; color: #57534E; background: #fff; }
.sports-card__footer { min-height: 66px; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sports-price { min-width: 0; }
.sports-price strong { display: block; font-size: 1.18rem; overflow-wrap: anywhere; }
.sports-price small { display: block; margin-top: 3px; color: #A8A29E; font-size: .72rem; line-height: 1.3; }
.sports-add { flex: 0 0 auto; min-width: 86px; min-height: 38px; padding: 9px 16px; border: 0; border-radius: 10px; color: #fff; background: #D97706; font-size: .82rem; font-weight: 600; transition: background .2s, transform .2s; }
.sports-add:hover { background: #B45309; transform: scale(1.04); }
.sports-qty { display: flex; align-items: center; border: 2px solid #D97706; border-radius: 10px; overflow: hidden; background: #FFF7ED; }
.sports-qty button { width: 34px; height: 34px; border: 0; color: #92400E; background: transparent; font-size: 1.1rem; font-weight: 700; }
.sports-qty button:hover { background: #FEECC8; }
.sports-qty span { min-width: 28px; text-align: center; color: #92400E; font-weight: 700; }
.catalog-empty { grid-column: 1 / -1; padding: 70px 20px; text-align: center; color: var(--sports-muted); border: 1px dashed var(--sports-line); }

.sports-basket-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 900; display: none; align-items: center; justify-content: space-between; padding: 14px 20px; color: #fff; background: #1C1917; box-shadow: 0 -4px 20px rgba(0,0,0,.2); }
.sports-basket-bar.visible { display: flex; }
.sports-basket-bar__info { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; }
.sports-basket-bar__info > span:first-child { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #D97706; font-size: .78rem; font-weight: 700; }
.sports-basket-bar button { padding: 8px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; color: #fff; background: transparent; font-size: .82rem; }
.basket-overlay { position: fixed; inset: 0; z-index: 950; display: none; background: rgba(0,0,0,.5); }
.basket-overlay.open { display: block; }
.sports-basket { position: fixed; top: 0; right: -400px; bottom: 0; z-index: 960; width: 380px; max-width: 90vw; display: flex; flex-direction: column; background: #fff; transition: right .3s ease; box-shadow: -4px 0 24px rgba(0,0,0,.15); }
.sports-basket.open { right: 0; }
.sports-basket__header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #E7DDD0; }
.sports-basket__header h2 { margin: 0; color: #1C1917; font: 700 1.2rem/1.2 "Playfair Display", serif; }
.sports-basket__header button, .size-dialog__header button, .image-dialog button { width: 40px; height: 40px; border: 0; color: var(--sports-ink); background: transparent; font-size: 1.8rem; }
.sports-basket__items { flex: 1; overflow: auto; padding: 16px 20px; }
.basket-empty { padding: 70px 20px; text-align: center; color: var(--sports-muted); }
.basket-line { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F5EFE6; }
.basket-line img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #FDF8F0; }
.basket-line h3 { margin: 0 0 4px; font-size: .88rem; line-height: 1.3; }
.basket-line p { margin: 2px 0; color: var(--sports-muted); font-size: .72rem; }
.basket-line strong { display: block; margin-top: 6px; font-size: .84rem; }
.basket-line__controls { display: flex; align-items: center; gap: 6px; }
.basket-line__controls { border: 1.5px solid #E7DDD0; border-radius: 8px; overflow: hidden; }
.basket-line__controls button { width: 30px; height: 28px; border: 0; color: #57534E; background: #fff; }
.basket-line__controls span { min-width: 18px; text-align: center; font-size: .8rem; font-weight: 800; }
.sports-basket__footer { padding: 16px 20px; border-top: 1px solid #E7DDD0; background: #fff; }
.sports-basket__total { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: #1C1917; font-size: 1.05rem; font-weight: 700; }
.sports-basket__total small { display: block; color: #A8A29E; font-size: .75rem; font-weight: 400; }
.sports-whatsapp { min-height: 48px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #25D366; font-weight: 600; text-decoration: none; }
.sports-whatsapp:hover { background: #1DA851; }

.size-dialog, .image-dialog { width: min(720px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 8px; color: var(--sports-ink); background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .28); }
.size-dialog::backdrop, .image-dialog::backdrop { background: rgba(15, 20, 31, .7); }
.size-dialog__header { padding: 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--sports-line); }
.size-dialog__header p { margin: 0 0 4px; color: var(--sports-red); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.size-dialog__header h2 { margin: 0; font-family: "Playfair Display", serif; }
.size-table-wrap { padding: 18px; overflow: auto; }
.size-dialog table { width: 100%; border-collapse: collapse; }
.size-dialog th, .size-dialog td { padding: 10px; text-align: left; border-bottom: 1px solid var(--sports-line); }
.size-dialog th { color: #fff; background: #92400E; }
.size-dialog__note { margin: 0; padding: 0 18px 18px; color: var(--sports-muted); font-size: .8rem; }
.image-dialog { position: fixed; inset: auto; top: 50%; left: 50%; width: min(980px, calc(100vw - 28px)); height: calc(100vh - 40px); height: calc(100dvh - 40px); max-width: none; max-height: none; margin: 0; overflow: hidden; background: #fff; transform: translate(-50%, -50%); }
.image-dialog[open] { display: grid; place-items: center; }
.image-dialog button { position: absolute; z-index: 2; color: #fff; }
.image-dialog .image-dialog__close { width: 44px; height: 44px; top: 10px; right: 10px; z-index: 3; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; color: #fff; background: rgba(28, 25, 23, .88); box-shadow: 0 2px 10px rgba(0, 0, 0, .28); line-height: 1; }
.image-dialog .image-dialog__close:hover { background: #1C1917; }
.image-dialog .image-dialog__nav { width: 44px; height: 56px; top: 50%; border-radius: 4px; background: rgba(0, 0, 0, .55); transform: translateY(-50%); }
.image-dialog .image-dialog__nav:hover { background: rgba(0, 0, 0, .78); }
.image-dialog__nav--previous { left: 8px; }
.image-dialog__nav--next { right: 8px; }
.image-dialog__nav[hidden], .image-dialog__count[hidden] { display: none; }
.image-dialog__count { position: absolute; bottom: 10px; left: 50%; margin: 0; padding: 4px 9px; border-radius: 4px; color: #fff; background: rgba(0, 0, 0, .65); font-size: .75rem; font-weight: 700; transform: translateX(-50%); }
.image-dialog img { width: 100%; height: 100%; min-width: 0; min-height: 0; display: block; object-fit: contain; }

@keyframes sportsReveal { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 760px) {
  .sports-intro { padding: 40px 18px 28px; }
  .sports-intro h1 { font-size: 1.85rem; }
  .catalog-shell { padding: 14px 14px 70px; }
  .catalog-controls { grid-template-columns: 1fr; }
  .sports-grid { grid-template-columns: 1fr; }
  .sports-card h2 { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}