/* ============================================================
   ChileRemates — producto.css
   Estilos exclusivos de la página de detalle de producto
   Requiere: base.css
   ============================================================ */

/* ─── LAYOUT PRINCIPAL DEL PRODUCTO ─── */
.product-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

/* ─── GALERÍA ─── */
.main-img-wrap {
  position: relative;
  background: var(--gris-light);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.main-img-placeholder {
  font-size: 120px;
  color: #ccc;
  user-select: none;
}
.img-badge-wrap {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.img-badge {
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.badge-top { background: var(--rojo); color: white; }
.badge-stock-ok { background: var(--verde); color: white; }
.badge-stock-out { background: var(--red); color: white; }
.img-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.thumbs {
  overflow: hidden;
}

.thumbs::after {
  content: '';
  display: table;
  clear: both;
}

.thumb {
  float: left;
  margin: 0 8px 8px 0;
  width: 72px;
  height: 72px;
  border-radius: 5px;
  background: var(--gris-light);
  border: 2px solid var(--border);
  cursor: pointer;
  font-size: 28px;
  color: #bbb;
  transition: border-color .15s;
  overflow: hidden;
  vertical-align: top;
}
.thumb.active,
.thumb:hover { border-color: var(--rojo); }

/* ─── TABS DE DESCRIPCIÓN ─── */
.product-tabs { margin-top: 40px; }
.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
}
.tab-btn {
  padding: 12px 22px;
  border: none;
  background: none;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--texto-2);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color .15s;
}
.tab-btn.active {
  color: var(--rojo);
  border-bottom-color: var(--rojo);
}
.tab-btn:hover { color: var(--texto); }
.tab-panel { display: none; padding: 28px 0; }
.tab-panel.active { display: block; }

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.specs-table tr:nth-child(even) { background: var(--gris-light); }
.specs-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.specs-table td:first-child {
  font-weight: 700;
  color: var(--texto-2);
  width: 40%;
}

.desc-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--texto-2);
}
.desc-text p { margin-bottom: 14px; }
.desc-text ul { padding-left: 20px; margin-bottom: 14px; }
.desc-text ul li { margin-bottom: 6px; }
.desc-text strong { color: var(--texto); }

/* ─── COLUMNA DE COMPRA ─── */
.buy-col {
  position: sticky;
  top: 90px;
}

/* Título */
.product-title-block { margin-bottom: 20px; }
.product-cat-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 8px;
}
.product-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--negro);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.product-sku {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 12px;
}
.product-id {
  font-size: 14px;
  color: #000;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Estrellas */
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.stars { color: var(--amarillo); font-size: 17px; letter-spacing: 1px; }
.rating-num { font-size: 14px; font-weight: 700; color: var(--texto); }
.rating-count { font-size: 13px; color: var(--texto-2); }
.rating-link { font-size: 13px; color: var(--rojo); text-decoration: none; }

/* Stock */
.stock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(26,138,58,0.06);
  border: 1px solid rgba(26,138,58,0.2);
  border-radius: 5px;
}
.stock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--verde);
  flex-shrink: 0;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.stock-text { font-size: 13px; font-weight: 700; color: var(--verde); }
.stock-warn { font-size: 12px; color: var(--naranja); font-weight: 700; }

/* Precios */
.price-block {
  background: var(--gris-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.price-row-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.price-iva-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 4px;
}
.price-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: var(--rojo);
  line-height: 1;
  letter-spacing: 1px;
}
.price-currency {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--rojo);
  align-self: flex-start;
  margin-top: 8px;
}
.price-neto-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed #ddd;
  margin-top: 4px;
}
.price-neto-label { font-size: 12px; color: #aaa; }
.price-neto-val { font-size: 15px; font-weight: 700; color: var(--texto-2); }
.price-iva-info { font-size: 11px; color: #aaa; }

/* Ahorro */
.savings-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,193,0,0.15);
  border: 1px solid var(--amarillo);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #8A6D00;
  margin-top: 8px;
}

