html{
    background: #F0F0F0;
}

body {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden; /* ← добавь это */
    background: #F0F0F0;
}

.header_catalog{
    align-items: center;
    margin: 0 20px;
    display: flex;
    justify-content: space-between;
    margin-top: 170px;
    margin-bottom: 90px;
}

.sdfsfsf, .preorder-btn {
    position: relative;
    width: 100%;
}

/* Левая панель с категориями — скролл */
#categoriaLeft {
    max-height: 600px;          /* или другая высота */
    overflow-y: auto;
    padding-right: 5px;
}

/* Стилизация скроллбара (опционально) */
#categoriaLeft::-webkit-scrollbar {
    width: 4px;
}
#categoriaLeft::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
#categoriaLeft::-webkit-scrollbar-track {
    background: transparent;
}

/* Элемент «Все товары» в левом меню */
.categoria_pod.all-products-item {
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 6px;
    cursor: pointer;
}
.categoria_pod.all-products-item:hover {
    background: #f5f5f5;
}



/* ===== ГРУППЫ ТОВАРОВ (ГОРИЗОНТАЛЬНАЯ СЕТКА) ===== */
.category-group {
    margin-bottom: 40px;
}

.category-group-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

.category-group-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px 16px;
}

/* Карточка товара внутри группы */
.category-group-items .cartochka {
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: 0.2s;
}

.category-group-items .cartochka:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.category-group-items .cartochka img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
}

.category-group-items .agdfg {
    font-weight: 600;
    margin-top: 8px;
    font-size: 15px;
}

.category-group-items .sdfsdf {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 500;
    color: #000000;
}


.header_catalog_h1{
    font-size: 48px;
    font-weight: 700;
    line-height: 120%;
    color: #000;
} 

.header_catalog_ceatch::after{
    content:""; clear:both; display:table
}

.header_catalog_ceatch form{
    width: auto;
    float: right;
}

.header_catalog_ceatch input{
    font-family: "Inter";
    width: 250px;
    height: 42px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 20px;
    border: none;
    background: #D9D9D9;
    color: #000;
    outline: none;
    position: relative;
    transition: .3s linear;
}

.header_catalog_ceatch input:focus{
    width: 300px;
}

.header_catalog_ceatch button{
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    position: absolute;
    top: -30px;
    right: 0; 
}

.header_catalog_ceatch button::before{
    content: "\f002";
    font-family: FontAwesome;
    color: #324b4e;
}

.categoria{
    margin: 0 20px;
    color: #000;
    font-size: 34px;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 30px;
}

.section_center {
    background: #F0F0F0;
    flex: 1;
    min-width: 0;        /* ← САМОЕ ВАЖНОЕ! без этого flex не сжимается */
    overflow: hidden;
    max-width: calc(100% - 240px); /* 180px + 60px gap */
}

.categoria_menu {
    margin: 0 20px;
    display: flex;
    gap: 60px;
    overflow: hidden; /* ← добавь это */
    align-items: flex-start;
}

.categoria_pod{
    justify-items: center;
    align-items: center;
    color: #000;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
}

.categoria_pod img{
    width: 15px;
    height: 7.5px;
}

