/* Utils */
.page-link {
    border: 0;
    font-family: var(--font-2);
    font-size: 16px !important;
    font-weight: 400;
    line-height: normal !important;
    padding: 0 12px !important;
}

.page-item.active .page-link {
    background-color: transparent !important;
    color: var(--primary);
}
/* End Utils */

/* Header */
.page-header {
    background: url(../../../../images/pages/ecommerce/home/index/header-bg.jpg)
        no-repeat;
    padding-top: 100px;
    padding-bottom: 64px;
    background-size: cover;
}

.search-btn {
    background-color: var(--secondary);
}
/* End Header */

/* Category */
#recommendedCategory {
    margin-top: 64px;
}

.category-link {
    transition: var(--transition);
}

.category-link:hover {
    color: var(--primary);
}

.category-overlay-container {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    padding: 8px;
    transition: var(--transition);
}

.category-overlay-img {
    width: 100%;
    height: 100%;
    margin: auto;
    display: block;
    object-fit: cover;
}

.category-overlay-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    padding: 16px;
}

.category-overlay-container:hover {
    transform: translateY(-4px);
}

.category-carousel .slick-slide {
    margin: 0 24px;
}

.category-carousel .slick-list {
    margin: 0 -24px;
}

.category-btn-group {
    display: flex;
    width: 100%;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.category-btn {
    background: var(--primary);
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: var(--white);
}
/* End Category */

/* Product */
#products {
    margin-top: 64px;
}

.product-border {
    border-right: 1px solid var(--primary);
}

.products-category-container {
    height: 400px;
    overflow-y: scroll;
}

.products-category-item {
    margin-bottom: 24px;
    opacity: 0.5;
    transition: var(--transition);
}

.products-category-item > a {
    transition: var(--transition);
}

.products-category-item:hover {
    opacity: 1;
}

.products-category-item > a:hover {
    color: var(--primary);
    text-decoration: none;
}


.products-card {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    height: 100%;
}

.products-card .card-img-top {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-position: center;
    object-fit: cover;
}

.products-card .card-body {
    padding: 16px;
}

.products-detail-btn {
    position: absolute;
    width: 100%;
    background: var(--primary);
    bottom: 0;
    z-index: 4;
    border-radius: 4px;
    font: 400 16px "Nunito", sans-serif;
    color: var(--white) !important;
    transition: var(--transition);
    opacity: 0;
}

.products-card:hover .products-detail-btn {
    opacity: 1;
}

.products-card-btn {
    width: 32px;
    height: 32px;
    background-color: var(--secondary);
    border-radius: 50%;
    font-size: 16px;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.products-card-btn:hover {
    filter: brightness(0.8);
}

.products-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* End Product */

@media (max-width: 767.98px) {
    /* Category */
    .category-carousel .slick-slide {
        margin: 0 4px;
    }

    .category-carousel .slick-list {
        margin: 0 -4px;
    }

    .category-overlay-img {
        width: 100px;
        height: 100px;
    }

    .category-overlay-content {
        padding: 8px;
    }
    /* End Category */

    /* Product */
    .products-category-container {
        height: auto;
        display: flex;
        overflow-x: scroll;
    }

    .products-category-item {
        flex: 0 0 fit-content;
        margin-right: 16px;
    }

    .products-card-btn {
        width: 100%;
        border-radius: 0;
        padding-top: 20px;
        padding-bottom: 20px;
        font-size: 12px;
    }

    .products-gutter {
        margin-left: -8px;
        margin-right: -8px;
    }

    .products-gutter > [class^="col-"],
    .products-gutter > [class^=" col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }

    .products-detail-btn {
        opacity: 1;
        font-size: 12px;
        border-radius: 0;
    }
    /* End Product */
}

@media (min-width: 768px) and (max-width: 997.98px) {
    /* Products */
    .products-card-btn {
        width: 100%;
        border-radius: 0;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    /* End Products */

    .category-overlay-img {
        width: 100%;
        height: 100%;
    }
}
