:root {
  --color-primario: #ff91b7;
  --color-texto: #333;
  --color-gris: #f5f5f5;
  --color-filtro: #62616a;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  padding-top: 80px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background-color: #f9f9f9;
}

body.page-sticky {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page-sticky .cpt-footer {
  margin-top: auto;
}

/* Header */
.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 20px 12px;
  gap: 10px;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Flecha atrás */
.btn-back {
  background: none;
  border: none;
  cursor: pointer;
}

.btn-back img {
  width: 20px;
  height: 20px;
}

/* Búsqueda */
.shop-search {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: var(--color-gris);
  border-radius: 20px;
  padding: 8px 12px;
}

.shop-search input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  outline: none;
  color: var(--color-texto);
}

.shop-search .btn-search {
  background: none;
  border: none;
  cursor: pointer;
}

.shop-search .btn-search img {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

/* Filtros */
.btn-filter {
  background-color: var(--color-primario);
  border: none;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-filter img {
  width: 14px;
}

.btn-filter .text-filter {
  padding-right: 5px;
  font-size: 12px;
  color: #fff;
}

.filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
}

.filter-content {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 20px 20px 0 0;
  padding: 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.filter-header {
  padding: 20px 16px;
  text-align: center;
  border-bottom: 1px solid #e5e5ea;
  position: relative;
}

.filter-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin: 0;
}

.filter-group {
  padding: 16px;
  border-bottom: 1px solid #f2f2f7;
}

.filter-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #8e8e93;
}

.filter-select {
  display: none;
}

.filter-actions {
  display: flex;
  padding: 16px;
  gap: 10px;
  /* background: #f2f2f7; */
  margin-top: 10px;
}

.btn-apply {
  flex: 1;
  padding: 14px;
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-apply:active {
  background-color: #0056cc;
  transform: scale(0.98);
}

.btn-cancel {
  flex: 1;
  padding: 14px;
  background-color: transparent;
  color: #007aff;
  border: 1px solid #c6c6c8;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:active {
  background-color: rgba(0, 122, 255, 0.1);
  transform: scale(0.98);
}

/* Efecto iOS para los selects */
.filter-group {
  position: relative;
}

.filter-group::after {
  content: none;
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.custom-select-trigger:hover {
  border-color: var(--color-primario);
  box-shadow: 0 2px 8px rgba(255, 145, 183, 0.1);
}

.custom-select-trigger.active {
  border-color: var(--color-primario);
  box-shadow: 0 0 0 3px rgba(255, 145, 183, 0.12);
}

.selected-option {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 10px;
}

.dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: #6b7280;
}

.custom-select-trigger.active .dropdown-arrow {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 2px solid var(--color-primario);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.custom-options.show {
  max-height: 280px;
  overflow-y: auto;
  opacity: 1;
  transform: translateY(0);
}

.custom-options::-webkit-scrollbar {
  width: 6px;
}

.custom-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.custom-options::-webkit-scrollbar-thumb {
  background: var(--color-primario);
  border-radius: 10px;
}

.custom-option {
  padding: 14px 16px;
  font-size: 14px;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background: color-mix(in srgb, var(--color-primario) 10%, transparent);
  padding-left: 20px;
}

.custom-option.selected {
  background: var(--color-primario);
  color: white;
  font-weight: 700;
}

.custom-option.selected:hover {
  background: var(--color-primario);
  padding-left: 16px;
}

.custom-select-trigger:focus-visible,
.custom-option:focus-visible {
  outline: 2px solid var(--color-primario);
  outline-offset: 2px;
}

.custom-select-trigger.loading {
  opacity: 0.6;
  cursor: wait;
}
/* -------------------------
   CATEGORÍAS
------------------------- */
.shop-categories {
  width: 100%;
  padding: 0px 0 0 26px;
  background-color: #fff;
  overflow-x: auto;
  scrollbar-width: none;
  padding-left: 26px;
  -ms-overflow-style: none;
}

.shop-categories::-webkit-scrollbar {
  display: none;
}

.categories-scroll {
  display: flex;
  gap: 12px;
  padding-top: 15px;
  justify-content: center;
  padding-bottom: 5px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 70px;
  scroll-snap-align: start;
  flex-shrink: 0;
  cursor: pointer;
  margin-bottom: 5px;
  transition: transform 0.2s ease;
}

.category-item:hover {
  transform: scale(1.05);
}

.category-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #f5f5f5;
  margin-bottom: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.category-item.active .category-img {
  border: 2px solid var(--color-primario);
  padding: 3px;
}

.category-item.active .category-name {
  color: var(--color-primario);
  font-weight: 600;
}

.category-name {
  font-size: 12px;
  color: #333;
  font-weight: 500;
}

/* Ajuste en móviles */
@media (max-width: 480px) {
  .category-item {
    min-width: 65px;
  }

  .category-img {
    width: 60px;
    height: 60px;
  }

  .category-name {
    font-size: 10px;
  }
}

/* Cards */

/*  Contenedor general de productos */
/*  Contenedor general de productos */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* dos columnas */
  gap: 20px 16px; /* espacio entre filas y columnas */
  padding: 0 26px;
  padding-bottom: 40px !important;
  margin-top: 20px;
}

/* 🔹 Card de producto */
.producto-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 100%;
  transition: transform 0.2s ease;
}
.producto-card:nth-child(even) {
  /* Desplaza el elemento par 20px hacia abajo */
  transform: translateY(20px);
}