.dfgdfdfgdfg{
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.categoria_list{
    display: flex;
    justify-content: space-between;
    padding-bottom: 60px;
    cursor: pointer;
}

.dfgdfgdfg1{
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
}

.dfgdfgdfg2{
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cartochki {
    display: grid !important;
    grid-template-columns:  unset !important;
    grid-template-rows: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 10px;
    margin-bottom: 30px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.categoria_left {
    padding-top: 20px;
    width: 180px;
    min-width: 180px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;          /* отступ от верха окна при прокрутке */
    align-self: flex-start;
    padding-top: 20px;
    z-index: 10;
}

.cartochka {
    width: 210px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%; /* ← карточки одинаковой высоты */
    box-sizing: border-box;
}

.cartochka img {
    width: 100%;
    height: 180px;          /* можно поменять под свой дизайн */
    object-fit: contain;    /* contain — не обрезает, показывает целиком */
    object-position: center;
    flex-shrink: 0;
}

.werwer{
    background: none;
    border: none;
    cursor: pointer;
}

.werwer:hover{
    background: #f0f0f0;
    border-radius: 100%;
}

.subcategory_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0px 0 8px 8px;
    background: #F0F0F0;
    border-radius: 8px;
    margin-bottom: 6px;
}

.subcategory_item {
    cursor: pointer;
    padding: 0px 4px;
    color: #333;
    border-radius: 6px;
}

.subcategory_item:hover {
    background: #ffffff;
}

.categoria_pod{
 cursor: pointer;
}

/* Safari fix */
.section_center_ttt .cartochki {
    display: grid;
}

/* ===== РОДИТЕЛЬСКАЯ КАТЕГОРИЯ ===== */
.parent-category {
    margin-bottom: 48px;
}

.parent-category-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2a1c;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #2c7a47;
}

/* ===== ПОДКАТЕГОРИЯ ===== */
.category-group {
    margin-bottom: 32px;
}

.category-group-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #2c7a47;
}

.category-group-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}



/* Активная кнопка (вместо картинок) */
.sdfsfsf_activ {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: #019A44;
    border-radius: 40px;
    padding: 10px 16px;
}

/* Кнопки «-» и «+» внутри активной кнопки */
.sdfsfsf_activ button {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 10px;
    color: #ffffff;
    transition: transform 0.1s;
}

/* Количество товара */
.sdfsfsf_activ .qty-number {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
}

/* Обычная кнопка "Корзина" (оставьте как есть) */
.sdfsfsf {
    background-color: #F0F0F0;
    border: none;
    border-radius: 40px;
    padding: 12px 16px;
    color: #000;
    font-weight: 400;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.sdfsfsf:hover {
    background-color: #b4b4b4;
}


/* Карточка товара – позиционирование для подсказки */
.cartochka, .cartochka1 {
    position: relative;
}

/* Контейнер для картинки с относительным позиционированием */
.cartochka .image-wrapper,
.cartochka1 .image-wrapper {
    position: relative;
    display: block;
    z-index: 0 !important;
}

/* Бейдж скидки поверх картинки */
.discount-badge {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: #e05454 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 20px !important;
    z-index: 10 !important;
    pointer-events: none !important;
    display: block !important;
}

/* Подсказка-иконка (лупа или палец) */
.cartochka .img-hint,
.cartochka1 .img-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 16px;
    padding: 5px 8px;
    border-radius: 30px;
    font-weight: normal;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none; /* чтобы не мешать клику по картинке */
    z-index: 2;
    font-family: monospace;
}

/* Показываем подсказку при наведении на карточку или на картинку */
.cartochka:hover .img-hint,
.cartochka1:hover .img-hint {
    opacity: 1;
}

/* Делаем картинку кликабельной */
.cartochka img,
.cartochka1 img {
    cursor: pointer;
}