/* Cantidad */
.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.qty-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--texto-2);
  flex-shrink: 0;
}
.qty-ctrl {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.qty-ctrl button {
  width: 38px;
  height: 38px;
  background: var(--gris-light);
  border: none;
  font-size: 20px;
  cursor: pointer;
  font-weight: 700;
  color: var(--texto);
  transition: background .15s;
}
.qty-ctrl button:hover { background: #e8e8e4; }
.qty-ctrl input {
  width: 52px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  height: 38px;
}
.qty-unit { font-size: 12px; color: #aaa; }

/* Botones CTA */
.cta-primary {
  width: 100%;
  background: var(--rojo);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 18px;
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: 17px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s, transform .1s;
  margin-bottom: 10px;
}
.cta-primary:hover { background: var(--rojo-dark); transform: translateY(-1px); }
.cta-primary:active { transform: translateY(0); }

.cta-wa {
  width: 100%;
  background: var(--verde-wa);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 15px;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background .15s;
  margin-bottom: 10px;
  text-decoration: none;
}
.cta-wa:hover { background: #1aad52; }

.cta-quote {
  width: 100%;
  background: transparent;
  color: var(--texto);
  border: 2px solid var(--border);
  border-radius: 5px;
  padding: 13px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color .15s, color .15s;
  margin-bottom: 16px;
}
.cta-quote:hover { border-color: var(--texto); }

/* Urgencia */
.urgency-box {
  background: rgba(232,24,10,0.05);
  border: 1px solid rgba(232,24,10,0.2);
  border-radius: 5px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.urgency-icon { font-size: 22px; flex-shrink: 0; }
.urgency-text { font-size: 13px; font-weight: 600; color: var(--texto-2); line-height: 1.4; }
.urgency-text strong { color: var(--rojo); }
.countdown-mini {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--rojo);
  background: rgba(232,24,10,0.1);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
}

/* Garantías */
.guarantees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--texto-2);
  padding: 10px 12px;
  background: var(--gris-light);
  border-radius: 5px;
  border: 1px solid var(--border);
}
.guarantee-item .gi { font-size: 18px; }
.guarantee-item span { font-weight: 600; }

/* Despacho */
.despacho-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}
.despacho-header {
  background: var(--gris-light);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.despacho-body { padding: 14px 16px; }
.despacho-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.despacho-row:last-child { border-bottom: none; }
.despacho-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.despacho-info strong { display: block; font-size: 13px; font-weight: 700; color: var(--texto); }
.despacho-info span { color: var(--texto-2); font-size: 12px; }

/* Acciones (favoritos, compartir, imprimir) */
.product-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.action-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--texto-2);
  text-decoration: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
  transition: border-color .15s, color .15s;
}
.action-link:hover { border-color: var(--rojo); color: var(--rojo); }

/* ─── RESEÑAS ─── */
.reviews-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.reviews-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.rating-summary {
  text-align: center;
  background: var(--gris-light);
  border-radius: 8px;
  padding: 28px 20px;
  border: 1px solid var(--border);
}
.rating-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  color: var(--negro);
  line-height: 1;
}
.rating-stars-big {
  font-size: 24px;
  color: var(--amarillo);
  margin: 6px 0;
  letter-spacing: 2px;
}
.rating-total { font-size: 13px; color: var(--texto-2); margin-bottom: 20px; }
.rating-bars { text-align: left; }
.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.bar-label { color: var(--texto-2); width: 40px; flex-shrink: 0; }
.bar-track {
  flex: 1;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--amarillo);
  border-radius: 3px;
}
.bar-count { width: 24px; color: var(--texto-2); text-align: right; }

