/* ============================================
   AURENWEAR — producto.css
   Página individual de producto
   ============================================ */

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 40px;
  border-bottom: 1px solid #2e2e2e;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.breadcrumb a   { color: #888; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: #f5f3ee; }
.breadcrumb span { color: #444; }
.breadcrumb span:last-child { color: #f5f3ee; }

/* ── LAYOUT PRINCIPAL ── */
.producto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 120px);
  border-bottom: 1px solid #2e2e2e;
}

/* ── GALERÍA ── */
.producto-galeria {
  border-right: 1px solid #2e2e2e;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 69px;
  height: calc(100vh - 69px);
}

.galeria-principal {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
}

#img-principal {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 40px;
  transition: opacity 0.25s;
}

.galeria-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #f5f3ee;
  color: #0a0a0a;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 5px 10px;
}

.galeria-thumbs {
  display: flex;
  gap: 1px;
  background: #2e2e2e;
  border-top: 1px solid #2e2e2e;
  flex-shrink: 0;
}

.thumb {
  flex: 1;
  aspect-ratio: 1;
  max-height: 100px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.thumb:hover img,
.thumb.activo img {
  opacity: 1;
}

.thumb.activo {
  background: #2e2e2e;
}

/* ── INFO PANEL ── */
.producto-info {
  padding: 44px 52px;
  overflow-y: auto;
}

.producto-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  border: 1px solid #2e2e2e;
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 2px;
}

.producto-nombre {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: #f5f3ee;
  margin-bottom: 18px;
}

.producto-precios {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
}

.precio-actual {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #f5f3ee;
}

.precio-tachado {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #555;
  text-decoration: line-through;
}

.precio-descuento {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  background: #22c55e;
  color: #fff;
  padding: 4px 10px;
  letter-spacing: 0.06em;
  border-radius: 2px;
}

.producto-sep {
  border-top: 1px solid #2e2e2e;
  margin: 24px 0;
}

/* ── SECCIONES (talle / estilo) ── */
.producto-seccion {
  margin-bottom: 24px;
}

.producto-seccion-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.producto-seccion-label strong {
  color: #f5f3ee;
  font-weight: 600;
}

