/* app/static/css/detalle_producto.css */

/* === VARIABLES LOCALES === */
:root {
  --taca-navy: #0A1F44;
  --taca-red: #E31E24;
}

/* === GALERÍA === */
.gallery-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-img-frame {
  position: relative;
  overflow: hidden; 
  border-radius: 20px; /* Bordes Bento */
  background: white;
  cursor: zoom-in; 
  display: flex;
  align-items: center;
  justify-content: center;
  height: 450px;
  width: 100%;
  border: 1px solid #f0f0f0;
}

.main-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain; 
  transition: transform 0.1s ease-out; 
  will-change: transform;
}

.main-img.zoomed { transform: scale(1.8); cursor: zoom-out; }

/* Miniaturas */
.thumb {
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.6;
}
.thumb:hover { opacity: 1; border-color: #ddd; }
.thumb-active {
  border-color: var(--taca-navy) !important; /* Azul activo */
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* === INFO PRODUCTO === */
.price-box {
  background-color: #f8f9fa;
  border-radius: 16px;
  padding: 1.5rem;
  border-left: 5px solid var(--taca-red); /* Acento Rojo */
}

/* Stepper (Botones + -) */
.qty-input-group button { 
    border-color: #dee2e6; 
    color: var(--taca-navy);
}
.qty-input-group button:hover {
    background-color: #f1f1f1;
}

/* === AQUÍ ESTÁ EL CAMBIO IMPORTANTÍSIMO === */
/* Antes se llamaba .btn-add-main, ahora usamos el ID #btnAddToCart 
   para asegurar que estilice el botón que arreglamos en el HTML */
#btnAddToCart {
    background-color: var(--taca-red) !important; /* !important para ganar a Bootstrap */
    border-color: var(--taca-red) !important;
    color: white;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#btnAddToCart:hover {
    background-color: #c0151b !important; /* Rojo más oscuro al hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(227, 30, 36, 0.2);
}

/* Caja Envíos */
.shipping-box {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 1.5rem;
}

/* === SECCIONES DESCRIPTIVAS === */
.section-card {
  transition: transform 0.3s ease;
}
.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.08)!important;
}

/* === SLIDER RELACIONADOS === */
.related-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.5rem 2rem 0.5rem; 
  scrollbar-width: none; 
}
.related-track::-webkit-scrollbar { display: none; }

.related-slide {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.slider-arrow {
  width: 45px; height: 45px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: none;
  color: var(--taca-navy);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s;
}
.slider-arrow:hover { 
    background: var(--taca-navy); 
    color: white; 
}
.slider-arrow.prev { left: -20px; }
.slider-arrow.next { right: -20px; }

/* Responsive */
@media (max-width: 768px) {
  .main-img-frame { height: 350px; }
  .slider-arrow { display: none; } /* En móvil se usa touch scroll */
}