:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --primary: #7c3aed;
  --primary-2: #a78bfa;
  --border: #e5e7eb;
  --ok: #059669;
  --warn: #f59e0b;
  --topbar-h: 72px;
  --hero-h: 220px;
  --page-gap: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

body > main,
body > .layout {
  flex: 1 0 auto;
}

body > footer {
  flex-shrink: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #0f172a;
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--topbar-h);
  width: 100%;
  box-sizing: border-box;
}

.topbar-clean {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  min-height: 64px;
  padding: 0.7rem 1.2rem;
}

/* Tienda: cabecera + franja promo pegadas al hacer scroll */
.shop-sticky-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
}

.shop-sticky-head .topbar-clean {
  position: relative;
  top: auto;
  z-index: 1;
}

.topbar-clean-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-left {
  position: relative;
  justify-self: start;
}

.topbar-right {
  justify-content: flex-end;
  justify-self: end;
  gap: 0.6rem;
}

.topbar-account-wrap {
  position: relative;
}

.topbar-nav-text {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
  min-width: 0;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.topbar-link {
  border: 0;
  background: transparent;
  color: #111827;
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.2rem;
}

.topbar-link:hover {
  opacity: 0.72;
}

.topbar-brand-text {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.topbar-auth-link {
  font-family: Inter, system-ui, sans-serif;
}

.topbar-user-link {
  border: 0;
  background: transparent;
  color: #111827;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.topbar-user-link:hover {
  background: #f3f4f6;
}

.topbar-bag-link {
  border: 0;
  background: transparent;
  color: #111827;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
}

.topbar-bag-link:hover {
  background: #f3f4f6;
}

.promo-strip {
  width: 100%;
  background: #000000;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-strip-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 0.8rem;
  text-align: center;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  height: 52px;
  width: 52px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: #fde68a;
}

@media (max-width: 720px) {
  .brand-logo { height: 42px; width: 42px; }
  .brand-tag { font-size: 0.65rem; padding: 0.15rem 0.4rem; }
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.account-menu-wrap {
  position: relative;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.24);
  padding: 0.35rem;
  z-index: 20;
}

.account-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  text-align: left;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.account-item:hover {
  background: #f3f4f6;
}

.account-item.danger {
  color: #b91c1c;
}

.topbar-menu-toggle {
  display: none;
}

.topbar-nav-backdrop {
  display: none;
}

.topbar-clean .topbar-account-wrap {
  position: relative;
  z-index: 100;
}

.topbar-clean .account-dropdown {
  z-index: 110;
}

.hero {
  min-height: var(--hero-h);
  margin: 1rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(120deg, #1e1b4b 0%, #6d28d9 50%, #312e81 100%);
  color: white;
  display: flex;
  align-items: center;
  padding: 1.5rem;
}

.hero-content h1 {
  margin: 0.25rem 0 0.5rem;
}

.tag {
  font-size: 0.85rem;
  color: #ddd6fe;
}

/* Carrusel del hero */
.hero-carousel {
  position: relative;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 1.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 6s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

/* Slide 1: confianza — siluetas con vestido (encuadre cuerpo / piernas en banner bajo) */
.hero-slide-1 {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.52) 0%, rgba(30, 27, 75, 0.58) 100%),
    url('https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1920&q=82');
  background-position: center 30%;
}

/* Slide 2: PRIMAVERA - 10% descuento, fondo floral primaveral */
.hero-slide-2 {
  background-image:
    linear-gradient(135deg, rgba(236, 72, 153, 0.45) 0%, rgba(132, 204, 22, 0.45) 100%),
    url('https://images.unsplash.com/photo-1490750967868-88aa4486c946?auto=format&fit=crop&w=1920&q=80');
}

/* Slide 3: Descuentos fin de verano */
.hero-slide-3 {
  background-image:
    linear-gradient(135deg, rgba(217, 70, 239, 0.38) 0%, rgba(30, 64, 175, 0.55) 100%),
    url('https://images.unsplash.com/photo-1445205170230-053b83016050?auto=format&fit=crop&w=1920&q=80');
}

.hero-slide .hero-content {
  max-width: 720px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-slide .hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  text-shadow: none;
}

.hero-slide .hero-tag-light {
  background: rgba(255, 255, 255, 0.85);
  color: #b91c1c;
  border-color: rgba(255, 255, 255, 0.9);
}

.hero-slide .hero-tag-amber {
  background: rgba(251, 191, 36, 0.92);
  color: #1f2937;
  border-color: rgba(251, 191, 36, 0.95);
}

.hero-title {
  margin: 0.7rem 0 0.4rem;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.hero-title-xl {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 0 0 #fff;
}

.hero-sub {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  opacity: 0.95;
}

.hero-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.15);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
  max-width: 100%;
}

.sidebar,
.products {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sidebar h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}

.sidebar h3,
.sidebar h4 {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
}

.products {
  min-height: 0;
}

.sidebar label,
.form-grid label,
.profile-grid > label,
.auth-form > label,
.upload-grid > label,
.upload-field,
section[id$="Section"] > label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.6rem;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-grid > label,
.auth-form > label,
.upload-grid > label,
.upload-field {
  margin: 0;
}

.auth-form > label.toggle-row,
.profile-grid > label.toggle-row {
  flex-direction: row;
  align-items: center;
  text-transform: none;
  font-weight: 500;
  letter-spacing: normal;
  font-size: 0.95rem;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
}

.auth-form > label.toggle-row:hover,
.profile-grid > label.toggle-row:hover {
  background: #f1f5f9;
}

.auth-form > label.profile-section-title-row {
  text-transform: none;
  font-weight: 600;
  letter-spacing: normal;
  font-size: 0.95rem;
  color: var(--ink);
}

.country-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.chip.active {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #4c1d95;
  font-weight: 600;
}

.cat-pill {
  display: inline-block;
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  color: #4c1d95;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  vertical-align: middle;
}

input,
select,
textarea {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  width: 100%;
}

input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: #cbd5e1;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
  background: #fff;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:disabled,
select:disabled,
textarea:disabled {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
  cursor: pointer;
}

input[type="file"] {
  padding: 0.45rem;
  background: #f8fafc;
  cursor: pointer;
}

input[type="date"] {
  font-family: inherit;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.products .section-head {
  justify-content: center;
}

.limited-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.03em;
}

.trust-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 0.8rem;
}

.trust-banner > * {
  margin: 0 !important;
}

.spain-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 0.8rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 50%, #f0f9ff 100%);
  border: 1px solid #fecaca;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #b91c1c;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.payments-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 60%, #eff6ff 100%);
  border: 1px solid #bae6fd;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #075985;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.payments-banner-text {
  white-space: nowrap;
}

.payment-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
  justify-content: center;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 0.45rem;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  position: relative;
}

.payment-stripe {
  background: #635bff;
  border-color: #635bff;
  color: #ffffff;
  padding: 0 0.6rem;
}

.payment-stripe .stripe-text {
  font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: -0.3px;
  text-transform: lowercase;
  line-height: 1;
  color: #ffffff;
}

.payment-visa {
  background: #1a1f71;
  border-color: #1a1f71;
  color: #ffffff;
  font-style: italic;
  font-family: Arial, Helvetica, sans-serif;
  padding: 0 0.55rem;
}

