/* ------------------------ PRODUCTOS ------------------------ */

.bienvenida-productos{
    height: 400px;
    background-color: #eec4b4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bienvenida-productos p{
    font-size: 30px;
    margin-bottom: 10px;
}

.bienvenida-productos span{
    font-size: 35px;
    font-weight: 600;
}

.bienvenida-productos a{
    margin-top: 2em;
    font-size: 25px;
}


/*PRODUCTOS - Listado de productos*/

.seccion-productos{
    margin-top: 2em;
    max-width: 100vw;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 20px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    place-items: center;
}

.seccion-productos article{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    height: 570px;
    text-align: center;
    margin-bottom: 3em;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.seccion-productos article img{
    width: 100%;
    height: 75%;
    top: 0;
}

.seccion-productos article h5{
    font-size: 18px;
    margin-top: 8px;
    font-weight: 500;
    margin-bottom: 5px;
}
.seccion-productos article strong{
    font-size: 20px;
    display: block;
    margin-bottom: 1em !important;
}

.seccion-productos article .btnProductoIndividual{
    display: block;
    text-decoration: none;
    width: 70%;
}

.botones-producto{
    display: flex;
    gap: 10px;
    justify-content: center;
    height: 40px;
}


/*filtros de productos*/

.boton-filtros-productos{
    font-size: 20px;
}

.modal-filtro-productos {
    width: 300px;
    transition: right 0.3s ease;
}

.modal-filtro-productos .input-modal {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-filtro-productos.open {
    right: 0;
}

.modal-filtro-productos .header-filtros{
    text-align: left;
    margin-top: 1em;
    font-size: 20px;
}

.modal-filtro-productos #filterForm{
    display: flex;
    flex-direction: column;
    gap: 1em;
}


/*PRODUCTOS - Breadcrumb*/

.contenedor-filtros-productos{
    margin-left: 3em;
    margin-top: 3em;
    display: flex;
    justify-content: flex-start;
    gap: 2em;
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 16px;
    padding: 10px 0;
}

.breadcrumb-item {
    display: inline;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #007bff; 
    font-weight: bold;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 5px;
    color: #6c757d; 
}

.breadcrumb-item.active {
    color: #6c757d; 
    font-weight: normal;
}

.breadcrumb-item:last-child {
    font-weight: normal; 
}

/*Paginación*/
.paginacion {
    text-align: right;
    width: 90%;
    margin-bottom: 2em;
    color: #000;
}

.pagina-num {
    margin: 0 5px;
    padding: 5px 13px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f0f0f0;
    font-size: 20px;
    color: #000;
}

.pagina-num.active {
    background-color: #007bff;
    color: white;
}

.pagina-prev, .pagina-next {
    padding: 5px 10px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #000;
}

.pagina-prev:hover, .pagina-next:hover {
    background-color: #007bff;
    color: white;
}

/* Porcentaje de descuento */
span.descuento-porcentaje {
    display: block; 
    color: red;
    font-size: 14px; 
    font-weight: bold;
    margin-bottom: 1px; 
}

span.precio-original {
    text-decoration: line-through;
    color: gray; 
    font-size: 15px; 
    margin-right: 5px;
}

span.precio-descuento {
    color: green;
    font-size: 15px;
    font-weight: bold;
}


/* Modal del producto detalles */

.modal-detalle-producto{
    display: flex;
}

.modal-detalle-producto .contenido-modal {
    width: 90%;
    max-width: 800px;
    gap: 20px;
}

.modal-detalle-producto .imagenes-producto {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-detalle-producto .imagen-principal img {
    width: 100%;
    max-width: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-detalle-producto .imagenes-miniaturas {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.modal-detalle-producto .imagenes-miniaturas img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal-detalle-producto .imagenes-miniaturas img:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modal-detalle-producto .detalle-producto {
    flex: 2;
    display: flex;
    flex-direction: column;
    margin-left: 2em;
}

/* Estilo del nombre del producto */
.modal-detalle-producto .detalle-producto .nombre-producto {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
}

/* Estilo del precio */
.modal-detalle-producto .detalle-producto .precio-producto {
    font-size: 20px;
    font-weight: bold;
    color: #008000; /* Color verde */
}

/* Subtítulo de variantes */
.modal-detalle-producto .detalle-producto .variantes-producto h5 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Variantes como opciones */
.modal-detalle-producto .detalle-producto .variantes-producto .variante-opcion {
    display: inline-block;
    background: #000; 
    color: #fff; 
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.modal-detalle-producto .detalle-producto .variantes-producto .variante-opcion:hover {
    background: #444; 
}

/* Subtítulos (tamaño y descripción) */
.modal-detalle-producto .detalle-producto .dimensiones-producto,
.modal-detalle-producto .detalle-producto .descripcion-producto {
    font-size: 16px;
    font-weight: normal;
    color: #555;
    line-height: 1.5;
}

.modal-detalle-producto .detalle-producto .dimensiones-producto::before,
.modal-detalle-producto .detalle-producto .descripcion-producto::before {
    content: attr(data-title);
    display: block;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}


/*Modal de producto individual*/

.modal-producto-individual.visible {
    display: flex; 
}

.modal-producto-individual .contenido-modal {
    width: 900px;
    max-width: 90%;
    max-height: 80%;
}

.modal-producto-individual h5 {
    font-size: 24px;
    margin-top: 1em;
    margin-bottom: .5em;
}

.contenido-modal .detalles-producto {
    display: flex;
    justify-content: center;
    gap: 5em;
}

.modal-producto-individual .guardar{
    display: block;
    margin: 0 auto;
    font-size: 20px;
}

.botones-variantes {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-variante {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}

.btn-variante:hover {
    background-color: #e0e0e0;
}

.btn-variante.seleccionado {
    background-color: #000;
    color: white;
    border-color: #000;
}

.agregar-carrito-modal{
    background-color: white;
    color: #000;
    border: 1px solid #000;
    border-radius: 0px 10px;
    transition: all .3s ease;
    margin-top: 3em;
}

.agregar-carrito-modal:hover{
    background-color: #000;
    color: white;
    border: none;
}


/*RESPONSIVE*/
@media (max-width: 1024px) {
    .bienvenida-productos p{
        width: 85%;
        text-align: center;
    }
    .seccion-productos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 15px;
    }

    .seccion-productos article {
        max-width: 240px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .bienvenida-productos p{
        font-size: 23px;
    }
    .seccion-productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px;
    }

    .seccion-productos article {
        max-width: 95%;
        height: auto;
    }

    .seccion-productos article img {
        height: auto;
    }
    
}

@media (max-width: 484px) {
    .seccion-productos article {
        max-width: 90%;
        height: auto;
    }
    .botones-producto{
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        justify-content: center;
        height: auto;
    }
    .seccion-productos article .btnProductoIndividual{
        width: 90%;
    }
    .btnVerProducto{
        padding: 5px 10px;
    }
    .seccion-productos article h5{
        font-size: 15px;
    }
    .seccion-productos article strong{
        font-size: 16px;
    }
}