/* css/producto.css */

/* --- Contenedores Principales --- */
.product-main {
    padding: 2.5rem 0; /* 40px de espacio arriba y abajo */
}

.product-container {
    max-width: 1280px; /* Ancho máximo */
    margin: 0 auto; /* Centra el contenedor */
    padding: 0 1.5rem; /* Espacio a los lados */
    display: grid;
    grid-template-columns: 1fr; /* Una columna en móvil */
    gap: 2.5rem; /* Espacio entre columnas */
}

/* En pantallas de 768px o más, cambiamos a dos columnas */
@media (min-width: 768px) {
    .product-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Columna Izquierda: Imagen --- */
.main-image-container {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Columna Derecha: Detalles del Producto --- */
.product-details .product-title {
    font-family: Lora, sans-serif;
    font-size: 36px;
    letter-spacing: -0.025em;
    color: #3c3737;
}

.product-details .product-price {
    font-family: Lora, sans-serif;
    font-size: 24px;
    letter-spacing: -0.025em;
    color: #3c3737;
    margin-top: 0.75rem;
}

.options-group {
    margin-top: 1.5rem; /* 24px */
}

.options-label {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #3c3737;
}

.options-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* 12px */
    margin-top: 0.5rem;
}

/* Estilos para los botones (talla, color, cantidad) */
.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: 1px;
    transition: outline-color 0.2s ease;
}
.color-btn.selected {
    outline-color: #3c3737;
}

.size-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    color: #3c3737;
    border-radius: 0.25rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}
.size-btn.selected, .size-btn:hover {
    background-color: #3c3737;
    color: #f1eeea;
    border-color: #3c3737;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #3c3737;
    border-radius: 0.25rem;
    background-color: #fff;
    font-size: 12px;
    line-height: 1;
}
.quantity-selector input {
    width: 3rem; /* 48px */
    height: 40px;
    text-align: center;
    border: 1px solid #fff;
    border-radius: 0.25rem;
}

.add-to-cart-btn {
    margin-top: 2rem;
    width: 100%;
    background-color: #3f1e1f;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}
.add-to-cart-btn:hover {
    background-color: #fff;
    color: #3c3737;
    border: 1px solid #3c3737;
}

/* Descripción Larga */
.description-group {
    margin-top: 2.5rem;
}
.description-content {
    margin-top: 1rem;
    color: #3c3737;
    font-size: 16px;
    line-height: 1.75;
}