/* =========================================
   PRODUCTOS PAGE — meVistoComoQuiero
   Lacoste-inspired filter panel + grid
   ========================================= */

/* ---------- PAGE SHELL ---------- */
.productos-page {
  padding-top: calc(var(--site-nav-height, 82px) + 42px);
  background: #faf8f6;
  min-height: 100vh;
}

/* ---------- TOP BAR ---------- */
.productos-topbar {
  position: sticky;
  top: var(--site-nav-height, 82px);
  z-index: 90;
  background: rgba(250, 248, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(88, 62, 49, 0.08);
  padding: 0.7rem 0;
}

.productos-topbar .breadcrumb {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.productos-topbar .breadcrumb a {
  color: #7a2b3b;
  text-decoration: none;
}

.productos-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.productos-count {
  font-size: 0.78rem;
  color: #999;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.filtro-toggle-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgba(88, 62, 49, 0.2);
  border-radius: 999px;
  background: transparent;
  color: #4b2319;
  font-family: "Nunito", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.filtro-toggle-btn:hover {
  background: rgba(122, 43, 59, 0.06);
  border-color: #7a2b3b;
}

.ordenar-por {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ordenar-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.ordenar-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.45rem 2rem 0.45rem 0.85rem;
  border: 1.5px solid rgba(88, 62, 49, 0.15);
  border-radius: 8px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a2b3b'/%3E%3C/svg%3E")
    no-repeat right 0.75rem center;
  background-size: 10px 6px;
  font-family: "Nunito", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b2319;
  cursor: pointer;
  transition: border-color 0.2s;
}

.ordenar-select:focus {
  outline: none;
  border-color: #7a2b3b;
  box-shadow: 0 0 0 3px rgba(122, 43, 59, 0.08);
}

/* ---------- LAYOUT ---------- */
.productos-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
  position: relative;
}

.productos-main {
  min-width: 0;
}

/* ---------- FILTER PANEL ---------- */
.filtros-panel {
  position: sticky;
  top: calc(var(--site-nav-height, 82px) + 52px);
  max-height: calc(100vh - var(--site-nav-height, 82px) - 70px);
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 43, 59, 0.2) transparent;
}

.filtros-panel::-webkit-scrollbar {
  width: 4px;
}
.filtros-panel::-webkit-scrollbar-thumb {
  background: rgba(122, 43, 59, 0.2);
  border-radius: 4px;
}

.filtros-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.filtros-panel-title {
  font-family: "Staatliches", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a2b3b;
  margin: 0;
}

.filtros-close-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(122, 43, 59, 0.08);
  color: #7a2b3b;
  font-size: 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ── Active filter chips ── */
.filtros-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(88, 62, 49, 0.1);
}

.filtros-active-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filtro-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(122, 43, 59, 0.08);
  color: #7a2b3b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  white-space: nowrap;
}

.filtro-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: rgba(122, 43, 59, 0.15);
  color: #7a2b3b;
  font-size: 0.55rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background 0.15s;
}

.filtro-chip-remove:hover {
  background: #7a2b3b;
  color: #fff;
}

.filtros-clear-all {
  border: none;
  background: none;
  color: #7a2b3b;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
}

/* ── Section toggle ── */
.filtro-section {
  border-bottom: 1px solid rgba(88, 62, 49, 0.08);
}

.filtro-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 0;
  border: none;
  background: transparent;
  font-family: "Nunito", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2c1a14;
  cursor: pointer;
}

.filtro-section-toggle i {
  font-size: 0.65rem;
  color: #aaa;
  transition: transform 0.25s;
}

.filtro-section-toggle[aria-expanded="false"] i {
  transform: rotate(180deg);
}

.filtro-section-body {
  padding-bottom: 1rem;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.25s ease;
}

.filtro-section.is-collapsed .filtro-section-body {
  max-height: 0 !important;
  opacity: 0;
  padding-bottom: 0;
}

/* ── Checkboxes (Lacoste style) ── */
.filtro-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  cursor: pointer;
  transition: color 0.15s;
}

.filtro-check:hover {
  color: #7a2b3b;
}

