/* ==========================================================================
   Centrosedie — Public Site Stylesheet
   Bootstrap 5 overrides + M3 warm-neutral theming
   Depends on: fonts.css, tokens.css (load before this file)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base & layout
   -------------------------------------------------------------------------- */

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 0;
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip to main content — visible on keyboard focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background-color: var(--color-walnut);
  color: var(--md-sys-color-on-primary);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--bs-border-radius-sm);
  box-shadow: var(--md-elevation-3);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 2px solid var(--color-cream);
  outline-offset: 2px;
}

/* Global focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-walnut);
  outline-offset: 2px;
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
  outline: 2px solid var(--color-walnut);
  outline-offset: 2px;
}

/* Section rhythm */
section {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.section-tight {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.container,
.container-lg {
  max-width: 1200px;
}

.container-xl {
  max-width: 1400px;
}

/* --------------------------------------------------------------------------
   Typography scale
   Body: Plus Jakarta Sans | Display & headings: Lora
   -------------------------------------------------------------------------- */

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-charcoal);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }

.display-1,
.display-2,
.display-3,
.display-4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-1 { font-size: 5rem; }
.display-2 { font-size: 4.5rem; }
.display-3 { font-size: 4rem; }
.display-4 { font-size: 3.5rem; }

.lead {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--bs-secondary-color);
}

.text-meta,
.small,
.fs-6 {
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */

a {
  color: var(--color-walnut);
  text-decoration-color: hsl(195 28% 33% / 0.35);
  text-underline-offset: 0.15em;
  transition: color var(--duration-short) var(--ease-out),
              text-decoration-color var(--duration-short) var(--ease-out);
}

a:hover,
a:focus-visible {
  color: var(--color-toffee);
  text-decoration-color: var(--color-toffee);
}

/* --------------------------------------------------------------------------
   Buttons (Emil Kowalski — :active scale feedback)
   -------------------------------------------------------------------------- */

.btn {
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--shape-card);
  transition: transform var(--duration-short) var(--ease-out),
              box-shadow var(--duration-short) var(--ease-out),
              background-color var(--duration-short) var(--ease-out),
              border-color var(--duration-short) var(--ease-out),
              color var(--duration-short) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  --bs-btn-bg: var(--md-sys-color-primary);
  --bs-btn-border-color: var(--md-sys-color-primary);
  --bs-btn-hover-bg: hsl(195 28% 28%);
  --bs-btn-hover-border-color: hsl(195 28% 28%);
  --bs-btn-active-bg: hsl(195 28% 24%);
  --bs-btn-active-border-color: hsl(195 28% 24%);
  --bs-btn-color: var(--md-sys-color-on-primary);
  box-shadow: var(--md-elevation-0);
}

.btn-primary:hover {
  box-shadow: var(--md-elevation-1);
}

.btn-outline-primary {
  --bs-btn-color: var(--color-walnut);
  --bs-btn-border-color: var(--color-walnut);
  --bs-btn-hover-bg: var(--color-walnut);
  --bs-btn-hover-border-color: var(--color-walnut);
  --bs-btn-active-bg: hsl(195 28% 28%);
  --bs-btn-active-border-color: hsl(195 28% 28%);
}

.btn-secondary {
  --bs-btn-bg: var(--md-sys-color-secondary);
  --bs-btn-border-color: var(--md-sys-color-secondary);
  --bs-btn-hover-bg: hsl(195 22% 42%);
  --bs-btn-hover-border-color: hsl(195 22% 42%);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus {
  box-shadow: 0 0 0 0.1rem var(--color-cream),
              0 0 0 0.25rem hsl(195 28% 33% / 0.35);
}

/* --------------------------------------------------------------------------
   Cards (hover lift + elevation transition)
   -------------------------------------------------------------------------- */

.card {
  background-color: var(--md-sys-color-surface-container-lowest);
  border: 1px solid hsl(195 15% 55% / 0.12);
  border-radius: var(--shape-card);
  box-shadow: var(--md-elevation-0);
  overflow: hidden;
  transition: transform var(--duration-medium) var(--ease-out),
              box-shadow var(--duration-medium) var(--ease-out);
}

.card-hover,
a.card,
.card-interactive {
  cursor: pointer;
}

.card-hover:hover,
a.card:hover,
.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--md-elevation-2);
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-charcoal);
}

