/* ==========================================================================
   SORIAN JOYERÍA - TEMA CLARO DEL CATÁLOGO (tienda-light.css)
   Misma paleta que el inicio: Crema, Arena, Vino y Oro.
   Se carga después de style.css y home-light.css, con <html class="theme-light">
   ========================================================================== */

html.theme-light {
  --bg-ivory: #FFFFFF;
  --bg-ivory-light: #FFF8E6;
  --bg-ivory-warm: var(--sj-sand);
  --primary-gold-dark: var(--sj-gold-text);
  --border-subtle: #EFE7D6;
  --shadow-subtle: 0 2px 10px rgba(120, 90, 30, 0.08);
  --shadow-card: 0 6px 24px rgba(120, 90, 30, 0.07);
  --shadow-hover: 0 14px 34px rgba(120, 90, 30, 0.14);
}

/* Partes aún no convertidas al tema claro (grabado, modales, asesor):
   conservan la paleta oscura original hasta que se trabaje cada una */
.theme-light #estudio-grabado,
.theme-light .modal-card,
.theme-light .floating-concierge,
.theme-light .toast {
  --bg-dark: #0B090E;
  --text-dark: #FAF6ED;
  --text-muted: #A8A095;
  --bg-ivory: #0E0C12;
  --bg-ivory-light: #16131C;
  --bg-ivory-warm: #110E15;
  --primary-gold-dark: #A67C1E;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 12px 32px -6px rgba(0, 0, 0, 0.5), 0 6px 14px -4px rgba(229, 184, 66, 0.08);
  --shadow-hover: 0 24px 50px -8px rgba(0, 0, 0, 0.75), 0 0 32px rgba(229, 184, 66, 0.35);
}

.theme-light #estudio-grabado :focus-visible,
.theme-light .modal-card :focus-visible {
  outline-color: var(--sj-gold-soft);
}

/* ==========================================================================
   1. BARRA SUPERIOR Y CABECERA
   ========================================================================== */
.theme-light .currency-select {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(243, 217, 139, 0.45);
  color: #FFFFFF;
  font-size: 0.78rem;
  padding: 4px 8px;
}

.theme-light .currency-select option {
  color: var(--sj-ink);
  background: #FFFFFF;
}

.theme-light .admin-portal-link {
  background: transparent;
  border-color: rgba(243, 217, 139, 0.45);
  color: #FFFFFF;
  font-size: 0.76rem;
  padding: 5px 14px;
}

.theme-light .admin-portal-link:hover {
  background: var(--sj-gold-soft);
  border-color: var(--sj-gold-soft);
  color: var(--sj-wine-deep);
  box-shadow: none;
  transform: none;
}

.theme-light .header-actions {
  gap: 10px;
}

.theme-light .header-action-btn {
  background: #FFFFFF;
  border-color: var(--sj-line);
  color: var(--sj-wine);
  width: 44px;
  height: 44px;
  box-shadow: none;
}

.theme-light .header-action-btn:hover {
  background: #FFF8E6;
  border-color: var(--sj-gold);
  color: var(--sj-wine);
  transform: none;
  box-shadow: none;
}

.theme-light .badge-count {
  background: var(--sj-wine);
  box-shadow: none;
}

/* ==========================================================================
   2. BANNER DEL CATÁLOGO
   ========================================================================== */
.theme-light .shop-hero-banner {
  z-index: 5;
  padding: 64px 20px 56px;
  color: var(--sj-ink);
  border-bottom: 1px solid var(--sj-line);
  background:
    radial-gradient(ellipse 55% 70% at 50% 20%, #FFFFFF 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(ellipse 40% 80% at 100% 100%, #F4E9CF 0%, rgba(244, 233, 207, 0) 70%),
    #FBF8F2;
}

.shop-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sj-wine);
  margin-bottom: 14px;
  text-wrap: balance;
}

.shop-hero-title em {
  font-style: normal;
  color: var(--sj-gold-text);
}

.shop-hero-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: #4F4642;
  max-width: 56ch;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ==========================================================================
   3. CATEGORÍAS, BÚSQUEDA Y ORDEN
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cat-shell {
  position: relative;
  z-index: 5;
  padding-bottom: 96px;
}

