.product {
    margin-top: 32px;
    margin-bottom: 32px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.product h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.product .product-images {
    position: relative;
}

.product .gallery-container {
    padding: 16px 8px;
}

.product .gallery-container .gallery {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
    margin-top: 24px;
}

.product .gallery-container .gallery .image {
    width: 30%;
    min-width: 150px;
    height: 100%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    cursor: pointer;

    & img {
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
        flex-shrink: 0;
    }
}

.product .gallery-container .gallery .image:not(:last-child) {
    margin-right: 16px;
}

.product .gallery-container .gallery .image.active {
    border: 2px solid blue;
}

.product .image-container-principal {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;

    & img {
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
    }
}

.product-info {}

.product-info .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}


@media screen and (min-width: 1024px) {
    .product {
        display: flex;
        gap: 32px;
    }

    .product .product-images {
        flex: 1;
    }

    .product .gallery-container {
        position: sticky;
        top: 0;
    }

    .product .gallery-container .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }

    .product .gallery-container .gallery .image {
        width: 100%;
    }

    .product .gallery-container .gallery .image:not(:last-child) {
        margin-right: 0;
    }
}


button.add-to-cart {
    background-color: var(--green);
    color: var(--foreground-green);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    font-weight: 600;
    float: right;
    margin: 16px;
}

button.add-to-cart:hover {
    background-color: var(--light-green);
    color: var(--foreground-light-green);
}