.guia-link {
  color: #888;
  text-decoration: underline;
  font-size: 11px;
  margin-left: auto;
  transition: color 0.2s;
}
.guia-link:hover { color: #f5f3ee; }

.opciones-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opcion-btn {
  background: none;
  border: 1px solid #2e2e2e;
  color: #aaa;
  padding: 0 18px;
  height: 42px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  border-radius: 2px;
}

.opcion-btn:hover {
  border-color: #888;
  color: #f5f3ee;
}

.opcion-btn.seleccionado {
  background: #f5f3ee;
  border-color: #f5f3ee;
  color: #0a0a0a;
  font-weight: 600;
}

.talle-aviso {
  display: none;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #c0392b;
  letter-spacing: 0.08em;
  margin-top: 10px;
}

/* ── ACCIONES ── */
.producto-acciones {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
}

.cantidad-control {
  display: flex;
  align-items: center;
  border: 1px solid #2e2e2e;
  flex-shrink: 0;
}

.cantidad-control button {
  background: none;
  border: none;
  color: #888;
  width: 44px;
  height: 52px;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cantidad-control button:hover { color: #f5f3ee; }

.cantidad-control span {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: #f5f3ee;
  width: 44px;
  text-align: center;
  border-left: 1px solid #2e2e2e;
  border-right: 1px solid #2e2e2e;
}

.btn-agregar-grande {
  flex: 1;
  background: #f5f3ee;
  color: #0a0a0a;
  border: none;
  height: 52px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-agregar-grande:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── CALCULAR ENVÍO ── */
.calcular-envio {
  border: 1px solid #2e2e2e;
  padding: 18px 20px;
  margin-bottom: 24px;
  background: #111;
}

.calcular-envio-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
}

.calcular-envio-row {
  display: flex;
  gap: 0;
}

.calcular-envio-row input {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  border-right: none;
  color: #f5f3ee;
  padding: 10px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.calcular-envio-row input:focus { border-color: #888; }
.calcular-envio-row input::placeholder { color: #555; }

.calcular-envio-row button {
  background: #2e2e2e;
  border: 1px solid #2e2e2e;
  color: #f5f3ee;
  padding: 10px 20px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.calcular-envio-row button:hover { background: #3a3a3a; }

.calcular-envio-resultado {
  margin-top: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #888;
  line-height: 1.6;
  min-height: 0;
}
.calcular-envio-resultado.ok    { color: #4caf50; }
.calcular-envio-resultado.error { color: #c0392b; }

.no-se-cp {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #555;
  text-decoration: underline;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.no-se-cp:hover { color: #888; }

/* ── DESCRIPCIÓN ── */
.producto-descripcion {
  margin-bottom: 24px;
  line-height: 1.7;
}

.prod-drop-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.prod-desc-texto {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
  line-height: 1.8;
}

.prod-detalles-titulo {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f5f3ee;
  margin-bottom: 14px;
  border-top: 1px solid #2e2e2e;
  padding-top: 18px;
}

.prod-detalles-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prod-detalles-lista li {
  font-size: 13px;
  color: #999;
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.prod-detalles-lista li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #444;
  font-size: 10px;
}

.prod-detalles-lista li strong { color: #f5f3ee; }

.prod-aviso {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid #2e2e2e;
  border-left: 2px solid #f5f3ee;
  font-size: 11px;
  color: #888;
  line-height: 1.6;
}
.prod-aviso strong { color: #f5f3ee; }

/* ── COMPARTIR ── */
.producto-compartir {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.producto-compartir span {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}

.producto-compartir a {
  color: #555;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.producto-compartir a:hover { color: #f5f3ee; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .producto-grid {
    grid-template-columns: 1fr;
  }
  .producto-galeria {
    position: static;
    height: auto;
  }
  .galeria-principal {
    height: 60vw;
    max-height: 420px;
  }
  .producto-info {
    padding: 30px 20px;
  }
  .breadcrumb {
    padding: 12px 20px;
  }
}


/* ── OPCIONES DE ENVÍO ── */
.envio-opciones-titulo {
  font-size: 11px;
  color: #888;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 10px;
  line-height: 1.5;
}

.envio-opcion {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #2e2e2e;
  padding: 14px 16px;
  margin-bottom: 6px;
  background: #0f0f0f;
  transition: border-color 0.2s;
}

.envio-opcion:hover {
  border-color: #444;
}

.envio-opcion-info {
  flex: 1;
}

.envio-opcion-nombre {
  font-size: 12px;
  font-weight: 500;
  color: #f5f3ee;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 4px;
}

.envio-opcion-desc {
  font-size: 11px;
  color: #666;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.5;
}

.envio-opcion-precio {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #f5f3ee;
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}


/* ── TALLES SIN STOCK ── */
.opcion-btn.sin-stock {
  opacity: 0.35;
  cursor: not-allowed;
  position: relative;
  text-decoration: line-through;
}

.opcion-btn.sin-stock:hover {
  border-color: #2e2e2e;
  color: #888;
  background: none;
}

.sin-stock-label {
  display: none;
}

/* ── BOTÓN BLOQUEADO (modelo no disponible para talle o viceversa) ── */
.opcion-btn.bloqueado {
  opacity: 0.3;
  cursor: not-allowed;
  position: relative;
  border-color: #1e1e1e;
  color: #555;
}

.opcion-btn.bloqueado:hover {
  border-color: #1e1e1e;
  color: #555;
  background: none;
}

.bloqueado-icon {
  position: absolute;
  top: -1px;
  right: 4px;
  font-size: 8px;
  color: #c0392b;
  font-weight: 700;
  opacity: 0.8;
}


/* ── SELECTOR DE COLOR ── */
.color-opciones {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  outline: none;
}

.color-btn:hover {
  transform: scale(1.1);
}

.color-btn.seleccionado {
  border-color: #f5f3ee;
  box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 4px #f5f3ee;
}

/* ── THUMBNAILS MÁS CHICOS ── */
.galeria-thumbs {
  display: flex;
  gap: 1px;
  background: #2e2e2e;
  border-top: 1px solid #2e2e2e;
  flex-shrink: 0;
  max-height: 72px;
}

.thumb {
  flex: 1;
  max-height: 72px;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 6px;
}

.thumb:hover img,
.thumb.activo img {
  opacity: 1;
}

.thumb.activo {
  background: #2e2e2e;
}

/* Imagen principal con transición de color */
#img-principal {
  transition: opacity 0.15s ease;
}