@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

li {
    list-style: none;
}

a {
    text-decoration: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", serif;
}

main {
    margin: 0 10em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    flex-direction: column;
    margin-top: 1em;
}

.product-container {
    display: flex;
}

.product-container .textCell {
    display: none;
}

.product-container .product-gallery {
    width: 50%;
    text-align: center;
}

.product-container .product-gallery .main-image {
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
    object-fit: contain;
}

.product-container .product-gallery .thumbnail-images {
    display: flex;
    width: 100%;
    height: 120px;
    justify-content: center;
    gap: 10px;
}

.product-container .product-gallery .thumbnail-images img {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.thumbnail {
    width: 80px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
}

.product-container .product-details {
    width: 50%;
}

.product-details .brand {
    font-weight: 700;
    font-size: 1em;
    color: #898989;
}

.product-details .name {
    font-weight: 700;
    font-size: 1.5em;
    color: #007bff;
}

.product-details .product-description-small {
    font-weight: 700;
    font-size: 1em;
    color: #2B2B2B;
}

.product-details .product-description-large {
    color: #2B2B2B;
    font-weight: 500;
}

.button-link {
    display: flex;
    justify-content: center;
}

.button-link .whatsapp-button {
    color: #fff;
    background-color: #25D366;
    border-style: solid;
    border-color: #fff;
    border-radius: .8em;
    box-shadow: 0 0 6px #2b2b2b3d;
    padding: .5em 1.5em;
    font-weight: 600;
}

.productRelated {
    font-size: 2em;
    color: #007bff;
    font-weight: 700;
}

.product-related {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin: 0 0 4em;
}

/* Estilo de las tarjetas de producto */
.product-card {
    width: 230px;
    height: 320px;
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card .imagen {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card img {
    width: 80%;
    height: 200px;
    object-fit: contain;
}

.product-card .brand {
    font-size: .8em;
    color: #898989;
    font-weight: 500;
    text-align: start;
}

.product-card h1 {
    margin: 0;
    padding: .5em;
    font-size: 1em;
    color: #2B2B2B;
    text-align: center;
}

.product-card .description {
    font-size: .8em;
    color: #898989;
    font-weight: 500;
    text-align: center;
}

.product-card:hover .more-info-button {
    opacity: 1;
    /* Make the button visible on hover */
}

.more-info-button {
    width: 100%;
    position: absolute;
    bottom: 10px;
    /* Adjust bottom position as needed */
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    /* Blue button color */
    color: #fff;
    border: none;
    padding: .25em 0;
    border-radius: .5em;
    opacity: 0;
    /* Initially hide the button */
    transition: opacity 0.3s ease;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 920px) {
    main {
        margin: 0;
    }

    .product-page {
        width: 100%;
    }

    .product-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .product-container .textCell {
        display: flex;
        flex-direction: column;
    }

    .textCell .brand {
        font-weight: 700;
        font-size: 1em;
        color: #898989;
        margin: .2em 0;
    }

    .textCell .name {
        font-weight: 700;
        font-size: 1.5em;
        color: #007bff;
        text-align: center;
        margin: .2em 0;
    }

    .textCell .product-description-small {
        font-weight: 600;
        font-size: 1em;
        color: #2B2B2B;
        text-align: center;
        margin: .2em 0;
    }

    .product-container .product-gallery {
        width: 100%;
    }

    .product-container .product-gallery .main-image {
        max-width: 250px;
        margin-bottom: 10px;
        object-fit: contain;
    }

    .product-container .product-gallery .thumbnail-images {
        gap: 5px;
    }

    .product-container .product-gallery .thumbnail-images img {
        width: 50%;
        height: 80px;
    }


    .product-details .textDesktop {
        display: none;
    }

    .product-container .product-details {
        width: 100%;
    }

    .product-container .button-link {
        margin: 2em 0;
    }

    .productRelated {
        font-size: 2.4em;
        margin: 0;
        text-align: center;
    }

    .product-related {
        width: 100%;
        margin: 2em 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        place-items: center;
    }

    /* Estilo de las tarjetas de producto */
    .product-card {
        width: 100%;
        height: 230px;
    }

    .product-card img {
        height: 150px;
    }

    .product-card .brand {
        margin: 0;
        font-weight: 600;
    }

    .product-card h1 {
        padding: .3em 0;
    }

    .product-card .description {
        font-size: .7em;
        font-weight: 600;
        margin: 0;
    }
}

@media (max-width: 1280px) {
    main {
        margin: 0 1em;
    }
}