/* Franja fija bajo la cabecera */
.cat-bar {
  position: sticky;
  top: var(--sj-header-h, 78px);
  z-index: 40;
  background: rgba(250, 246, 240, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sj-line);
}

.cat-tabs {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
}

.cat-tabs-track {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-tabs-track::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  flex: 0 0 auto;
  padding: 20px 16px 18px;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #5A5053;
  cursor: pointer;
  transition: color 200ms ease, transform 160ms ease-out;
}

.cat-tab[aria-pressed="true"] {
  color: var(--sj-wine);
}

.cat-tab:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .cat-tab:hover {
    color: var(--sj-wine);
  }
}

/* Línea dorada que se desliza a la categoría activa (el JS fija translateX y scaleX) */
.cat-ink {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100px;
  height: 2px;
  background: var(--sj-gold);
  transform-origin: left center;
  transition: transform 360ms cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.cat-main {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 26px 0 30px;
}

.shop-toolbar-count {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  color: var(--sj-ink);
  font-variant-numeric: tabular-nums;
}

.cat-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.cat-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
  border-bottom: 1px solid #D8CBA6;
  color: var(--sj-gold-deep);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.cat-search:focus-within {
  border-bottom-color: var(--sj-wine);
  box-shadow: 0 1px 0 var(--sj-wine);
}

.cat-search i {
  font-size: 0.85rem;
}

.cat-search input {
  width: 170px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--sj-ink);
}

.theme-light .cat-search input:focus-visible {
  outline: none;
}

.cat-search input::placeholder {
  color: var(--sj-muted);
  opacity: 1;
}

.cat-select {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--sj-muted);
}

.cat-select select {
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 7px 2px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--sj-ink);
  cursor: pointer;
  transition: border-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .cat-select select:hover {
    border-bottom-color: #D8CBA6;
  }
}

.shop-reset-btn {
  background: none;
  border: none;
  padding: 7px 2px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sj-wine);
  text-decoration: underline;
  text-decoration-color: var(--sj-gold);
  text-underline-offset: 5px;
  cursor: pointer;
}

/* ==========================================================================
   4. CUADRÍCULA Y TARJETAS DE PRODUCTO
   ========================================================================== */
.theme-light .products-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 52px 28px;
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}

/* Al cambiar de categoría la cuadrícula sale un instante y las piezas entran en cascada */
.theme-light .products-grid.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}

.theme-light .product-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  animation: sjCardIn 520ms var(--mat-ease-out) backwards;
}

.theme-light .products-grid[data-instant] .product-card {
  animation: none;
}

@keyframes sjCardIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
}

.theme-light .product-card:hover {
  transform: none;
  box-shadow: none;
}

.theme-light .product-img-wrapper {
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: var(--sj-sand);
}

.theme-light .product-img {
  transition: transform 900ms var(--mat-ease-out);
}

.theme-light .product-card:hover .product-img {
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .theme-light .product-card:hover .product-img {
    transform: scale(1.04);
  }
}

.theme-light .product-badge-wrap {
  align-items: flex-start;
  max-width: calc(100% - 68px);
}

.theme-light .product-badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.7rem;
  box-shadow: none;
}

.theme-light .product-badge.badge-ruby {
  background: var(--sj-wine);
}

.theme-light .product-badge.badge-gold {
  background: var(--sj-gold-soft);
  color: #2A1E08;
}

.theme-light .product-badge.badge-discount {
  background: #FFFFFF;
  color: var(--sj-wine);
  border: 1px solid var(--sj-wine);
}

.theme-light .product-wishlist-btn {
  width: 40px;
  height: 40px;
  border-color: transparent;
  color: var(--sj-muted);
  box-shadow: none;
  transition: color 180ms ease, transform 160ms ease-out;
}