.payment-visa .visa-text {
  font-weight: 900;
  letter-spacing: 1px;
}

.payment-mastercard {
  background: #ffffff;
  border-color: #e2e8f0;
  width: 38px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.mc-circle {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.mc-red {
  background: #eb001b;
  margin-right: -5px;
}

.mc-yellow {
  background: #f79e1b;
  opacity: 0.85;
  mix-blend-mode: multiply;
}

.payment-amex {
  background: #2e77bb;
  border-color: #2e77bb;
  color: #ffffff;
  letter-spacing: 1px;
}

.spain-banner-text {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.spain-banner-flag {
  width: 26px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.spain-banner-icon {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .trust-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .spain-banner {
    font-size: 0.85rem;
    padding: 0.45rem 0.8rem;
  }
  .spain-banner-flag {
    width: 22px;
  }
  .payments-banner {
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
    border-radius: 14px;
  }
  .payments-banner-text {
    white-space: normal;
    text-align: center;
    width: 100%;
  }
  .payment-badges {
    width: 100%;
  }
  .payment-badge {
    height: 20px;
    font-size: 0.65rem;
  }
  .payment-stripe svg {
    height: 12px;
  }
  .payment-mastercard {
    width: 34px;
  }
  .mc-circle {
    width: 12px;
    height: 12px;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

/* Catalogo tienda: 3 columnas (sidebar se mantiene) */
.grid.grid-catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .grid.grid-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .grid.grid-catalog {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.card:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

.card .share-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
  padding: 0;
}

.card .share-btn:hover {
  background: #7c3aed;
  color: #fff;
  transform: scale(1.05);
}

.card .share-btn svg {
  pointer-events: none;
}

/* Misma proporcion visual que la home (2:1 ancho x alto vertical) */
.card-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #ede9fe;
}

.card-media-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #ede9fe;
}

.card-media-shell > .card-image,
.card-media-shell > video.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card .home-offer-badge {
  z-index: 6;
  top: 0.45rem;
  right: 2.75rem;
  left: auto;
}

.card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #ede9fe;
}

/* Las imagenes dentro de una galeria se superponen con fade */
.card-gallery .card-image {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-gallery .card-image.active {
  opacity: 1;
  pointer-events: auto;
}

.card-gallery video.card-image {
  object-fit: cover;
}

.card-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.card-gallery-arrow:hover {
  background: rgba(15, 23, 42, 0.78);
  transform: translateY(-50%) scale(1.05);
}

.card-gallery-arrow.prev { left: 8px; }
.card-gallery-arrow.next { right: 8px; }

.card-gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.card-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.card-gallery-dot.active {
  background: #fff;
  transform: scale(1.25);
}

.card-body {
  padding: 0.75rem;
  text-align: right;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  text-align: center;
  width: 100%;
}

.sidebar .sidebar-refresh-btn {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.35rem;
}

.meta {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 0.35rem;
}

.variant-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.4rem 0;
}

.variant-col-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.card-size-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-col-talla {
  align-self: stretch;
  text-align: right;
}

.variant-col-talla .variant-col-label {
  text-align: right;
}

.variant-col-talla .card-size-btn-row {
  justify-content: flex-end;
}

.variant-size-btn {
  min-width: 52px;
  min-height: 48px;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1.15;
  font-family: inherit;
}

.variant-size-btn:hover {
  border-color: #cbd5e1;
}

.variant-size-btn.is-selected {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.variant-select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  background: #fff;
}

.flag-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.25rem 0;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.45rem;
}

.price-old {
  margin: 0;
  color: #dc2626;
  text-decoration: line-through;
  font-weight: 700;
  opacity: 0.95;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.badge.en_almacen {
  background: #d1fae5;
  color: var(--ok);
}

.badge.vendido {
  background: #fee2e2;
  color: #b91c1c;
}

.badge.en_devolucion {
  background: #fef3c7;
  color: var(--warn);
}

.badge.roto {
  background: #e5e7eb;
  color: #334155;
}

.btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.62rem 1.05rem;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  line-height: 1.2;
}

.btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Boton bolsa de la cabecera */
.btn-bag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
}

.btn-bag .bag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.btn-bag .bag-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  letter-spacing: 0;
  transition: transform 0.2s ease;
}

.btn-bag .bag-count.empty {
  display: none;
}

.btn-bag:hover .bag-count {
  transform: scale(1.08);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}

.btn-dark {
  background: #111827;
  border-color: #111827;
  color: white;
}

.btn-dark:hover {
  background: #1f2937;
  border-color: #1f2937;
}

.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.admin-row-inactive {
  opacity: 0.62;
  background: #f1f5f9;
}

.admin-row-inactive strong { color: #475569; }

.card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.card-actions .add-to-cart-btn {
  width: 100%;
  box-sizing: border-box;
}

.cart-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(380px, calc(100vw - 2rem));
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
  border: 1px solid #1e293b;
  padding: 0.8rem;
  z-index: 12;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-head-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-close-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 30% 30%, #334155 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.35);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.cart-close-btn:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.08);
}

.shipping-info {
  margin: 0.5rem 0;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.cart-items {
  max-height: 180px;
  overflow: auto;
  margin: 0.6rem 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid #1e293b;
}

.cart-item p {
  margin: 0;
  font-size: 0.88rem;
}

.qty-btn {
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.remove-btn {
  border: 0;
  background: transparent;
  color: #fca5a5;
  cursor: pointer;
}

.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.open-cart-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.55);
  background: linear-gradient(140deg, #7c3aed 0%, #4338ca 50%, #0f172a 100%);
  color: #f8fafc;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 12;
  box-shadow: 0 12px 30px rgba(76, 29, 149, 0.4);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.open-cart-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 34px rgba(76, 29, 149, 0.5);
  filter: saturate(1.06);
}

.auth-panel {
  width: min(620px, 100%);
}

#itemFormModal .modal-panel {
  width: min(760px, 100%);
}

.auth-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0.2rem 0 1.1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
}

.auth-tabs .btn {
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.auth-tabs .btn:hover {
  background: #f1f5f9;
  color: var(--ink);
}

.auth-tabs .btn.btn-primary {
  background: #ede9fe;
  color: #4c1d95;
  border-color: #c4b5fd;
  box-shadow: none;
  transform: none;
}

.auth-tabs .btn.btn-primary:hover {
  background: #ddd6fe;
  border-color: #a78bfa;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form button[type="submit"],
.auth-form .checkout-actions {
  margin-top: 0.4rem;
}

.auth-form > button[type="submit"],
.auth-form > button.btn {
  justify-self: end;
  width: auto;
  min-width: 14rem;
}

@media (max-width: 600px) {
  .auth-form > button[type="submit"],
  .auth-form > button.btn {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }
}

.profile-section-title {
  margin: 1.2rem 0 0.7rem;
  color: #4c1d95;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

.profile-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
}

.profile-section-title:first-child {
  margin-top: 0.2rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin-bottom: 0.4rem;
}

@media (max-width: 720px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--ink);
  flex-direction: row;
  font-weight: 500;
  cursor: pointer;
}

.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.icon-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
}

.icon-btn:hover {
  background: #f3f4f6;
}

.checkout-panel {
  width: min(720px, 100%);
}

