/* --------------------- */
/* Estilos Generales y Layout */
/* --------------------- */

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px 0;
    background-color: #f9eab2; /* Gris claro de fondo */
}

.product-page-container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgb(210, 201, 137);
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.main-content-wrapper {
    display: flex;
    gap: 20px;
}

.column {
    padding: 0;
}

/* --------------------- */
/* COLUMNA 1: Miniaturas */
/* --------------------- */
.left-sidebar {
    flex: 0 0 50px; /* Ancho fijo para miniaturas */

}

.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #c2bdbd;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.thumbnail.active, .thumbnail:hover {
    border-color: #3483fa; /* Azul de Mercado Libre */
}

/* --------------------- */
/* COLUMNA 2: Imagen Principal con Zoom */
/* --------------------- */
.center-image {
    flex: 0 0 500px; /* Ancho fijo para la imagen grande */
    position: relative;
}

.image-zoom-container {
    width: 100%;
    height: 500px;
    border: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Importante para el efecto de zoom */
    position: relative; /* Contenedor para la imagen y la vista de zoom */
}

#mainImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Estilo que simula la vista ampliada (requiere JS para funcionar) */
.zoomed-view {
    position: absolute;
    top: 0;
    left: 100%; /* Inicialmente lo colocamos fuera de la vista */
    width: 400px; /* Tamaño de la ventana de zoom */
    height: 400px;
    background-color: white;
    border: 2px solid #3483fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

    pointer-events: none; /* Permite interactuar con el contenedor subyacente */
    background-repeat: no-repeat;
    /* El JS movería el background-position aquí para el efecto de lupa */
    opacity: 0; /* Oculto inicialmente */
    transition: opacity 0.3s;
}

/* --------------------- */
/* COLUMNA 3: Detalles y Precios */
/* --------------------- */
.right-details {
    flex: 1; /* Ocupa el espacio restante */
    padding: 0 10px;
}

.product-info-box h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 5px 0 10px 0;
}

.condition-sold {
    color: #00a650; /* Verde ML */
    font-size: 14px;
    margin-bottom: 5px;
}

.rating {
    font-size: 14px;
    color: #3483fa;
    margin-bottom: 20px;
}

.old-price {
    font-size: 18px;
    color: #a6a6a6;
    text-decoration: line-through;
    margin-bottom: 0;
}

.current-price {
    font-size: 36px;
    font-weight: 400;
    color: #333;
    margin: 5px 0;
}

.discount {
    color: #00a650;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 30px;
}

.stock {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-bottom: 20px;
}

/* Botones */
.buy-now, .add-cart {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.buy-now {
    background-color: #3483fa; /* Azul principal */
    color: white;
}

.buy-now:hover {
    background-color: #2968c8;
}

.add-cart {
    background-color: rgba(52, 131, 250, 0.1); /* Azul claro/transparente */
    color: #3483fa;
    border: 1px solid #3483fa;
}

.add-cart:hover {
    background-color: rgba(52, 131, 250, 0.2);
}

.delivery-info {
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 14px;
    color: #333;
}

/* Sección Inferior */
.product-description {
    clear: both;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #eee;
}