.catalog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.catalog-category {
    /* flex: 0 1 calc(33.333% - 20px); */
    background: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s ease;
    width: calc((100% / 3) - 24px);
}

@media (max-width: 1280px) {
.catalog-category {
        /* flex: 0 1 calc(33.333% - 20px); */
        background: #f8f8f8;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
        text-align: center;
        transition: transform 0.2s ease;
        width: calc((100% / 2) - 24px);
    }
}
@media (max-width: 468px) {
    .catalog-category {
        /* flex: 0 1 calc(33.333% - 20px); */
        background: #f8f8f8;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
        text-align: center;
        transition: transform 0.2s ease;
        width: 100%;
    }
}

.catalog-category:hover {
    transform: translateY(-5px);
}

.catalog-category img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.catalog-category h3 {
    font-size: 18px;
    padding: 15px;
    margin: 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.catalog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.catalog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.catalog-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.catalog-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    display: inline-block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.catalog-card-title:hover {
    color: #aa0000;
}

.catalog-subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-subcategory-list li {
    margin-bottom: 8px;
}

.catalog-subcategory-list a {
    font-size: 15px;
    color: #666;

    transition: color 0.2s ease;
}

.catalog-subcategory-list a:hover {
    color: #000;
}

.catalog-card.see-all {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f7f7f7;
    border: 2px dashed #ccc;
}

.catalog-card.see-all .btn {
    font-size: 16px;
    padding: 14px 28px;
    font-weight: 500;
}


.catalog-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fff;
    padding: 1.5em 2em;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: none;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    width: calc(100%);
    min-height: 20px;
  height: fit-content;
    /* 4 items per row */
}

.catalog-menu {
    flex-direction: column;
    flex-wrap: nowrap;
    background: none;
}

.catalog-menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.catalog-menu-item-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.catalog-menu-item span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.catalog-menu {
    display: none;
}

.catalog-menu.opened {
    display: block;
}


.catalog-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    width: fit-content;
    left: 0;
    z-index: 1000;
    background:none;
    padding: 20px;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    */transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
    -moz-transition: opacity 0.3s ease, visibility 0.3s ease;
    -ms-transition: opacity 0.3s ease, visibility 0.3s ease;
    -o-transition: opacity 0.3s ease, visibility 0.3s ease;
}

.catalog-btn:hover+.catalog-menu,
.catalog-menu:hover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.subcategory-item {
    width: 100%;
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #d9d9d9;
    margin: 0;
    background: #f9f9f9;
    transition: background 0.2s;
}

.subcategory-item a {
    text-decoration: none;
    color: #222;
    font-size: 1.1rem;
    display: block;
}

.subcategory-item:hover {
    background: #f0f0f0;
}

.subcategory-item:last-child {
    border-bottom: none;
}

.range-slider {
    margin-bottom: 1em;
}

.slider-values {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.slider-values input {
    width: 100%;
    padding: 5px;
    text-align: center;
}

@media (max-width: 1199.98px) {
    .catalog-menu {
        flex-direction: column;
        justify-content: flex-start;
    }

    .catalog-menu-item {
        width: 100%;
        height: fit-content;
        min-height: fit-content;
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid #d9d9d9;
        margin: 0;
    }
}
.home-review .review-slider {
 
    height: fit-content;
}

.catalog-txt{
    font-weight: 500;
        font-family: "Nunito Sans", sans-serif;
        line-height: 114%;
        font-size: 20px;
}


@media screen and (min-width: 500px) {
    .catalog-txt {
        font-size: calc(22px + 22 * ((100vw - 500px) / 1000));
    }
}


.home-slider .swiper-slide picture img {
    aspect-ratio: 16 /6;
}

@media (max-width: 649.98px) {
    .home-slider .swiper-slide picture img {
            aspect-ratio: unset;   }
    }
.swiper-pagination-bullet {
    width: 28px !important;
    height: 28px !important;

}
.swiper-container-horizontal>.swiper-pagination-bullets-bullet-active,
.swiper-pagination-bullet-active {
    height: 38px !important;
}
.breadcrumbs-main-cat {
    position: relative;
    cursor: pointer;
}

.breadcrumbs-main-cat {
    position: relative;
    display: flex;
    align-items: center;

}

.toggle-related-cats {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.3s ease;
    user-select: none;
}

.breadcrumbs-related-cats-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    padding: 4px 0;
    margin: 0;
    list-style: none;
    min-width: 180px;
    z-index: 999;
}

