html,
body {
    scroll-behavior: smooth;
}

.page-header {
    padding-top: 13rem;
    padding-bottom: 5.5rem;
}

.header-background {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.header-btn {
    background-color: var(--secondary-base);
    transition: all 150ms ease;
}

.header-btn:hover {
    background-color: var(--secondary-dark);
}

.search-template {
    width: 49%;
}

/* Category */
.category-container {
    overflow-x: scroll;
    display: flex;
}

.category-item {
    flex: none;
    padding-bottom: 8px;
    margin-right: 24px;
}

.category-item a {
    transition: all 250ms ease;
    color: var(--grey);
}

.category-item a:hover {
    color: var(--secondary-dark);
}

/* Content */
#products {
    padding-bottom: 3rem;
}

.product {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    transform: scale(1);
    transition: all .4s ease;
}

.image-product {
    border-radius: 5px;
    width: 100%;
    height: auto;
}

.product-hover {
    position: absolute;
    height: 100%;
    bottom: 0;
    width: 100%;
    border-radius: 5px;
    opacity: 0;
    background: rgba(153, 0, 14, 0.5);
    transition: all .2s ease;
}

.product:hover {
    transform: scale(1.05);
}

.product:hover .product-hover {
    opacity: 1;
}

.masonry-with-columns {
    columns: 3;
    column-gap: 24px;
}

@media only screen and (max-width: 767.98px) {

    .page-header {
        padding-top: 15rem;
        padding-bottom: 3rem;
    }

    .product .product-hover {
        opacity: 1;
    }

    .product .product-hover {
        display: none;
    }

    .search-template {
        width: 100%;
    }

    .product {
        transform: scale(1) !important;
        break-inside: avoid;
    }

    .masonry-with-columns {
        columns: 1;
    }
}

@media only screen and (min-width: 768px) and (max-width: 997.98px) {

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

    .product .product-hover {
        display: none;
    }

    .search-template {
        width: 100%;
    }

    .masonry-with-columns {
        columns: 2;
    }

    .product {
        break-inside: avoid;
        transform: scale(1) !important;
    }

}