.theme-light .product-wishlist-btn:hover,
.theme-light .product-wishlist-btn.active {
  color: var(--sj-wine);
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.theme-light .product-wishlist-btn:active {
  transform: scale(0.92);
}

.theme-light .product-body {
  padding: 18px 2px 0;
}

.theme-light .product-category-tag {
  font-size: 0.72rem;
  color: var(--sj-gold-text);
}

.theme-light .product-title {
  color: var(--sj-ink);
  font-size: 1.04rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.theme-light .product-rating {
  color: var(--sj-gold);
  font-size: 0.72rem;
  margin-bottom: 8px;
}

.theme-light .product-rating .rating-count {
  color: var(--sj-muted);
}

/* La descripción lleva estilos en línea desde tienda.js */
.theme-light .product-body > p {
  font-size: 0.86rem !important;
  line-height: 1.5;
  height: 3em !important;
  color: var(--sj-muted) !important;
}

.theme-light .product-footer {
  padding-top: 14px;
  border-top-color: #EADFC4;
}

.theme-light .product-price-box {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
}

.theme-light .product-price {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--sj-ink);
}

.theme-light .on-sale .product-price {
  color: var(--sj-wine);
}

.price-cur {
  margin-right: 4px;
  font-family: var(--font-body);
  font-size: 0.6em;
  font-weight: 600;
  vertical-align: 0.35em;
  color: var(--sj-muted);
}

.price-num {
  font-variant-numeric: lining-nums tabular-nums;
}

.theme-light .product-old-price {
  margin-left: 0;
  font-size: 0.84rem;
  color: var(--sj-muted);
  font-variant-numeric: lining-nums tabular-nums;
}

/* Añadir a la bolsa: contorno en reposo, se llena de vino al pasar el cursor */
.theme-light .add-to-cart-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--sj-wine);
  color: var(--sj-wine);
  box-shadow: none;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms ease-out;
}

.theme-light .add-to-cart-btn:hover {
  background: transparent;
  color: var(--sj-wine);
  border-color: var(--sj-wine);
  transform: none;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .theme-light .add-to-cart-btn:hover {
    background: var(--sj-wine);
    color: #FFFFFF;
  }
}

.theme-light .add-to-cart-btn:active {
  transform: scale(0.94);
}

.theme-light .quick-view-btn {
  font-size: 0.78rem;
  color: #FFFFFF;
  border-color: var(--sj-gold-soft);
}

.theme-light .quick-view-btn:hover {
  background: var(--sj-gold-soft);
  border-color: var(--sj-gold-soft);
  color: #2A1E08;
}

@media (max-width: 1180px) {
  .theme-light .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .cat-tabs-track {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .theme-light .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 16px;
  }
  .cat-tabs {
    padding: 0 6px;
  }
  .cat-tab {
    padding: 16px 12px 14px;
    font-size: 0.8rem;
  }
  .cat-main {
    padding: 0 16px;
  }
  .shop-toolbar {
    padding: 20px 0 24px;
  }
  .cat-tools {
    width: 100%;
    gap: 10px 20px;
  }
  .cat-search {
    flex: 1 1 100%;
  }
  .cat-search input {
    width: 100%;
  }
  .cat-shell {
    padding-bottom: 68px;
  }
}

@media (max-width: 560px) {
  .theme-light .product-body > p {
    display: none !important;
  }
  .theme-light .product-title {
    font-size: 0.95rem;
  }
  .theme-light .product-price {
    font-size: 1.08rem;
  }
  .theme-light .product-comp-panel {
    padding: 12px 14px;
    gap: 6px;
  }
  .theme-light .product-comp-panel ol {
    font-size: 0.78rem;
    line-height: 1.45;
  }
  .theme-light .product-comp-panel p {
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cat-ink,
  .theme-light .products-grid {
    transition: none;
  }
}
/* ==========================================================================
   5. MATERIALES Y COMPOSICIÓN
   ========================================================================== */
html.theme-light {
  --mat-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

.shop-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 4px;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--sj-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  color: var(--sj-wine);
}

.shop-hero-link i {
  font-size: 0.8em;
  transition: transform 200ms var(--mat-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .shop-hero-link:hover i {
    transform: translateY(3px);
  }
}

/* Franja de ambientes garantizados */
.shop-ambientes {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 18px 20px;
  background: var(--sj-sand);
  border-bottom: 1px solid #E4DDD0;
}

.shop-ambientes-label {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--sj-wine);
}

.shop-ambientes-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}

.shop-ambientes-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--sj-ink);
}

.shop-ambientes-list i {
  color: var(--sj-gold-deep);
  font-size: 0.95em;
}

/* Composición en la tarjeta de producto */
.product-comp-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 2px 0 10px;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.product-comp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.product-comp-chips span {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #E0CF9F;
  border-radius: 9999px;
  background: #FFFDF6;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sj-gold-text);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.product-comp-btn i {
  padding: 6px 2px 6px 4px;
  font-size: 0.7rem;
  color: var(--sj-wine);
  transform: rotate(180deg);
  transition: transform 200ms var(--mat-ease-out);
}

