.q_cate {
    padding: 10px;
    margin: 80px auto 20px;
}

.q_cate .head_categories {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 30px;
}

.q_cate .head_categories h2 {
    font-size: 32px;
    font-weight: 700;
}

.q_cate .head_categories .btns {
    position: absolute;
    left: 0;
    display: flex;
    gap: 10px;
}

.q_cate .head_categories .btns button {
    font-size: 15px;
    border: none;
    padding: 5px;
    background: #D9D9D966;
    border-radius: 6px;
    cursor: pointer;
}

.q_cate .promotional {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}

.q_cate .categories_slider,
.q_cate .categories_grid {
    width: 100%;
    display: grid;
    gap: 20px;
    margin-top: 15px;
}

.q_cate .categories_slider {
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 6) - 17px);
    overflow-x: hidden;
    padding: 5px 0;
}

.q_cate .categories_grid {
    grid-template-columns: repeat(6, 1fr);
}

.q_cate .card_category {
    width: 100%;
    cursor: pointer;
    text-align: center;
    transition: transform 0.4s ease;
}

.q_cate .card_category:hover {
    transform: translateY(-5px);
}

.q_cate .card_category .card_img {
    width: 100%;
    height: 150px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.q_cate .card_category .card_img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.q_cate .card-name {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 10px;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}



.q_cate .card-name i {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s ease;
    color: #000;
    font-size: 14px;
}

.q_cate .card_category:hover .card-name i {
    opacity: 1;
    transform: translateX(0);
    color: #FFCF57;
}

.q_cate .card_category p {
    width: 50% !important;
    margin: 0;
    color: #000;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.q_cate .card_category:hover .no_color {
    color: #FFCF57;
}

.swiper-button-next,
.swiper-button-prev {
    z-index: 1;
}

.q_cate .swiper-button-next:after,
.q_cate .swiper-button-prev:after {
    font-size: 19px;
    color: #fff;
    background: var(--second-color);
    border-radius: 50%;
    padding: 10px 15px;
}

.new_styel {
    position: relative;
}

.new_styel .pre {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.new_styel .pre.odd-item {
    flex-direction: column-reverse;
}

.q_cate .new_styel .card_img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 6px;
}

.q_cate .new_styel img {
    max-width: 80%;
    max-height: 80%;
}


@media (max-width: 1200px) {
    .q_cate .categories_slider {
        grid-auto-columns: calc((100% / 4) - 15px);
    }
    .q_cate .categories_grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .q_cate .card_category p {
        font-size: 14px;
    }
    .q_cate .card-name i {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .q_cate .categories_slider {
        grid-auto-columns: calc((100% / 3) - 14px);
    }
    .q_cate .categories_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .q_cate .head_categories h2 {
        font-size: 24px;
    }
    .q_cate .card_category .card_img {
        height: 120px;
    }
    .q_cate .card_category p {
        font-size: 13px;
    }
    .q_cate .card-name i {
        font-size: 12px;
    }
    .q_cate .categories_slider {
        grid-auto-columns: calc((100% / 2) - 10px);
    }
    .q_cate .categories_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .q_cate .card_category .card_img {
        height: 100px;
    }
}