@charset "UTF-8";

/* ============================================================
   1. БАЗОВЫЕ СТИЛИ (Общие для всех разрешений)
   ============================================================ */
.header-main-img {
    /* width: 100%; */
    /* max-width: 263px; */ /* Ограничиваем максимальную ширину */
    /* margin: 0 auto; */
}

.svg-logo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Скрываем мобильные элементы на десктопе */
.mobile-menu-toggle, 
.menu-content {
    display: none;
}

.mobile-menu-toggle, 
.menu-content {
    font-size: 18px;
}

/* Стили для анимации логотипа при появлении */
.logo-animated svg {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.logo-animated.is-visible svg {
    opacity: 1;
    transform: translateY(0);
}

/* Эффект при наведении на логотип */
#logo:hover .svg-logo {
    color: #007bff;
    transform: scale(1.02);
}
.catalog-button {
    display:block;
    padding: 10px 0;
}

@media (min-width: 992px) {
        .col-lg-9 {
        float: left;
        width: 100%
    }
}
@media screen and (min-width: 1200px) {
    .main-category-item {
        width: calc(100% / 5 + 50px);
        margin: 0;
    }
   .land-block-category .container {
      margin-bottom:50px;
    }
}

@media (max-width: 1023px) { 
.subcategories-column span {
    min-height: 40px;
    line-height:normal;
    display: flex;
    border-bottom: 1px solid #0303;
    align-items: center;
}
}

/* Обычные мониторы и ноутбуки: 4 колонки */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .shop-main-grid {
        display:flex;
        justify-content: center;
    }
    .main-category-item {
        width: calc(100% / 4 + 60px);
        margin: 5px;
    }
} 
@media (max-width: 992px) {
    /* Переключаем контейнер в режим столбика */
    .all-shop-page-meta {
        display: flex !important;
        flex-direction: row;
        align-items: stretch !important;
    }

    /* Все колонки на всю ширину и с авто-высотой */
    .shop-page-meta-right, 
    .shop-page-meta-center, 
    .shop-page-meta-left {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important; /* Убираем минимальные пороги */
        padding: 10px 0 !important;
        margin: 0 auto !important;
    }

    /* Порядок вывода на мобильных (опционально) */
    .shop-page-meta-right { order: 1; } /* Боковое меню (каталог) сверху */
    .shop-page-meta-center { order: 2; } /* Подкатегории и заголовок в середине */
    .shop-page-meta-left { order: 3; }  /* Фильтры в самом низу */

    /* Ссылки в центре делаем удобными для нажатия пальцем */
    #item-subMenulevelCenter {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }

    .center-sub-item {
        display: inline-block;
        padding: 8px 12px;
        background: #f0f0f0;
        border-radius: 4px;
        font-size: 16px;
        margin-bottom: 5px;
    }
}