.product-comp-btn[aria-expanded="true"] i {
  transform: rotate(0deg);
}

.product-comp-btn[aria-expanded="true"] .product-comp-chips span {
  background: #FFF8E6;
  border-color: var(--sj-gold);
}

.product-comp-btn:active .product-comp-chips span {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .product-comp-btn:hover .product-comp-chips span {
    border-color: var(--sj-gold);
  }
}

.product-comp-panel {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px 24px;
  background: #FBF8F2;
  color: var(--sj-ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 0s linear 160ms;
}

.product-card.comp-open .product-comp-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 220ms var(--mat-ease-out), transform 220ms var(--mat-ease-out), visibility 0s;
}

.product-comp-panel strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.6px;
  color: var(--sj-wine);
}

.product-comp-panel ol {
  margin: 0;
  padding-left: 1.2em;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
}

.product-comp-panel ol li::marker {
  color: var(--sj-gold-text);
  font-weight: 700;
}

.product-comp-panel p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sj-gold-text);
}

/* Explorador de capas */
.mat-section {
  position: relative;
  z-index: 5;
  padding: 96px 20px;
  background: var(--sj-cream);
  border-top: 1px solid var(--sj-line);
}

.mat-wrap {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: start;
}

.mat-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mat-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(320px, 100%);
  padding: 4px;
  border: 1px solid var(--sj-line);
  border-radius: 9999px;
  background: var(--sj-sand);
}

.mat-switch::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 9999px;
  background: var(--sj-wine);
  transition: transform 240ms var(--mat-ease-out);
}

.mat-explorer[data-set="otros"] .mat-switch::before {
  transform: translateX(100%);
}

.mat-switch-btn {
  position: relative;
  padding: 11px 14px;
  background: none;
  border: none;
  border-radius: 9999px;
  font-family: var(--font-serif);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sj-wine);
  cursor: pointer;
  transition: color 200ms ease, transform 160ms ease-out;
}

.mat-switch-btn[aria-pressed="true"] {
  color: #FFFFFF;
}

.mat-switch-btn:active {
  transform: scale(0.97);
}

/* Anillo sólido en 3D (canvas, materiales.js) */
.mat-ring {
  display: block;
  width: min(440px, 100%);
  aspect-ratio: 1 / 1;
  margin: -12px 0 -20px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 24px;
}

.mat-ring.is-dragging {
  cursor: grabbing;
}

.mat-ring:focus-visible {
  outline: 2px solid var(--sj-gold);
  outline-offset: 4px;
}

.mat-ring-hint {
  margin-top: -16px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  text-align: center;
  color: var(--sj-muted);
}

.mat-caption {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  text-align: center;
  color: var(--sj-ink);
}

.mat-explorer[data-set="sorian"] [data-for="otros"]:not(.mat-set),
.mat-explorer[data-set="otros"] [data-for="sorian"]:not(.mat-set) {
  display: none;
}

.mat-info .sj-lead {
  margin: 0 0 30px;
  max-width: 58ch;
  color: #4F4642;
}

.mat-layers {
  list-style: none;
  display: grid;
  gap: 10px;
}

.mat-layer-btn {
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 16px;
  row-gap: 2px;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: 1px solid var(--sj-line);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 160ms ease-out;
}

.mat-layer-btn:active {
  transform: scale(0.99);
}

.mat-layer-btn[aria-pressed="true"] {
  background: #FFFDF6;
  border-color: var(--sj-gold);
  box-shadow: 0 6px 20px rgba(120, 90, 30, 0.08);
}

.mat-swatch {
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(43, 35, 38, 0.14);
}