.filtro-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filtro-check-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #c5b8b0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.filtro-check-box::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.6rem;
  color: #fff;
  opacity: 0;
  transform: scale(0);
  transition:
    opacity 0.15s,
    transform 0.15s;
}

.filtro-check input:checked + .filtro-check-box {
  background: #7a2b3b;
  border-color: #7a2b3b;
}

.filtro-check input:checked + .filtro-check-box::after {
  opacity: 1;
  transform: scale(1);
}

.filtro-check-label {
  font-size: 0.88rem;
  color: #555;
  font-weight: 500;
  transition: color 0.15s;
}

.filtro-check:hover .filtro-check-label,
.filtro-check input:checked ~ .filtro-check-label {
  color: #2c1a14;
  font-weight: 600;
}

/* ── Size buttons ── */
.filtro-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filtro-size-btn {
  min-width: 42px;
  height: 38px;
  border: 1.5px solid #d5c9c0;
  border-radius: 6px;
  background: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.filtro-size-btn:hover {
  border-color: #7a2b3b;
  color: #7a2b3b;
}

.filtro-size-btn.is-active {
  background: #7a2b3b;
  border-color: #7a2b3b;
  color: #fff;
}

/* ── Color swatches ── */
.filtro-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filtro-color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  background: var(--swatch);
  cursor: pointer;
  position: relative;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.filtro-color-swatch:hover {
  transform: scale(1.15);
}

.filtro-color-swatch.is-active {
  border-color: #7a2b3b;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 0 0 2px #fff,
    0 0 0 4px #7a2b3b;
}

.filtro-color-swatch.is-active::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* white swatch check must be dark */
.filtro-color-swatch[data-color="blanco"].is-active::after {
  color: #333;
  text-shadow: none;
}

/* ── Price range ── */
.filtro-price {
  padding: 0.2rem 0;
}

.filtro-price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4b2319;
  margin-bottom: 0.6rem;
}

.filtro-price-track {
  position: relative;
  height: 6px;
}

.filtro-range {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  width: 100%;
  height: 6px;
  background: transparent;
  pointer-events: none;
  top: 0;
  left: 0;
}

.filtro-range::-webkit-slider-runnable-track {
  height: 4px;
  background: #e8ddd5;
  border-radius: 4px;
}

.filtro-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #7a2b3b;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  pointer-events: auto;
  margin-top: -8px;
  transition: transform 0.15s;
}

.filtro-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.filtro-range::-moz-range-track {
  height: 4px;
  background: #e8ddd5;
  border-radius: 4px;
  border: none;
}

.filtro-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #7a2b3b;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  pointer-events: auto;
}

/* ── Mobile footer ── */
.filtros-panel-footer {
  display: none;
}

.filtros-apply-btn {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a2b3b 0%, #a33d52 100%);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(122, 43, 59, 0.25);
}

/* ── Mobile overlay ── */
.filtros-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 899;
  background: rgba(20, 8, 12, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.filtros-overlay.is-visible {
  display: block;
  opacity: 1;
}

/* ---------- PRODUCTS GRID ---------- */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 18px;
  margin-bottom: 48px;
}

.producto-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  transform: translateY(16px);
  animation: productoCardReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: var(--card-delay, 0ms);
  transition: box-shadow 0.25s, transform 0.25s;
}
.producto-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ── Image container ── */
.producto-imagen {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f2edea;
  cursor: pointer;
}

/* Shimmer loading skeleton */
.producto-imagen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    105deg,
    #f2edea 0%,
    #f2edea 35%,
    #faf7f5 50%,
    #f2edea 65%,
    #f2edea 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