.checkout-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.checkout-steps .step {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: #fff;
}

.checkout-steps .step.active {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #4c1d95;
  font-weight: 600;
}

.checkout-step {
  display: grid;
  gap: 0.6rem;
}

.checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.checkout-summary {
  text-align: right;
  margin: 0.4rem 0 0;
}

.checkout-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem;
  background: #f8fafc;
}

.checkout-row img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background: #ede9fe;
}

.checkout-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.checkout-qty .qty-btn.light {
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  color: #4c1d95;
}

.checkout-qty .qty-btn.light:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.checkout-qty-num {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  color: var(--ink);
}

.link-btn {
  border: 0;
  background: transparent;
  color: #b91c1c;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  font-size: 0.88rem;
  text-decoration: underline;
}

.link-btn:hover { color: #7f1d1d; }

.meta.small { font-size: 0.78rem; margin: 0.15rem 0 0; }

.shipping-hint {
  margin: 0.25rem 0 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.92rem;
  text-align: right;
}

.shipping-hint.ok {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.pickup-toggle {
  border-color: #c4b5fd !important;
  background: #ede9fe !important;
  color: #4c1d95 !important;
}

.pickup-toggle:hover {
  background: #ddd6fe !important;
}

.pickup-card {
  margin-top: 0.6rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
  border: 1px solid #c4b5fd;
  color: #4c1d95;
}

.pickup-card .pickup-title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6d28d9;
}

.pickup-card p { margin: 0.15rem 0; }
.pickup-card p.meta { color: #6d28d9; font-size: 0.86rem; margin-top: 0.5rem; }

.email-notice {
  margin: 1.1rem 0 0.2rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  color: #334155;
  font-size: 0.92rem;
}

.email-notice span[aria-hidden] {
  margin-right: 0.4rem;
}

.delivery-note {
  margin: 1rem 0 0.2rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #0c4a6e;
  font-size: 0.92rem;
  line-height: 1.45;
}

.delivery-note span[aria-hidden] {
  margin-right: 0.4rem;
}

.delivery-note-extra {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: #155e75;
  opacity: 0.9;
}

.shipping-policy-note {
  margin: 0.55rem 0 0.8rem;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.88rem;
  line-height: 1.35;
}

.coupon-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.coupon-row input {
  flex: 1;
}

.coupon-row .btn {
  white-space: nowrap;
}

.coupon-msg {
  font-size: 0.88rem;
  color: var(--muted);
  min-height: 1.1rem;
}

.coupon-msg.ok { color: var(--ok); }
.coupon-msg.error { color: #b91c1c; }

.checkout-totals {
  border-top: 1px dashed var(--border);
  padding-top: 0.6rem;
  display: grid;
  gap: 0.2rem;
  text-align: right;
}

.checkout-totals .total-line {
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-section-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  margin-top: 0.6rem;
}

.status-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.status-badge.status-ok { background: #d1fae5; color: var(--ok); }
.status-badge.status-warn { background: #fef3c7; color: #92400e; }
.status-badge.status-danger { background: #fee2e2; color: #b91c1c; }

.order-row {
  align-items: flex-start;
}

.order-row > div:last-child {
  white-space: nowrap;
}

.order-row-main {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.order-row-main > div:last-child {
  min-width: 0;
}

.order-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  flex-shrink: 0;
}

.order-thumb {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #ede9fe;
}

.order-thumb-more {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  padding: 0 0.35rem;
}

@media (max-width: 720px) {
  .order-row-main {
    flex-direction: column;
    gap: 0.55rem;
  }
  .order-thumb {
    width: 42px;
    height: 54px;
  }
}

.contact-note {
  margin-top: 0.9rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  color: #4c1d95;
  font-size: 0.92rem;
}

.contact-note p { margin: 0; }
.contact-note a { color: #4c1d95; font-weight: 600; }

.estado-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.stripe-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  margin: 0.3rem 0;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.stripe-id-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  min-width: 110px;
}

.stripe-id {
  flex: 1 1 auto;
  background: #fff;
  border: 1px dashed #cbd5e1;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: #0f172a;
  word-break: break-all;
}

.icon-btn.copy-id {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
}

.link {
  color: var(--primary);
  font-size: 0.85rem;
  text-decoration: underline;
  white-space: nowrap;
}

.link:hover { color: #5b21b6; }

.ok-text { color: var(--ok); }
.warn-text { color: #b45309; }

.image-preview-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.image-preview-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.image-preview-card video {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: #0f172a;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 100;
}

#cartAddedModal.modal {
  z-index: 110;
}

.cart-added-panel {
  width: min(400px, 100%);
  max-width: 100%;
  padding: 2rem 1.5rem 1.45rem;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
}

.cart-added-panel .cart-added-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #047857;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.18);
}

.cart-added-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.cart-added-product-name {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.45;
  font-weight: 500;
  white-space: pre-line;
}

.cart-added-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.cart-added-actions .btn {
  width: 100%;
  box-sizing: border-box;
}

.modal-panel {
  width: min(1050px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: white;
  border-radius: 18px;
  padding: 1.6rem 1.6rem 1.4rem;
  position: relative;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.4), 0 4px 14px rgba(2, 6, 23, 0.15);
}

.modal-panel h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-panel > h3 + p,
.modal-panel > h3 + .meta {
  margin-top: 0;
  color: var(--muted);
}

.close-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.hidden {
  display: none;
}

.newsletter-modal-panel {
  width: min(860px, 100%);
  min-height: 520px;
  background: #f8f5f1;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  position: relative;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.45);
}

.newsletter-media {
  min-height: 0;
  background: #e8e4df;
}

.newsletter-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.newsletter-content {
  padding: 2.4rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.newsletter-brand-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.newsletter-brand-logo {
  width: min(132px, 46vw);
  height: auto;
  max-height: 56px;
  object-fit: contain;
  display: block;
}

.newsletter-brand {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.newsletter-step h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  color: #4f6ea4;
}

.newsletter-step p {
  margin: 0 0 0.95rem;
  color: #1f2937;
  font-size: 1.01rem;
}

.newsletter-form {
  display: grid;
  gap: 0.55rem;
}

.newsletter-form input {
  font-size: 1.03rem;
  border-color: #cbd5e1;
  border-radius: 8px;
}

.newsletter-cta {
  width: 100%;
  border-radius: 8px;
  font-weight: 800;
}

.newsletter-no-thanks {
  margin-top: 0.9rem;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 1.05rem;
  cursor: pointer;
}

.newsletter-no-thanks:hover {
  text-decoration: underline;
}

.newsletter-coupon-box {
  border: 2px dashed #111827;
  border-radius: 10px;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0.9rem 0 1rem;
}

.newsletter-coupon-box strong {
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  letter-spacing: 0.08em;
}

.newsletter-close-btn {
  position: absolute;
  right: 0.85rem;
  top: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  color: #be123c;
  cursor: pointer;
  z-index: 2;
}

.newsletter-gift-btn {
  position: fixed;
  left: 12px;
  bottom: 110px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.22);
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.newsletter-gift-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

@media (max-width: 900px) {
  .newsletter-modal-panel {
    grid-template-columns: 1fr;
    min-height: unset;
    max-height: 92vh;
    overflow: auto;
  }
  .newsletter-media {
    min-height: 280px;
  }

  .newsletter-media img {
    min-height: 220px;
  }
  .newsletter-content {
    padding: 1.3rem 1rem 1.1rem;
  }
  .newsletter-gift-btn {
    left: 10px;
    bottom: 86px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.form-grid > .field-fullwidth {
  grid-column: 1 / -1;
}

.form-grid > .field-fullwidth textarea {
  width: 100%;
  resize: vertical;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}

.admin-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.admin-tabs .btn {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-tabs .btn:hover {
  background: #f1f5f9;
  color: var(--ink);
}

.admin-tabs .btn.btn-primary {
  background: #ede9fe;
  color: #4c1d95;
  border-color: #c4b5fd;
  box-shadow: none;
  transform: none;
}

/* Admin (pagina dedicada): barra filtro + acciones resenas */
.admin-reviews-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.admin-reviews-filter {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-reviews-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.form-section-title {
  grid-column: 1 / -1;
  margin: 1.2rem 0 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(90deg, #f5f3ff, #ecfeff);
  color: #4c1d95;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-title:first-child {
  margin-top: 0.2rem;
}

.upload-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.9rem;
  background: #f8fafc;
}

.upload-box p {
  margin-top: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
  align-items: start;
}

.upload-grid.upload-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.upload-grid.upload-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1rem;
}

.upload-preview {
  display: block;
  margin: 0.5rem auto 0;
  width: auto;
  max-width: 100%;
  max-height: 280px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

/* Aseguramos que la clase .hidden gane sobre el display:block del preview */
.upload-preview.hidden {
  display: none !important;
}

/* Placeholder "Sin imagen" cuando no hay src */
.upload-empty {
  display: block;
  margin: 0.5rem auto 0;
  width: 100%;
  max-width: 220px;
  padding: 1.4rem 0.6rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: repeating-linear-gradient(
    45deg,
    #f8fafc,
    #f8fafc 8px,
    #eef2f7 8px,
    #eef2f7 16px
  );
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.upload-empty.hidden {
  display: none !important;
}

@media (min-width: 721px) {
  .upload-preview {
    max-height: 360px;
  }
}

@media (max-width: 720px) {
  .upload-grid,
  .upload-grid.upload-grid-3,
  .upload-grid.upload-grid-4 {
    grid-template-columns: 1fr;
    gap: 0.6rem 0;
  }
  .upload-preview {
    max-height: 200px;
  }
}

.upload-status {
  margin: 0.6rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.upload-status--info {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.upload-status--ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.upload-status--err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.btn-pulse {
  animation: btn-pulse-anim 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.55);
}

@keyframes btn-pulse-anim {
  0%   { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.55); }
  60%  { box-shadow: 0 0 0 14px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

/* ---------- Pestana Accesos / Analytics ---------- */
.analytics-help {
  color: #475569;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.analytics-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.analytics-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.analytics-bucket {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
}

.analytics-bucket select {
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.85rem;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.2rem;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--kpi-color, #7c3aed);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  min-width: 0;
  overflow: hidden;
}

.kpi-label {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.kpi-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--kpi-color, #1e293b);
  margin-top: 0.2rem;
  line-height: 1;
}

.kpi-extra {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.4rem;
}

.analytics-chart-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.analytics-chart-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: #1e293b;
}

.analytics-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.analytics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: #475569;
}

.analytics-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.analytics-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.analytics-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 1.2rem;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 640px;
}

.analytics-table th,
.analytics-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: right;
  white-space: nowrap;
}

.analytics-table th:first-child,
.analytics-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #1e293b;
}

.analytics-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: #1e293b;
  position: sticky;
  top: 0;
}

.analytics-table tbody tr:hover {
  background: #f8fafc;
}

.page-admin .layout,
.page-admin .products {
  max-width: 100%;
  min-width: 0;
}

.products > section,
.admin-row > *,
.analytics-controls > *,
.analytics-chart-wrap,
.analytics-table-wrap {
  min-width: 0;
}

.analytics-legend-item {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

.admin-list {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem;
  margin-bottom: 0.6rem;
}

.admin-row p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  /* En tablet/movil, una sola prenda por fila para evitar cortes laterales */
  body.page-shop .products .grid {
    grid-template-columns: 1fr !important;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

  .admin-tabs .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .analytics-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .analytics-table {
    min-width: 560px;
  }

  .order-row-main {
    flex-direction: column;
    gap: 0.55rem;
  }

  .admin-row {
    align-items: stretch;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  body {
    padding-bottom: 90px;
  }

  .topbar {
    padding: 0.7rem 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .topbar.topbar-clean {
    overflow: visible;
  }

  .topbar-clean {
    padding: 0.55rem 0.7rem;
  }

  .topbar-clean-inner {
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto;
    gap: 0.45rem 0.55rem;
    align-items: center;
  }

  .topbar-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    justify-content: flex-start;
  }

  .topbar-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }

  .topbar-menu-toggle-bars {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
  }

  .topbar-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    justify-content: flex-end;
  }

  .topbar-nav-text {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(58px + env(safe-area-inset-top, 0px));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    width: 100%;
    margin: 0;
    padding: 0.85rem 1rem 1.1rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
    z-index: 60;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.18s ease, visibility 0.18s ease;
  }

  body.shop-nav-open .topbar-nav-text {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.shop-nav-open {
    overflow: hidden;
  }

  .topbar-nav-backdrop {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(58px + env(safe-area-inset-top, 0px));
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 50;
  }

  body.shop-nav-open .topbar-nav-backdrop {
    display: block;
  }

  body:has(.shop-sticky-head) .topbar-nav-text {
    top: calc(100px + env(safe-area-inset-top, 0px));
  }

  body:has(.shop-sticky-head) .topbar-nav-backdrop {
    top: calc(100px + env(safe-area-inset-top, 0px));
  }

  .topbar-link {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-align: left;
    padding: 0.55rem 0.35rem;
    width: 100%;
  }

  .top-actions {
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .top-actions .btn {
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
  }

  .hero {
    margin: 0.75rem 0.85rem;
    padding: 1rem;
    min-height: 150px;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .layout {
    padding: 0 0.85rem 0.85rem;
    gap: 0.75rem;
  }

  .products {
    overflow-x: hidden;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .card-gallery-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .card h3 {
    font-size: 0.95rem;
  }

  .price {
    font-size: 1rem;
  }

  .checkout-row {
    grid-template-columns: 60px 1fr;
  }

  .checkout-row > p {
    grid-column: 1 / -1;
    text-align: right;
    margin: 0;
  }

  .checkout-row img {
    width: 60px;
    height: 80px;
  }

  .checkout-actions {
    flex-direction: column-reverse;
  }

  .checkout-actions .btn {
    width: 100%;
  }

  .modal-panel {
    padding: 0.85rem;
  }

  .account-dropdown {
    right: 0;
    width: min(240px, calc(100vw - 1.25rem));
    max-height: min(320px, calc(100vh - 100px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-panel {
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.7rem;
  }

  .open-cart-btn {
    right: 0.6rem;
    bottom: 0.6rem;
  }

  .cart-items {
    max-height: 200px;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

  /* Admin inventario (pagina + modal embebido en tienda): pestañas y botones a ancho completo, apilados */
  .page-admin .admin-tabs,
  #adminModal .admin-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .page-admin .admin-tabs .btn,
  #adminModal .admin-tabs .btn {
    width: 100%;
    min-width: 0;
    flex: none;
    text-align: center;
    box-sizing: border-box;
  }

  .page-admin .admin-actions,
  #adminModal .admin-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .page-admin .admin-actions .btn,
  #adminModal .admin-actions .btn {
    width: 100%;
    box-sizing: border-box;
  }

  .page-admin .admin-row,
  #adminModal .admin-row {
    flex-direction: column;
    align-items: stretch;
  }

  .page-admin .admin-row > div:last-child:not(.order-row-main),
  #adminModal .admin-row > div:last-child:not(.order-row-main) {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
  }

  .page-admin .admin-row > div:last-child:not(.order-row-main) .btn,
  #adminModal .admin-row > div:last-child:not(.order-row-main) .btn {
    width: 100%;
    box-sizing: border-box;
  }

  .page-admin .admin-row > div:last-child:not(.order-row-main) .icon-btn,
  #adminModal .admin-row > div:last-child:not(.order-row-main) .icon-btn {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
  }

  .page-admin .admin-review-row {
    flex-direction: column;
    align-items: stretch;
  }

  .page-admin .admin-review-row > div:last-child .btn {
    width: 100%;
    box-sizing: border-box;
  }

  .page-admin .admin-reviews-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .page-admin .admin-reviews-filter {
    flex: none;
    width: 100%;
  }

  .page-admin .admin-reviews-toolbar-actions {
    flex-direction: column;
    width: 100%;
  }

  .page-admin .admin-reviews-toolbar-actions .btn {
    width: 100%;
    box-sizing: border-box;
  }

  .page-admin .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .page-admin .top-actions {
    width: 100%;
  }

  .page-admin .top-actions .btn {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }

  #itemFormModal .upload-grid,
  #itemFormModal .upload-grid.upload-grid-3,
  #itemFormModal .upload-grid.upload-grid-4,
  #adminModal .upload-grid,
  #adminModal .upload-grid.upload-grid-3 {
    grid-template-columns: 1fr;
  }

  .estado-row {
    flex-direction: column;
    align-items: stretch;
  }

  .estado-row select,
  .estado-row .btn {
    width: 100%;
    box-sizing: border-box;
  }

  .analytics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .analytics-controls {
    align-items: stretch;
  }

  .analytics-controls .btn {
    width: 100%;
  }

  .analytics-bucket {
    width: 100%;
    justify-content: space-between;
  }

  .analytics-bucket select {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .analytics-kpis { grid-template-columns: 1fr; }
  .analytics-presets {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .analytics-presets .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .top-actions .btn {
    padding: 0.4rem 0.55rem;
    font-size: 0.8rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .checkout-steps {
    font-size: 0.8rem;
  }

  .checkout-steps .step {
    padding: 0.3rem 0.55rem;
  }
}

/* Desktop: el body scrollea normal y el footer queda al final.
   El sidebar de filtros se mantiene visible con position: sticky. */
@media (min-width: 981px) {
  body.page-shop .layout {
    align-items: start;
  }

  body.page-shop .sidebar {
    position: sticky;
    top: calc(var(--topbar-h) + 8px);
    max-height: calc(100vh - var(--topbar-h) - 16px);
    overflow: auto;
  }

  body.page-shop:has(.shop-sticky-head) .sidebar {
    top: calc(102px + 8px);
    max-height: calc(100vh - 102px - 16px);
  }
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 2.5rem;
  padding: 2.2rem 1.5rem 1rem;
}


.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fde68a;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-col a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact-list {
  gap: 0.55rem;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #e2e8f0;
  text-decoration: none;
  line-height: 1.2;
}

.footer-contact-link:hover {
  text-decoration: none;
  color: #fff;
}

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fde68a;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
}

.footer-contact-link:hover .footer-contact-icon {
  background: rgba(253, 230, 138, 0.18);
  transform: translateY(-1px);
}

.footer-contact-whatsapp .footer-contact-icon {
  color: #4ade80;
}

.footer-contact-whatsapp:hover .footer-contact-icon {
  background: rgba(74, 222, 128, 0.18);
}

.footer-brand-col .footer-logo {
  display: block;
  height: 72px;
  width: 72px;
  margin-bottom: 0.6rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.4;
}

.footer-meta {
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.6rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-bottom p { margin: 0; }

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 540px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .site-footer {
    padding: 1.6rem 1rem 0.8rem;
  }
}

/* ===========================
   Pagina legal
   =========================== */
.legal-page {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--topbar-h) + 1rem);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.legal-toc h3 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.legal-toc a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.legal-toc a:hover {
  background: #f3e8ff;
  color: var(--primary);
}

.legal-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  line-height: 1.6;
}

.legal-header h1 {
  margin: 0 0 0.3rem;
  font-size: 1.8rem;
  color: var(--primary);
}

.legal-header .meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal-section {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--topbar-h) + 1rem);
}

.legal-section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
  color: var(--ink);
}

.legal-section h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--primary);
}

.legal-section p,
.legal-section li {
  font-size: 0.95rem;
  color: #334155;
}

.legal-section ul {
  padding-left: 1.2rem;
}

.legal-section a {
  color: var(--primary);
  font-weight: 600;
}

.legal-footer-note {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  border-radius: 12px;
  color: #4c1d95;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .legal-page {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
}

/* Checkbox legal en registro */
.legal-accept {
  font-size: 0.85rem !important;
  color: var(--muted);
  line-height: 1.45;
}

.legal-accept a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* =============== MODAL DETALLE DE PRODUCTO =============== */

.product-detail-panel {
  max-width: 920px;
  width: min(96vw, 920px);
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.6rem max(1rem, env(safe-area-inset-right, 0px)) max(1.6rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.product-detail-panel #closeProductBtn {
  position: sticky;
  top: 0.5rem;
  right: auto;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
  font-size: 1.05rem;
  font-weight: 700;
  z-index: 25;
}

.product-detail-panel #closeProductBtn:hover {
  background: #7c3aed;
  color: #fff;
}

.product-detail-body {
  margin-top: 0.4rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.detail-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ede9fe;
  aspect-ratio: 5 / 8;
  max-height: 70vh;
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.detail-gallery {
  position: relative;
  width: 100%;
  height: 100%;
}

.detail-gallery .detail-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.detail-gallery .detail-image.active {
  opacity: 1;
  pointer-events: auto;
}

.detail-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  z-index: 2;
}

.detail-gallery-arrow.prev { left: 0.6rem; }
.detail-gallery-arrow.next { right: 0.6rem; }

.detail-gallery-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  z-index: 2;
}

.detail-gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
}

.detail-gallery-dot.active {
  background: #7c3aed;
}

/* Detalle tienda: miniaturas a la izquierda (como home), sin flechas */
.detail-gallery--thumbs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: stretch;
  height: 100%;
}

.detail-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  padding-right: 2px;
}

