/* Contenedor general */
.container-product {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 20px;
}

/* Galería lateral */
.gallery-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-column img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-column img:hover {
  transform: scale(1.05);
}

/* Imagen principal */
.main-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.main-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin: auto;
}

/* Detalles */
.details {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.name_product {
  font-size: 28px;
  font-weight: 600;
}

.route_product {
  font-size: 14px;
  color: #888;
}

.sku_product {
  font-size: 14px;
  color: #666;
}

.price {
  font-size: 26px;
  font-weight: 700;
  color: #d23434;
}

/* Botones */
.buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.buttons button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-buy {
  background: #2ecc71;
  color: white;
}

.btn-cart {
  background: #3498db;
  color: white;
}

.buttons button:hover {
  transform: scale(1.05);
}

/* Selector dinámico */
.selector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.selector-grid button {
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.selector-grid button.selected {
  background-color: #333;
  color: white;
  border-color: #000;
}

.selector-grid button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Especificaciones */
#resumen_variant li {
  list-style: disc;
  margin-left: 20px;
  font-size: 14px;
  color: #444;
}

#detalles_variant table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#detalles_variant td {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
  .container-product {
    flex-direction: column;
  }

  .gallery-column {
    flex-direction: row;
    justify-content: center;
  }

  .main-image img {
    max-height: 300px;
  }
}
























/* CSS para selectores de variantes */
#selectors {
    margin: 5px 0;
}

#selectors > div {
    margin-bottom: 15px;
}

#selectors label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.selector-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selector-grid button {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.selector-grid button:hover:not(.disabled) {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.selector-grid button.selected {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.selector-grid button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5 !important;
    color: #999 !important;
    border-color: #ddd !important;
}

.selector-grid button.disabled:hover {
    background-color: #f5f5f5 !important;
    border-color: #ddd !important;
}

/* Estilos para la información de la variante */
.sku_product {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}

#resumen_variant {
    margin: 10px 0;
    padding-left: 20px;
}

#resumen_variant li {
    margin: 5px 0;
    color: #555;
}

#detalles_variant table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

#detalles_variant table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

#detalles_variant table td:first-child {
    width: 30%;
    color: #666;
}

/* Estilos para botones de acción */
.buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn-buy, .btn-cart {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy {
    background-color: #28a745;
    color: white;
}

.btn-buy:hover {
    background-color: #218838;
}

.btn-cart {
    background-color: #007bff;
    color: white;
}

.btn-cart:hover:not(:disabled) {
    background-color: #0056b3;
}

.btn-cart:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}


.selector-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 10px 0;
    }
    
    .selector-grid button {
        padding: 8px 16px;
        border: 2px solid #ddd;
        background: white;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .selector-grid button:hover {
        border-color: #007bff;
        background: #f8f9fa;
    }
    
    .selector-grid button.selected {
        border-color: #007bff;
        background: #007bff;
        color: white;
    }
    
    .selector-grid button:disabled {
        background: #f5f5f5;
        color: #999;
        cursor: not-allowed;
        border-color: #eee;
    }
    
    .selector-grid button.unavailable {
        background: #ffebee;
        border-color: #ffcdd2;
        color: #c62828;
    }
    
    .attribute-section {
        margin: 20px 0;
    }
    
    .attribute-label {
        font-weight: bold;
        margin-bottom: 8px;
        display: block;
    }
    
    .loading {
        opacity: 0.6;
        pointer-events: none;
    }
    
    .error-message {
        color: #d32f2f;
        background: #ffebee;
        padding: 10px;
        border-radius: 4px;
        margin: 10px 0;
    }
    
    .success-message {
        color: #2e7d32;
        background: #e8f5e8;
        padding: 10px;
        border-radius: 4px;
        margin: 10px 0;
    }