.producto-imagen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.producto-imagen-principal {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.producto-imagen-hover {
  z-index: 1;
  opacity: 1;
  transform: scale(1.02);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.producto-card:hover .producto-imagen-principal {
  opacity: 0;
  transform: scale(1.02);
}

.producto-card:hover .producto-imagen-hover {
  transform: scale(1);
}

/* Wishlist button — always visible */
.producto-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: #2c1a14;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateY(0);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.producto-wishlist:hover {
  background: #7a2b3b;
  color: #fff;
}

.producto-wishlist.is-liked {
  opacity: 1;
  background: #7a2b3b;
  color: #fff;
}

.producto-wishlist.is-liked i {
  font-weight: 900;
}

/* Sale tag */
.producto-tag-oferta {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 5;
  padding: 4px 10px;
  border-radius: 0;
  background: #2c1a14;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Info section ── */
.producto-info {
  padding: 10px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.producto-cat {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a0a0a0;
  font-weight: 600;
}

.producto-nombre {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.35;
  height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
  cursor: pointer;
}

.producto-card:hover .producto-nombre {
  color: #7a2b3b;
}

.producto-precio-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 3px;
  min-height: 1.3em;
}

.producto-precio {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: 0.01em;
}

.producto-precio-old {
  font-size: 0.8rem;
  color: #b8b8b8;
  text-decoration: line-through;
  font-weight: 400;
}

/* Actions row — always visible */
.producto-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  opacity: 1;
  transform: translateY(0);
}

/* Envío gratis chip */
.prod-envio-gratis {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #00a650;
  margin-top: 2px;
}
.prod-envio-gratis i { font-size: 0.65rem; }

.producto-ver-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0;
  border-radius: 0;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    letter-spacing 0.3s ease;
}

.producto-ver-btn:hover {
  background: #7a2b3b;
  color: #fff;
  letter-spacing: 0.16em;
}

.producto-add-btn {
  flex: 1;
  height: 38px;
  border: none;
  border-radius: 0;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition:
    background 0.25s ease,
    letter-spacing 0.3s ease;
}

.producto-add-btn:hover {
  background: #7a2b3b;
  letter-spacing: 0.14em;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.btn-agregar {
  width: 100%;
  padding: 8px;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-agregar:hover {
  background-color: #333;
}

.etiqueta {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}

.etiqueta-nuevo {
  background-color: #fff;
  color: #000;
}

.etiqueta-oferta {
  background-color: #ff0000;
  color: #fff;
}

.paginacion {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.paginacion a,
.paginacion span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
}

.paginacion a:hover,
.paginacion .pagina-activa {
  background-color: #000;
  color: white;
  border-color: #000;
}

@keyframes productoCardReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 991px) {
  .productos-layout {
    grid-template-columns: 1fr;
  }

  .filtro-toggle-btn {
    display: inline-flex;
  }

  .filtros-panel {
    position: fixed;
    top: 0;
    left: -320px;
    bottom: 0;
    width: 300px;
    max-height: 100vh;
    z-index: 900;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    transition: left 0.35s ease;
    overflow-y: auto;
  }

  .filtros-panel.is-open {
    left: 0;
  }

  .filtros-close-btn {
    display: flex;
  }

  .filtros-panel-footer {
    display: block;
    position: sticky;
    bottom: 0;
    padding: 1rem 0 0.5rem;
    background: #fff;
  }

  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
  }

}

@media (max-width: 576px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 8px;
  }

  .producto-info {
    padding: 10px 2px 16px;
    gap: 3px;
  }

  .producto-nombre {
    font-size: 0.76rem;
    height: 2.1em;
  }

  .producto-precio {
    font-size: 0.85rem;
  }

  .producto-add-btn {
    font-size: 0.62rem;
    height: 34px;
    letter-spacing: 0.08em;
  }

  .producto-cat {
    font-size: 0.58rem;
  }

  .producto-wishlist {
    opacity: 1;
    transform: none;
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
    top: 6px;
    right: 6px;
  }

  .productos-topbar-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================
   NEW FEATURES — Quick View · Toast · Grid Toggle · Search
   ============================================================ */

/* ── Topbar Search ── */
.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
}

.topbar-search-trigger {
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  color: #4b2319;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.topbar-search-trigger:hover {
  background: rgba(122, 43, 59, 0.08);
}