/* --------------------------------------------------------------------------
   Forms — focus states using primary color
   -------------------------------------------------------------------------- */

.form-control,
.form-select {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  border-color: hsl(195 10% 50% / 0.35);
  border-radius: var(--bs-border-radius-sm);
  color: var(--color-charcoal);
  transition: border-color var(--duration-short) var(--ease-out),
              box-shadow var(--duration-short) var(--ease-out);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 0.1rem var(--color-cream),
              0 0 0 0.25rem hsl(195 28% 33% / 0.25);
}

.form-control::placeholder {
  color: var(--bs-secondary-color);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-charcoal);
}

/* --------------------------------------------------------------------------
   Badges & product ribbons
   -------------------------------------------------------------------------- */

.badge {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.35em 0.65em;
}

.badge-novedad {
  background-color: var(--color-walnut);
  color: var(--md-sys-color-on-primary);
}

.badge-ultimas {
  background-color: hsl(195 65% 45%);
  color: #fff;
}

.badge-rebaja {
  background-color: var(--md-sys-color-error);
  color: var(--md-sys-color-on-error);
}

.badge-discontinuado {
  background-color: var(--md-sys-color-outline);
  color: #fff;
}

.badge-sin-stock {
  background-color: hsl(195 8% 55%);
  color: #fff;
}

/* Ribbon overlay for product cards */
.product-ribbon {
  position: absolute;
  top: 0.75rem;
  left: 0;
  z-index: 2;
  padding: 0.35rem 0.75rem 0.35rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  width: auto;
  height: auto;
  max-width: max-content;
  color: #fff;
  background-color: var(--color-walnut);
  border-radius: 0 4px 4px 0;
  box-shadow: var(--md-elevation-1);
  inset: auto;
  bottom: auto;
  right: auto;
}

.product-ribbon--rebaja {
  background-color: var(--md-sys-color-error);
}

.product-ribbon--ultimas {
  background-color: hsl(195 65% 45%);
}

/* --------------------------------------------------------------------------
   Toast notifications
   -------------------------------------------------------------------------- */

.toast-container {
  z-index: 1090;
}

.toast {
  font-family: var(--font-body);
  background-color: var(--md-sys-color-surface-container-high);
  border: 1px solid hsl(195 15% 55% / 0.15);
  border-radius: var(--shape-card);
  box-shadow: var(--md-elevation-3);
  color: var(--color-charcoal);
}

.toast-header {
  background-color: transparent;
  border-bottom-color: hsl(195 15% 55% / 0.12);
  color: var(--color-charcoal);
}

.toast-header .btn-close {
  opacity: 0.6;
}

.toast-success .toast-header {
  color: hsl(142 45% 28%);
}

.toast-success .toast-body {
  border-left: 3px solid #25D366;
  padding-left: calc(0.75rem - 3px);
}

.toast-error .toast-body {
  border-left: 3px solid var(--md-sys-color-error);
  padding-left: calc(0.75rem - 3px);
}

/* --------------------------------------------------------------------------
   WhatsApp FAB
   -------------------------------------------------------------------------- */

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--shape-fab);
  background-color: #25D366;
  color: #fff;
  border: none;
  box-shadow: var(--md-elevation-3);
  transition: box-shadow var(--duration-medium) var(--ease-out),
              transform var(--duration-short) var(--ease-out);
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  color: #fff;
  box-shadow: var(--md-elevation-4);
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.whatsapp-fab:active {
  transform: scale(0.97);
  box-shadow: var(--md-elevation-5);
}