.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}
.modal-close:hover { color: #000; }
.modal-body {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.modal-body img {
    width: 250px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}
.modal-info { flex: 1; }
.modal-info h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
}
.modal-price {
    font-size: 22px;
    font-weight: bold;
    color: #2c7a47;
    margin-bottom: 12px;
}
.modal-price .old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 16px;
    margin-right: 8px;
}
.modal-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}
.modal-buttons {
    display: flex;
    gap: 12px;
}
.preorder-btn, .buy-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.preorder-btn {
    background: #f0f0f0;
    color: #333;
}
.preorder-btn:hover { background: #e0e0e0; }
.buy-btn {
    background: #2c7a47;
    color: white;
}
.buy-btn:hover { background: #1f5a34; }
@media (max-width: 600px) {
    .modal-body { flex-direction: column; align-items: center; }
    .modal-body img { width: 100%; max-width: 200px; }
}






/* Футер на всю ширину экрана */
/* Логотип / название */
footer {
    background: #1a1d27;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    left: 0;
    right: 0;
    padding: 0;
}

.site-footer {
    max-width: 1200px;
    margin: 0 auto;
    color: #e8eaf0;
    padding: 48px 32px 32px;
    border-top: 1px solid #2e3347;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e8eaf0;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-address, .footer-email {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #8b90a7;
}

.footer-address svg, .footer-email svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-email a {
    color: #8b90a7;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-email a:hover {
    color: #4f6ef7;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #e8eaf0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #8b90a7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #4f6ef7;
}

.footer-copyright {
    font-size: 13px;
    color: #8b90a7;
    line-height: 1.6;
}

/* Мобильная версия */
@media (max-width: 915px) {
    .burger {
        display: flex;
    }

    .menu_centr {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .menu_centr.active {
        right: 0;
    }

    .menu_text {
        padding: 10px 20px;
        border-bottom: 1px solid #eee;
    }

    .menu_right {
        margin-left: auto;
        margin-right: 10px;
    }
}



@media (max-width: 915px) {
    .menu{
        display: none;
    }
    .header_catalog{
        align-items: center;
        margin-top: 120px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .header_catalog_ceatch form{
        float: none;
        margin-top: 10px;
    }
    .categoria{
        display: none;
    }
    .header_catalog{
        display: block;
    }
    .categoria_menu{
        display: block;
    }
    .section_center{
        padding: 0;
    }
    .categoria_left{
        display: none;
    }
    .site-footer {
        padding: 40px 20px 24px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-address, .footer-email {
        justify-content: center;
    }
    .footer-logo {
        text-align: center;
    }
}















/* ================================================================
   ФИКС ДЛЯ МОБИЛЬНОЙ ВЕРСИИ КАТАЛОГА
   ================================================================ */

/* Убираем все лишние отступы и скрываем левую панель */
@media (max-width: 768px) {
    /* Скрываем левую панель полностью */
    .categoria_left {
        display: none !important;
    }
    /* Убираем gap и overflow у основного контейнера */
    .categoria_menu {
        display: block !important;
        margin: 0 10px !important;
        gap: 0 !important;
        overflow: visible !important;
    }
    /* Правая часть (каталог) занимает всю ширину */
    .section_center {
        max-width: 100% !important;
        padding: 0 10px !important;
        overflow: visible !important;
    }
    /* Шапка каталога */
    .header_catalog {
        margin-top: 100px !important;
        margin-bottom: 20px !important;
        padding: 0 10px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .header_catalog_h1 {
        font-size: 28px !important;
    }
    .header_catalog_ceatch {
        width: 100% !important;
    }
    .header_catalog_ceatch form {
        width: 100% !important;
        float: none !important;
    }
    .header_catalog_ceatch input {
        width: 100% !important;
        max-width: 300px !important;
        box-sizing: border-box !important;
    }
    .header_catalog_ceatch input:focus {
        width: 100% !important;
    }
    /* Скрываем категории (заголовок) */
    .categoria {
        display: none !important;
    }
    /* Убираем лишние отступы у блоков */
    .section_center_ttt {
        padding: 0 !important;
        margin-top: 10px !important;
    }
    .section_center_top h2 {
        font-size: 20px !important;
    }
    .podmenu {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .podmenu_qwe {
        padding: 6px 14px !important;
        font-size: 13px !important;
    }
    /* Сетка карточек – 2 колонки */
    .cartochki {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
        justify-items: center !important;  /* центрируем карточки по горизонтали */
        align-items: start !important;
    }
    .cartochka {
        width: 210px !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }
    .cartochka img {
        height: 140px !important;
        z-index: 0 !important;
    }
    .sdfsdf {
        font-size: 13px !important;
    }
    .sdfsfsf {
        font-size: 12px !important;
        padding: 8px 10px !important;
        margin: 0 !important;
    }
    .preorder-btn {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }
}

/* Для самых маленьких экранов (≤480px) – одна колонка */
@media (max-width: 480px) {
    .cartochki {
        grid-template-columns: 1fr !important;
    }
    .header_catalog_h1 {
        font-size: 24px !important;
    }
}