.detail-gallery-thumb {
  display: block;
  border: 2px solid transparent;
  padding: 0;
  margin: 0;
  background: #f8fafc;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  width: 68px;
  flex-shrink: 0;
}

.detail-gallery-thumb:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

.detail-gallery-thumb-frame {
  display: block;
  width: 100%;
}

.detail-gallery-thumb-frame img,
.detail-gallery-thumb-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  vertical-align: top;
}

.detail-gallery-thumb-frame--video {
  position: relative;
}

.detail-gallery-thumb-play {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.55rem;
  display: grid;
  place-items: center;
  line-height: 1;
  pointer-events: none;
}

.detail-gallery-thumb.is-active {
  border-color: #7c3aed;
}

.detail-gallery-main {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ede9fe;
}

.detail-info {
  min-width: 0;
}

.detail-info h2 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  line-height: 1.2;
}

.detail-code {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0.4rem 0 0.8rem;
}

.detail-price-wrap {
  margin: 0.4rem 0 0.8rem;
}

.detail-price-wrap .detail-price {
  margin: 0;
}

.detail-price-old {
  font-size: 1rem;
}

.detail-variant-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0.6rem 0 0.6rem;
}

.detail-variants-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.65rem 0 0.75rem;
}

.detail-variants-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: stretch;
  margin: 0.65rem 0 0.75rem;
}

