/* ============================================================
   GHOSTEA — INDEX PAGE REDESIGN v3
   Sticky category bar + full-width grid
   ============================================================ */

/* CSS-переменные для высот (легко менять) */
:root {
    --navbar-h: 90px;
    --catbar-h: 52px;
    --sticky-offset: calc(var(--navbar-h) + var(--catbar-h));
}

/* ──────────────────────────────────────────────
   1. HERO SLIDER
   ────────────────────────────────────────────── */

.shapkaSlider {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: min(74svh, 620px);
    background: radial-gradient(ellipse 90% 80% at 65% 50%, #102621 0%, #0A1715 60%, #071210 100%);
    overflow: hidden;
    padding-top: 70px;
    box-sizing: border-box;
}

.hero_bottom_glow_divider {
    width: 100%;
    height: 1px;
    background: rgba(230, 197, 148, 0.12);
    position: relative;
    z-index: 3;
}

.itc-slider {
    margin: 0 auto;
    height: 100%;
    width: 100%;
    max-width: 1240px;
    position: relative;
    z-index: 2;
}

.itc-slider-wrapper {
    height: 100%;
    overflow: hidden;
}

.itc-slider-items {
    height: 100%;
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.itc-slider-item {
    display: flex;
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 24px 60px 48px;
    gap: 40px;
    box-sizing: border-box;
}

/* Левая колонка */
.left_cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 52%;
    z-index: 2;
}

/* Заголовок слайда */
.title_slide {
    font-family: Comfortaa, sans-serif !important;
    font-size: clamp(32px, 3.6vw, 48px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #F7EAD8 !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #F7EAD8 !important;
    text-align: center !important;
    margin: 0 auto !important;
    letter-spacing: -0.015em !important;
}

/* Декоративные разделители слайда */
.line_slide {
    height: 1px !important;
    width: 280px !important;
    max-width: 80% !important;
    background: rgba(230, 197, 148, 0.35) !important;
    margin: 20px auto !important;
}

/* Текст слайда */
.text_slide {
    color: rgba(247, 234, 216, 0.85) !important;
    font-family: Nunito, sans-serif !important;
    font-size: clamp(14px, 1.2vw, 17px) !important;
    line-height: 1.65 !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Кнопка ровно под текстом с гармоничным отступом */
.button_slide {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    margin: 6px auto 0 !important;
    padding: 0 36px !important;
    min-width: 180px !important;
    height: 48px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(230, 197, 148, 0.35) !important;
    background: #EED9BE !important;
    color: #0A1715 !important;
    font-family: Nunito, sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    position: relative !important;
    z-index: 10 !important;
}

.button_slide:hover {
    background: #F7EAD8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32) !important;
}

/* Правая колонка: изображение чая */
.right_cont {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.img_cont {
    height: 85%;
    max-height: 440px;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(230, 197, 148, 0.04) 0%, rgba(14, 34, 30, 0.25) 60%, transparent 80%);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
    box-sizing: border-box;
}

.img_cont img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

/* ──────────────────────────────────────────────
   2. SLIDER INDICATORS + ARROWS
   ────────────────────────────────────────────── */

.itc-slider-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    z-index: 5;
}

.itc-slider-indicator {
    display: block;
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(230, 197, 148, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.itc-slider-indicator:hover:not(.itc-slider-indicator-active) {
    background: rgba(230, 197, 148, 0.6);
    transform: scale(1.2);
}

.itc-slider-indicator.itc-slider-indicator-active,
.itc-slider-indicator[aria-current="true"] {
    width: 22px;
    height: 8px;
    border-radius: 4px;
    background: #EED9BE;
}

.itc-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(230, 197, 148, 0.2);
    background: rgba(10, 23, 21, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, box-shadow .2s;
}

.itc-slider-btn:hover {
    background: rgba(212, 155, 91, 0.22);
    border-color: rgba(230, 197, 148, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.itc-slider-btn-prev { left: 16px; }
.itc-slider-btn-next { right: 16px; }

.itc-slider-btn-prev::after,
.itc-slider-btn-next::after {
    content: ''; display: block;
    width: 20px; height: 20px;
    background: #F7EAD8;
    mask-size: contain; mask-repeat: no-repeat; mask-position: center;
    -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
}

.itc-slider-btn-prev::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 18l-6-6 6-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 18l-6-6 6-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

.itc-slider-btn-next::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18l6-6-6-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18l6-6-6-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

/* ──────────────────────────────────────────────
   3. SCROLL-DOWN HINT
   ────────────────────────────────────────────── */

.hero-scroll-hint {
    display: none !important;
}

/* ──────────────────────────────────────────────
   4. DESKTOP FLOATING STICKY SIDEBAR — Уютный сайдбар
   ────────────────────────────────────────────── */

.catalog_sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--navbar-h) + 16px);
    width: 250px;
    flex-shrink: 0;
    background: #0B1C19;
    border: 1px solid rgba(230, 197, 148, 0.1);
    border-radius: 16px;
    padding: 16px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box;
    z-index: 8;
}

body.ghosteaapp .catalog_sidebar {
    top: 20px;
    max-height: none !important;
    overflow: visible !important;
}

.catalog_sidebar::-webkit-scrollbar {
    display: none;
}

.catalog_sidebar_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 6px 0;
}

.catalog_sidebar_title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(247, 234, 216, 0.5);
    font-family: Nunito, sans-serif;
}

.catalog_sidebar_badge {
    display: none;
}

.catalog_sidebar .catalog_mode_switch {
    display: flex;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(230, 197, 148, 0.12);
    padding: 0 4px 10px;
    gap: 18px;
    box-sizing: border-box;
}

.catalog_sidebar .catalog_mode_link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 2px 0;
    color: rgba(247, 234, 216, 0.55);
    font-family: Comfortaa, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
    border: none;
    position: relative;
    background: transparent;
}