.topbar-search-box {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  background: #fff;
  border: 1.5px solid rgba(88, 62, 49, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
  white-space: nowrap;
}
.topbar-search-box.is-open {
  width: 240px;
  opacity: 1;
  pointer-events: auto;
}
.topbar-search-icon {
  padding: 0 0 0 0.75rem;
  color: #aaa;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.topbar-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.55rem 0.6rem;
  font-size: 0.85rem;
  color: #2c1a14;
  background: transparent;
  min-width: 0;
}
.topbar-search-input::placeholder {
  color: #bbb;
}
.topbar-search-clear {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #bbb;
  cursor: pointer;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s;
}
.topbar-search-clear:hover {
  color: #7a2b3b;
}

/* ── Grid Density Toggle ── */
.grid-toggle {
  display: flex;
  align-items: center;
  gap: 1px;
  border: 1.5px solid rgba(88, 62, 49, 0.15);
  border-radius: 8px;
  padding: 2px;
}
.grid-btn {
  width: 28px;
  height: 26px;
  border: none;
  background: none;
  color: #bbb;
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition:
    background 0.15s,
    color 0.15s;
}
.grid-btn:hover {
  color: #4b2319;
  background: rgba(88, 62, 49, 0.06);
}
.grid-btn--active {
  background: #1a1a1a;
  color: #fff;
}

/* Grid cols via data-attr */
#productsList[data-cols="4"] {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 14px;
}
#productsList[data-cols="2"] {
  grid-template-columns: repeat(2, 1fr);
}
#productsList[data-cols="list"] {
  grid-template-columns: 1fr;
  gap: 14px;
}
#productsList[data-cols="list"] .producto-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 0;
}
#productsList[data-cols="list"] .producto-imagen {
  aspect-ratio: auto;
  height: 220px;
}
#productsList[data-cols="list"] .producto-info {
  padding: 1.25rem 1.5rem;
}
#productsList[data-cols="list"] .producto-nombre {
  font-size: 1rem;
  height: auto;
  -webkit-line-clamp: 3;
}
#productsList[data-cols="list"] .producto-card-actions {
  opacity: 1;
  transform: none;
}

/* ── Filter Badge ── */
.filtro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #7a2b3b;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  margin-left: 0.25rem;
  vertical-align: middle;
  line-height: 1;
}

/* ── Enhanced Card Badges ── */
.prod-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.prod-badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
}
.prod-badge--new {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.prod-badge--sale {
  background: #7a2b3b;
  color: #fff;
}
.prod-badge--sold {
  background: rgba(26, 26, 26, 0.75);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* ── Quick View Button (on image hover) ── */
.prod-quickview-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0.65rem;
  border: none;
  background: rgba(26, 26, 26, 0.82);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.2s ease;
}
.producto-card:hover .prod-quickview-btn {
  transform: translateY(0);
}
.prod-quickview-btn:hover {
  background: rgba(122, 43, 59, 0.9);
}

/* ── Star Rating on Card ── */
.prod-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 1px 0;
}
.prod-stars {
  color: #f4b942;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
}
.prod-review-cnt {
  font-size: 0.67rem;
  color: #bbb;
}

/* ── Color Dots on Card ── */
.prod-colors {
  display: flex;
  gap: 4px;
  margin: 2px 0;
}
.prod-color-dot {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  cursor: default;
  transition: transform 0.15s;
}

/* ── Sold-out card state ── */
.producto-card.is-soldout .producto-imagen-principal {
  filter: grayscale(35%) brightness(0.95);
}
.producto-card.is-soldout .producto-precio {
  color: #aaa;
}
.producto-add-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Skeleton Loading ── */
.producto-card.is-skeleton {
  pointer-events: none;
}
.producto-card.is-skeleton .producto-imagen {
  aspect-ratio: 3 / 4;
  background: #f0ecea;
  animation: shimmer 1.6s ease-in-out infinite;
  background-size: 200% 100%;
  background-image: linear-gradient(
    105deg,
    #f0ecea 0%,
    #f0ecea 35%,
    #faf7f5 50%,
    #f0ecea 65%,
    #f0ecea 100%
  );
}
.producto-card.is-skeleton .producto-imagen::before {
  display: none;
}
.producto-info .sk-line {
  height: 10px;
  border-radius: 4px;
  background-image: linear-gradient(
    105deg,
    #f0ecea 0%,
    #f0ecea 35%,
    #faf7f5 50%,
    #f0ecea 65%,
    #f0ecea 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
.sk-line--s { width: 50%; }
.sk-line--m { width: 75%; }
.sk-line--p { width: 38%; height: 14px; margin-top: 4px; }

/* ── Empty / Error State ── */
.productos-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 2rem;
  text-align: center;
  gap: 0.75rem;
}
.productos-empty-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(122, 43, 59, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: #7a2b3b;
  margin-bottom: 0.4rem;
}
.productos-empty h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c1a14;
  margin: 0;
}
.productos-empty p {
  color: #999;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.65;
}
.btn-empty-action {
  margin-top: 0.5rem;
  padding: 0.6rem 1.6rem;
  border: 1.5px solid #7a2b3b;
  border-radius: 999px;
  background: transparent;
  color: #7a2b3b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-empty-action:hover {
  background: #7a2b3b;
  color: #fff;
}