.whatsapp-fab svg,
.whatsapp-fab i {
  width: 24px;
  height: 24px;
  font-size: 1.5rem;
}

@media (max-width: 469.98px) {
  .whatsapp-fab {
    width: 40px;
    height: 40px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-fab svg,
  .whatsapp-fab i {
    width: 20px;
    height: 20px;
    font-size: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Navbar & footer overrides
   -------------------------------------------------------------------------- */

.navbar {
  background-color: var(--color-cream) !important;
  box-shadow: var(--md-elevation-0);
  transition: box-shadow var(--duration-medium) var(--ease-out);
}

.navbar.scrolled,
.navbar.shadow-sm {
  box-shadow: var(--md-elevation-2);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-walnut) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--color-charcoal) !important;
  transition: color var(--duration-short) var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-walnut) !important;
}

.footer {
  background-color: var(--md-sys-color-surface-container);
  color: var(--bs-secondary-color);
  padding-block: 1.25rem;
}

/* Cart badge bounce */
.cart-badge {
  transition: transform var(--duration-short) var(--ease-out);
}

.cart-badge.bounce {
  animation: badge-bounce var(--duration-medium) var(--ease-out);
}

@keyframes badge-bounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.25); }
  70% { transform: scale(0.95); }
}

/* Cart drawer */
.cart-drawer {
  border-radius: var(--shape-modal) 0 0 var(--shape-modal);
}

.cart-item__img {
  width: 72px;
  height: 72px;
}

.cart-qty-group .form-control {
  -moz-appearance: textfield;
}

.cart-qty-group .form-control::-webkit-outer-spin-button,
.cart-qty-group .form-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-drawer__items {
  max-height: min(50vh, 420px);
}

/* --------------------------------------------------------------------------
   Entry animations (opacity 0 + scale(0.95) → visible)
   -------------------------------------------------------------------------- */

@keyframes enter-fade-scale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-enter {
  animation: enter-fade-scale var(--duration-medium) var(--ease-out) both;
}

/* Stagger delays — 50ms between sibling cards */
.stagger-children > * {
  opacity: 0;
  animation: enter-fade-scale var(--duration-medium) var(--ease-out) both;
}

.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 50ms; }
.stagger-children > *:nth-child(3) { animation-delay: 100ms; }
.stagger-children > *:nth-child(4) { animation-delay: 150ms; }
.stagger-children > *:nth-child(5) { animation-delay: 200ms; }
.stagger-children > *:nth-child(6) { animation-delay: 250ms; }
.stagger-children > *:nth-child(7) { animation-delay: 300ms; }
.stagger-children > *:nth-child(8) { animation-delay: 350ms; }
.stagger-children > *:nth-child(n+9) { animation-delay: 400ms; }

/* Explicit stagger utility classes */
.stagger-1 { animation-delay: 50ms; }
.stagger-2 { animation-delay: 100ms; }
.stagger-3 { animation-delay: 150ms; }
.stagger-4 { animation-delay: 200ms; }
.stagger-5 { animation-delay: 250ms; }

/* --------------------------------------------------------------------------
   Utility helpers
   -------------------------------------------------------------------------- */

.bg-surface-container {
  background-color: var(--md-sys-color-surface-container);
}

.bg-sand {
  background-color: var(--color-sand);
}

.text-walnut,
.link-walnut {
  color: var(--color-walnut);
}

.elevation-1 { box-shadow: var(--md-elevation-1); }
.elevation-2 { box-shadow: var(--md-elevation-2); }
.elevation-3 { box-shadow: var(--md-elevation-3); }

.rounded-card { border-radius: var(--shape-card); }
.rounded-modal { border-radius: var(--shape-modal); }

.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Home — Hero split 60/40
   -------------------------------------------------------------------------- */

