/* Página de productos */
.products-container {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    height: 100%;

}

/* Cuadrícula de productos */
.product-grid {
    position: relative;
    top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Cambia el número de columnas según el tamaño disponible */
    gap: 10px;
    justify-items: center;
}

.product {
    
    position: relative;
    width: 120px;
    height: 210px;
    border: 2px solid transparent; /* Bordes azul oscuros */
    border-radius: 10px;
    background-color: #fff;
    padding: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7); /* <- sombra */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}



.product img {
    width: 100%;
    height: auto;
    display: block;
}

.product p {
    margin: 0;
    padding: 5px 0;
    color: #000; /* Texto en negro */
    font-size: 12px;
}
.BotonesProductos{
    position: absolute;
    bottom: 5px;
    height: 50px; /* o la altura que necesites */
    width: 95%;
    padding-bottom: 5px; /* para evitar que el contenido tape el botón */
}

.buttonCar {
    position: absolute;
    bottom: 7px;
    left: -10px;
    width: 58px;
    height: 30px;
    background-color: transparent;
    font-size: 30px;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.buttonCar:hover {
    transform: scale(1.5);
}

.buttonPayStyle {
    position: absolute;
    bottom: -20px;
    right:-15px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 100px;
    height: 70px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.buttonPayStyle:hover {
    transform: scale(1.1);
}

.buttonPay1 {
    position: absolute;
    bottom: -20px;
    right:-15px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 100px;
    height: 70px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.buttonPay1:hover {
    transform: scale(1.1);
}

/* Imagen disparadora */
.trigger-img {
    width: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.trigger-img:hover {
    transform: scale(1.05);
}


.buttons_ {
    position:relative;
    top:400px;
    background-color: aqua;
    
}

.DESCRIPCION_ {
    position:relative;
    top: 300px;
    color: #fff;    
}
.DESCRIPCION {
    position:relative;
    top: 70px;
    
    
}
.DESCRIPCION p {
    font-size:small;
    color: #fff;
    
}
.DESCRIPCION_ p {
    font-size:small;
    color: #fff;
    
}


/* Estilo del fondo oscuro */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

/* Estilo del modal */
.modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #E9E5D6;
    padding: 0 0;
    border-radius: 20px;
    min-width: 50%;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    position: relative;
    min-height: 70dvh;
}



.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    color: #555;
}

.MetodosPago{
    display: flex;
    justify-content: space-around;
    gap: 15px;
    flex-wrap: wrap;
    padding: 10px 0;
    background-color: transparent;

}

.MetodosPago1, .contraentrega {
    text-align: center;
    background-color: transparent;
    border-color: transparent;
    
}

.product-list {
    padding: 7px;
    list-style: none;
    margin: 0;
}

.product-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
}

.modal-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: right;
    padding: 0;
    margin: 0;
}



.form-check {
    padding: 7px;
    margin: 10px 0;
}


.ProductImage {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ProductImage img {
    width: auto;
    height: 120px;
    object-fit: cover;
    border-radius: 8px; /* opcional */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Centering the modal form */
.modal-form {
    padding-left: 5%;
    justify-self: center;
}