/* ── Toast Stack ── */
.toast-stack {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.55rem;
  pointer-events: none;
}
.toast-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.82rem 1.2rem;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transform: translateX(calc(100% + 2.5rem));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  max-width: 320px;
  white-space: nowrap;
}
.toast-item.is-visible {
  transform: translateX(0);
}
.toast-item--success { background: #1a1a1a; color: #fff; }
.toast-item--heart   { background: #7a2b3b; color: #fff; }
.toast-item--info    { background: #2d4480; color: #fff; }
.toast-item--warn    { background: #c07000; color: #fff; }
.toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
}

/* ── Quick View Modal ── */
.qv-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(10, 5, 3, 0.58);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.qv-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.qv-modal {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.qv-panel {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 88vh;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
  transform: scale(0.94) translateY(20px);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.3s ease;
  will-change: transform, opacity;
}
.qv-modal.is-open .qv-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.qv-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #2c1a14;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.qv-modal-close:hover {
  background: #1a1a1a;
  color: #fff;
  transform: rotate(90deg);
}

/* Gallery */
.qv-gallery {
  display: flex;
  background: #f2edea;
  overflow: hidden;
}
.qv-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 8px;
  overflow-y: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.qv-gallery-thumbs::-webkit-scrollbar { display: none; }

.qv-thumb {
  width: 58px;
  height: 70px;
  border: 2px solid transparent;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #e8ddd5;
  transition: border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.qv-thumb:hover { transform: scale(1.04); }
.qv-thumb.is-active { border-color: #7a2b3b; }
.qv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qv-gallery-main {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.qv-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Info panel */
.qv-details {
  overflow-y: auto;
  max-height: 88vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 43, 59, 0.2) transparent;
}
.qv-details::-webkit-scrollbar { width: 4px; }
.qv-details::-webkit-scrollbar-thumb {
  background: rgba(122, 43, 59, 0.2);
  border-radius: 4px;
}
.qv-details-inner { padding: 2rem 1.75rem 2.5rem; }

.qv-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a0a0a0;
  margin-bottom: 0.5rem;
}
.qv-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.qv-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1rem;
}
.qv-stars { color: #f4b942; font-size: 0.82rem; letter-spacing: 1.5px; }
.qv-review-count { font-size: 0.78rem; color: #aaa; }

.qv-price-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.qv-price-main {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1a1a1a;
}
.qv-price-original {
  font-size: 1rem;
  color: #bbb;
  text-decoration: line-through;
}
.qv-discount-badge {
  padding: 2px 9px;
  background: #7a2b3b;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 2px;
  align-self: center;
}

.qv-desc {
  font-size: 0.875rem;
  color: #777;
  line-height: 1.68;
  margin-bottom: 1.4rem;
}

.qv-option-group { margin-bottom: 1.3rem; }
.qv-option-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #2c1a14;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qv-size-guide-btn {
  border: none;
  background: none;
  color: #7a2b3b;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
  transition: opacity 0.15s;
}
.qv-size-guide-btn:hover { opacity: 0.7; }

.qv-size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qv-sz-btn {
  min-width: 48px;
  height: 42px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 0.75rem;
}
.qv-sz-btn:hover { border-color: #7a2b3b; color: #7a2b3b; }
.qv-sz-btn.is-active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}
.qv-sz-btn.is-unavailable {
  opacity: 0.28;
  cursor: not-allowed;
  text-decoration: line-through;
}

.qv-size-error {
  font-size: 0.78rem;
  color: #c0392b;
  margin: 0.5rem 0 0;
  font-weight: 600;
}

.qv-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qv-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--swatch);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s, box-shadow 0.15s;
}
.qv-color-swatch:hover { transform: scale(1.12); }
.qv-color-swatch.is-active {
  border-color: #7a2b3b;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 0 0 2px #fff,
    0 0 0 4px #7a2b3b;
}

.qv-add-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 1.25rem 0;
}
.qv-qty-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0d8d2;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.qv-qty-btn {
  width: 36px;
  height: 46px;
  border: none;
  background: none;
  color: #555;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.qv-qty-btn:hover { background: rgba(88, 62, 49, 0.06); }
.qv-qty-val {
  width: 36px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  border-left: 1px solid #e0d8d2;
  border-right: 1px solid #e0d8d2;
  line-height: 46px;
  flex-shrink: 0;
}
.qv-cart-btn {
  flex: 1;
  padding: 0 1.25rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.qv-cart-btn:hover { background: #7a2b3b; }
.qv-cart-btn:active { transform: scale(0.98); }

.qv-heart-btn {
  width: 46px;
  height: 46px;
  border: 1.5px solid #e0d8d2;
  border-radius: 8px;
  background: #fff;
  color: #777;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.qv-heart-btn:hover,
.qv-heart-btn.is-liked {
  background: #7a2b3b;
  border-color: #7a2b3b;
  color: #fff;
}

.qv-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(88, 62, 49, 0.1);
  border-bottom: 1px solid rgba(88, 62, 49, 0.1);
  margin-bottom: 1rem;
}
.qv-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #777;
}
.qv-meta-item i {
  color: #7a2b3b;
  width: 15px;
  flex-shrink: 0;
}

.qv-full-link {
  display: inline-flex;
  align-items: center;
  color: #7a2b3b;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.qv-full-link:hover {
  gap: 0.7rem;
  color: #7a2b3b;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.qv-size-row.shake { animation: shake 0.45s ease; }

/* ── Size Guide Modal ── */
.sg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1070;
  background: rgba(10, 5, 3, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sg-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.sg-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sg-panel {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
  overflow: hidden;
}
.sg-modal.is-open .sg-panel { transform: scale(1); opacity: 1; }
.sg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(88, 62, 49, 0.1);
}
.sg-header h3 {
  font-family: 'Staatliches', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: #7a2b3b;
  margin: 0;
}
.sg-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(88, 62, 49, 0.07);
  border-radius: 50%;
  color: #7a2b3b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}
.sg-close:hover { background: #7a2b3b; color: #fff; transform: rotate(90deg); }
.sg-body { padding: 1.5rem; }
.sg-tip {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 1rem;
  background: rgba(122, 43, 59, 0.05);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
}
.sg-table-wrap { overflow-x: auto; }
.sg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.sg-table th,
.sg-table td {
  padding: 0.6rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(88, 62, 49, 0.08);
}
.sg-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a2b3b;
  font-weight: 700;
  background: rgba(122, 43, 59, 0.04);
}
.sg-table tbody tr:hover { background: rgba(122, 43, 59, 0.03); }

/* ── QV Responsive ── */
@media (max-width: 768px) {
  .qv-modal { align-items: flex-end; padding: 0; }
  .qv-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    opacity: 1;
    max-width: 100%;
  }
  .qv-modal.is-open .qv-panel { transform: translateY(0); }
  .qv-gallery { max-height: 50vw; }
  .qv-gallery-thumbs { flex-direction: row; padding: 8px; overflow-x: auto; overflow-y: hidden; }
  .qv-thumb { width: 50px; height: 60px; }
  .qv-details { max-height: 55vh; }
  .qv-details-inner { padding: 1.5rem 1.25rem; }
  .qv-name { font-size: 1.5rem; }
}

@media (max-width: 576px) {
  .toast-stack { bottom: 1rem; right: 1rem; left: 1rem; }
  .toast-item { max-width: 100%; white-space: normal; }
  #productsList[data-cols="4"] { grid-template-columns: repeat(2, 1fr); }
}
