
/* =========================
   CATÁLOGO GENERAL
========================= */
.catalogo {
  padding: 30px 20px;
  max-width: 1200px;
  /*margin: auto;*/
}

.catalogo h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #fff;
}

.page-shell {
   background:radial-gradient(circle at top left , rgba(88, 181, 255, 0.16), transparent 24%),
              radial-gradient(circle at bottom right, rgba(159, 124, 255, 0.14), transparent 20%),
              linear-gradient(180deg, #090a0f 0%, #05060a 100%);
  min-height: 100vh;
}

/* =========================
   GRID RESPONSIVE
========================= */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* =========================
   CARD PRODUCTO
========================= */
.producto-card {
    display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 10px;
  width: 250px;
}

.carousel {
  position: relative;
  overflow: hidden;
}

/* HOVER ESTILO SHOPIFY */
.producto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* =========================
   IMAGEN
========================= */
.producto-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: zoom-in;
    position: relative;
  z-index: 1;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 2; /* 🔥 por encima de la imagen */
}

.prev {
  left: 5px;
}

.next {
  right: 5px;
}

/* zoom en hover */
.producto-card:hover img {
  transform: scale(1.08);
}

/* =========================
   CONTENIDO
========================= */
.producto-info {
    /*padding: 15px;
  flex-grow: 1;*/
    display: flex;
  flex-direction: column;
  flex: 1;
  gap: 9px;
}

.producto-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-align: center;
}

.producto-info p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* precio estilo ecommerce */
.precio {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: auto;
  color: #f59c6f;
  text-align: center;
}

/* =========================
   BOTÓNES
========================= */
.btn-carrito {
  width: calc(100% - 20px);
  height: 35px;
  margin: 10px auto;
  display: block;
  box-sizing: border-box;
  text-align: center;
  border: none;
  border-radius: 10px;
 background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05060a;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}


.btn-vaciar {
    width: calc(100% - 20px);
  height: 35px;
  margin: 10px auto;
  display: block;
  box-sizing: border-box;
  text-align: center;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-4));
  color: #05060a;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-carrito:hover, .btn-vaciar:hover {
  /*background: #ffd76a;*/
  background: #f59c6f;

}

#filtro-lineas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  max-width: 800px;
  margin: 0 auto 20px;
}

.filtro-lineas {
  text-align: center;
  margin: 20px 0 10px;
  font-size: 1.2rem;
  color: white;
}

.collection-header {
  text-align: center;
  margin: 30px auto;
  max-width: 800px;
}

.collection-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.collection-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.btn-lineas {
  height: 40px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-4));
  color: #05060a;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;

  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-lineas:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.btn-lineas.activo {
  background: #f59c6f;
  color: #111;
  box-shadow: 0 0 10px rgba(245,197,66,0.6);
}

/* =========================
   DRAWER LATERAL
========================= */
.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 100vh;
  background: #111;
  color: #fff;
  padding: 20px;
  box-shadow: 5px 0 25px rgba(0,0,0,0.5);
  transform: translateX(0);
  transition: transform 0.4s ease;
  z-index: 9999;
  overflow-y: auto;
}

.cart-drawer.hidden {
  transform: translateX(-100%);
}

/* =========================
   TABLA
========================= */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.cart-table th,
.cart-table td {
  padding: 8px;
  border-bottom: 1px solid #333;
  font-size: 0.85rem;
}

/* =========================
   TOTAL
========================= */
.cart-total {
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #f59c6f;
}


/* HEADER */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cart-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* BOTONES CANTIDAD */
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0 8px;
  white-space: nowrap;
}

.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 30px;
  background: #f59c6f;
  border: none;
  padding: 0 10px;
  margin: 0;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  color: #fff;
}

.qty-btn:hover {
  background: #ffd76a;
}



/* =========================
   ICONO CARRITO HEADER
========================= */
.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 24px;
  color: #fff;
  margin-left: 20px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.cart-icon:hover {
  transform: scale(1.1);
}

/* =========================
   BADGE
========================= */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #f59c6f;
  color: #111;
  font-size: 12px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* animación suave cuando cambia */
.cart-badge.updated {
  transform: scale(1.3);
  transition: transform 0.2s ease;
}


.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  padding: 20px;
}

.filters {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  color: white;
  height: fit-content;
  position: sticky;
  top: 45px;
}

.filters select {
  width: 100%;
  margin: 10px auto;
  padding: 8px;
  background: #111;
  color: white;
  border: 1px solid #333;
  border-radius: 12px;
}


.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox.hidden {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}