/* ---------- Encabezado ---------- */
.explorer-header{ max-width:1100px; margin:0 auto; padding:44px 26px 6px; }
.explorer-header__title{ font-weight:800; font-size:clamp(1.6rem,4vw,2.1rem); color:var(--text); margin:0 0 8px; }
.explorer-header__sub{ color:var(--text-muted); font-size:.95rem; margin:0; max-width:560px; }

.explorer-filtro{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:14px;
  background:var(--bg-2); border:1px solid var(--border); border-radius:10px; padding:10px 16px;
}
.explorer-filtro span{ color:var(--text-muted); font-size:.85rem; }
.explorer-filtro span strong{ color:var(--text); }
.explorer-filtro__quitar{
  display:inline-flex; align-items:center; gap:5px; color:var(--text-muted);
  font-size:.8rem; font-weight:600; transition:.15s;
}
.explorer-filtro__quitar:hover{ color:var(--danger); }

/* ---------- Buscador ---------- */
.search-box{ max-width:1100px; margin:20px auto 0; padding:0 26px; }
.search-box__wrap{ position:relative; }
.search-box__icon{ position:absolute; left:16px; top:50%; transform:translateY(-50%); color:var(--text-muted); }
.search-box input{
  width:100%; padding:14px 18px 14px 44px; border-radius:10px;
  background:var(--bg-2); border:1px solid var(--border); color:var(--text);
  font-size:1rem; outline:none; transition:.2s;
}
.search-box input::placeholder{ color:var(--text-muted); }
.search-box input:focus{
  border-color:var(--primary-light);
  box-shadow:0 0 0 3px rgba(42,144,203,.18);
}

/* ---------- Grid ---------- */
.grid-section{ max-width:1100px; margin:0 auto; padding:26px 26px 80px; }
.result-count{ color:var(--text-muted); font-size:.85rem; margin:0 0 18px; }
.product-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:24px; }

.product-card{
  background:var(--bg-2); border:1px solid var(--border); border-radius:14px;
  display:flex; flex-direction:column; overflow:hidden; transition:.2s;
}
.product-card:hover{ border-color:var(--primary-light); transform:translateY(-4px); }

.product-card__image{
  height:140px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--bg-3), var(--bg-1));
  position:relative; overflow:hidden;
}
.product-card__icon{ font-size:2.6rem; color:var(--primary-light); }
.product-card__img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.product-card__badge{
  position:absolute; top:10px; left:10px; background:var(--secondary); color:var(--text);
  font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.4px;
  padding:4px 9px; border-radius:5px;
}

.product-card__body{ padding:16px 18px 18px; display:flex; flex-direction:column; gap:10px; flex:1; }
.product-card__title{ color:var(--text); font-weight:700; font-size:1rem; margin:0; }
.product-card__subtitle{ color:var(--text-muted); font-size:.82rem; margin:0; }
.product-card__category{ color:var(--text-muted); font-size:.8rem; margin:0; }
.product-card__meta{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; }
.product-card__price{ color:var(--primary-light); font-weight:700; font-size:1.05rem; }
.product-card__stock{ font-size:.72rem; font-weight:600; color:var(--success); white-space:nowrap; }
.product-card__stock--low{ color:var(--warning); }
.product-card__stock--off{ color:var(--danger); }
.product-card__cta{
  background:var(--primary); border:none; color:var(--text); font-weight:600;
  padding:11px; border-radius:9px; cursor:pointer; transition:.15s; font-size:.88rem;
}
.product-card__cta:hover{ background:var(--primary-light); }

.product-card__features{ display:flex; flex-wrap:wrap; gap:5px; }
.feature-tag{
  font-size:.7rem; background:var(--bg-3); color:var(--text-muted);
  padding:3px 9px; border-radius:12px; white-space:nowrap;
}