.breadcrumbs-related-cats-dropdown li {
    padding: 8px 12px;
    white-space: nowrap;
}

.breadcrumbs-related-cats-dropdown li:hover {
    background-color: #eee;
}

/* Клас для відкритого меню */
.breadcrumbs-main-cat.open .toggle-related-cats {
    transform: rotate(180deg);
    /* стрілочка перевертається */
}

.breadcrumbs-main-cat.open .breadcrumbs-related-cats-dropdown {
    display: block;
}


.toggle-related-cats {
    font-size: 18px;
    line-height: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.breadcrumbs-main-cat.open .toggle-related-cats {
    transform: rotate(180deg);
}

.breadcrumbs>ul {

    overflow: unset;
}

@media (max-width: 768px) {
    .catalog-menu {
        background:#fff;
            width: calc(100%);
            padding-top: 40px;
        }
.icon-close1{opacity: 0;}

                .catalog-btn:hover+.catalog-menu,
                .catalog-menu:hover {
                    visibility:unset;
                    opacity: unset;
                    pointer-events: unset;
                }
    .catalog-menu-item {
        width: calc(100%);
        box-shadow: unset;
        border-radius: 0;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        -ms-border-radius: 0;
        -o-border-radius: 0;
}
}

@media (max-width: 480px) {
    .catalog-menu-item {
        width: 100%;
    }
}
/* Базові стилі підменю */

.header-menu>ul {
    display: flex;
flex-direction: row;
}



.header-menu ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 100;
    flex-direction: column;
    padding: 10px 0;
}

/* Стилі для вкладених підменю */
.header-menu ul.sub-menu ul.sub-menu {
    top: 0;
    left: 100%;
    margin-left: 1px;
}

/* Кожен пункт підменю — li > a.drop-menu-item */
.header-menu ul.sub-menu>li>a.drop-menu-item {
    margin-left: 0;
    padding: 10px 20px;
    font-size: 15px;
    white-space: nowrap;
    font-weight: 400;
    color: #333;
    background-color: #fff;
    display: block;
    transition: background 0.2s ease;
}

/* Ховер на пункті підменю */
.header-menu ul.sub-menu>li>a.drop-menu-item:hover {
    background-color: #f2f2f2;
}

/* Показати підменю при наведенні на li, що має підменю */
.header-menu li.menu-item-has-children:hover>ul.sub-menu {
    display: flex;
}

/* Додати стрілку для пунктів, які мають підменю */
.header-menu ul.sub-menu li.menu-item-has-children>a.drop-menu-item::after {
    content: "▶";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 10px;
    color: #999;
    pointer-events: none;
}

/* Позиціювання відносно для li, щоб стрілка та абсолютне підменю працювали */
.header-menu li.menu-item-has-children {
    position: relative;
}

.header-menu-item+.sub-menu::before {
    content: none;
    /* або просто видалити цей блок */
}
/* Мобільна версія: показати всі підменю одразу при відкритті */
@media (max-width: 1199.98px) {

.header-menu>ul {
        display: flex;
        flex-direction: column;
    }

    .header-menu ul.sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }

    .header-menu li.menu-item-has-children.open>ul.sub-menu {
        display: block;
    }

    .header-menu ul.sub-menu>li>a.drop-menu-item {
        padding-left: 32px;
        border-bottom: 1px solid #eee;
        position: relative;
    }
}
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

  .submenu-toggle {
  display: none;
  }
@media (max-width: 1200px) {
.header-menu li.menu-item-has-children:hover>ul.sub-menu {
        display: none;
    }


        .menu-item-has-children {
            position: relative;
        }
    
        .submenu-toggle {
        position: absolute;
        padding-right:10px;
            right: 0px;
            top: 20px;
            transform: translateY(-50%);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: end;
            width: 40px;
            height: 40px;
        }
    
        .submenu-toggle .icon {
            transition: transform 0.3s ease;
        }
    
        /* Повертаємо стрілку вгору при відкритті */
        .menu-item-has-children.submenu-open .submenu-toggle .icon {
            transform: rotate(180deg);
        }
    
        /* Ховаємо підменю за замовчуванням */
        .menu-item-has-children ul.sub-menu {
            display: none;
        }
    
        /* Показуємо при відкритті */
         .menu-item-has-children.submenu-open ul.sub-menu {
             display: flex!important;
         }
        }