.producto-card:hover {
  /* Esta es la elevación para los IMPARES (desde 0 a -4px) */
  transform: translateY(-4px);
}

.producto-card:nth-child(even):hover {
  /* ¡Aseguramos que el par también vaya a -4px, reemplazando el translateY(20px) anterior! */
  transform: translateY(calc(20px - 4px));
}

/* 🔹 Efecto desfasado (masonry visual sin columnas rotas) */
.producto-card:nth-child(odd) {
  margin-top: 0;
}

/* 🔹 Imagen */
.producto-img-wrapper {
  position: relative;
  background-color: #f9f9f9;
  border-radius: 12px;
  margin: 10px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 160px; /* Altura fija para todas las imágenes */
  overflow: hidden; /* Evita que la imagen se salga del contenedor */
}

.producto-img {
  width: auto;
  height: auto;
  max-width: 90%; /* Limita el ancho máximo */
  max-height: 90%; /* Limita la altura máxima */
  object-fit: contain; /* Mantiene proporciones sin recortar */
  transition: transform 0.3s ease, opacity 0.25s ease;
  opacity: 0;
}

.producto-img.img-loaded {
  opacity: 1;
}

/* 🔹 Info */
.producto-info {
  padding: 0 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.producto-info h3 {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  padding-top: 7px;
  margin-bottom: 4px;
  white-space: nowrap; /* No permite salto de línea */
  overflow: hidden; /* Oculta el texto que exceda el ancho */
  text-overflow: ellipsis;
}

.producto-info .categoria {
  font-size: 11px;
  color: #7c7c7c;
  margin-bottom: 4px;
}

/* 🔹 Footer */
.producto-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.producto-footer .precio {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  margin-top: 0;
  padding-bottom: 0.2rem;
}

.btn-plus {
  border: none;
  background: none;
  cursor: pointer;
  width: 20px;
  color: #aaa;
  transition: color 0.2s;
  z-index: 999;
  padding-bottom: 5px;
  margin-right: 10px;
}

.btn-plus:hover {
  color: #ff5a8b;
}

.btn-plus img {
  width: 24px;
}

/* Responsive (una columna en pantallas pequeñas) */
/* @media (max-width: 420px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }

  .producto-card:nth-child(even) {
    transform: none; 
  }
} */

/* Bottom Navbar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #f9f9f9;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  /* box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1); */
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #888;
  font-size: 12px;
  flex: 1;
}

.nav-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
}