.review-list { display: flex; flex-direction: column; gap: 20px; }
.review-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.reviewer { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar {
  width: 38px;
  height: 38px;
  background: var(--rojo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}
.reviewer-name { font-weight: 700; font-size: 14px; }
.reviewer-type { font-size: 11px; color: #aaa; }
.review-stars { color: var(--amarillo); font-size: 14px; }
.review-date { font-size: 12px; color: #aaa; }
.review-text { font-size: 14px; color: var(--texto-2); line-height: 1.65; }
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--verde);
  margin-top: 8px;
}

/* ─── PRODUCTOS RELACIONADOS ─── */
.related-section {
  background: var(--gris-light);
  padding: 60px 24px;
}
.related-inner { max-width: 1280px; margin: 0 auto; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rel-card {
  background: white;
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: var(--texto);
  transition: box-shadow .2s, transform .15s;
}
.rel-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.rel-img {
  height: 160px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: #ccc;
}
.rel-info { padding: 14px; }
.rel-cat { font-size: 11px; font-weight: 800; color: var(--rojo); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 5px; }
.rel-name { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.rel-price { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; color: var(--rojo); }
.rel-price-sub { font-size: 11px; color: #aaa; }

/* ─── STICKY BUY BAR (mobile) ─── */
.sticky-buy {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 3px solid var(--rojo);
  padding: 12px 16px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 180;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
}
.sticky-buy-info { flex: 1; min-width: 0; }
.sticky-buy-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy-price { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; color: var(--rojo); }
.sticky-cta {
  background: var(--rojo);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 18px;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── MOBILE RESPONSIVE — PRODUCTO ─── */

/* Tablet ≤1024px */
@media (max-width: 1024px) {
  .product-main { grid-template-columns: 1fr; gap: 32px; }
  .buy-col { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-layout { grid-template-columns: 1fr; }
  .rating-summary { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; text-align: left; padding: 20px; }
  .rating-big { font-size: 56px; }
  .rating-bars { flex: 1; min-width: 200px; }
}

/* Mobile ≤768px */
@media (max-width: 768px) {
  .product-main { padding: 0 14px 40px; gap: 24px; }

  /* Galería */
  .main-img-wrap { aspect-ratio: 4/3; }
  .main-img-placeholder { font-size: 80px; }
  .thumbs { gap: 6px; }
  .thumb { width: 58px; height: 58px; font-size: 22px; }

  /* Tabs: scroll horizontal */
  .tabs-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .tab-btn { padding: 11px 16px; font-size: 13px; flex-shrink: 0; }

  /* Columna compra */
  .buy-col { position: static; }
  .product-title { font-size: 22px; }
  .price-big { font-size: 42px; }
  .guarantees { grid-template-columns: 1fr 1fr; }
  .product-actions-row { flex-wrap: wrap; gap: 8px; }
  .action-link { font-size: 11px; }

  /* Reviews */
  .reviews-section { padding: 0 14px 40px; }
  .reviews-layout { grid-template-columns: 1fr; gap: 24px; }
  .rating-summary { flex-direction: column; text-align: center; }
  .rating-big { font-size: 64px; }
  .rating-bars { width: 100%; }
  .review-header { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Relacionados */
  .related-section { padding: 40px 14px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rel-img { height: 110px; font-size: 38px; }
  .rel-price { font-size: 18px; }

  /* Sticky bar activa en mobile */
  .sticky-buy { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 1024px) {
  .product-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 12px;
  color: var(--texto-2);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--rojo);
  text-decoration: none;
}
.breadcrumb .sep {
  color: #ccc;
}
.social-proof {
  background: var(--negro);
  padding: 16px 24px;
}
.sp-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.sp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aaa;
  font-size: 13px;
}
.sp-item .sp-icon {
  font-size: 20px;
}
.sp-item strong {
  color: white;
}
.section-title-lg {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 1px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--rojo);
}
.main-img-wrap {
  position: relative;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.thumb:hover {
  border-color: var(--rojo);
}
.thumb {
  width: 72px;
  height: 72px;
  border-radius: 5px;
  background: var(--gris-light);
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #bbb;
  transition: border-color .15s;
  overflow: hidden;
}
.thumb.active {
  border-color: var(--rojo);
}
.price-block {
  background: var(--gris-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
/* Mobile pequeño ≤400px */
@media (max-width: 400px) {
  .related-grid { grid-template-columns: 1fr; }
  .product-title { font-size: 19px; }
}
@media (max-width: 768px) {
  .main-img-wrap {
    aspect-ratio: 4/3;
  }
}
.qty-select {
  appearance: none;
  -webkit-appearance: none;
  width: 140px;
  padding: 10px 40px 10px 14px;
  border: 1.5px solid var(--ash-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23687A8F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.qty-selected-info {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--slate);
  min-height: 20px;
}

/* ══════════════════════════════════════════
       GALLERY — Swiper
    ══════════════════════════════════════════ */
    .gallery-wrap { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); }

    /* Main swiper */
    .swiper-main { position: relative; background: var(--ash); }
    .swiper-main .swiper-slide { display: flex; align-items: center; justify-content: center; aspect-ratio: 1/1; }
    .swiper-main .swiper-slide img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }

    /* Badges over image */
    .gallery-badges { position: absolute; top: 12px; left: 12px; z-index: 10; display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
    .gbadge { font-size: .66rem; font-weight: 700; padding: 3px 9px; border-radius: 50px; letter-spacing: .02em; }
    .gbadge-gold  { background: #FEF3C7; color: #92400E; }
    .gbadge-green { background: #065F46; color: var(--white); }

    /* Zoom button */
    .zoom-btn { position: absolute; bottom: 12px; right: 12px; z-index: 10; background: rgba(13,27,42,.55); color: var(--white); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s; }
    .zoom-btn:hover { background: var(--navy); }

    /* Swiper nav arrows */
    .swiper-main .swiper-button-next,
    .swiper-main .swiper-button-prev { color: var(--white); background: rgba(13,27,42,.45); width: 36px; height: 36px; border-radius: 50%; backdrop-filter: blur(4px); }
    .swiper-main .swiper-button-next::after,
    .swiper-main .swiper-button-prev::after { font-size: .85rem; font-weight: 800; }
    .swiper-main .swiper-button-next { right: 10px; }
    .swiper-main .swiper-button-prev { left: 10px; }

    /* Thumbnail swiper */
    .swiper-thumbs { padding: 10px 12px; border-top: 1px solid var(--ash-dark); }
    .swiper-thumbs .swiper-slide { width: 64px !important; height: 64px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color .15s; background: var(--ash); flex-shrink: 0; }
    .swiper-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
    .swiper-thumbs .swiper-slide-thumb-active { border-color: var(--red); }
    .swiper-thumbs .swiper-slide:hover { border-color: var(--navy); }

    /* Swiper pagination bullets */
    .swiper-main .swiper-pagination-bullet { background: var(--white); opacity: .5; }
    .swiper-main .swiper-pagination-bullet-active { background: var(--red); opacity: 1; }

    /* ── LIGHTBOX ── */
    .lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; align-items: center; justify-content: center; padding: 16px; }
    .lightbox.open { display: flex; }
    .lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--r); }
    .lightbox-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.15); color: var(--white); border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
    .lightbox-close:hover { background: rgba(255,255,255,.3); }
    .lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: var(--white); border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
    .lb-prev { left: 16px; }
    .lb-next { right: 16px; }
    .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.3); }
    .lb-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .82rem; }
    
      /* Scoped bajo .cr-calc para no pisar nada existente */
  .cr-calc {
    background: #F2F4F7;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 20px;
    margin-bottom: 4px;
    border: 1.5px solid #E4E8EF;
    font-family: inherit;
  }

  .cr-calc__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #687A8F;
    margin-bottom: 14px;
  }
  .cr-calc__title svg { flex-shrink: 0; }

  /* Fila de inputs */
  .cr-calc__inputs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .cr-calc__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 110px;
  }

  .cr-calc__field label {
    font-size: .72rem;
    font-weight: 600;
    color: #687A8F;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .cr-calc__field input,
  .cr-calc__field select {
    padding: 10px 12px;
    border: 1.5px solid #E4E8EF;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    color: #0D1B2A;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    font-family: inherit;
    -moz-appearance: textfield;
  }
  .cr-calc__field input::-webkit-outer-spin-button,
  .cr-calc__field input::-webkit-inner-spin-button { -webkit-appearance: none; }
  .cr-calc__field input:focus,
  .cr-calc__field select:focus {
    border-color: #E02020;
    box-shadow: 0 0 0 3px rgba(224,32,32,.1);
  }
  .cr-calc__field input::placeholder { color: #a0adb8; font-weight: 400; }

  /* Select de desperdicio */
  .cr-calc__field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23687A8F' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
  }

  /* Resultado */
  .cr-calc__result {
    margin-top: 14px;
    background: #fff;
    border-radius: 8px;
    border: 1.5px solid #E4E8EF;
    padding: 14px 16px;
    display: none; /* oculto hasta que haya cálculo */
  }
  .cr-calc__result.cr-visible { display: block; }

  .cr-calc__result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
  }
  @media (max-width: 400px) {
    .cr-calc__result-grid { grid-template-columns: 1fr; }
  }

  .cr-calc__stat { display: flex; flex-direction: column; gap: 2px; }
  .cr-calc__stat-label {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #687A8F;
  }
  .cr-calc__stat-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0D1B2A;
    font-family: 'Syne', inherit;
    letter-spacing: -.02em;
  }
  .cr-calc__stat-value.cr-accent { color: #E02020; }

  /* Separador */
  .cr-calc__divider {
    grid-column: 1 / -1;
    height: 1px;
    background: #F2F4F7;
    margin: 2px 0;
  }

  /* Nota */
  .cr-calc__note {
    margin-top: 10px;
    font-size: .72rem;
    color: #687A8F;
    line-height: 1.5;
  }
  .cr-calc__note strong { color: #0D1B2A; }

  /* Botón actualizar cantidad */
  .cr-calc__apply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 18px;
    background: #0D1B2A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .12s;
    font-family: inherit;
    letter-spacing: .01em;
  }
  .cr-calc__apply:hover {
    background: #2C4160;
    transform: translateY(-1px);
  }
  .cr-calc__apply:active { transform: translateY(0); }

  /* Feedback al aplicar */
  .cr-calc__feedback {
    display: inline-block;
    font-size: .75rem;
    color: #1A9E5A;
    font-weight: 600;
    margin-left: 8px;
    opacity: 0;
    transition: opacity .3s;
  }
  .cr-calc__feedback.cr-show { opacity: 1; }
   
  .no-stock .stock-text{
      color: var(--red);
  }
    .no-stock {
      background: #f8d7da;
  }
  
   .no-stock .stock-dot{
      background: var(--red);
  }
  
  /* ── Variante con texto ── */
.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  height: 38px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .12s;
  white-space: nowrap;
}
.sbtn:hover  { opacity: .85; transform: scale(1.04); }
.sbtn:active { transform: scale(.97); }
.sbtn svg    { width: 16px; height: 16px; fill: currentColor; }

.sbtn-facebook { background: #1877F2; color: #fff; }
.sbtn-whatsapp { background: #25D366; color: #fff; }
.sbtn-twitter  { background: #000;    color: #fff; }
.sbtn-telegram { background: #229ED9; color: #fff; }
.sbtn-linkedin { background: #0A66C2; color: #fff; }
.sbtn-copy     { background: #f0f0f0; color: #333;
                 border: 1px solid #ddd; }

/* ── Variante solo íconos ── */
.sbtn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .12s;
}
.sbtn-icon:hover  { opacity: .85; transform: scale(1.07); }
.sbtn-icon svg    { width: 18px; height: 18px; fill: #fff; }

.sbtn-icon.facebook { background: #1877F2; }
.sbtn-icon.whatsapp { background: #25D366; }
.sbtn-icon.twitter  { background: #000; }
.sbtn-icon.telegram { background: #229ED9; }
.sbtn-icon.linkedin { background: #0A66C2; }
.sbtn-icon.copy     { background: #f0f0f0; border: 1px solid #ddd; }
.sbtn-icon.copy svg { fill: #555; }

.wa-float{
    bottom: 72px!important;
}