.catalog_sidebar .catalog_mode_link:hover:not(.active) {
    color: #F7EAD8;
    background: transparent;
}

.catalog_sidebar .catalog_mode_link.active {
    color: #F7EAD8;
    font-weight: 700;
    background: transparent;
    box-shadow: none;
}

.catalog_sidebar .catalog_mode_link.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    right: 0;
    height: 2px;
    background: #EED9BE;
    border-radius: 1px;
}

.catalog_sidebar_divider {
    display: none;
}

.catalog_sidebar .categor_cont {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.catalog_sidebar .categor_obolochka {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    box-sizing: border-box;
}

.catalog_sidebar .categor_obolochka:hover {
    background: rgba(230, 197, 148, 0.07);
}

.catalog_sidebar .name_categor {
    font-size: 13.5px;
    font-family: Nunito, sans-serif;
    font-weight: 500;
    color: rgba(247, 234, 216, 0.7);
    transition: color 0.2s;
}

.catalog_sidebar .categor_obolochka:hover .name_categor {
    color: #F7EAD8;
}

.catalog_sidebar .categor_obolochka.active {
    background: rgba(230, 197, 148, 0.1);
    border-color: transparent;
}

.catalog_sidebar .categor_obolochka.active .name_categor {
    color: #F7EAD8;
    font-weight: 700;
}

.catalog_sidebar .listik {
    width: 13px;
    height: 13px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.catalog_sidebar .listik img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog_sidebar .categor_obolochka.active .listik {
    opacity: 0.85;
    transform: scale(1.05);
}

/* ──────────────────────────────────────────────
   5. CATALOG SECTION — flex-контейнер
   ────────────────────────────────────────────── */

.ktatlog_cont {
    scroll-margin-top: calc(var(--navbar-h) + 10px);
}

body.ghosteaapp .ktatlog_cont {
    padding-top: 0;
    margin-top: 0;
}

.glav_cont_katalog {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 36px;
    padding: 36px 56px 120px;
    max-width: 1680px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Сетка товаров */
.product_cont {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 24px 20px !important;
    margin-top: 0 !important;
}

/* ──────────────────────────────────────────────
   6. PRODUCT CARD — Уютная карточка чая
   ────────────────────────────────────────────── */

.product_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    gap: 0;
    padding: 16px 14px 14px;
    border-radius: 16px;
    background: #0E221E;
    border: 1px solid rgba(230, 197, 148, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    position: relative;
}

.product_card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(230, 197, 148, 0.22);
}

.product_card--in-cart {
    border-color: rgba(138, 230, 196, 0.35);
}

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

/* Изображение */
.product_block {
    display: flex;
    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(110px, 9vw, 190px);
}

.img_product {
    width: var(--catalog-img-size);
    height: var(--catalog-img-size);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s ease;
}

.product_card:hover .img_product {
    transform: translateY(-2px);
}

.img_product img {
    width: 100%; height: 100%;
    object-fit: contain; display: block;
}

/* Разделитель убран для чистого крафтового вида */
.line {
    display: none !important;
}

/* Название */
.name_product {
    color: #F7EAD8;
    text-align: center;
    margin-top: 10px;
    font-size: clamp(12.5px, 0.95vw, 14.5px);
    font-family: Nunito, sans-serif;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    min-height: 2.7em;
    padding: 0 4px;
}

/* Нет в наличии */
.net_v_nalichie {
    display: block;
    color: rgba(255, 140, 155, 0.9);
    font-size: 11.5px;
    font-family: Nunito, sans-serif;
    font-weight: 600;
    margin-top: 5px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    text-align: center;
}

/* Цена */
.price_weight {
    display: flex; align-items: baseline; gap: 6px;
    margin-top: 8px;
}

.price {
    font-family: Nunito, sans-serif;
    color: #EED9BE;
    font-weight: 700;
    font-size: clamp(13px, 1vw, 16px);
}

.weight {
    font-family: Nunito, sans-serif;
    color: rgba(247, 234, 216, 0.55);
    font-weight: 400;
    font-size: clamp(11px, 0.85vw, 13px);
}

/* ──────────────────────────────────────────────
   7. BUY PANEL — Кнопка покупки
   ────────────────────────────────────────────── */

.catalog_buy {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%; gap: 8px; padding: 12px 0 0;
}

.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;
}

.catalog_buy_button,
.catalog_buy_submit {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 100%; box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid rgba(230, 197, 148, 0.25);
    background: rgba(212, 155, 91, 0.08);
    color: #F7EAD8;
    font-family: Nunito, sans-serif;
    font-weight: 600; font-size: 13px;
    letter-spacing: .02em; min-height: 36px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.catalog_buy_button:hover,
.catalog_buy_submit:hover {
    background: rgba(212, 155, 91, 0.18);
    border-color: rgba(230, 197, 148, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.catalog_buy_button--in-cart {
    border-color: rgba(138,230,196,.42);
    color: #c9ffe9;
    background: rgba(138,230,196,.07);
}

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

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

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

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

.catalog_buy_label {
    color: rgba(247, 234, 216, 0.55);
    font-family: Nunito, sans-serif;
    font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
}

.catalog_buy_select {
    width: 100%; min-height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(230, 197, 148, 0.2);
    background: rgba(3, 20, 17, 0.85);
    color: #F7EAD8; font-family: Nunito, sans-serif;
    font-size: 13px; padding: 0 12px; outline: none;
    transition: border-color .2s;
}

.catalog_buy_select:focus {
    border-color: rgba(230, 197, 148, 0.5);
    box-shadow: 0 0 0 2px rgba(212, 155, 91, 0.12);
}

/* ──────────────────────────────────────────────
   8. EMPTY STATE
   ────────────────────────────────────────────── */

.empty-category-message {
    grid-column: 1 / -1;
    color: rgba(247, 234, 216, 0.45);
    text-align: center;
    font-family: Nunito, sans-serif;
    font-size: 16px; margin-top: 60px; letter-spacing: .02em;
}

/* ──────────────────────────────────────────────
   9. TOAST
   ────────────────────────────────────────────── */

.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, 340px); max-width: min(92vw, 440px);
    padding: 12px 18px; border-radius: 14px;
    background: rgba(4, 26, 22, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(230, 197, 148, 0.18);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    opacity: 0; transform: translateY(12px) scale(.98);
    transition: opacity .22s ease, transform .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: #EED9BE; box-shadow: 0 0 0 5px rgba(230, 197, 148, 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: #F7EAD8; font-family: Nunito, sans-serif;
    font-size: 14px; line-height: 1.4;
}

/* ──────────────────────────────────────────────
   10. ДЕКОРАТИВНЫЕ БОКОВЫЕ ПОЛОСЫ
   ────────────────────────────────────────────── */

@media (max-width: 1040px) {
    .border_first, .border_second { display: none; }
}

/* ──────────────────────────────────────────────
   11. RESPONSIVE — TABLET & LAPTOP
   ────────────────────────────────────────────── */

@media (max-width: 1350px) {
    .glav_cont_katalog {
        display: flex !important;
        flex-direction: row !important;
        gap: 28px !important;
        padding: 32px 36px 100px !important;
    }

    .catalog_sidebar {
        width: 240px !important;
        flex-shrink: 0 !important;
    }

    .product_cont {
        grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
    }
}

@media (max-width: 1200px) {
    .glav_cont_katalog {
        display: flex !important;
        flex-direction: row !important;
        padding: 28px 24px 100px !important;
        gap: 24px !important;
    }

    .catalog_sidebar {
        width: 220px !important;
        padding: 18px 12px !important;
        flex-shrink: 0 !important;
    }

    .catalog_sidebar .categor_obolochka {
        padding: 9px 12px;
    }

    .catalog_sidebar .name_categor {
        font-size: 13px;
    }

    .product_cont {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
        gap: 18px 14px !important;
    }
}

@media (max-width: 1040px) {
    .border_first, .border_second { display: none !important; }

    .glav_cont_katalog {
        display: flex !important;
        flex-direction: row !important;
        padding: 24px 16px 90px !important;
        gap: 18px !important;
    }

    .catalog_sidebar {
        width: 205px !important;
        padding: 16px 10px !important;
        flex-shrink: 0 !important;
    }

    .product_cont {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 16px 12px !important;
    }
}

/* ──────────────────────────────────────────────
   12. RESPONSIVE — MOBILE & SMALL TABLET < 860px
   ────────────────────────────────────────────── */

@media (max-width: 860px) {
    /* Сайдбар на мобильных: всегда полностью раскрыт над товарами, без внутреннего скролла */
    .catalog_sidebar {
        display: flex !important;
        position: static !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        background: #0B1C19 !important;
        border: 1px solid rgba(230, 197, 148, 0.12) !important;
        border-radius: 14px !important;
        padding: 14px 12px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
        box-sizing: border-box !important;
        margin-bottom: 6px !important;
        gap: 10px !important;
    }

    .catalog_sidebar_header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 4px 4px !important;
    }

    .catalog_sidebar_title {
        font-size: 11.5px !important;
        letter-spacing: 0.08em !important;
    }

    .catalog_sidebar .catalog_mode_switch {
        display: flex !important;
        gap: 16px !important;
        padding: 0 4px 8px !important;
        border-bottom: 1px solid rgba(230, 197, 148, 0.12) !important;
        margin-bottom: 2px !important;
    }

    .catalog_sidebar .catalog_mode_link {
        font-size: 14px !important;
        padding: 2px 0 !important;
    }

    /* Категории на мобильных: аккуратное облако тегов, всё видно сразу, скролл запрещен */
    .catalog_sidebar .categor_cont {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px 8px !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .catalog_sidebar .categor_obolochka {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 7px 12px !important;
        border-radius: 8px !important;
        background: rgba(4, 25, 21, 0.6) !important;
        border: 1px solid rgba(230, 197, 148, 0.14) !important;
        width: auto !important;
        flex-shrink: 0 !important;
        transition: background 0.15s, border-color 0.15s, color 0.15s !important;
    }

    .catalog_sidebar .name_categor {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: rgba(247, 234, 216, 0.75) !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .catalog_sidebar .categor_obolochka:hover,
    .catalog_sidebar .categor_obolochka:active {
        background: rgba(230, 197, 148, 0.12) !important;
        border-color: rgba(230, 197, 148, 0.25) !important;
    }

    .catalog_sidebar .categor_obolochka:hover .name_categor,
    .catalog_sidebar .categor_obolochka:active .name_categor {
        color: #F7EAD8 !important;
    }

    .catalog_sidebar .categor_obolochka.active {
        background: #EED9BE !important;
        border-color: rgba(230, 197, 148, 0.4) !important;
    }

    .catalog_sidebar .categor_obolochka.active .name_categor {
        color: #0A1715 !important;
        font-weight: 700 !important;
    }

    .catalog_sidebar .listik {
        display: none !important;
    }

    /* Обновляем переменную высоты навбара для мобайла */
    :root {
        --navbar-h: calc(108px + env(safe-area-inset-top, 0px));
    }

    /* Hero */
    .shapkaSlider {
        padding: calc(125px + env(safe-area-inset-top, 0px)) 16px 28px;
        height: auto;
        min-height: 480px;
    }

    .itc-slider {
        height: auto;
    }

    .itc-slider-wrapper {
        height: auto;
    }

    .itc-slider-items {
        height: auto;
    }

    .itc-slider-item {
        flex-direction: column-reverse;
        padding: 8px 4px 16px;
        gap: 16px;
        height: auto;
        min-height: 380px;
        justify-content: center;
    }

    .left_cont {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        align-items: center;
        text-align: center;
        box-sizing: border-box !important;
    }

    .right_cont {
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .img_cont {
        width: 180px;
        height: 180px;
        max-height: 200px;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        border-radius: 50%;
        background: radial-gradient(circle at center, rgba(230, 197, 148, 0.05) 0%, rgba(14, 34, 30, 0.25) 60%, transparent 80%);
        filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
        box-sizing: border-box;
    }

    .img_cont img {
        width: 100%;
        height: 100%;
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    .title_slide {
        font-size: clamp(20px, 5.8vw, 28px) !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
        padding: 0 8px !important;
        box-sizing: border-box !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    .line_slide {
        width: min(260px, 70%) !important;
        max-width: 70% !important;
        margin: 12px auto !important;
    }

    .text_slide {
        font-size: clamp(13px, 3.6vw, 15px) !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        line-height: 1.65 !important;
        text-align: center !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
    }

    .button_slide {
        height: 42px !important;
        padding: 0 26px !important;
        font-size: 13.5px !important;
        border-radius: 8px !important;
        align-self: center !important;
        margin: 4px auto 0 !important;
    }

    .itc-slider-indicators {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 14px;
        padding: 5px 12px;
        gap: 6px;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .itc-slider-indicator {
        width: 12px;
        height: 3px;
        border-radius: 2px;
    }

    .itc-slider-indicator.itc-slider-indicator-active,
    .itc-slider-indicator[aria-current="true"] {
        width: 24px;
    }

    .itc-slider-btn { display: none !important; }

    /* Сетка на мобильных */
    .glav_cont_katalog {
        display: flex !important;
        flex-direction: column !important;
        padding: 16px 12px 30px !important;
        gap: 16px !important;
    }

    .product_cont {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px 8px !important;
        margin-top: 0 !important;
    }

    .product_block { --catalog-img-size: clamp(80px, 22vw, 130px); }

    .product_card {
        padding: 12px 10px 10px;
        border-radius: 14px;
    }

    .name_product {
        font-size: clamp(11.5px, 3vw, 13px);
        min-height: 2.6em; margin-top: 6px;
    }

    .line { display: none !important; }

    .catalog_buy_button,
    .catalog_buy_submit { min-height: 34px; font-size: 11px; border-radius: 8px; }

    .catalog_buy_select { min-height: 34px; font-size: 12px; border-radius: 8px; }
}

/* ──────────────────────────────────────────────
   13. RESPONSIVE — SMALL PHONES < 430px
   ────────────────────────────────────────────── */

@media (max-width: 430px) {
    .product_cont { gap: 8px 6px; }

    .product_block { --catalog-img-size: clamp(75px, 20vw, 115px); }
}

/* ──────────────────────────────────────────────
   14. RESPONSIVE — TABLET MID 610 – 860px
   ────────────────────────────────────────────── */

@media (min-width: 610px) and (max-width: 860px) {
    .shapkaSlider { height: 72svh; min-height: 380px; }
    .right_cont { height: 240px; }
    .img_cont { height: 220px; }
    .text_slide { max-width: 520px; width: 100%; }

    .product_cont {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px 10px !important;
    }
}

/* ──────────────────────────────────────────────
   15. RESPONSIVE — LARGE DESKTOP ≥ 1600px
   ────────────────────────────────────────────── */

@media (min-width: 1600px) {
    .product_cont {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 28px 22px;
    }

    .glav_cont_katalog { padding: 36px 72px 140px; }
    .catalog-bar__inner { padding: 10px 72px; }
}

@media (min-width: 1900px) {
    .product_cont {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* ──────────────────────────────────────────────
   BOTTOM SHEET & FLOATING TRIGGER — отключены
   ────────────────────────────────────────────── */

.mobile-cat-trigger,
.cat-sheet-overlay,
.cat-sheet {
    display: none !important;
}

.ktatlog_cont {
    padding-bottom: 40px;
}
