/* Contenedor principal para centrar y limitar ancho */
.product-page-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Estilo de la tarjeta principal (similar al de la imagen) */
.product-card {
    display: flex;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Sombra muy sutil */
    border-radius: 5px;
    gap: 30px;
}

/*
 * Sección de Galería de Imágenes
 */
.product-image-gallery {
    display: flex;
    flex-basis: 50%; /* Ocupa la mitad del espacio */
    gap: 20px;
}

/* Lista de miniaturas (thumbnails) */
.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.2s;
    background-color: #fff; /* Asegura fondo blanco para las miniaturas */
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.thumbnail.active {
    border-color: #333; /* Borde más oscuro para la seleccionada */
}

/* Imagen principal */
.main-image-container {
    flex-grow: 1;
    background-color: #f9f9f9; /* Fondo gris claro para la imagen grande */
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    height: auto;
    max-width: 100%;
    /* La imagen real debe tener el mismo fondo blanco o transparente */
    /* Para el placeholder: */
    max-height: 500px; 
    object-fit: contain;
}

/*
 * Sección de Detalles del Producto
 */
.product-details {
    flex-basis: 50%; /* Ocupa la otra mitad */
}

.product-title {
    font-size: 2.2em;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #000;
}

/* Reseñas */
.reviews {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffc107; /* Color dorado para las estrellas */
    font-size: 1.1em;
}

.review-count {
    color: #666;
    font-size: 0.9em;
}

/* Precio */
.price {
    font-size: 2.5em;
    font-weight: 500;
    color: #000;
    margin: 10px 0 20px 0;
}

/* Descripción Corta */
.description-short {
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* Separador sutil */
}

/*
 * Opciones (Color y Tamaño)
 */
.product-option-section {
    margin-bottom: 25px;
}

.option-label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.9em;
}

/* Opciones de Color */
.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.color-option.active {
    border-color: #333; /* Borde para el color seleccionado */
}

/* Opciones de Tamaño */
.size-options {
    display: flex;
    gap: 8px;
}

.size-option {
    padding: 8px 12px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 2px;
    transition: all 0.2s;
}

.size-option.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/*
 * Contador de Cantidad y Botones de Acción
 */
.action-buttons-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

/* Control de Cantidad */
.quantity-control {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 2px;
    overflow: hidden;
}

.quantity-btn {
    background-color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2em;
    color: #333;
    transition: background-color 0.1s;
}

.quantity-btn:hover {
    background-color: #eee;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    padding: 10px 0;
    font-size: 1em;
    /* Eliminar el estilo de enfoque por defecto */
    outline: none;
}

/* Botón Añadir al Carrito */
.add-to-cart-btn {
    background-color: #000;
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    flex-grow: 1; /* Para que ocupe el espacio disponible */
    border-radius: 2px;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background-color: #333;
}

.cta-button {
    background-color: #25D366;
    color: #ffffff;
    padding: 14px 28px;
    font-size: 18px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    font-family: 'Inter', sans-serif;
}
.cta-button:hover {
    background-color: #1ebe5b;
    color: #ffffff;
    text-decoration: none;
}

/* Botones Extra (Corazón y X) */
.extra-action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    background-color: #fff;
    border: 1px solid #ccc;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: #eee;
    border-color: #333;
}

/* Iconos Sociales */
/*.social-icons {
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border: 1px solid #ccc;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.social-icon:hover {
    background-color: #333;
    color: #fff;
}
*/
/*
 * Sección de Pestañas (Tabs)
 */
.product-tabs-section {
    margin-top: 50px;
    padding: 20px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 0;
    margin-right: 30px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    color: #666;
    transition: color 0.2s;
    position: relative;
    text-transform: uppercase;
}

.tab-button.active {
    color: #000;
}
.tab-button:focus {
    border: none;
    outline: none;
}
/* La línea azul/negra debajo del tab activo */
.tab-button.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Alineado con el borde del header */
    width: 100%;
    height: 2px;
    background-color: #000;
}

.tab-content {
    display: none; /* Oculta todas las pestañas por defecto */
}

.tab-content.active {
    display: block; /* Muestra la pestaña activa */
}

.description-content p {
    color: #666;
}

/* Media Query para diseños responsivos básicos (móvil) */
@media (max-width: 768px) {
    .product-card {
        flex-direction: column;
        padding: 20px;
    }

    .product-image-gallery {
        flex-direction: column-reverse; /* Imagen principal arriba en móvil */
        gap: 15px;
    }

    .thumbnail-list {
        flex-direction: row;
        justify-content: center;
    }

    .action-buttons-container {
        flex-wrap: wrap;
    }

    .quantity-control {
        flex-basis: 30%; /* Ocupa un tercio */
    }

    .add-to-cart-btn {
        flex-basis: calc(70% - 10px); /* Ocupa el resto en la primera línea */
    }

    .extra-action-buttons {
        margin-top: 10px;
        flex-basis: 100%; /* Segunda línea para los botones extra */
        justify-content: center;
    }
}