.detail-variant-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.detail-variant-col .detail-variant-heading {
  margin-bottom: 0;
}

.detail-variant-col .detail-variant-select-full {
  width: 100%;
  max-width: 100%;
}

.detail-size-btn-row--center {
  justify-content: center;
  width: 100%;
}

.detail-variant-block {
  min-width: 0;
}

.detail-variant-heading {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.35rem;
}

.detail-variant-select-full {
  width: 100%;
  box-sizing: border-box;
}

.detail-size-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-variant-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.detail-variant-select {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
  color: #1f2937;
}

.detail-variant-note {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #4b5563;
}

.detail-stock {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.detail-stock-muted {
  margin: 0 0 0.75rem !important;
  font-size: 0.84rem !important;
  color: #64748b !important;
}

.detail-info .detail-size-btn-row .variant-size-btn {
  min-width: 48px;
  min-height: 46px;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
}

.detail-info .detail-size-btn-row .variant-size-btn:hover {
  border-color: #cbd5e1;
}

.detail-info .detail-size-btn-row .variant-size-btn.is-selected {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.detail-low-stock {
  display: flex;
  align-items: center;
  margin: 0.25rem 0 0.7rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #dc2626;
}

.detail-low-stock-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: #dc2626;
  animation: detail-dot-blink 1.1s ease-in-out infinite;
}

@keyframes detail-dot-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

.detail-trust-list {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
}

.detail-trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.32rem 0;
  font-size: 0.92rem;
  color: #111827;
}