.hero-split__content {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.hero-split__media {
  min-height: 280px;
}

.hero-split__image {
  display: block;
  min-height: 280px;
  max-height: 70vh;
  object-fit: cover;
  border-radius: var(--shape-card) 0 0 var(--shape-card);
}

@media (min-width: 992px) {
  .hero-split__image {
    min-height: 520px;
    border-radius: var(--shape-card) 0 0 var(--shape-card);
    margin-right: calc(-1 * var(--bs-gutter-x, 0.75rem));
  }
}

.hero-split__image--placeholder {
  background: linear-gradient(135deg, var(--color-sand), var(--md-sys-color-surface-container));
}

/* --------------------------------------------------------------------------
   Categories — staggered asymmetric grid
   -------------------------------------------------------------------------- */

.categorias-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .categorias-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(180px, auto));
  }

  .categorias-grid__item--large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.categorias-grid__item {
  display: flex;
  flex-direction: column;
}

.categorias-grid__media {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Bento product grids
   -------------------------------------------------------------------------- */

.bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .bento-grid--catalogo {
    grid-template-columns: repeat(4, 1fr);
  }

  .bento-grid--catalogo .bento-grid__item--large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .bento-grid--catalogo .bento-grid__item--wide {
    grid-column: span 2;
  }
}

.bento-grid.view-list {
  grid-template-columns: 1fr;
}

.bento-grid.view-list .producto-card {
  flex-direction: row;
}

.bento-grid.view-list .producto-card a {
  flex-direction: row;
}

.bento-grid.view-list .producto-card__media {
  width: 140px;
  flex-shrink: 0;
}

.bento-grid.view-list .ratio {
  --bs-aspect-ratio: 100%;
}

/* --------------------------------------------------------------------------
   Novedades horizontal scroll
   -------------------------------------------------------------------------- */

.novedades-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.5rem;
}

.novedades-scroll__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding-inline: 0.25rem;
}

.novedades-scroll__item {
  width: 240px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .novedades-scroll__item {
    width: 280px;
  }
}

/* --------------------------------------------------------------------------
   CTA Showroom banner
   -------------------------------------------------------------------------- */

.cta-showroom__inner {
  background-color: var(--md-sys-color-surface-container-lowest);
  border: 1px solid hsl(195 15% 55% / 0.12);
}

/* --------------------------------------------------------------------------
   Catalog filters — horizontal chip strip
   -------------------------------------------------------------------------- */

.filtros-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.filtros-scroll__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  width: max-content;
  max-width: 100%;
  padding-bottom: 0.25rem;
}

.filtro-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid hsl(195 15% 55% / 0.25);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--color-charcoal);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-short) var(--ease-out),
              border-color var(--duration-short) var(--ease-out);
}

.filtro-chip:hover,
.filtro-chip--active {
  background-color: var(--color-walnut);
  border-color: var(--color-walnut);
  color: var(--md-sys-color-on-primary);
}

.filtro-select,
.filtro-input {
  min-width: 130px;
  max-width: 160px;
}

.filtro-chip--toggle:has(input:checked) {
  background-color: var(--color-walnut);
  border-color: var(--color-walnut);
  color: var(--md-sys-color-on-primary);
}

.view-toggle.active {
  background-color: var(--color-walnut);
  color: var(--md-sys-color-on-primary);
  border-color: var(--color-walnut);
}

/* --------------------------------------------------------------------------
   Product detail — gallery carousel + lightbox
   -------------------------------------------------------------------------- */

.producto-galeria__main-wrap {
  position: relative;
  border-radius: var(--shape-card);
  overflow: hidden;
  background-color: var(--md-sys-color-surface-container);
}

.producto-galeria__main {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
}

.producto-galeria__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, filter 0.25s ease;
  border-radius: 0;
}

.producto-galeria__counter {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: hsl(0 0% 0% / 0.45);
  border-radius: 100px;
  pointer-events: none;
}

.producto-galeria__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: hsl(0 0% 100% / 0.85);
  color: var(--color-charcoal);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--md-elevation-1);
  opacity: 0;
  transition: opacity var(--duration-short) var(--ease-out);
}

