/* CSS of taxonomy-danh-muc-san-pham-san-pham-moi.php, moved verbatim
   from its inline <style> blocks, in source order. Still inline in the template: declarations built from
   ACF values. Loaded last in <head> by kosmos_category_template_css() (functions/actions.php). */

/* taxonomy-danh-muc-san-pham-san-pham-moi.php, <style> at line 181 */
.section {
    margin-top: 30px;
}

.section h2 {
    padding-right: 0;
    width: 100%;
    text-align: center;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 800;
    font-size: 40px;
    color: var(--primary-color);
}

.slider-san-pham h2 {
    width: 100%;
    text-align: center;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 800;
    font-size: 31px;
    color: #fff;
    background: #DD1E38;
    padding: 21px;
    border-radius: 8px 8px 0 0;
}

.slider-san-pham .container {
    box-shadow: 0 5px 8px -2px rgb(73 73 73 / 78%);
    padding: 0;
    margin-bottom: 20px;
    padding-bottom: 24px;
}

.slider-san-pham {
    margin-bottom: 30px;
}

.slider-san-pham .product-slider-wrap {
    padding: 0 30px;
}

.san-pham-box p {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 30px;
}

.site.grid-container.container.hfeed {
    margin-top: 47px;
}

.product-box-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1%;
}

.product-box-image {
    width: 24.2%;
    position: relative;
    margin-bottom: 1%;
}
.product-box-image .product-text {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    border-radius: 30px;
    background: #eb1937;
    padding: 10px 15px;
    color: #fff;
    font-weight: 500;
}

.tieu-de {
    display: block;
    clear: both;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    width: 100%;
    color: #4a4949;
    text-align: center;
}

.product-slider-wrap a {
    margin-top: 6px;
    color: #4a4949;
    text-align: center;
    font-size: 16px;
}

.swiper-slide {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.swiper-button-next,
.swiper-button-prev {
    color: #dd1e38;
}

.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    display: none;
}

.product-item.new-product {
    position: relative;
    overflow: visible !important;
    margin-top: 24px;
}

.product-item.new-product .box-image {
    position: relative;
    overflow: visible !important;
}

.product-item.new-product::before {
    content: "";
    position: absolute;
    top: -22px;
    right: 0;
    width: 58px;
    height: 46px;
    background-image: url('https://kosmos.vn/wp-content/uploads/2025/03/icon-sanp-pham-moi.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 99;
    pointer-events: none;
}

.product-item.new-product .img_wrap {
    overflow: visible !important;
}


@media screen and (max-width: 600px) {
    .product-box-image {
        width: 49%;
    }

    .section {
        margin-top: 15px;
    }

    .product-box-image .product-text {
        position: absolute;
        bottom: 0;
        left: 0;
        transform: unset;
        padding: 10px;
        color: #fff;
        font-weight: 500;
        font-size: 14px;
        width: 100%;
        border-radius: 0;
        margin-bottom: 0;
    }

    .swiper-slide {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        align-items: center;
    }

    .slider-san-pham .product-slider-wrap {
        padding: 0;
    }

    .slider-san-pham .container {
        padding: 15px;
    }

    .section h2 {
        font-size: 28px;

    }
}