.mat-swatch-esmalte { background: #FFFFFF; border-color: #D9BE6E; }
.mat-swatch-oro { background: linear-gradient(135deg, #F3D98B, #C9A227 55%, #A67C1E); }
.mat-swatch-nucleo { background: linear-gradient(135deg, #FFFFFF, #B9BEC6); }
.mat-swatch-golfi { background: linear-gradient(135deg, #F1E3B4, #D2B565); }
.mat-swatch-cobre { background: linear-gradient(135deg, #EBC7AC, #9C6243); }

.mat-layer-name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--sj-wine);
}

.mat-layer-desc {
  grid-column: 2;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--sj-muted);
}

.mat-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sj-line);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sj-ink);
  max-width: 58ch;
}

@media (max-width: 900px) {
  .mat-section {
    padding: 68px 16px;
  }
  .mat-wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .mat-ring {
    width: min(360px, 100%);
  }
  .shop-ambientes {
    flex-direction: column;
    gap: 12px;
  }
  .shop-ambientes-list {
    gap: 10px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-comp-panel,
  .product-card.comp-open .product-comp-panel {
    transform: none;
  }
  .mat-switch::before {
    transition: none;
  }
}

/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .theme-light .shop-hero-banner {
    padding: 44px 16px 40px;
  }
  .theme-light .shop-catalog-layout {
    margin-top: 28px;
  }
  .theme-light .header-action-btn {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-light .product-card:hover,
  .theme-light .add-to-cart-btn:hover {
    transform: none;
  }
  .theme-light .product-card:hover .product-img {
    transform: none;
  }
}

/* ==========================================================================
   7. BOLSA DE COMPRAS (panel lateral claro)
   Crema y blanco, títulos en Cinzel, textos en Montserrat, vino para la
   acción principal y oro solo como acento.
   ========================================================================== */
.theme-light .cart-drawer {
  max-width: 440px;
  height: 100dvh;
  background: var(--sj-cream);
  border-left: 1px solid var(--sj-line);
  box-shadow: -24px 0 60px rgba(43, 35, 38, 0.18);
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.42s;
  color: var(--sj-ink);
  font-family: var(--font-body);
}

.theme-light .cart-drawer :focus-visible {
  outline: 2px solid var(--sj-gold-deep);
  outline-offset: 2px;
}

.theme-light .cart-drawer-header {
  padding: 22px 24px 18px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--sj-line);
  align-items: flex-start;
}

.cart-drawer-kicker {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--sj-gold-text);
}

.theme-light .cart-drawer-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 1px;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--sj-wine);
  gap: 8px;
}

.cart-drawer-count {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--sj-muted);
}

.theme-light .cart-drawer-close {
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--sj-line);
  color: var(--sj-ink);
  font-size: 1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.16s ease-out;
}

.theme-light .cart-drawer-close:hover {
  background: var(--sj-sand);
  border-color: var(--sj-wine);
  color: var(--sj-wine);
  box-shadow: none;
  transform: none;
}

.theme-light .cart-drawer-close:active {
  transform: scale(0.95);
}

/* Envío gratis */
.theme-light .free-shipping-bar {
  padding: 14px 24px 16px;
  background: var(--sj-sand);
  border-bottom: 1px solid var(--sj-line);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: left;
  color: var(--sj-muted);
}

.theme-light .free-shipping-bar strong {
  font-weight: 600;
  color: var(--sj-ink);
}

.theme-light .free-shipping-bar i {
  margin-right: 4px;
  color: var(--sj-gold-text);
}

.theme-light .shipping-progress-track {
  height: 3px;
  margin-top: 10px;
  background: rgba(166, 124, 30, 0.18);
  border: none;
}

.theme-light .shipping-progress-fill {
  background: linear-gradient(90deg, var(--sj-gold-deep), var(--sj-gold));
  box-shadow: none;
  transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Lista de joyas */
.theme-light .cart-items-list {
  padding: 8px 24px;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 124, 30, 0.45) transparent;
}

.theme-light .cart-item-card {
  position: relative;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--sj-line);
  align-items: flex-start;
}

.theme-light .cart-item-card:last-child {
  border-bottom: none;
}

.theme-light .cart-item-img {
  flex: 0 0 auto;
  width: 84px;
  height: 104px;
  border: none;
  border-radius: 4px;
  background: #FFFFFF;
}

.theme-light .cart-item-details {
  flex: 1 1 auto;
  min-width: 0;
}

.theme-light .cart-item-name {
  padding-right: 32px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.3px;
  color: var(--sj-ink);
}

.cart-item-meta {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--sj-muted);
}

.cart-item-engrave {
  color: var(--sj-gold-text);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.theme-light .cart-item-price {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sj-ink);
  white-space: nowrap;
}

