/* Huancayo — Equipamiento deportivo · Huancayo, Perú */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #0c1220;
  --ink-soft: #1a2744;
  --cream: #f6f1e8;
  --sand: #e8dfd0;
  --terracotta: #b84a28;
  --terracotta-deep: #8b2e14;
  --gold: #d4a017;
  --gold-light: #f4d58d;
  --mist: #6b7a8f;
  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 20px 50px rgba(12, 18, 32, 0.12);
  --shadow-hover: 0 28px 60px rgba(12, 18, 32, 0.18);
  --header-h: 76px;
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 90% -10%, rgba(212, 160, 23, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(184, 74, 40, 0.1), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--terracotta); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--terracotta-deep); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { left: 16px; top: 16px; }

.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(12, 18, 32, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 213, 141, 0.12);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}
.brand img, .brand .logo-mark { width: 48px; height: 48px; border-radius: 12px; }
.brand-text h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  opacity: 0.85;
  margin-top: 2px;
}

.nav-desktop {
  display: none;
  gap: 4px;
}
.nav-desktop a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.nav-desktop a:hover { background: rgba(255, 255, 255, 0.08); color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(244, 213, 141, 0.25);
  border-radius: 999px;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn-cart:hover { background: rgba(212, 160, 23, 0.28); transform: translateY(-1px); }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--terracotta);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--ink);
  padding: 1rem;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(244, 213, 141, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s;
  z-index: 999;
}
.nav-mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.nav-mobile a {
  color: white;
  padding: 14px 18px;
  font-weight: 600;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-mobile a:hover { background: rgba(255, 255, 255, 0.06); color: var(--gold-light); }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}

/* —— Hero —— */
main { padding-top: var(--header-h); }

.hero {
  position: relative;
  min-height: clamp(520px, 85vh, 720px);
  display: grid;
  align-items: end;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12, 18, 32, 0.75) 0%, rgba(12, 18, 32, 0.35) 50%, rgba(184, 74, 40, 0.25) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a017' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.2), transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(244, 213, 141, 0.2);
}

.hero h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero h2 em { font-style: italic; color: var(--gold-light); }

.hero-lead {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #e8a838);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(212, 160, 23, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(212, 160, 23, 0.45); }
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.btn-outline:hover { border-color: var(--gold-light); background: rgba(255, 255, 255, 0.06); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-stats dt { font-size: 1.75rem; font-weight: 800; color: var(--gold-light); }
.hero-stats dd { font-size: 0.8rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.08em; }

/* —— Sections —— */
.section { padding: 5rem 0; }
.section-alt { background: var(--white); }

.section-head {
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.section-head h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.section-head p { color: var(--mist); font-size: 1.05rem; }

/* —— Cards grid —— */
.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(12, 18, 32, 0.06);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(184, 74, 40, 0.12), rgba(212, 160, 23, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--mist); font-size: 0.95rem; }

/* —— Product preview —— */
.product-strip {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.preview-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(12, 18, 32, 0.06);
  transition: transform 0.3s var(--ease);
}
.preview-card:hover { transform: translateY(-4px); }
.preview-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: linear-gradient(180deg, #faf8f4, #f0ebe3);
  padding: 1rem;
}
.preview-body { padding: 1.25rem; }
.preview-body h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.preview-body .price { font-weight: 800; color: var(--terracotta); font-size: 1.1rem; }
.preview-body .cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mist);
  margin-bottom: 0.5rem;
}

/* —— About split —— */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
}

.about-showcase {
  aspect-ratio: 1;
  max-width: 380px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(12, 18, 32, 0.08);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.about-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(212, 160, 23, 0.04) 12px,
      rgba(212, 160, 23, 0.04) 24px
    );
  pointer-events: none;
}
.about-showcase-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}
.about-logo-large {
  width: min(200px, 55vw);
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 12px 28px rgba(12, 18, 32, 0.15));
}
.about-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta);
}
.about-since {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--mist);
}

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.wa-float:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
}
.wa-float i {
  font-size: 1.5rem;
}
@media (max-width: 480px) {
  .wa-float span { display: none; }
  .wa-float { padding: 16px; border-radius: 50%; }
}

.about-list { list-style: none; margin-top: 1.5rem; }
.about-list li {
  padding: 0.75rem 0;
  padding-left: 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--sand);
}
.about-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: 1rem;
}