.detail-trust-svg {
  flex-shrink: 0;
  color: #1f2937;
}

.detail-actions--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.detail-cta-primary {
  width: 100%;
  min-width: 0 !important;
  padding: 0.88rem 1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-radius: 6px;
  background: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}

.detail-share-secondary {
  width: 100%;
  min-width: 0 !important;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.detail-correos-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  background: #ffce00;
  border: 1px solid #e5b800;
  border-radius: 10px;
  box-sizing: border-box;
}

.detail-correos-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffce00;
  border-radius: 8px;
}

.detail-correos-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.detail-correos-text {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #111827;
}

.detail-info-live {
  margin-top: 0.35rem;
}

.detail-info-acc {
  margin-top: 1rem;
}

.reviews-section--product-modal {
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.product-detail-body .detail-fixed-reviews-banner.home-reviews-banner {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.detail-benefits {
  margin: -0.35rem 0 0.7rem;
}

.detail-benefit {
  margin: 0.2rem 0;
  color: #475569;
  font-size: 0.9rem;
}

.detail-description {
  margin-top: 0.6rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.8rem;
}

.detail-description-block {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.detail-description h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #1f2937;
}

.detail-description p {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.detail-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.detail-actions .btn {
  min-width: 140px;
}

@media (max-width: 720px) {
  .product-detail-panel {
    padding: 1rem max(0.75rem, env(safe-area-inset-right, 0px)) max(1.2rem, env(safe-area-inset-bottom, 0px))
      max(0.75rem, env(safe-area-inset-left, 0px));
    width: min(100vw, 920px);
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .detail-media {
    max-height: min(60vh, 520px);
    aspect-ratio: 9 / 16;
    background: #f8fafc;
  }
  .detail-gallery--thumbs {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .detail-gallery-thumbs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    gap: 0.45rem;
  }
  .detail-gallery-thumb {
    width: 56px;
  }
  .detail-image {
    object-fit: contain;
  }
  .detail-info h2 {
    font-size: clamp(1.05rem, 4.2vw, 1.2rem);
    overflow-wrap: anywhere;
  }
  .detail-price {
    font-size: 1.4rem;
  }
  .detail-trust-item {
    font-size: 0.88rem;
  }
  .detail-correos-text {
    font-size: 0.84rem;
  }
  .detail-actions {
    justify-content: stretch;
  }
  .detail-actions .btn {
    flex: 1;
  }
}

body.modal-open {
  overflow: hidden;
}

/* =============== PAGINA "SOBRE NOSOTROS" =============== */

.about-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.6rem 1.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  flex: 1 0 auto;
}

.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.6rem;
  align-items: center;
  padding: 1.4rem;
  background: linear-gradient(135deg, #fdf4ff 0%, #ffffff 60%, #ecfeff 100%);
  border: 1px solid #e9d5ff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}

.about-eyebrow {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.about-hero h1 {
  margin: 0 0 0.6rem;
  font-size: 1.9rem;
  line-height: 1.15;
  color: #1f2937;
}

.about-lead {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.55;
  margin: 0 0 0.9rem;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.about-hero-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ede9fe;
  aspect-ratio: 4 / 3;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10);
}

.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.8rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.65));
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
}

.about-block {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.about-block h2 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  color: #1f2937;
}

.about-block p {
  margin: 0 0 0.65rem;
  color: #334155;
  line-height: 1.6;
  font-size: 0.97rem;
}

.about-block p:last-child {
  margin-bottom: 0;
}

.about-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-list a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.about-team {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.about-team h2 {
  margin: 0 0 0.9rem;
  font-size: 1.25rem;
  color: #1f2937;
}

.about-team-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  align-items: center;
}

.about-team-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.30);
}

.about-team-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
  color: #1f2937;
}

.about-team-role {
  margin: 0 0 0.4rem;
  color: #7c3aed;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
}

.about-team-card p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
}