/* Selector de cantidad: una sola píldora */
.theme-light .cart-item-qty {
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--sj-line);
  border-radius: 999px;
  background: #FFFFFF;
}

.theme-light .qty-btn {
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--sj-ink);
  font-size: 0.66rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.12s ease-out;
}

.theme-light .qty-btn:hover {
  background: var(--sj-sand);
  color: var(--sj-wine);
  border-color: transparent;
}

.theme-light .qty-btn:active {
  transform: scale(0.92);
}

.qty-value {
  min-width: 22px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.theme-light .cart-item-remove {
  position: absolute;
  top: 16px;
  right: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  color: var(--sj-muted);
  font-size: 0.85rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-light .cart-item-remove:hover {
  background: var(--sj-sand);
  color: var(--sj-wine);
}

/* Bolsa vacía */
.cart-empty {
  margin: auto 0;
  padding: 48px 8px;
  text-align: center;
}

.cart-empty-icon {
  margin-bottom: 16px;
  font-size: 2rem;
  color: var(--sj-gold);
}

.cart-empty-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sj-ink);
}

.cart-empty-text {
  margin: 8px auto 22px;
  max-width: 26ch;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--sj-muted);
}

.cart-empty-btn {
  padding: 11px 26px;
  background: transparent;
  border: 1px solid var(--sj-wine);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--sj-wine);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s ease-out;
}

.cart-empty-btn:hover {
  background: var(--sj-wine);
  color: #FFFFFF;
}

.cart-empty-btn:active {
  transform: scale(0.97);
}

/* Pie: cupón, resumen y pago */
.theme-light .cart-drawer-footer {
  padding: 18px 24px 22px;
  background: #FFFFFF;
  border-top: 1px solid var(--sj-line);
}

.theme-light .cart-drawer.is-empty .cart-drawer-footer {
  display: none;
}

.theme-light .coupon-input-wrap {
  margin: 0 0 16px;
}

.theme-light .coupon-input {
  padding: 10px 14px;
  background: var(--sj-cream);
  border: 1px solid var(--sj-line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--sj-ink);
}

.theme-light .coupon-input::placeholder {
  text-transform: none;
  letter-spacing: 0;
  color: #8C827B;
}

.theme-light .coupon-input:focus {
  border-color: var(--sj-gold-deep);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.theme-light .coupon-btn {
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--sj-ink);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sj-ink);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s ease-out;
}

.theme-light .coupon-btn:hover {
  background: var(--sj-ink);
  color: #FFFFFF;
  border-color: var(--sj-ink);
}

.theme-light .coupon-btn:active {
  transform: scale(0.97);
}

.theme-light .cart-summary-row {
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: var(--sj-muted);
  font-variant-numeric: tabular-nums;
}

.theme-light .cart-summary-row[hidden] {
  display: none;
}

.theme-light .cart-summary-discount {
  color: var(--sj-wine);
}

.theme-light .cart-summary-total {
  align-items: baseline;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--sj-line);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--sj-ink);
  text-shadow: none;
}

.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 15px 20px;
  background: var(--sj-wine);
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.16s ease-out;
}

.cart-checkout-btn i {
  font-size: 0.72rem;
  color: var(--sj-gold-soft);
}

.cart-checkout-btn:hover {
  background: var(--sj-wine-deep);
}

.cart-checkout-btn:active {
  transform: scale(0.98);
}

.cart-drawer-note {
  margin-top: 10px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--sj-muted);
}

@media (max-width: 480px) {
  .theme-light .cart-drawer-header,
  .theme-light .free-shipping-bar,
  .theme-light .cart-drawer-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .theme-light .cart-items-list {
    padding: 4px 16px;
  }
  .theme-light .cart-item-img {
    width: 72px;
    height: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-light .cart-drawer {
    transition: visibility 0s;
  }
  .theme-light .shipping-progress-fill {
    transition: none;
  }
}

/* ==========================================================================
   8. VISTA RÁPIDA DE LA JOYA (ventana clara)
   Solo afecta a #quick-view-modal; favoritos y pago siguen con su estilo.
   ========================================================================== */
.theme-light #quick-view-modal {
  background: rgba(43, 35, 38, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.theme-light #quick-view-modal .qv-card {
  --text-dark: var(--sj-ink);
  --text-muted: var(--sj-muted);
  max-width: 920px;
  padding: 0;
  overflow: hidden auto;
  background: var(--sj-cream);
  color: var(--sj-ink);
  border: 1px solid var(--sj-line);
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(43, 35, 38, 0.4);
  transform: scale(0.97) translateY(12px);
  transition: transform 0.32s cubic-bezier(0.23, 1, 0.32, 1);
  font-family: var(--font-body);
}

.theme-light #quick-view-modal.active .qv-card {
  transform: none;
}

