:root {
  --navy: #0a0a60;
  --navy-light: #14147a;
  --yellow: #ffff08;
  --bg: #0a0a60;
  --bg-alt: #ffffff;
  --card: #10105a;
  --text: #f5f6ff;
  --muted: #b7b8e8;
  --accent: #ffff08;
  --accent-text: #0a0a60;
  --whatsapp: #25d366;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

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

.header {
  background: var(--bg-alt);
  border-bottom: 3px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
}

.logo {
  height: 72px;
}

.whatsapp-link {
  background: var(--whatsapp);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 60px 20px 40px;
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--navy-light) 0%, transparent 65%);
  animation: hero-glow 6s ease-in-out infinite;
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--yellow);
}

@keyframes hero-glow {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  background: var(--yellow);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(255, 255, 8, 0.5);
  animation: cta-pulse 2.4s ease-in-out infinite;
}

.hero-cta:hover {
  filter: brightness(0.95);
}

.hero-cta::after {
  content: "↓";
  font-weight: 700;
}

@keyframes cta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 8, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(255, 255, 8, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 8, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta,
  .hero::before {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-title {
  margin: 40px 0 8px;
  font-size: 1.5rem;
  border-left: 4px solid var(--yellow);
  padding-left: 12px;
}

.category-note {
  margin: 0 0 20px;
  padding-left: 16px;
  color: var(--muted);
  font-size: .85rem;
  font-style: italic;
}

.delivery-banner {
  background: var(--navy-light);
  border: 1px solid var(--yellow);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 30px;
  font-size: .92rem;
  line-height: 1.5;
}

.delivery-note {
  margin-top: 16px;
  color: var(--yellow);
  font-size: .95rem;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  position: sticky;
  top: 76px;
  z-index: 5;
  background: var(--bg);
  padding: 10px 0;
}

.filter-btn {
  background: var(--navy-light);
  color: var(--text);
  border: 1px solid var(--navy-light);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.filter-btn:hover {
  border-color: var(--yellow);
}

.filter-btn.active {
  background: var(--yellow);
  color: var(--accent-text);
  border-color: var(--yellow);
}

.category-block {
  display: block;
}

.category-block.hidden {
  display: none;
}

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--navy-light);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}

.card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 14px;
  object-fit: cover;
}

.card img.match-nintendo-10 {
  aspect-ratio: 345 / 489;
  object-fit: cover;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.product-desc {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 10px;
}

.price {
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.qty-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--navy-light);
  background: var(--navy-light);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.qty-btn:hover {
  filter: brightness(1.2);
}

.qty-value {
  min-width: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.buy-btn {
  display: block;
  width: 100%;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s ease;
}

.buy-btn:hover {
  filter: brightness(0.9);
}

.buy-btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.reviews {
  padding: 20px 20px 10px;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.reviews-empty {
  color: var(--muted);
  font-size: .95rem;
}

.review-card {
  background: var(--card);
  border: 1px solid var(--navy-light);
  border-radius: var(--radius);
  padding: 18px;
}

.review-stars {
  color: var(--yellow);
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.review-comment {
  font-size: .93rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.review-author {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
}

.reviews-cta {
  margin-top: 26px;
  text-align: center;
  font-size: .95rem;
}

.reviews-cta a {
  color: var(--yellow);
  font-weight: 700;
}

.review-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .9rem;
}

.review-form input[type="text"],
.review-form textarea,
.review-form select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--navy-light);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.review-form textarea {
  min-height: 110px;
  resize: vertical;
}

.review-form button {
  width: 100%;
  background: var(--yellow);
  color: var(--accent-text);
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.review-form button:hover {
  filter: brightness(0.95);
}

.form-status {
  text-align: center;
  font-size: .95rem;
  min-height: 1.4em;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 30px 20px;
  border-top: 1px solid var(--navy-light);
  margin-top: 40px;
  font-size: .9rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  animation: social-float 3s ease-in-out infinite;
  transition: transform .2s ease, filter .2s ease;
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.08);
  filter: brightness(1.15);
}

.social-icon.instagram {
  background: radial-gradient(circle at 30% 110%, #ffdb73 0%, #fd5 15%, #ff543e 45%, #c837ab 70%, #7038c4 100%);
}

.social-icon.tiktok {
  background: #010101;
  animation-delay: .4s;
}

@keyframes social-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .social-icon {
    animation: none;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--whatsapp);
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  z-index: 20;
}