@media (max-width: 991px) {
    .container {
        width:95%;
        margin:0 auto;
    }
    .c-menu {
        display:none!important
    }    

    .m-menu {
        display: block !important;
        margin-bottom: 20px;
    }  

    .mobile-navigation-1 {
        /* display: flex; */
        /* flex-direction: row; */
        /* float: none; */
        display: none;
    }
    .header-top-line {
        display:flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .top-line-bottom-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 0 !important;
    }

    .open-content, .btn-open {
        width: 50%;
        float: right;
    }

    .btn-open {
        float: left;
    }

    .open-panel-btn-mobail img {
        width: 38px;
        margin: 0 5px 0 0;
    }
    .span-mobail {
        font-size: 1.0rem;
    }

    .m-menu button:hover, 
    .button .burger-icon, 
    button:hover > span {
        background: none !important;
    }

    /* Мобильная обертка меню */
    .mobile-menu-wrapper {
        width: 100%;
        position: relative;
        z-index: 1000;
        margin-bottom: 10px;
        background: none;
    }

    /* Кнопка открытия меню */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        padding: 12px;
        background: transparent;
        color: #0e5af4 !important;
        font-weight: bold;
        cursor: pointer;
        box-sizing: border-box;
        border: none !important;
        border-radius: 0;
        overflow: visible;
    }

    .mobile-menu-toggle img {
        width: 100%;
        max-width: 28px;
        margin: 0 10px;
    }

    .open-panel-btn-mobail {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 12px;
        background: #ffffff !important;
        color: #0e5af4 !important;
        font-weight: bold;
        cursor: pointer;
        box-sizing: border-box;
        border: none !important;
    }

    .burger-icon {
        margin-right: 8px;
        font-size: 28px;
        background: none;
    }
    .catalog-button {
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
    }
    .color-top-text {
        
    }
    .shop-name {
        /* display:block; */
        min-width: 100%;
    }
    .shop-name h1 {
        /* font-size: 1.3rem; */
        /* margin-bottom: 5px; */
    }
    .open-panel-btn img {
        width: 30px;
    }

    /* Контейнер выпадающего меню */
    .menu-content {
        display: block !important;
        max-height: 0;
        overflow: hidden;
        background: #fff;
        transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    }

    .menu-content.is-open {
        max-height: 350px;
        transition: max-height 0.4s ease-in-out;
        border-bottom: 2px solid #2196F3;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }

    /* Плиточное меню (uMenuRoot) */
    ul.uMenuRoot {
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        width: 100% !important;
    }

    ul.uMenuRoot li {
        width: 50% !important;
        min-width: 50% !important;
        max-width: 50% !important;
        box-sizing: border-box !important;
        border: 0.5px solid #f0f0f0 !important;
    }

    ul.uMenuRoot li a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 55px;
        padding: 10px 5px !important;
        text-align: center;
        color: #333 !important;
        font-size: 14px;
        font-weight: 500;
        background: #fff;
        text-decoration: none !important;
    }

    ul.uMenuRoot li a:active {
        color: #2196F3 !important;
    }

    .uMenuH {
        float: none !important;
    }
    .search-box-opened .main-search {
        top:0!important
    }
        .navigation-link {
        display: flex;
        align-items: center;
        width: 50px;
        justify-content: flex-end;
    }
    .main-category {
        display:block
    }
    .header-category {
        margin:0;
        padding: 0;
        height: 60px;
        border-bottom: 1px solid #eeeeee;
    }
    .shop-name {
        margin-bottom: 5px;
    }
    .all-shop-page-meta:has(.shop-page-meta-left.active) {
  /* Стили для .all-shop-page-meta когда .shop-page-meta-left имеет класс active */
       display:flex;
       flex-wrap: wrap;
}
    .all-shop-page-meta {
        display:flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }
    .shop-page-meta-left {
        max-width: 45%;
        padding: 0;
        margin: 0 auto 20px;
        border: none;
    }
     .shop-page-meta-center  {
        max-width: 95%;
        padding: 0;
        margin: 0 auto 20px!important;
        border: none;
    }
     .shop-page-meta-right {
        max-width: 200px;
        padding: 0;
        margin: 0 auto 20px;
        border: none;
    }
    .shop-page-meta-center #item-subMenulevelCenter {
        /* display:flex; */
        /* flex-direction: column; */
        justify-content: flex-start;
        gap: 1px!important;
    }
        .text-search {
        display:none
    }
    a.js-main-search {
        width:auto!important
    }
}

/* Планшеты: 3 колонки */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .shop-main-grid {
        display:flex;
        justify-content: center;
    }
    .main-category-item {
        width: calc(100% / 3 + 90px);
        margin: 5px;
    }
}

