:root {
  --green: #00e676;
  --green-dark: #00b35a;
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --border: #2a2a2a;
  --text: #ffffff;
  --text2: #aaaaaa;
  --text3: #666666;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon { font-size: 1.4rem; }

.logo-text {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text);
}

.logo-accent { color: var(--green); }

.header-search {
  flex: 1;
  position: relative;
  max-width: 500px;
}

.header-search input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 42px 10px 16px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.header-search input:focus { border-color: var(--green); }
.header-search input::placeholder { color: var(--text3); }

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}

.header-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s;
}

.header-whatsapp:hover { background: var(--green-dark); }

/* HERO */
.hero {
  background: linear-gradient(135deg, #0d1a0d 0%, #0a0a0a 50%, #0d0d1a 100%);
  padding: 72px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,230,118,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.3);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-accent { color: var(--green); }

.hero p {
  color: var(--text2);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 28px;
}

.stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.stat span {
  font-size: 0.75rem;
  color: var(--text2);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* CATEGORIES */
.categories-section {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 90;
}

.categories {
  display: flex;
  gap: 4px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories::-webkit-scrollbar { display: none; }

.cat-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text2);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

.cat-btn:hover {
  background: var(--bg3);
  color: var(--text);
  border-color: var(--border);
}

.cat-btn.active {
  background: var(--green);
  color: #000;
  font-weight: 700;
  border-color: var(--green);
}

/* PRODUCTS */
.products-section { padding: 32px 0 64px; }

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  color: var(--text2);
  font-size: 0.9rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text2);
  user-select: none;
}

.toggle-label input { display: none; }

.toggle-track {
  width: 40px;
  height: 22px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: var(--text3);
  border-radius: 50%;
  transition: all 0.2s;
}

.toggle-label input:checked + .toggle-track {
  background: var(--green);
  border-color: var(--green);
}

.toggle-label input:checked + .toggle-track::after {
  left: calc(100% - 17px);
  background: #000;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* PRODUCT CARD */
.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,230,118,0.3);
  box-shadow: 0 12px 40px rgba(0,230,118,0.1);
}

.card-jersey {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jersey-visual {
  width: 90px;
  height: 100px;
  position: relative;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
}

.jersey-svg {
  width: 100%;
  height: 100%;
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f5d800;
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.card-body {
  padding: 14px;
}

.card-league {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
}

.card-wa-btn {
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.2);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.card-wa-btn:hover {
  background: var(--green);
  color: #000;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  margin: auto;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  .modal { flex-direction: row; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all 0.15s;
}

.modal-close:hover { background: var(--border); color: var(--text); }

.modal-jersey {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .modal-jersey {
    width: 220px;
    height: auto;
    min-height: 280px;
  }
}

.modal-jersey .jersey-visual { width: 120px; height: 140px; }

.modal-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.modal-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.modal-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.badge-retro { background: #f5d800; color: #000; }
.badge-modern { background: rgba(0,230,118,0.15); color: var(--green); }

.modal-info h2 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}

.modal-info p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
}

.modal-sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.size-chip {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
}

.modal-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--green);
}

.modal-actions { display: flex; flex-direction: column; gap: 8px; }

.btn-wa-modal {
  display: block;
  background: var(--green);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-wa-modal:hover { background: var(--green-dark); }

.modal-hint {
  font-size: 0.78rem;
  color: var(--text3);
  text-align: center;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  z-index: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(37,211,102,0.6);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* FOOTER */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 20px;
}

@media (min-width: 600px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer-brand .logo-text {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  margin: 8px 0;
}

.footer-brand p {
  color: var(--text2);
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.7;
}

.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 8px; }

.footer-links h4, .footer-contact h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--green); }

.footer-contact p {
  color: var(--text2);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  color: var(--text3);
  font-size: 0.82rem;
}

/* CART ICON */
.cart-icon-btn {
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.cart-icon-btn:hover { border-color: var(--green); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--green);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CART OVERLAY */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
}
.cart-overlay.open { display: block; }

/* CART DRAWER */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-header h3 { font-size: 1rem; font-weight: 700; }

.cart-close {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all 0.15s;
}
.cart-close:hover { background: var(--border); color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text2);
}
.cart-empty span { font-size: 2.5rem; display: block; margin-bottom: 12px; }

.cart-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.cart-item-meta { font-size: 0.78rem; color: var(--green); }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.qty-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.qty-btn:hover { border-color: var(--green); color: var(--green); }

.qty-num { font-size: 0.9rem; font-weight: 700; min-width: 18px; text-align: center; }

.remove-btn {
  background: transparent;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px;
  transition: color 0.15s;
  font-family: inherit;
}
.remove-btn:hover { color: #ff4444; }

.cart-footer {
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 800;
}
.cart-total-row span:last-child { color: var(--green); }

.cart-checkout-btn {
  width: 100%;
  background: var(--green);
  color: #000;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.cart-checkout-btn:hover { background: var(--green-dark); }
.cart-checkout-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* SIZE CHIP SELECTED */
.size-chip {
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.size-chip:hover { border-color: var(--green); color: var(--text); }
.size-chip.selected { background: var(--green); border-color: var(--green); color: #000; font-weight: 800; }

/* ADD TO CART BUTTON */
.btn-add-cart {
  display: block;
  width: 100%;
  background: var(--green);
  color: #000;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background 0.2s;
}
.btn-add-cart:hover { background: var(--green-dark); }

/* SHAKE ANIMATION */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
.shake { animation: shake 0.4s ease; }

/* PAYMENT BANNER */
.payment-banner {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90vw;
  text-align: center;
}
.payment-banner.success { background: var(--green); color: #000; }
.payment-banner.failure { background: #ff4444; color: #fff; }
.payment-banner.pending { background: #f5d800; color: #000; }

/* NO RESULTS */
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text2);
}

.no-results span { font-size: 3rem; display: block; margin-bottom: 16px; }
.no-results h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text); }

/* RESPONSIVE */
@media (max-width: 600px) {
  .header-inner { gap: 12px; }
  .header-whatsapp span:first-child + span { display: none; }
  .header-whatsapp { padding: 9px 12px; }
  .hero { padding: 48px 20px; }
  .stat { padding: 12px 18px; }
  .stat strong { font-size: 1.3rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px; }
  .card-name { font-size: 0.85rem; }
  .card-jersey { height: 140px; }
  .jersey-visual { width: 70px; height: 80px; }
}