.product-card__fav-btn{
  position:absolute; top:8px; right:8px; z-index:2; width:36px; height:36px; border-radius:50%;
  background:rgba(15,23,42,.55); border:none; color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:1.05rem; cursor:pointer; transition:background .15s, color .15s, transform .1s;
}
.product-card__fav-btn:hover{ background:rgba(15,23,42,.8); transform:scale(1.08); }
.product-card__fav-btn:active{ transform:scale(.92); }
.product-card__fav-btn.is-active{ color:var(--danger); }
.product-card__fav-btn:disabled{ cursor:default; opacity:.85; }
.product-card__fav-btn.js-fav-pop i{ animation:favPop .4s ease; }

@keyframes favPop{
  0%{ transform:scale(1); }
  35%{ transform:scale(1.35); }
  60%{ transform:scale(.9); }
  100%{ transform:scale(1); }
}

.product-card__rating{ display:flex; align-items:center; gap:5px; color:var(--warning); font-size:.82rem; font-weight:600; }
.product-card__rating-count{ color:var(--text-muted); font-weight:400; }

.product-card__variantes{ margin-top:-2px; }
.product-card__variantes .variante-options--card{
  flex-wrap:nowrap; overflow-x:auto; gap:6px; padding-bottom:4px;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
  mask-image:linear-gradient(to right, #000 calc(100% - 20px), transparent);
  -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 20px), transparent);
}
.product-card__variantes .variante-options--card::-webkit-scrollbar{ height:4px; }
.product-card__variantes .variante-options--card::-webkit-scrollbar-track{ background:transparent; }
.product-card__variantes .variante-options--card::-webkit-scrollbar-thumb{ background:var(--border); border-radius:4px; }
.product-card__variantes .variante-btn--sm{ padding:5px 10px; font-size:.75rem; border-radius:7px; flex:0 0 auto; white-space:nowrap; }