@media (max-width: 768px) {
    .header-main-logo {
        display: none; 
    }

    .c-menu {
        display: none !important;
    }
    .shop-name  {
    display: flex;
    flex-direction: column;
    }
    .shop-name h1 {
        font-size: 1.4rem;
        /* letter-spacing: 2px; */
    }
    .shop-name h2 {
        font-size: 1.3rem;
        letter-spacing: 2
    }
    .shop-name p {
        font-size: 1.3rem;
        letter-spacing: 2
    }
    .catalog-button {
        display:flex;
        justify-content: center;
        margin-bottom: 10px;
        width: 100%;
    }
    .open-panel-btn {
        width:100%!important;
        max-width:140px!important
    }

    .header-category {
        display: flex;
        width: 100%;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
        /* margin: 0 0 20px 0; */
    }
    #slider-dots .slick-dots {
        /* display:none; */
    }
    #slider .slider-slide-body-inner {
        display:flex;
        justify-content: flex-end;
        padding: 0;
        flex-direction: column;
    }
    
    #slider .slider-slide-body-inner .header h2 {
        font-size:1rem
    }

    .main-search {
        margin: 0;
    }
    .navigation-link {
        display: flex;
        justify-content: center;
        padding: 0 !important;
    }

    .span-mobail {
        font-size: 18px;
    }

    .header-top-line {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding-top: 0!important;
    }

    .header-top-line > div {
        flex: none;
    }

    .header-top-line-center {
        display: flex;
        /* min-width: 0 !important; */
        /* max-width: 100px !important; */
        align-items: center;
    }


    .header-top-line-rigth {
        display: flex;
        justify-content: flex-end;
    }

    /* Растягиваем поиск при открытии */
    .search-box-opened .main-search {
        top: 0 !important;
        width: 100% !important;
    }
    .mobile-menu-toggle {
        justify-content: center;
    }
    .land-block {
        margin-bottom: 20px!important;
    }
    .all-shop-page-meta {
        display:flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
     h2.shop-page-header {
        font-size:0.5rem
    }
    .shop-page-meta-left , .shop-page-meta-center , .shop-page-meta-right {
        max-width: 90%;
        padding: 0;
        margin: 0 auto 20px;
    }
    .shop-page-meta-left.active {
        max-width:100%
    }
    .images-categories img {
        max-width:100%;
    }
    .shop-page-meta-left-img-cat {
        display:none
    }
    .shop-page-header-mobail {
        display:block;
        width: 100%;
    }
    #main h2.shop-page-header {
        font-size: 1.6rem!important;
    }
    
    .shop-page-meta-center #item-subMenulevelCenter {
        display:flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1px!important;
    }
    .shop-page-meta-top {
        max-height: 400px;
        overflow-y:scroll;
        justify-content: flex-start;
    }
    .categories-container-conten-img {
       /* overflow-y: scroll!important;
        height: 100%;*/
    }
    .subcategories-column a {
        width:100%
    }
    .partners-krovlya {
     display: flex;
     flex-direction: column;
     }
        .partners-krovlya .item img {
            max-width: 50px; /* Еще меньше на телефонах */
      }
    .shop-main-grid {
    }
    .main-category-item {
        width: calc(40% + 33.333334px); /* По 2 карточки в ряд */
    }
    #page .grid-list .list-item .shop-item {
        height: auto!important;
    }
    .shop-item-meta-2 {
        display:flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .shop-item-block-4 {
        display:flex;
        flex-direction: column;
        justify-content: space-around;
    }
    #page .grid-list .list-item .shop-item-meta-actions>.item-buy-button, .shop-item-meta-actions>.item-buy-button, .product-additional__add {
         
    }
    .shop-item-block-2-m {
        display:flex;
        min-height: 0;
    }
    .values {
        display:flex;
        align-items: flex-start;
        width: 100%;
        flex-direction: column;
        margin: 0 10px;
    }
    .values .right , .values .left {
        float:none;
    }
    .values .left {
        margin-bottom:20px
    }
    .product-main-description {
        padding: 0 20px;
    }
    .product-main-manage-shop {
        width:100%
    }
    .item-description-img {
        flex-direction: column;
    }
    .printech {
    display:flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
}
    .item-description p {
        display:flex;
        width:100%
    }
    .light_tree, .tight_tree, .nut, .antique_oak, .golden_oak, .smoky_oak, .wild_stone, .sandstone, .brick, .vintage_light, .vintage_dark, .chestnut {
        width:100%!important;
        max-width: 160px;
        margin:0 auto!important;
    }
}
/* Мобильные (горизонтально) и крупные смартфоны: 2 колонки */
@media screen and (min-width: 480px) and (max-width: 767px) {
    .main-category-item {
        width: calc(100% / 2 - 10px);
        margin: 5px 0;
    }
    #page .list-item .shop-item-image {
        max-height:173px;
    }
}

/* Маленькие смартфоны: 2 колонки (но с уменьшенным текстом) */
@media screen and (max-width: 479px) {
    .main-category-item {
        width: 100%;
        margin: 4px;
        font-size: 14px;
    }
    .category-img-box {
        padding: 5px; /* Меньше отступов на мобильных */
    }
    .main-category-item a {
        /* display:flex; */
        /* flex-direction: column; */
        /* justify-content: flex-start; */
        /* align-items: center; */
    }
    #page .list-item .shop-item-image {
        max-height:173px
    }
}