:root {
  --capo-purple: #9a6bff;
  --capo-purple-dark: #6b3fd6;
  --capo-pink: #ff6ecd;
  --capo-blue: #6ec8ff;
  --capo-blue-dark: #427ee0;
  --capo-bg-gradient: linear-gradient(135deg, #6ec8ff, #9a6bff, #ff6ecd);
  --capo-white: #ffffff;
  --capo-dark: #1b1233;
  --capo-card-bg: rgba(255, 255, 255, 0.9);
  --capo-shadow-soft: 0 18px 40px rgba(23, 10, 52, 0.18);
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s ease-out;
  --transition-med: 0.35s ease-out;
}

/* ============================
   CATÁLOGO
============================ */

.catalog {
  padding: 4rem 0;
}

.catalog__header {
  text-align: center;
  margin-bottom: 3rem;
}

.catalog__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.catalog__subtitle {
  margin-top: 0.75rem;
  opacity: 0.85;
  font-size: 1.05rem;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

/* ============================
   PRODUCT CARD (IGUAL A HOME)
============================ */

.product-card {
  background: #111;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  /*nuevo*/
  height: 100%; 
  min-height: 430px; /* ajusta a tu gusto */
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.product-card__img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.product-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  /*nuevo*/
  flex: 1;
  gap: 0.6rem;
}

.product-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  /*nuevo*/
  display: -webkit-box;
  -webkit-line-clamp: 2;         /* máximo 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  font-weight: 800;
  font-size: 1.1rem;
  color: #f9f871;
}

.product-card__desc {
  font-size: 0.86rem;
  color: #6a5b96;
  margin-bottom: 0.8rem;
  line-height: 1.25;
  /*nuevo*/
  display: -webkit-box;
  -webkit-line-clamp: 3;         /* máximo 3 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ============================
   CONTROLES DE CANTIDAD
============================ */

.product-card__controls {
  /*nuevo*/
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qty-control {
  display: flex;
  align-items: center;
  background: var(--capo-bg-gradient);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
}

.qty-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #00f5a0, #00d9f5);
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 800;
  color: #0b0b0b;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 245, 160, 0.35);
}

.add-to-cart-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 245, 160, 0.5);
}

/* =========================
   LIGHTBOX (FULLSCREEN IMG)
========================= */

.lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.lb--hidden {
  display: none;
}

.lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 3, 36, 0.75);
  backdrop-filter: blur(8px);
}

.lb__panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem;
}

.lb__img {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(5, 0, 24, 0.55);
  background: #ffffff;
}

.lb__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  background: rgba(16, 6, 41, 0.78);
  box-shadow: 0 10px 26px rgba(5, 0, 24, 0.55);
}

/* Evita scroll cuando el lightbox está abierto */
html.lb--open,
body.lb--open {
  overflow: hidden;
}


/* =========================
   FILTRO CATÁLOGO (CLEAN)
========================= */

.catalog-filter {
  width: 100%;
  max-width: 1120px;
  margin: 1.6rem auto 2rem;
  padding: 1rem 1.1rem;

  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(154, 107, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(23, 10, 52, 0.08);

  overflow: visible; /* 🔥 importante para que no se corten los botones */
  position: relative;
  z-index: 5;
}


.catalog-filter__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.catalog-filter__title {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--capo-dark);
}

/* Botón limpiar */
.catalog-filter__reset {
  border: none;
  cursor: pointer;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;

  color: var(--capo-purple-dark);
  background: rgba(154, 107, 255, 0.1);
  border: 1px solid rgba(154, 107, 255, 0.25);

  transition: transform var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.catalog-filter__reset:hover {
  transform: translateY(-1px);
  background: rgba(154, 107, 255, 0.16);
  box-shadow: 0 10px 20px rgba(154, 107, 255, 0.18);
}

/* Chips */
.catalog-filter__chips {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;               /* ✅ scroll horizontal */
  overflow-y: hidden;             /* ✅ evita que “brinque” */
  -webkit-overflow-scrolling: touch;

  padding-bottom: 0.6rem;
  scroll-snap-type: x proximity;  /* opcional: se siente pro */
  scrollbar-width: none;          /* Firefox */
}
.catalog-filter__chips::-webkit-scrollbar {
  display: none;                  /* Chrome/Safari */
}



.chip {
  flex: 0 0 auto;
  border: none;
  cursor: pointer;

  padding: 0.55rem 0.95rem;
  border-radius: 999px;

  font-weight: 800;
  font-size: 0.92rem;

  color: var(--capo-dark);

  background: rgba(154, 107, 255, 0.08);
  border: 1px solid rgba(154, 107, 255, 0.22);

  box-shadow: none; /* ❌ quitamos el glow feo */
  transition: transform var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast);

  position: relative;
  z-index: 1;
}




/* Activo */
.chip--active {
  background-image: var(--capo-bg-gradient);
  color: #ffffff;

  border: 1px solid rgba(255, 255, 255, 0.35);


  z-index: 10;
}


/* Meta */
.catalog-filter__meta {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #4e446d;
}

.catalog-filter__meta strong {
  color: var(--capo-purple-dark);
}

/* Responsive */
@media (max-width: 860px) {
  .catalog-filter {
    width: calc(100% - 2.5rem);
  }
}

@media (max-width: 520px) {
  .catalog-filter {
    width: calc(100% - 1.5rem);
    padding: 0.9rem 0.9rem;
    border-radius: 22px;
  }

  .chip {
    font-size: 0.88rem;
    padding: 0.5rem 0.85rem;
  }
}

