.shapkaSlider {
    position: relative;
    width: 100%;
    height: 630px;
    background: linear-gradient(267.26deg, #011E1C 12.1%, #002E2B 53.08%, #011B18 76.12%, #00120D 89.36%);
    background-size: contain;
    overflow: hidden;
}


.itc-slider {
    margin-top: 90px;
    height: 540px;
    width: 100%;
}

.itc-slider-item {
    display: flex;
    flex: 0 0 100%;
    height: 540px;
}

/* --------------- FIX: фиксированная подгонка картинок и защита от "выпирания" --------------- */

/* Обязательное для flex-children: разрешаем сжиматься */
.baze,
.itc-slider-items,
.itc-slider-item,
.itc-slider-item>* {
    min-width: 0;
    box-sizing: border-box;
}

/* Гарантировать, что базовый контейнер не будет расширять страницу */
.baze {
    min-width: 0;
}

/* Меняем поведение картинок — они заполняют контейнер, не растягивая его
.itc-slider .img_cont,
.itc-slider .img_cont img {
    width: auto;
    height: 465px;
    box-sizing: border-box;
    display: block;
} */

.itc-slider .img_cont img {
    /* заполняет контейнер аккуратно */
    max-width: 100%;
    /* отменяем max-width, чтобы высота/ширина считались по контейнеру */
}

/* Слайды фиксируются ровно по ширине wrapper'а */
.itc-slider-items {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.itc-slider-item {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Защитные обнуления */
.itc-slider-items,
.itc-slider-item {
    margin: 0;
    padding: 0;
}




.map_top {
    width: 100%;
    height: 500px;
    background-image: url('img/карта.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    padding: 30px;
    display: block;
    text-decoration: none;
}

.map_top_cont {
    padding: 45px;
}

.tabel {
    width: 400px;
    height: 100%;
    background-color: #00312D;
    border-radius: 20px;
    padding: 25px;
}

.title_tabel {
    color: #FCE0B4;
    font-size: 18px;
    text-align: center;
}

.title_tabel2 {
    color: #FCE0B4;
    font-size: 24px;
    text-align: center;
    margin-top: 5px;
    font-weight: 800;
}

.line_map {
    width: 100%;
    background: linear-gradient(90deg, #ECBF8B 34%, #B07F31 50%, #EFD6AE 68%);
    height: 1px;
}

/* ///////////////////////////////// */

.categor_obolochka {
    display: flex;
}

.listik {
    display: none;
    width: 16px;
    height: 16px;
}

.listik img {
    width: 100%;
    height: 100%;
}

.name_categor {
    color: #fce0b471;
    font-size: 22px;
}

.ktatlog_cont {
    margin-top: 20px;
    scroll-margin-top: 105px;
}

body.ghosteaapp .ktatlog_cont {
    margin-top: 110px;
}

.glav_cont_katalog {
    display: flex;
    padding: 45px;
    padding-bottom: 155px;
}

.catalog_sidebar {
    width: 230px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.catalog_mode_switch {
    display: flex;
    gap: 8px;
}

.catalog_mode_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(252, 224, 180, 0.45);
    color: #fce0b4b8;
    font-family: Nunito;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s;
}

.catalog_mode_link.active {
    color: #00312D;
    background: #FCE0B4;
    border-color: #FCE0B4;
}

.catalog_mode_link:hover {
    color: #FCE0B4;
    border-color: #FCE0B4;
}

.net_v_nalichie {
    color: #ff0c49;
    font-size: 16px;
    font-family: Nunito;
    margin-top: 5px;
}

.product--soldout .net_v_nalichie {
    display: block;
    color: #ff0c49;
}

.categor_cont {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.categor_obolochka {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.categor_obolochka.active {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.categor_obolochka.active .name_categor {
    color: #FCE0B4;
    font-size: 26px;
    transition: 0.2s;
}

.categor_obolochka.active .listik {
    display: block;
    width: 20px;
    height: 20px;
    transition: 0.2s;
}

.product_block {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    flex: 1 1 auto;
    cursor: pointer;
    text-decoration: none;
    --catalog-img-size: clamp(120px, 9vw, 230px);
}

.product_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    gap: 12px;
    padding: 16px 16px 14px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(1, 30, 28, 0.96) 0%, rgba(0, 49, 45, 0.96) 100%);
    border: 1px solid rgba(252, 224, 180, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
    overflow: hidden;
}

.product_card--buy-visible .catalog_buy {
    display: flex;
}

.product_card--buy-open .catalog_buy_panel {
    max-height: 180px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.product_card--in-cart {
    border-color: rgba(138, 230, 196, 0.3);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(138, 230, 196, 0.08) inset;
}

.product_card.product--soldout .catalog_buy {
    display: none !important;
}

.img_product {
    width: var(--catalog-img-size);
    height: var(--catalog-img-size);
}

.img_product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.line {
    height: 1px;
    width: var(--catalog-img-size);
    background: linear-gradient(90deg, #ECBF8B 34%, #B07F31 50%, #EFD6AE 68%);
    margin-top: 20px;
}

.name_product {
    color: #FCE0B4;
    text-align: center;
    margin-top: 15px;
    font-size: clamp(14px, 1.1vw, 18px);
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    min-height: 3.75em;
}

.price_weight {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.price {
    font-family: Nunito;
    color: white;
    font-weight: 600;
    font-size: clamp(12px, 0.9vw, 14px);
}

.weight {
    font-family: Nunito;
    color: white;
    font-weight: 200;
    font-size: clamp(12px, 0.9vw, 14px);
}

.catalog_buy {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
    padding: 2px 0 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.catalog_buy--single {
    padding-top: 4px;
}

.catalog_buy_button,
.catalog_buy_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid #FCE0B4;
    background: linear-gradient(90deg, rgba(252, 224, 180, 0.08), rgba(255, 255, 255, 0.02));
    color: #FCE0B4;
    font-family: Nunito;
    font-weight: 700;
    font-size: 14px;
    min-height: 38px;
    cursor: pointer;
    transition: 0.2s ease;
}

.catalog_buy_button:hover,
.catalog_buy_submit:hover {
    background: rgba(252, 224, 180, 0.12);
}

.catalog_buy_button--in-cart {
    border-color: rgba(138, 230, 196, 0.42);
    color: #c9ffe9;
    background: linear-gradient(90deg, rgba(138, 230, 196, 0.12), rgba(255, 255, 255, 0.02));
}

.catalog_buy_button--in-cart:hover {
    background: rgba(138, 230, 196, 0.16);
}

.catalog_buy_button:disabled,
.catalog_buy_submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.catalog_buy_panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
}

.catalog_buy_select_wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog_buy_label {
    color: rgba(252, 224, 180, 0.75);
    font-family: Nunito;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.catalog_buy_select {
    width: 100%;
    min-height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(252, 224, 180, 0.45);
    background: rgba(1, 30, 28, 0.75);
    color: #FCE0B4;
    font-family: Nunito;
    font-size: 14px;
    padding: 0 12px;
    outline: none;
}

.catalog_buy_select:focus {
    border-color: #FCE0B4;
    box-shadow: 0 0 0 2px rgba(252, 224, 180, 0.12);
}

.ghostea_toast_host {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.ghostea_toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: min(92vw, 360px);
    max-width: min(92vw, 460px);
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(1, 30, 28, 0.98), rgba(0, 49, 45, 0.94));
    border: 1px solid rgba(252, 224, 180, 0.18);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.ghostea_toast--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ghostea_toast_icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex: 0 0 14px;
    background: #FCE0B4;
    box-shadow: 0 0 0 5px rgba(252, 224, 180, 0.12);
}

.ghostea_toast--success .ghostea_toast_icon {
    background: #8ae6c4;
    box-shadow: 0 0 0 5px rgba(138, 230, 196, 0.12);
}

.ghostea_toast--error .ghostea_toast_icon {
    background: #ff7a8f;
    box-shadow: 0 0 0 5px rgba(255, 122, 143, 0.12);
}

.ghostea_toast_text {
    color: #FCE0B4;
    font-family: Nunito;
    font-size: 14px;
    line-height: 1.35;
}

.empty-category-message {
    grid-column: 1 / -1;
    color: #FCE0B4;
    text-align: center;
    font-family: Nunito, sans-serif;
    font-size: 18px;
    margin-top: 40px;
}

.product_cont {
    flex: 1 1 auto;
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
    justify-content: center;
    gap: 60px 25px;
}

.mobile_obolochka {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Obsolete 1350px sidebar rule removed */

.left_cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 50%;
    justify-content: center;
}

.right_cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 50%;
    justify-content: center;
}

.img_cont {
    height: 465px;
    width: auto;
}

.img_cont img {
    height: 100%;
    width: auto;
}

.text_slide {
    color: #FCE0B4;
    text-align: center;
    width: 400px;
    font-size: 20px;
    margin: 20px 0;
}

.button_slide {
    display: flex;
    border-radius: 500px;
    color: #FCE0B4;
    background: none;
    border: #FCE0B4 solid 3px;
    min-width: 200px;
    height: 60px;
    text-align: center;
    font-size: 18px;
    margin-top: 30px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
}


/* .button_slide {
    position: relative;
    z-index: 9999;
    pointer-events: auto;
}

.itc-slider-btn {
    pointer-events: none;
}

.itc-slider-btn::after {
    pointer-events: auto;
} */

.title_slide {
    font-size: 40px;
    font-weight: 800;
    /* твой градиент */
    background: linear-gradient(90deg, #ECBF8B 34%, #B07F31 50%, #EFD6AE 68%);

    /* важные строки для применения градиента к заполнению букв */
    -webkit-background-clip: text;
    /* для WebKit (Chrome, Safari) */
    background-clip: text;
    /* стандартный */
    -webkit-text-fill-color: transparent;
    /* для WebKit — делает текст прозрачным, чтобы виден был фон */
    color: transparent;
    /* запасной вариант */

    /* опционально: чтобы градиент растягивался по всей длине строки */
    display: inline-block;
    margin-bottom: 15px;
}

.line_slide {
    height: 1px;
    width: 260px;
    background: linear-gradient(90deg, #ECBF8B 34%, #B07F31 50%, #EFD6AE 68%);
}

.button_slide {
    position: relative;
    /* не меняет размеры */
    z-index: 2147483647 !important;
    /* форсируем положение поверх всего */
}

@media (min-width: 790px) and (max-width: 1260px) {
    .button_slide {
        display: flex;
        border-radius: 500px;
        color: #FCE0B4;
        background: none;
        border: #FCE0B4 solid 2px;
        min-width: 160px;
        height: 45px;
        text-align: center;
        font-size: 14px;
        margin-top: 20px;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        z-index: 1000;
    }


    /* Кнопка внутри слайда — всегда выше */
    .button_slide {
        position: relative;
        z-index: 9999;
        pointer-events: auto;
    }


    .map_top {
        width: 100%;
        height: 350px;
        background-image: url('img/карта.jpg');
        background-size: cover;
        background-position: center;
        border-radius: 30px;
        padding: 30px;
        display: block;
        text-decoration: none;
    }

    .map_top_cont {
        padding: 45px;
    }

    .tabel {
        width: 400px;
        height: 100%;
        background-color: #00312D;
        border-radius: 20px;
        padding: 25px;
    }

    .title_tabel {
        color: #FCE0B4;
        font-size: 18px;
        text-align: center;
    }

    .title_tabel2 {
        color: #FCE0B4;
        font-size: 24px;
        text-align: center;
        margin-top: 5px;
        font-weight: 800;
    }
}

@media (min-width: 1260px) and (max-width: 1440px) {
    .map_top {
        width: 100%;
        height: 400px;
        background-image: url('img/карта.jpg');
        background-size: cover;
        background-position: center;
        border-radius: 30px;
        padding: 30px;
        display: block;
        text-decoration: none;
    }

    .map_top_cont {
        padding: 45px;
    }

    .tabel {
        width: 400px;
        height: 100%;
        background-color: #00312D;
        border-radius: 20px;
        padding: 25px;
    }

    .title_tabel {
        color: #FCE0B4;
        font-size: 18px;
        text-align: center;
    }

    .title_tabel2 {
        color: #FCE0B4;
        font-size: 24px;
        text-align: center;
        margin-top: 5px;
        font-weight: 800;
    }
}

@media(max-width:790px) {
    .img_cont {
        height: 150px;
    }

    .title_slide {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .text_slide {
        font-size: 8px;
        width: 180px;
        margin: 5px 0;
    }

    .line_slide {
        width: 100px;
    }

    .button_slide {
        height: 20px;
        font-size: 6px;
        min-width: 70px;
        border: #FCE0B4 solid 1px;
        margin-top: 7px;
    }

    .net_v_nalichie {
        color: #ff0c49;
        font-size: 10px;
        font-family: Nunito;
        margin-top: 5px;
    }

    .shapkaSlider {
        position: relative;
        width: 100%;
        height: 230px;
        background: linear-gradient(267.26deg, #011E1C 12.1%, #002E2B 53.08%, #011B18 76.12%, #00120D 89.36%);
        background-size: contain;
        overflow: hidden;
    }

    .itc-slider {
        margin-top: 60px;
        height: 170px;
        width: 100%;
    }

    .itc-slider-item {
        display: flex;
        flex: 0 0 100%;
        height: 170px;
    }

    .categor_obolochka {
        display: flex;
    }

    .listik {
        display: block;
        width: 8px;
        height: 8px;
        opacity: 0;
    }

    .listik img {
        line-height: 8px;
        width: 100%;
        height: 100%;
    }

    .name_categor {
        color: #fce0b471;
        font-size: 10px;
    }

    .ktatlog_cont {
        margin-top: 10px;
    }



    .mobile_obolochka {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .categor_cont {
        display: flex;
        gap: 10px;
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }

    .categor_obolochka {
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        transition: 0.2s;
    }

    .categor_obolochka.active {
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        transition: 0.2s;
    }

    .categor_obolochka.active .name_categor {
        color: #FCE0B4;
        font-size: 10px;
        transition: 0.2s;
    }

    .categor_obolochka.active .listik {
        display: block;
        width: 8px;
        height: 8px;
        line-height: 8px;
        transition: 0.2s;
        opacity: 1;
    }

    .product_block {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        cursor: pointer;
        text-decoration: none;
        --catalog-img-size: clamp(120px, 27vw, 170px);
    }

    .product_card {
        width: 100%;
        height: 100%;
        gap: 8px;
        padding: 12px 12px 10px;
        border-radius: 20px;
    }

    .catalog_buy {
        width: 100%;
        padding: 2px 0 0;
        gap: 8px;
    }

    .catalog_buy_button,
    .catalog_buy_submit {
        width: 100%;
        min-height: 32px;
        font-size: 12px;
    }

    .catalog_buy_label {
        font-size: 10px;
    }

    .catalog_buy_select {
        min-height: 32px;
        font-size: 12px;
    }

    .line {
        height: 1px;
        width: var(--catalog-img-size);
        background: linear-gradient(90deg, #ECBF8B 34%, #B07F31 50%, #EFD6AE 68%);
        margin-top: 10px;
    }

    .name_product {
        color: #FCE0B4;
        text-align: center;
        margin-top: 10px;
        font-size: clamp(12px, 3.1vw, 12px);
        line-height: 1.25;
        white-space: normal;
        overflow: visible;
        min-height: 3.2em;
    }

    .price_weight {
        display: flex;
        gap: 5px;
        margin-top: 5px;
    }

    .price {
        font-family: Nunito;
        color: white;
        font-weight: 600;
        font-size: clamp(11px, 2.7vw, 13px)
    }

    .weight {
        font-family: Nunito;
        color: white;
        font-weight: 200;
        font-size: clamp(11px, 2.7vw, 13px)
    }


}

@media (min-width: 790px) and (max-width: 1260px) {
    .itc-slider-indicator {
        width: 7px;
        height: 7px;
    }

    .left_cont {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
        width: 50%;
        justify-content: center;
    }

    .right_cont {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
        width: 50%;
        justify-content: center;
    }

    .img_cont {
        height: 285px;
        width: auto;
    }

    .img_cont img {
        height: 100%;
        width: 100%;
    }

    .text_slide {
        color: #FCE0B4;
        text-align: center;
        width: 300px;
        font-size: 16px;
        margin: 10px 0;
    }

    .title_slide {
        font-size: 30px;
        font-weight: 800;
        /* твой градиент */
        background: linear-gradient(90deg, #ECBF8B 34%, #B07F31 50%, #EFD6AE 68%);

        /* важные строки для применения градиента к заполнению букв */
        -webkit-background-clip: text;
        /* для WebKit (Chrome, Safari) */
        background-clip: text;
        /* стандартный */
        -webkit-text-fill-color: transparent;
        /* для WebKit — делает текст прозрачным, чтобы виден был фон */
        color: transparent;
        /* запасной вариант */

        /* опционально: чтобы градиент растягивался по всей длине строки */
        display: inline-block;
        margin-bottom: 5px;
    }

    .line_slide {
        height: 1px;
        width: 260px;
        background: linear-gradient(90deg, #ECBF8B 34%, #B07F31 50%, #EFD6AE 68%);
    }

    .shapkaSlider {
        position: relative;
        width: 100%;
        height: 450px;
        background: linear-gradient(267.26deg, #011E1C 12.1%, #002E2B 53.08%, #011B18 76.12%, #00120D 89.36%);
        background-size: contain;
        overflow: hidden;
    }

    .itc-slider {
        margin-top: 90px;
        height: 360px;
        width: 100%;
    }

    .itc-slider-item {
        display: flex;
        flex: 0 0 100%;
        height: 360px;
    }

    .itc-slider-indicators {
        bottom: 32px;
    }
}

/* Legacy responsive overrides removed - now centrally managed in index-redesign.css */
