main {
    background-color: rgb(30, 30, 30);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tit-productos {
    width: 100vw;
    text-align: center;
    color: white;
    font-size: 5vh;
    margin: 7vh 0;
    font-weight: 600;
    text-transform: uppercase;
}

.prices-section {
    text-align: center;
    padding: 20px;
    background: rgba(50, 194, 28, 0.5);
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 40vw;
}

.prices-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--amarillo);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-box {
    background-color: rgba(15, 15, 15, 0.8);
    border-radius: 10px;
    padding: 15px 20px;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.measure {
    font-size: 1.6rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.price {
    font-size: 1.4rem;
    font-weight: 500;
    color: grey;
}


hr {
    margin: 15vh 0;
    width: 90vw;
}

/* productos */

.products-section {
    text-align: center;
    padding: 20px;
    width: 80vw;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 10vh;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    width: calc(30% - 20px); /* Adjust for 3 products per row */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-image {
    max-width: 80%;
    height: auto;
    border-radius: 5px;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 10px 0;
}

.product-description {
    font-size: 0.9rem;
    color: #555;
    margin: 10px 0;
}

.add-to-cart {
    background: #1e88e5;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #1565c0;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 300px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.close-popup:hover {
    color: red;
}

.quantity-controller {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.quantity-controller button {
    background: #1e88e5;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantity-controller button:hover {
    background: #1565c0;
}

.quantity-controller span {
    font-size: 1.5rem;
    margin: 0 10px;
}

#popup-price {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.confirm-add {
    background: #43a047;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.confirm-add:hover {
    background: #2e7d32;
}

.medida {
    width: 150px;
    padding: 8px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-top: 2vh;
}

.medida:hover {
    border-color: #888;
}

.medida:focus {
    border-color: #555;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.medida option {
    padding: 10px;
    background-color: #fff;
    color: #333;
}

@media screen and (max-width: 768px) {

    .products-section {
        width: 100vw;
    }

    .product-card {
        width: 80vw;
        margin-bottom: 5vh;
    }

    .product-image {
        max-width: 50%;
    }

    .add-to-cart {
        width: 35vw;
        height: 15vh;
        font-size: 3vh;
        font-weight: 600;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }

    .product-card:hover {
        transform: none;
    }
}