.about-cta {
  background: linear-gradient(135deg, #1f2937 0%, #4c1d95 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

.about-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.about-cta p {
  margin: 0 auto 1rem;
  max-width: 560px;
  color: #e2e8f0;
  line-height: 1.5;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.about-cta-actions .btn {
  background: #ffffff;
  color: #1f2937;
}

.about-cta-actions .btn-primary {
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: #ffffff;
  border: none;
}

@media (max-width: 760px) {
  .about-hero {
    grid-template-columns: 1fr;
  }
  .about-hero h1 {
    font-size: 1.5rem;
  }
  .about-team-card {
    grid-template-columns: 56px 1fr;
  }
  .about-team-avatar {
    width: 56px;
    height: 56px;
    font-size: 0.95rem;
  }
}

/* =============== RESENAS DE PRODUCTO =============== */

.reviews-section {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.reviews-loading {
  text-align: center;
  color: var(--muted);
  padding: 1rem;
}

.reviews-header h3 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  color: #1f2937;
}

.reviews-summary {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.reviews-summary-empty {
  grid-template-columns: 1fr;
  background: #f8fafc;
  border-color: var(--border);
  text-align: center;
  color: var(--muted);
  padding: 1.2rem;
}

.reviews-summary-empty p {
  margin: 0;
  font-size: 0.95rem;
}

.reviews-summary-avg {
  text-align: center;
  padding-right: 1rem;
  border-right: 1px dashed #e9d5ff;
}

.reviews-avg-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: #6d28d9;
  margin-bottom: 0.25rem;
}

.reviews-avg-total {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.reviews-summary-bars {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.reviews-bar-row {
  display: grid;
  grid-template-columns: 28px 1fr 32px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #475569;
}

.reviews-bar-label {
  font-weight: 700;
  color: #6d28d9;
}

.reviews-bar {
  background: #e9d5ff;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.reviews-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ec4899);
  transition: width 0.3s ease;
}

.reviews-bar-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Estrellas */

.stars {
  display: inline-flex;
  gap: 1px;
  align-items: center;
}

.star {
  font-size: var(--star-size, 14px);
  color: #cbd5e1;
  line-height: 1;
}

.star.on {
  color: #f59e0b;
  text-shadow: 0 1px 0 rgba(245, 158, 11, 0.2);
}

/* Formulario de resena */

.review-form {
  margin: 1rem 0;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.review-form h4 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  color: #1f2937;
}

.review-form-locked {
  background: linear-gradient(135deg, #fef3c7 0%, #fff 100%);
  border-color: #fde68a;
}

.review-form-locked p {
  margin: 0 0 0.6rem;
  color: #78350f;
  font-size: 0.9rem;
}

.rating-input {
  display: inline-flex;
  gap: 0.15rem;
  margin: 0.2rem 0 0.6rem;
}

.rating-star {
  background: transparent;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0 0.1rem;
  transition: transform 0.1s ease, color 0.1s ease;
}

.rating-star:hover {
  transform: scale(1.1);
}

.rating-star.on {
  color: #f59e0b;
}

.review-comment-label,
.review-image-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.5rem;
}

.review-comment-label textarea {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  color: #1f2937;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  resize: vertical;
  min-height: 70px;
}

.review-comment-label textarea:focus {
  outline: 2px solid #c4b5fd;
  outline-offset: 1px;
}

.review-counter {
  align-self: flex-end;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.review-counter.over {
  color: #dc2626;
  font-weight: 700;
}

.review-image-label input[type="file"] {
  font-size: 0.85rem;
  font-weight: 400;
}

.review-image-preview-wrap {
  position: relative;
  margin-top: 0.5rem;
  display: inline-block;
}

.review-image-preview {
  max-width: 220px;
  max-height: 180px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

.review-image-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #dc2626;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.review-form-msg {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  min-height: 1.1em;
}

.review-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.6rem;
}

/* Lista de reseñas */

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 480px;
  overflow-y: auto;
  padding: 0.4rem 0.4rem 0.4rem 0;
  scrollbar-width: thin;
}

.reviews-list-empty {
  padding: 1rem;
  text-align: center;
}

.review-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  position: relative;
}

.review-item.is-mine {
  border-color: #c4b5fd;
  background: #faf5ff;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.review-body {
  min-width: 0;
}

.review-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.review-author {
  color: #1f2937;
  font-size: 0.95rem;
}

.review-date {
  color: var(--muted);
  font-size: 0.78rem;
}

.review-comment {
  margin: 0.35rem 0 0;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.review-image {
  margin-top: 0.55rem;
  max-width: 220px;
  max-height: 220px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  display: block;
}

.review-mine-tag {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: #6d28d9;
  background: #ede9fe;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

@media (max-width: 720px) {
  .reviews-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .reviews-summary-avg {
    border-right: none;
    border-bottom: 1px dashed #e9d5ff;
    padding-right: 0;
    padding-bottom: 0.6rem;
  }
  .reviews-bar-row {
    grid-template-columns: 24px 1fr 28px;
  }
  .reviews-list {
    max-height: 360px;
  }
}

/* Admin: lista resenas */
.admin-review-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .topbar:not(.topbar-clean) {
    overflow: hidden;
  }

  .topbar .brand,
  .topbar .top-actions {
    min-width: 0;
  }

  .topbar .top-actions .btn {
    max-width: 100%;
  }
}

.home-categories-wrap {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 2.2rem 0.9rem 2.8rem;
  display: grid;
  gap: 3rem;
}

.home-category-block {
  display: grid;
  gap: 1.2rem;
}

.home-category-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.home-category-head h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-collection-btn {
  text-decoration: none;
  color: #111827;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 0.42rem 0.9rem;
}

.home-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-card {
  display: grid;
  gap: 0.65rem;
}

.home-card-media {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.home-offer-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  background: #111111;
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.24rem 0.42rem;
  letter-spacing: 0.03em;
}

.home-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: opacity 0.22s ease;
}

.home-img-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.home-card-media:hover .home-img-secondary {
  opacity: 1;
}

.home-card-media:hover .home-img-primary {
  opacity: 0;
}

.home-card-media--single:hover .home-img-primary {
  opacity: 1;
}

.home-card-media--single .home-img-secondary {
  display: none;
}

.home-card-title {
  margin: 0;
  text-align: center;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.home-card-price {
  margin: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.home-old-price {
  color: #a75f5f;
  text-decoration: line-through;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .home-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

@media (max-width: 620px) {
  .home-categories-wrap {
    padding: 1.5rem 0.8rem 2rem;
    gap: 2rem;
  }
  .home-category-head h2 {
    font-size: 1.5rem;
  }
  .home-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Ficha producto en home (PDP embebida) --- */
body.home-detail-open {
  overflow-x: hidden;
}

.home-product-detail {
  background: #ffffff;
  padding: 1rem max(1rem, env(safe-area-inset-right, 0px)) max(2.5rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.home-product-detail.hidden {
  display: none !important;
}

.home-product-detail-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.home-detail-back {
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.35rem 0 1rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.home-detail-back:hover {
  opacity: 0.75;
}

.home-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.home-detail-gallery {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.home-detail-gallery--solo {
  grid-template-columns: 1fr;
}

.home-detail-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-detail-thumb {
  border: 2px solid transparent;
  padding: 0;
  background: #f9fafb;
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
  width: 72px;
  flex-shrink: 0;
}

.home-detail-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.home-detail-thumb.is-active {
  border-color: #111827;
}

.home-detail-main {
  border-radius: 2px;
  overflow: hidden;
  background: #f3f4f6;
}

.home-detail-main img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.home-detail-side {
  min-width: 0;
}

.home-detail-stars {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 0.35rem;
}

.home-detail-star {
  color: #d1d5db;
  font-size: 1.15rem;
  line-height: 1;
}

.home-detail-star.is-on {
  color: #2563eb;
}

.home-detail-rating-text {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: #374151;
}

.home-detail-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.1rem, 4.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.home-detail-prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.home-detail-price-old {
  color: #b91c1c;
  text-decoration: line-through;
  font-size: 1rem;
}

.home-detail-price-now {
  font-size: 1.35rem;
  font-weight: 800;
}

.home-detail-promo-box {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  color: #1d4ed8;
}

.home-detail-promo-box strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.home-detail-promo-box span {
  font-size: 0.88rem;
}

.home-detail-live {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: #4b5563;
}

.home-detail-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
  animation: home-live-pulse 1.2s ease-in-out infinite;
}

@keyframes home-live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

.home-detail-tallas {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

.home-detail-size-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.home-detail-size-btn {
  min-width: 52px;
  min-height: 48px;
  padding: 0.45rem 0.65rem;
  border: 1px solid #111827;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 8px;
}

.home-detail-size-btn.is-selected {
  background: #111827;
  color: #fff;
}

.home-detail-variant-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.5rem 0 0.85rem;
}

.home-detail-variants-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: stretch;
  margin: 0.55rem 0 0.75rem;
}

.home-detail-variant-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.home-detail-field-label--center {
  margin-bottom: 0 !important;
}

.home-detail-select--full {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.home-detail-size-btns--center {
  justify-content: center;
  width: 100%;
}

.home-detail-low-stock {
  display: flex;
  align-items: center;
  margin: 0.2rem 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #dc2626;
}

.home-detail-low-stock-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: #dc2626;
  animation: home-detail-dot-blink 1.1s ease-in-out infinite;
}

@keyframes home-detail-dot-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

.home-detail-trust-list {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
}

.home-detail-trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.3rem 0;
  font-size: 0.92rem;
  color: #111827;
}

.home-trust-svg {
  flex-shrink: 0;
  color: #1f2937;
}

.home-detail-avail-meta {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: #64748b;
}

.home-detail-correos-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  margin: 0.75rem 0 1.1rem;
  padding: 0.75rem 0.9rem;
  background: #ffce00;
  border: 1px solid #e5b800;
  border-radius: 10px;
  box-sizing: border-box;
}

.home-detail-correos-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffce00;
  border-radius: 8px;
}

.home-detail-correos-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.home-detail-correos-text {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #111827;
}

.home-detail-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #374151;
}

.home-detail-select {
  padding: 0.5rem 0.55rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  font-size: 0.9rem;
  color: #111827;
}

.home-detail-talla-block {
  min-width: 0;
}

.home-detail-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 0.3rem;
}

.home-detail-size-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-variant-size-btn {
  min-width: 52px;
  min-height: 48px;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1.15;
  font-family: inherit;
}

.home-variant-size-btn:hover {
  border-color: #cbd5e1;
}

.home-variant-size-btn.is-selected {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.home-detail-stock-msg {
  color: #b91c1c;
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.home-detail-trust {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: #374151;
}

.home-detail-cta {
  width: 100%;
  margin: 1rem 0 0.75rem;
  padding: 0.85rem 1rem;
  border: 0;
  background: #111827;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
}

.home-detail-cta:hover {
  opacity: 0.92;
}

.home-detail-pay-note {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0 0 1rem;
  text-align: center;
}

.home-detail-acc {
  border-top: 1px solid #e5e7eb;
}

.home-detail-acc-btn {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
  padding: 0.85rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: #111827;
}

.home-detail-acc-panel {
  padding: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #374151;
  white-space: pre-wrap;
}

.home-detail-acc-panel.hidden {
  display: none;
}

.size-guide-intro {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #4b5563;
}

.size-guide-table-wrap {
  overflow-x: auto;
  margin: 0 auto 0.85rem;
  max-width: 320px;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid #e5e7eb;
}

.size-guide-table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: #111827;
}

.size-guide-table th,
.size-guide-table td {
  padding: 0.65rem 0.5rem;
  text-align: center;
  border: none;
}

.size-guide-table thead th {
  background: #f3f4f6;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111827;
}

.size-guide-table tbody tr + tr td {
  border-top: 1px solid #f0f0f0;
}

.size-guide-table .size-guide-talla {
  font-weight: 700;
  text-align: center;
}

.size-guide-elastic-note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #b91c1c;
  font-weight: 500;
}

.checkout-comment-label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.checkout-comment-field {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  min-height: 4.5rem;
  box-sizing: border-box;
}

.checkout-order-comment {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.home-card-title-wrap {
  margin: 0;
  text-align: center;
}

.home-card-title-btn {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.84rem;
  padding: 0.15rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.home-card-title-btn:hover {
  opacity: 0.8;
}

@media (max-width: 900px) {
  .home-detail-body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .home-detail-gallery {
    grid-template-columns: auto 1fr;
  }

  .home-detail-trust-item {
    font-size: 0.88rem;
  }

  .home-detail-correos-text {
    font-size: 0.84rem;
  }
}

@media (max-width: 520px) {
  .home-product-detail {
    padding-top: 0.65rem;
  }

  .home-detail-gallery:not(.home-detail-gallery--solo) {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .home-detail-thumbs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.45rem;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .home-detail-thumb {
    width: 56px;
    flex-shrink: 0;
  }

  .home-detail-main img {
    max-height: min(68vh, 560px);
    object-fit: cover;
  }

  .home-detail-live {
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }

  .home-detail-cta {
    font-size: 0.72rem;
    padding: 0.8rem 0.65rem;
  }
}

/* --- Reseñas fijas bajo la ficha (home) --- */
.home-reviews-banner {
  margin-top: 2.25rem;
  padding: 2rem 0.75rem 2.25rem;
  background: #faf7f2;
  border-radius: 4px;
}

.home-reviews-banner.hidden {
  display: none !important;
}

.home-reviews-title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111827;
}

.home-reviews-carousel {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  max-width: 1100px;
  margin: 0 auto;
}

.home-reviews-nav {
  flex-shrink: 0;
  align-self: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.home-reviews-nav:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.home-reviews-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.home-reviews-track {
  display: flex;
  width: 500%;
  transition: transform 0.38s ease;
  will-change: transform;
}

.home-reviews-slide {
  width: 20%;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.35rem 0.15rem 0.5rem;
  box-sizing: border-box;
}

.home-review-card {
  flex: 1;
  max-width: 280px;
  min-width: 0;
  background: #fff;
  padding: 1rem 0.75rem 1.1rem;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-reviews-slide .home-review-card:nth-child(2) {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  z-index: 1;
  position: relative;
}

.home-review-stars {
  display: flex;
  gap: 0.12rem;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  line-height: 1;
  color: #111827;
}

.home-review-text {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #111827;
  flex: 1;
}

.home-review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.45rem;
  background: #e5e7eb;
}

.home-review-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
}

.home-review-city {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 400;
  color: #374151;
}

.home-reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.home-reviews-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.home-reviews-dot.is-active {
  background: #111827;
  transform: scale(1.15);
}

@media (max-width: 720px) {
  .home-reviews-carousel {
    gap: 0.15rem;
  }

  .home-reviews-nav {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1.1rem;
  }

  .home-reviews-slide {
    gap: 0.35rem;
    padding-left: 0;
    padding-right: 0;
  }

  .home-review-card {
    padding: 0.75rem 0.45rem 0.85rem;
    max-width: none;
  }

  .home-review-text {
    font-size: 0.72rem;
  }

  .home-reviews-slide .home-review-card:nth-child(2) {
    transform: scale(1.02);
  }
}