.nav-item.active {
  color: var(--color-primario); /* rosa para item activo */
  font-weight: 600;
}

/* Carrito con badge */
.cart-icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-icon .badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--color-primario);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 5px;
  line-height: 1;
}

/* Modal */

/* 🔹 Fondo del modal */
.filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

/* 🔹 Caja del modal */
.filter-content {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔹 Grupos de filtro */
.filter-group {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.filter-group select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  background-color: #fafafa;
  outline: none;
  transition: border 0.2s ease;
}

.filter-group select:focus {
  border-color: var(--color-primario);
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.btn-apply,
.btn-cancel {
  flex: 1;
  padding: 10px 0;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-apply {
  background-color: var(--color-primario);
  color: white;
}

.btn-cancel {
  background-color: #eee;
  color: #333;
}

.btn-apply:hover {
  background-color: var(--color-primario);
}

.btn-cancel:hover {
  background-color: #ddd;
}

.filter-modal.active {
  display: flex;
}

.productos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  margin-top: 35px;
  padding: 0 26px;
  width: 100%;
  gap: 12px;
}

.productos-header h2 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.productos-header .btn-filter {
  margin-left: auto;
  flex-shrink: 0;
}

.productos-header .ver-mas {
  font-size: 14px;
  color: var(--color-primario);
  text-decoration: none;
  user-select: none;
  -webkit-user-drag: none;
}

.space {
  padding-bottom: 50px;
}

/* Categorias y ofertas */
/* Categorías */
.cpt-categories-section {
  background-color: #ffffff;
  width: 100%;
  padding: 5px 26px;
  background-color: transparent;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
}

.cpt-categories-scroll {
  display: flex;
  gap: 20px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.cpt-categories-scroll::-webkit-scrollbar {
  display: none;
}

.cpt-category-btn {
  white-space: nowrap;
  padding: 10px 20px;
  border: 1px solid #e5e5e7;
  border-radius: 20px;
  background-color: transparent;
  color: #424245;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scroll-snap-align: start;
  text-decoration: none;
}

.cpt-category-btn:hover {
  border-color: #007aff;
  color: #007aff;
}

.cpt-category-btn.active {
  border-color: var(--color-primario);
  background-color: var(--color-primario);
  color: white;
}

/* Responsive categorías */
@media (max-width: 480px) {
  .cpt-categories-scroll {
    padding: 0 12px;
    gap: 10px;
  }

  .cpt-category-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Sección de ofertas */
.ofertas {
  padding: 10px 26px;
  max-width: 100vw;
  margin: 20px auto;
}

/* Header de ofertas */
.ofertas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.ofertas-header h2 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.ofertas-header .ver-mas {
  font-size: 14px;
  color: var(--color-primario);
  text-decoration: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Card */
.oferta-card {
  display: flex;
  align-items: center;
  background: #fafafa;
  border-radius: 12px;
  padding: 20px;
  gap: 22px;
  height: 160px; /* Altura fija para la card */
  min-height: 160px;
  max-height: 160px;
}

.oferta-link {
  text-decoration: none;
}

.oferta-card img.oferta-img {
  width: 100px;
  height: auto;
  border-radius: 8px;
}

.oferta-img-wrapper {
  background-color: #f5f5f5;
  padding: 5px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-drag: none;
  width: 100px; /* Ancho fijo */
  height: 100px; /* Alto fijo */
  flex-shrink: 0; /* Evita que se reduzca */
  overflow: hidden;
}

.oferta-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Mantiene proporción sin distorsionar */
  border-radius: 6px;
}

/* Info */
.oferta-info h3 {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Máximo 2 líneas */
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

.oferta-info .descripcion {
  font-size: 12px;
  color: #7c7c7c;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* Una sola línea */
}

/* Precios */
.precios {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oferta-cta {
  display: none;
}

.precio-old {
  font-size: 12px;
  color: var(--color-primario);
  text-decoration: line-through;
}

.precio-new {
  font-size: 16px;
  font-weight: bold;
  color: rgb(51, 51, 51);
}

/* Responsivo ofertas en móviles */

@media (max-width: 480px) {
  .oferta-img-wrapper {
    background-color: #f5f5f5;
    padding: 5px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-drag: none;
    width: 100px; /* Ancho fijo */
    height: 100px; /* Alto fijo */
    flex-shrink: 0; /* Evita que se reduzca */
  }

  .oferta-img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 480px) {
  .oferta-card {
    background-color: white;
    padding: 1.3rem;
    align-items: center;
    box-shadow: 0px 4px 13px -3px rgba(0, 0, 0, 0.1);
  }

  .oferta-card img {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 12px auto;
    display: block;
  }

  .oferta-info {
    flex: 1;
    min-width: 0; /* Permite que el texto se ajuste */
  }

  .oferta-info h3 {
    font-size: 13px;
    color: #62616a;
  }

  .oferta-info .descripcion {
    font-size: 11px;
  }

  .precio-old {
    font-size: 12px;
  }

  .precio-new {
    font-size: 16px;
  }
}

/* Responsivo ofertas en tablets */
@media (max-width: 768px) {
  .oferta-card {
    padding: 16px;
    gap: 16px;
  }

  .oferta-card img {
    width: 120px;
  }

  .oferta-info h3 {
    font-size: 15px;
  }
}

.ofertas-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 10px;
  height: 180px; /* Altura fija */
}

.ofertas-track {
  display: flex;
  transition: transform 0.5s ease;
}

.oferta-link {
  flex: 0 0 100%;
  text-decoration: none;
  color: inherit;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--color-primario);
}

#sentinel {
  height: 1px;
  visibility: hidden;
}

#cargando {
  text-align: center;
  padding: 20px;
  display: none;
}

/* ❤️ Botón de favoritos flotante */
.btn-favorito {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.btn-favorito:hover {
  background: rgba(255, 255, 255, 1);
}

.btn-favorito svg {
  width: 17px;
  height: 17px;
  color: #ff4b6e;
  pointer-events: none; /* asegura que el clic llega al botón, no al svg */
}

/* Asegurar que el botón esté sobre la imagen */
.producto-card {
  position: relative;
}

.producto-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.btn-favorito svg path {
  fill: none;
  stroke: #8d8d8d;
  stroke-width: 2;
}

.btn-favorito.active svg path {
  fill: var(--color-primario);
  stroke: var(--color-primario);
}

.btn-favorito:not(.active) svg path {
  fill: none;
  stroke: #c4c3c3;
  stroke-width: 1.8;
}

/* Estilos para precios con oferta */
.precios-oferta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 0;
}

.precio-original {
  text-decoration: line-through;
  color: var(--color-primario);
  font-size: 11px;
}

.precio-oferta {
  color: #000;
  font-weight: 600;
  font-size: 13px;
}

.badge-oferta {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-secundario);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
}

/* Asegurar que el producto-footer tenga buen espaciado */
.producto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  margin-bottom: 4px;
}

/* Para cuando solo hay precio normal */
.producto-footer .precio {
  color: #333;
  font-weight: bold;
}

/* Paginación */
.pagination {
  margin: 1rem 0;
  padding: 1rem 0;
}

.pagination-nav {
  text-align: center;
}

.pagination-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
  flex-wrap: wrap;
}

.pagination-link {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  min-width: 44px;
  text-align: center;
  font-size: 14px;
}

.pagination-link:hover {
  background-color: #f5f5f5;
  border-color: var(--color-primario);
  color: var(--color-primario);
}

.pagination-link.active {
  background-color: var(--color-primario);
  color: white;
  border-color: var(--color-primario);
}

.pagination-info {
  color: #666;
  font-size: 0.9rem;
}

/* Estilos para cuando no hay productos */
.no-productos {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.no-productos p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.productos-grid:has(.no-productos) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.badge-agotado {
  position: absolute;
  top: 12px;
  left: 10px;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