.producto-galeria__main-wrap:hover .producto-galeria__nav,
.producto-galeria__nav:focus-visible {
  opacity: 1;
}

.producto-galeria__nav--prev { left: 0.5rem; }
.producto-galeria__nav--next { right: 0.5rem; }

.producto-galeria__dots {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.producto-galeria__dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: hsl(195 15% 55% / 0.3);
  padding: 0;
  cursor: pointer;
  transition: background var(--duration-short) var(--ease-out),
              transform var(--duration-short) var(--ease-out);
}

.producto-galeria__dot.is-active {
  background: var(--color-walnut);
  transform: scale(1.25);
}

@media (min-width: 992px) {
  .producto-detalle__gallery-col {
    position: sticky;
    top: 88px;
    align-self: start;
  }

  .producto-galeria__main {
    aspect-ratio: 3 / 4;
  }

  .producto-galeria__nav {
    width: 42px;
    height: 42px;
    font-size: 1.125rem;
  }
}

.producto-galeria:focus-visible {
  outline: 2px solid var(--color-walnut);
  outline-offset: 4px;
  border-radius: var(--shape-card);
}

.producto-galeria__thumb:focus-visible {
  outline: 2px solid var(--color-walnut);
  outline-offset: 2px;
}

.producto-galeria__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.producto-galeria__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--bs-border-radius-sm);
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--duration-short) var(--ease-out),
              border-color var(--duration-short) var(--ease-out);
}

.producto-galeria__thumb.is-active,
.producto-galeria__thumb:hover {
  opacity: 1;
  border-color: var(--color-walnut);
}

/* --------------------------------------------------------------------------
   Lightbox — fullscreen image viewer with zoom
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1070;
  display: flex;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: hsl(0 0% 0% / 0.88);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: hsl(0 0% 100% / 0.15);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--duration-short) var(--ease-out);
}

.lightbox__close:hover {
  background: hsl(0 0% 100% / 0.3);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: hsl(0 0% 100% / 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--duration-short) var(--ease-out);
}

.lightbox__nav:hover {
  background: hsl(0 0% 100% / 0.3);
}

.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.lightbox__image-wrap {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.2s ease;
  user-select: none;
}

.lightbox__img.is-zoomed {
  cursor: grab;
  transition: none;
}

.lightbox__img.is-dragging {
  cursor: grabbing;
}

.lightbox__toolbar {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: hsl(0 0% 0% / 0.55);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.lightbox__tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background var(--duration-short) var(--ease-out);
}

.lightbox__tool:hover {
  background: hsl(0 0% 100% / 0.2);
}

.lightbox__counter {
  color: hsl(0 0% 100% / 0.7);
  font-size: 0.8125rem;
  font-weight: 600;
  padding-inline: 0.5rem;
}

.producto-specs__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid hsl(195 15% 55% / 0.12);
}

.producto-specs__row dt {
  font-weight: 500;
  color: var(--bs-secondary-color);
}

.producto-specs__row dd {
  margin: 0;
  text-align: right;
}

.producto-detalle__mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  padding: 0.75rem 1rem;
  background: var(--color-cream);
  border-top: 1px solid hsl(195 15% 55% / 0.15);
  box-shadow: var(--md-elevation-2);
}

@media (min-width: 992px) {
  .producto-detalle__mobile-bar {
    display: none !important;
  }
}

.producto-card__media {
  overflow: hidden;
  border-radius: var(--shape-card) var(--shape-card) 0 0;
}

.producto-card__media img {
  transition: transform var(--duration-medium) var(--ease-out);
}

.producto-card:hover .producto-card__media img {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .producto-card:hover .producto-card__media img {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion — disable all animations & transitions
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-enter,
  .stagger-children > *,
  .card-hover:hover,
  a.card:hover,
  .card-interactive:hover {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:active,
  .whatsapp-fab:active {
    transform: none !important;
  }

  .whatsapp-fab {
    transition: none !important;
  }
}