.theme-light #quick-view-modal .qv-card :focus-visible {
  outline: 2px solid var(--sj-gold-deep);
  outline-offset: 2px;
}

.theme-light #quick-view-modal .modal-close-btn {
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--sj-line);
  color: var(--sj-ink);
  font-size: 1rem;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.16s ease-out;
}

.theme-light #quick-view-modal .modal-close-btn:hover {
  background: #FFFFFF;
  border-color: var(--sj-wine);
  color: var(--sj-wine);
  box-shadow: none;
  transform: none;
}

.theme-light #quick-view-modal .modal-close-btn:active {
  transform: scale(0.95);
}

.quick-view-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

/* Foto */
.qv-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: 40px;
  background: #FFFFFF;
  border-right: 1px solid var(--sj-line);
}

.qv-media img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.qv-badge {
  position: absolute;
  top: 18px;
  left: 18px;
}

/* Información */
.qv-info {
  display: flex;
  flex-direction: column;
  padding: 48px 40px 36px;
}

.qv-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--sj-gold-text);
}

.qv-title {
  margin-top: 10px;
  padding-right: 24px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.5px;
  color: var(--sj-ink);
}

.qv-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sj-line);
}

.qv-price-now {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sj-ink);
}

.qv-price.on-sale .qv-price-now {
  color: var(--sj-wine);
}

.qv-price-old {
  font-size: 0.9rem;
  color: var(--sj-muted);
  text-decoration: line-through;
  font-variant-numeric: lining-nums tabular-nums;
}

.qv-price-off {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(138, 28, 44, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sj-wine);
}

.qv-desc {
  margin-top: 20px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--sj-muted);
}

.qv-field {
  margin-top: 22px;
}

.qv-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sj-ink);
}

.qv-meta {
  font-size: 0.82rem;
  color: var(--sj-muted);
}

.qv-select-wrap {
  position: relative;
}

.qv-select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 18px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--sj-ink);
  border-bottom: 1.5px solid var(--sj-ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.qv-select {
  width: 100%;
  padding: 12px 44px 12px 18px;
  appearance: none;
  -webkit-appearance: none;
  background: #FFFFFF;
  border: 1px solid var(--sj-line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--sj-ink);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qv-select:hover {
  border-color: var(--sj-gold-deep);
}

.qv-select:focus {
  outline: none;
  border-color: var(--sj-gold-deep);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.qv-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.qv-add-btn {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  background: var(--sj-wine);
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.16s ease-out;
}

.qv-add-btn i {
  color: var(--sj-gold-soft);
}

.qv-add-btn:hover {
  background: var(--sj-wine-deep);
}

.qv-add-btn:active,
.qv-wish-btn:active {
  transform: scale(0.97);
}

.qv-wish-btn {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--sj-line);
  border-radius: 999px;
  font-size: 1.05rem;
  color: var(--sj-ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.16s ease-out;
}

.qv-wish-btn:hover,
.qv-wish-btn.active {
  border-color: var(--sj-wine);
  color: var(--sj-wine);
}

.qv-note {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.72rem;
  color: var(--sj-muted);
}

.qv-note i {
  margin-right: 4px;
  font-size: 0.66rem;
  color: var(--sj-gold-text);
}

@media (max-width: 760px) {
  .theme-light #quick-view-modal {
    padding: 12px;
  }
  .quick-view-grid {
    grid-template-columns: 1fr;
  }
  .qv-media {
    min-height: 0;
    padding: 28px;
    border-right: none;
    border-bottom: 1px solid var(--sj-line);
  }
  .qv-media img {
    max-height: 260px;
  }
  .qv-info {
    padding: 24px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-light #quick-view-modal .qv-card {
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   9. FAVORITOS (ventana clara, igual que la vista rápida)
   ========================================================================== */
.theme-light #wishlist-modal {
  background: rgba(43, 35, 38, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.theme-light #wishlist-modal .fav-card {
  --text-dark: var(--sj-ink);
  --text-muted: var(--sj-muted);
  display: flex;
  flex-direction: column;
  max-width: 600px;
  max-height: min(86vh, 760px);
  padding: 0;
  overflow: hidden;
  background: var(--sj-cream);
  color: var(--sj-ink);
  border: 1px solid var(--sj-line);
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(43, 35, 38, 0.4);
  transform: scale(0.97) translateY(12px);
  transition: transform 0.32s cubic-bezier(0.23, 1, 0.32, 1);
  font-family: var(--font-body);
}

.theme-light #wishlist-modal.active .fav-card {
  transform: none;
}

.theme-light #wishlist-modal .fav-card :focus-visible {
  outline: 2px solid var(--sj-gold-deep);
  outline-offset: 2px;
}

.theme-light #wishlist-modal .modal-close-btn {
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--sj-line);
  color: var(--sj-ink);
  font-size: 1rem;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.16s ease-out;
}

