/* ============================== */
/* 🎨 ESTILOS EXCLUSIVOS PARA producto.php */
/* ============================== */

/* ✅ Contenedor del producto */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* ✅ Diseño flexible */
  .product-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  
  /* ✅ Imagen Principal */
  .product-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
  }
  
  /* ============================== */
  /* ✅ Galería de imágenes (miniaturas) */
  /* ============================== */
  .image-gallery {
    display: flex;
    gap: 10px; /* Espacio entre miniaturas */
  }
  
  .image-gallery img {
    width: 80px;         /* Ajusta según el tamaño deseado */
    height: auto;
    object-fit: cover;   /* Recorta si la imagen es más grande que su contenedor */
    border-radius: 5px;
    cursor: pointer;     /* Cambiamos a pointer para indicar clic */
    transition: transform 0.3s ease;
  }
  
  /* Efecto zoom al pasar el ratón */
  .image-gallery img:hover {
    transform: scale(1.1);
  }
  
  /* ============================== */
  /* ✅ MODAL PARA VER IMAGEN EN GRANDE */
  /* ============================== */
  .modal {
    display: none;             /* Oculto por defecto */
    position: fixed;           /* Posición fija */
    z-index: 999;              /* Encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;            /* Scroll si la imagen es muy grande */
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro semitransparente */
    cursor: zoom-out;          /* Cursor al pasar por el modal */
  }
  
  /* Imagen dentro del modal */
  .modal-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    margin-top: 5%;            /* Centrado vertical aproximado */
    border-radius: 8px;
  }
  
  /* Botón de cerrar (la X) */
  .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;         /* Evita selección del texto al hacer clic */
  }
  
  /* ============================== */
  /* ✅ Información del Producto    */
  /* ============================== */
  .product-info {
    max-width: 500px;
    text-align: left;
  }
  
  .product__name {
    font-size: 2rem;
    color: #1d1d1f;
  }
  
  .product__description {
    font-size: 1.2rem;
    color: #444;
    margin: 10px 0;
  }
  
  .product__price {
    font-size: 1.8rem;
    color: #0071e3;
    font-weight: bold;
    margin: 10px 0;
  }
  
  .product__stock {
    font-size: 1.2rem;
    color: green;
    font-weight: bold;
  }
  
  /* ✅ Botones */
  .btn {
    display: inline-block;
    background: #0071e3;
    color: white;
    padding: 12px 18px;
    border-radius: 5px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background 0.3s;
    margin-top: 10px;
  }
  
  .btn:hover {
    background: #005bb5;
  }
  
  .btn-secondary {
    background: #6c757d;
  }
  
  .btn-secondary:hover {
    background: #545b62;
  }
  
  /* ✅ Responsive */
  @media (max-width: 768px) {
    .product-details {
      flex-direction: column;
    }
  
    .product__name {
      font-size: 1.5rem;
    }
  
    .product__price {
      font-size: 1.5rem;
    }
  
    .btn {
      font-size: 1rem;
      padding: 10px 15px;
    }
  }
  