.product-card__actions{ display:flex; flex-direction:column; gap:8px; margin-top:4px; }
.product-card__btn{
  display:flex; align-items:center; justify-content:center; gap:7px;
  border:none; border-radius:9px; padding:10px; font-weight:600; font-size:.85rem;
  cursor:pointer; transition:.15s;
}
.product-card__btn--primary{ background:var(--primary); color:var(--text); }
.product-card__btn--primary:hover{ background:var(--primary-light); }
.product-card__btn--secondary{ background:var(--bg-3); color:var(--text); }
.product-card__btn--secondary:hover{ background:var(--secondary); }
.product-card__btn--whatsapp{ background:#25D366; color:#0b1a10; text-decoration:none; }
.product-card__btn--whatsapp:hover{ background:#1ebe5a; }
.product-card__btn:disabled{ opacity:.7; cursor:default; }

.product-card__stock-warning{ color:var(--warning); font-size:.78rem; margin:-2px 0 0; display:flex; align-items:center; gap:5px; }

/* ---------- Carousel ---------- */
.carousel{ position:relative; width:100%; height:100%; }
.carousel__track{ position:relative; width:100%; height:100%; }
.carousel__slide{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center;
  opacity:0; transition:opacity .25s ease;
}
.carousel__slide.is-active{ opacity:1; }
.carousel__fallback{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.carousel__arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  background:rgba(0,0,0,.4); color:#fff; border:none; width:28px; height:28px;
  border-radius:50%; cursor:pointer; font-size:.85rem; display:flex; align-items:center; justify-content:center;
}
.carousel__arrow--prev{ left:8px; }
.carousel__arrow--next{ right:8px; }
.carousel__dots{ position:absolute; bottom:8px; left:0; right:0; display:flex; justify-content:center; gap:6px; z-index:2; }
.carousel__dot{ width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.5); cursor:pointer; border:none; padding:0; }
.carousel__dot.is-active{ background:#fff; }

/* ---------- Modal de producto ---------- */
.product-modal .modal-content{ background:var(--bg-2); border:1px solid var(--border); color:var(--text); }
.product-modal .modal-header, .product-modal .modal-footer{ border-color:var(--border); }
.product-modal .modal-title{ color:var(--text); flex:1; }
.product-modal__fav-btn{
  background:transparent; border:1px solid var(--border); color:var(--text-muted); width:36px; height:36px;
  border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1rem; cursor:pointer;
  transition:border-color .15s, color .15s, transform .1s; margin-right:10px; flex-shrink:0;
}
.product-modal__fav-btn:hover{ border-color:var(--danger); color:var(--danger); transform:scale(1.06); }
.product-modal__fav-btn:active{ transform:scale(.92); }
.product-modal__fav-btn.is-active{ color:var(--danger); border-color:var(--danger); }
.product-modal__fav-btn:disabled{ cursor:default; opacity:.85; }
.product-modal__fav-btn.js-fav-pop i{ animation:favPop .4s ease; }
.product-modal__carousel{
  position:relative; height:280px; border-radius:12px; overflow:hidden;
  background:linear-gradient(135deg, var(--bg-3), var(--bg-1)); margin-bottom:16px;
}
.product-modal__subtitle{ color:var(--text-muted); margin:0 0 6px; }
.product-modal__meta{ display:flex; align-items:center; gap:14px; margin:0 0 14px; }
.product-modal__price{ color:var(--primary-light); font-weight:700; font-size:1.3rem; }
.product-modal__stock-warning{ color:var(--warning); font-size:.85rem; margin:-8px 0 14px; display:flex; align-items:center; gap:6px; }
.product-modal__description{ color:var(--text); line-height:1.5; margin:0 0 16px; }
.product-modal__tags{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:18px; }
.product-modal__section-title{ color:var(--text); font-weight:700; font-size:.9rem; margin:0 0 10px; }
.product-modal__features-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.product-modal__features-list li{ color:var(--text-muted); font-size:.88rem; }
.product-modal__features-list li strong{ color:var(--text); }
.product-modal__section-title{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.product-modal__variantes{ margin:0 0 18px; }
.variante-options{ display:flex; flex-wrap:wrap; gap:8px; }
.variante-btn{
  background:var(--bg-3); color:var(--text); border:1px solid var(--border); border-radius:8px;
  padding:8px 14px; font-weight:600; font-size:.85rem; cursor:pointer; transition:.15s;
}
.variante-btn:hover:not(:disabled){ border-color:var(--primary-light); }
.variante-btn.is-selected{ background:var(--primary); border-color:var(--primary); color:var(--text); }
.variante-btn--off, .variante-btn:disabled{ opacity:.45; cursor:not-allowed; text-decoration:line-through; }
.product-modal__rating{ display:flex; align-items:center; gap:4px; color:var(--warning); font-size:.82rem; font-weight:600; }
.product-modal__reviews-list{ list-style:none; margin:0 0 16px; padding:0; display:flex; flex-direction:column; gap:10px; max-height:220px; overflow-y:auto; }
.product-modal__reviews-list li{ background:var(--bg-1); border:1px solid var(--border); border-radius:10px; padding:10px 12px; }
.product-modal__review-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.product-modal__review-head strong{ color:var(--text); font-size:.85rem; }
.product-modal__review-stars{ color:var(--warning); font-size:.75rem; white-space:nowrap; }
.product-modal__review-text{ color:var(--text-muted); font-size:.85rem; margin:6px 0 0; }

.btn-close-modal{
  background:transparent; border:1px solid var(--border); color:var(--text-muted);
  padding:9px 18px; border-radius:9px; font-weight:600; transition:.15s;
}
.btn-close-modal:hover{ border-color:var(--primary-light); color:var(--text); }

/* ---------- Estado vacío ---------- */
.empty-state{
  grid-column:1/-1; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:14px; padding:70px 20px; text-align:center; color:var(--text-muted);
}
.empty-state__icon{ font-size:2.6rem; opacity:.5; }
.empty-state__text{ font-size:1rem; margin:0; }