.theme-light #wishlist-modal .modal-close-btn:hover {
  background: var(--sj-sand);
  border-color: var(--sj-wine);
  color: var(--sj-wine);
  box-shadow: none;
  transform: none;
}

.theme-light #wishlist-modal .modal-close-btn:active {
  transform: scale(0.95);
}

.fav-head {
  flex: 0 0 auto;
  padding: 24px 28px 20px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--sj-line);
}

.fav-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--sj-gold-text);
}

.fav-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--sj-wine);
}

.fav-count {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--sj-muted);
}

.fav-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 28px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 124, 30, 0.45) transparent;
}

.fav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--sj-line);
}

.fav-item:last-child {
  border-bottom: none;
}

.fav-item-img {
  flex: 0 0 auto;
  width: 76px;
  height: 92px;
  object-fit: cover;
  border-radius: 4px;
  background: #FFFFFF;
}

.fav-item-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fav-item-cat {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sj-gold-text);
}

.fav-item-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.3px;
  color: var(--sj-ink);
}

.fav-item-price {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sj-ink);
}

.fav-item-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fav-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--sj-wine);
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #FFFFFF;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.16s ease-out;
}

.fav-add-btn i {
  color: var(--sj-gold-soft);
}

.fav-add-btn:hover {
  background: var(--sj-wine-deep);
}

.fav-remove-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--sj-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s ease-out;
}

.fav-remove-btn:hover {
  background: var(--sj-sand);
  color: var(--sj-wine);
}

.fav-add-btn:active,
.fav-remove-btn:active,
.fav-empty-btn:active {
  transform: scale(0.97);
}

/* Sin favoritos */
.fav-empty {
  padding: 48px 8px 40px;
  text-align: center;
}

.fav-empty-icon {
  margin-bottom: 16px;
  font-size: 2rem;
  color: var(--sj-gold);
}

.fav-empty-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sj-ink);
}

.fav-empty-text {
  margin: 8px auto 22px;
  max-width: 30ch;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--sj-muted);
}

.fav-empty-btn {
  padding: 11px 26px;
  background: transparent;
  border: 1px solid var(--sj-wine);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--sj-wine);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s ease-out;
}

.fav-empty-btn:hover {
  background: var(--sj-wine);
  color: #FFFFFF;
}

@media (max-width: 520px) {
  .theme-light #wishlist-modal {
    padding: 12px;
  }
  .fav-head {
    padding: 20px 20px 16px;
  }
  .fav-list {
    padding: 4px 20px 8px;
  }
  .fav-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 12px 14px;
  }
  .fav-item-img {
    width: 64px;
    height: 78px;
  }
  .fav-item-actions {
    grid-column: 2;
  }
  .fav-add-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-light #wishlist-modal .fav-card {
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   10. SEGUNDA FOTO AL PASAR EL CURSOR (foto de estudio)
   ========================================================================== */
.theme-light .product-img-alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 450ms ease, transform 900ms var(--mat-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .theme-light .product-card:hover .product-img-alt {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-light .product-img-alt {
    transition: none;
  }
}

/* El conteo de piezas ya no se muestra; lo siguen anunciando los lectores de pantalla */
.shop-toolbar-count {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.shop-toolbar .cat-tools {
  margin-left: auto;
}