/* —— Testimonials —— */
.testimonial {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--terracotta);
  box-shadow: 0 8px 24px rgba(12, 18, 32, 0.06);
}
.testimonial q {
  display: block;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}
.testimonial cite { font-style: normal; font-weight: 700; font-size: 0.9rem; }
.testimonial cite span { display: block; font-weight: 500; color: var(--mist); font-size: 0.8rem; }

/* —— Contact —— */
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--sand);
  border-radius: 12px;
  font: inherit;
  background: var(--white);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

.info-panel {
  background: var(--ink);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
}
.info-panel h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--gold-light);
}
.info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.info-item strong { display: block; color: var(--gold-light); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.info-item a { color: white; }
.info-item a:hover { color: var(--gold-light); }

.map-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  opacity: 0.85;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p { margin-top: 1rem; max-width: 36ch; font-size: 0.9rem; }
.footer-links h4 {
  color: var(--gold-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.75rem;
}

/* —— Catalog page extras —— */
.page-pad { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 4rem; }

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--mist);
  margin-bottom: 2rem;
}
.breadcrumbs a { font-weight: 600; }

.catalog-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}
.catalog-hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.search-bar {
  max-width: 480px;
  margin: 0 auto 2rem;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 16px 52px 16px 22px;
  border: 2px solid var(--sand);
  border-radius: 999px;
  font: inherit;
  background: var(--white);
}
.search-bar input:focus { outline: none; border-color: var(--terracotta); }
.search-bar button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  cursor: pointer;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.filter-chip {
  padding: 10px 18px;
  border: 2px solid var(--sand);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.advanced-filters {
  display: none;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--sand);
}
.advanced-filters.open { display: block; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(12, 18, 32, 0.06);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.product-img {
  height: 220px;
  background: linear-gradient(180deg, #faf8f4, #ebe6dc);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-in;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s;
}
.product-img img.loaded { opacity: 1; }

.product-body { padding: 1.25rem; }
.product-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  background: rgba(184, 74, 40, 0.12);
  color: var(--terracotta);
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.product-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.3; }
.product-desc { font-size: 0.85rem; color: var(--mist); margin-bottom: 0.75rem; }

.size-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.75rem; }
.size-btn {
  padding: 5px 10px;
  font-size: 0.72rem;
  border: 1px solid var(--sand);
  border-radius: 8px;
  background: var(--cream);
  cursor: pointer;
  transition: all 0.2s;
}
.size-btn.active, .size-btn:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.btn-add {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep));
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-add:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(184, 74, 40, 0.35); }
.btn-add.added { background: #1a6b45; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--mist);
}

/* Cart sidebar */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 32, 0.55);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.overlay.active { opacity: 1; visibility: visible; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: var(--white);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
}
.cart-panel.active { transform: translateX(0); }

