* {
    box-sizing: border-box;
}

.category_serv_count::before {
    content: "(";
}

.category_serv_count::after {
    content: ")";
}

.banner_list {
    width: 100%;
    position: relative;
}

.banner_slider {
    position: relative;
    overflow: hidden;
}

.banner_slider img {
    max-height: 360px;
    width: auto;
    height: auto;
    display: block;
}

.banner_slide {
    display: none;
}

.banner_slide.active {
    display: flex;
    justify-content: center;
}

.banner_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    background: rgba(0, 0, 0, .4);
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
}

.banner_arrow.prev {
    left: 10px;
}

.banner_arrow.next {
    right: 10px;
}

.banner_dots {
    text-align: center;
    padding: 10px 0;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    display: inline-block;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #333;
}

.category_cart:not(:first-child) {
    margin-top: 15px;
}


/* ===== CATEGORY CARD ===== */
.category_cart {
    background: #fff;
    border-radius: 18px;
    margin-bottom: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: 0.25s ease;
}

/* ===== SUMMARY (header акордеону) ===== */
.category_cart>summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 700;
    color: #2f2f2f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f7f9f3, #ffffff);
    border-bottom: 1px solid #eef1e7;
}

/* прибрати стандартну стрілку */
.category_cart>summary::-webkit-details-marker {
    display: none;
}

/* лічильник */
.category_serv_count {
    font-style: normal;
    background: linear-gradient(135deg, #6b7d3a, #a3b86c);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
}

.shop_top::before {
    content: "ТОП ПРОДАЖІВ";
    display: block;
    width: 96%;
    text-align: center;
    font-size: larger;
    font-weight: bold;
    color: black;
    padding: 10px 0;
    border-radius: 15px 15px 0 0;
    margin: 20px 2% 20px 2%;

    background: linear-gradient(to top, green, yellow);
}

.shop_regular::before {
    content: "МАГАЗИН";
    display: block;
    width: 96%;
    text-align: center;
    font-size: larger;
    font-weight: bold;
    color: black;
    padding: 10px 0;
    border-radius: 15px 15px 0 0;
    margin: 20px 2% 20px 2%;

    background: linear-gradient(to top, green, yellow);
}

/* ===== CONTENT GRID ===== */
.category_services {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    background: #fff;
}

.category_services.top {
    position: relative;
    padding: 14px;
    display: flex;
    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    white-space: nowrap;
    background: #fff;
}

.category_services.top > * {
    flex: 0 0 180px;
    min-width: 180px;
    flex-shrink: 0;
}

.category_services.top h3 {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ===== PRODUCT LINK ===== */
.category_services a {
    text-decoration: none;
    color: inherit;
}

/* ===== PRODUCT CARD ===== */
.service_cart {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: 0.25s ease;
    height: 100%;
}

/* hover */
.service_cart:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(107, 125, 58, 0.18);
}

/* image */
.service_img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #fafafa;
    padding: 10px;
}

/* name */
.service_cart_name {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 12px 4px;
    color: #2d2d2d;
    line-height: 1.3;
}

/* price */
.service_cart_price {
    margin-top: auto;
    padding: 10px 12px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #6b7d3a;
}

/* smooth open animation */
.category_cart[open] .category_services {
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .banner_slider img {
        max-height: auto;
        height: auto;
        width: 100%;
    }
}