.cart-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--sand);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-head h3 { font-size: 1.2rem; }
.cart-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--cream);
  cursor: pointer;
  font-size: 1.2rem;
}

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--mist); }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sand);
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--cream);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-foot {
  padding: 1.5rem;
  border-top: 1px solid var(--sand);
  background: var(--cream);
}
.cart-total { font-size: 1.5rem; font-weight: 800; color: var(--terracotta); text-align: center; margin: 0.5rem 0 1rem; }
.btn-whatsapp {
  width: 100%;
  padding: 14px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-whatsapp:hover { filter: brightness(1.05); }

.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 32, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.zoom-overlay.active { display: flex; }
.zoom-overlay img { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: 12px; }
.zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.back-top {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 500;
  box-shadow: var(--shadow);
}
.back-top.show { opacity: 1; visibility: visible; }

.product-counter { text-align: center; color: var(--mist); margin-bottom: 1.5rem; font-weight: 500; }

/* Legal pages */
.legal-page { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 4rem; max-width: 720px; }
.legal-page h1 { font-family: 'Instrument Serif', Georgia, serif; font-size: 2.5rem; margin-bottom: 1rem; }
.legal-page h2 { font-size: 1.2rem; margin: 2rem 0 0.75rem; color: var(--terracotta); }
.legal-page p, .legal-page li { margin-bottom: 0.75rem; color: var(--ink-soft); }
.legal-page ul { padding-left: 1.5rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: white;
  padding: 1.25rem 1.5rem;
  z-index: 3000;
  display: none;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { flex: 1; min-width: 200px; font-size: 0.9rem; }
.cookie-banner a { color: var(--gold-light); text-decoration: underline; }

/* Compatibilidad catálogo (clases JS) */
.producto-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(12, 18, 32, 0.06); box-shadow: var(--shadow); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.producto-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.producto-imagen { height: 220px; background: linear-gradient(180deg, #faf8f4, #ebe6dc); display: flex; align-items: center; justify-content: center; padding: 1rem; cursor: zoom-in; }
.producto-imagen img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.4s; }
.producto-imagen img.loaded { opacity: 1; }
.producto-info { padding: 1.25rem; }
.producto-categoria { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; background: rgba(184, 74, 40, 0.12); color: var(--terracotta); border-radius: 999px; margin-bottom: 0.5rem; }
.producto-nombre { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.3; }
.producto-descripcion { font-size: 0.85rem; color: var(--mist); margin-bottom: 0.75rem; }
.producto-tallas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.75rem; }
.talla-btn { padding: 5px 10px; font-size: 0.72rem; border: 1px solid var(--sand); border-radius: 8px; background: var(--cream); cursor: pointer; transition: all 0.2s; }
.talla-btn.active, .talla-btn:hover { background: var(--ink); color: white; border-color: var(--ink); }
.producto-precio { font-size: 1.35rem; font-weight: 800; color: var(--terracotta); margin-bottom: 0.75rem; }
.btn-agregar { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep)); color: white; border: none; border-radius: 999px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn-agregar:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(184, 74, 40, 0.35); }
.btn-agregar.agregado { background: #1a6b45; }
.sin-productos { grid-column: 1 / -1; text-align: center; padding: 4rem 2rem; color: var(--mist); }
.filtro-btn { padding: 10px 18px; border: 2px solid var(--sand); border-radius: 999px; background: var(--white); font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.filtro-btn:hover, .filtro-btn.active { background: var(--ink); border-color: var(--ink); color: white; }
.filtros-avanzados { display: none; background: var(--white); padding: 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; border: 1px solid var(--sand); }
.filtros-avanzados.active { display: block; }
.filtros-container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.filtros { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn-filtros-avanzados { padding: 10px 16px; background: var(--ink); color: white; border: none; border-radius: 999px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.carrito-sidebar { position: fixed; top: 0; right: 0; width: min(420px, 100%); height: 100vh; background: var(--white); z-index: 1002; transform: translateX(100%); transition: transform 0.35s var(--ease); display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15); }
.carrito-sidebar.active { transform: translateX(0); }
.carrito-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--sand); display: flex; justify-content: space-between; align-items: center; }
.cerrar-carrito { width: 40px; height: 40px; border: none; border-radius: 10px; background: var(--cream); cursor: pointer; }
.carrito-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.carrito-vacio { text-align: center; padding: 3rem 1rem; color: var(--mist); }
.carrito-item { display: flex; gap: 12px; padding: 1rem 0; border-bottom: 1px solid var(--sand); align-items: center; }
.carrito-item-imagen { width: 64px; height: 64px; border-radius: 10px; background: var(--cream); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.carrito-item-imagen img { width: 100%; height: 100%; object-fit: cover; }
.carrito-total { text-align: center; padding: 1rem; background: var(--cream); border-radius: 12px; margin-bottom: 1rem; }
.total-precio { font-size: 1.5rem; font-weight: 800; color: var(--terracotta); }
.btn-finalizar { width: 100%; padding: 14px; background: #25d366; color: white; border: none; border-radius: 999px; font-weight: 700; cursor: pointer; }
.zoom-container { position: fixed; inset: 0; background: rgba(12, 18, 32, 0.92); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out; }
.zoom-container.active { display: flex; }
.zoom-imagen { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: 12px; }
.cerrar-zoom { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border: none; border-radius: 50%; background: var(--terracotta); color: white; font-size: 1.5rem; cursor: pointer; }
.volver-arriba { position: fixed; bottom: 92px; right: 24px; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: white; border: none; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 500; }
.volver-arriba.show { opacity: 1; visibility: visible; }
.contador-productos { text-align: center; color: var(--mist); margin-bottom: 1.5rem; font-weight: 500; }
.grid-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
