/* 1. ГЛОБАЛЬНАЯ ТЕМНАЯ ТЕМА */
html, body, #page, .site, .main-container, .wf-wrapper, #content, .site-content, .wf-container, .entry-content, .wf-header-row {
    background-color: #0f0f0f !important;
    color: #eeeeee !important;
}

/* 2. ШАПКА (Меню и навигация) */
header.site-header, .wf_header-navwrapper, .wf_navbar-wrapper, .wf_navbar, .is--sticky, .wf-header-row {
    background-color: #161616 !important;
    border-bottom: 1px solid #222 !important;
}
/*Скрывает лишнее название под шапкой*/
li.breadcrumb-item.active {
	display: none !important
}
/*скрыть чёрточку*/
#wf_pagetitle .breadcrumb-item::after, 
#wf_pagetitle .breadcrumb-item::before {
    content: none !important;
}
/* Контейнер, в котором лежат все картинки */
#pc-preview-box {
    position: relative;
    width: 100%;       /* Контейнер занимает всю ширину колонки */
    max-width: 600px;  /* Укажи здесь желаемую ширину превью на сайте */
    margin: 0 auto;    /* Центрируем блок */
    line-height: 0;    /* Убираем лишние отступы снизу */
    aspect-ratio: 948 / 1000; /* Поддерживаем пропорции твоих картинок из Photopea */
    overflow: hidden;  /* Чтобы ничего не вылетало за границы */
}

/* Все слои внутри контейнера */
#pc-preview-box img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;       /* Растягиваем картинку ровно по ширине контейнера */
    height: 100%;      /* И по высоте */
    object-fit: contain; /* Сохраняем пропорции, чтобы детали не сплющило */
    display: none;     /* По умолчанию скрыты (скрипт их включит) */
}
#pc-preview-box img {
    /* ... твои старые стили ... */
    transition: opacity 0.3s ease-in-out; /* Добавь это для мягкости */
}
/* Состояние блокировки */
.step-locked {
    opacity: 0.3 !important;
    pointer-events: none !important;
    filter: grayscale(1) !important;
    cursor: not-allowed !important;
    transition: all 0.3s ease;
}
.info-btn {
    display: inline-block;
    margin-left: 8px;
    background: #007bff;
    color: white !important;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.2s;
}
.info-btn:hover {
    transform: scale(1.2);
    background: #0056b3;
}
//* Основной контейнер поиска в меню */
.fibosearch-custom-item {
    display: inline-flex !important;
    align-items: center !important;
    flex: 1 !important; /* Позволяет поиску растягиваться */
    max-width: 350px !important; 
    min-width: 180px !important;
    margin-right: 20px !important;
}

/* Стили самого поля ввода */
.fibosearch-custom-item .dgwt-wcas-search-input {
    width: 100% !important;
    height: 38px !important;
    padding: 5px 15px !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 4px !important;
    background: #f9f9f9 !important;
    font-size: 14px !important;
}

/* Убираем красную рамку, если была */
.fibosearch-custom-item {
    border: none !important;
}

/* Чтобы "палочки" и другие пункты меню не съезжали в кучу */
#wf_header .wf_navbar-list-right {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
}
@media (max-width: 991px) {
    /* 1. Показываем только сам контейнер поиска, а не всю скрытую шапку */
    #wf_header .wf-d-none.wf-d-lg-block {
        display: block !important;
        background: transparent !important; /* Убираем лишний фон */
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 2. Скрываем внутри этого блока ВСЁ, кроме нашего поиска (лого, меню и т.д.) */
    #wf_header .wf-d-none.wf-d-lg-block .wf-container > div > div:not(.wf-col-lg-6), 
    #wf_header .wf-d-none.wf-d-lg-block ul li:not(.fibosearch-custom-item) {
        display: none !important;
    }

    /* 3. Делаем поиск на мобилке аккуратным */
    .fibosearch-custom-item {
        width: 100% !important;
        padding: 10px 15px !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    /* Убираем ту самую белую полоску, если это пустой контейнер */
    .wf_header-navwrapper {
        border: none !important;
        box-shadow: none !important;
    }
}
/*изменение цвета на странице оформления заказа */


.custom-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); }
.modal-window { position: relative; background: #121212; border: 1px solid #00ffff; width: 90%; max-width: 1000px; max-height: 85vh; border-radius: 12px; padding: 25px; overflow-y: auto; box-shadow: 0 0 30px rgba(0,255,255,0.2); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; }
#close-parts-modal { background: none; border: none; color: #ff0055; font-size: 30px; cursor: pointer; }

.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.part-card { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 15px; transition: 0.3s; cursor: pointer; text-align: center; }
.part-card:hover { border-color: #00ffff; transform: translateY(-5px); background: #222; }
.part-card img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 15px; border-radius: 4px; background: #000; }
.part-card h4 { color: #fff; margin: 10px 0; font-size: 16px; }
.part-card .card-desc { color: #888; font-size: 12px; line-height: 1.4; height: 40px; overflow: hidden; }

/* Скрываем контейнер калькулятора, чтобы он не занимал место */
/* --- ФИКСЫ ДЛЯ КОНФИГУРАТОРА --- */

/* 1. Исправляем опечатку в скрытии (у тебя было .ccb-fiel) */
.ccb-field { 
    display: none !important; 
}

/* 2. Позиционируем панель кнопок (чтобы она не улетала) */
.config-ui-panel {
    position: relative; /* Или fixed, если хочешь чтобы плавала */
    margin: 20px 0;
    z-index: 1;
}

/* 3. Добавляем иконки-эмодзи перед текстом кнопок через CSS */
.cfg-btn[onclick*="'cases'"] span::before { content: "🖥️ "; }
.cfg-btn[onclick*="'motherboards'"] span::before { content: "📟 "; }
.cfg-btn[onclick*="'cp'"] span::before { content: "🧠 "; }
.cfg-btn[onclick*="'gpus'"] span::before { content: "🎮 "; }
.cfg-btn[onclick*="'rams'"] span::before { content: "💾 "; }
.cfg-btn[onclick*="'psus'"] span::before { content: "⚡ "; }
.cfg-btn[onclick*="'cpus'"] span::before { content: "❄️ "; }
.cfg-btn[onclick*="'hdds'"] span::before { content: "🗄️ "; }

/* 4. Улучшаем вид карточек в модальном окне */
.part-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 320px !important;
}

.part-card h4 {
    font-size: 14px !important;
    height: 40px;
    overflow: hidden;
}

/* 5. Фикс для мобилок: кнопки в ряд по 2, если панель слишком длинная */
@media (max-width: 767px) {
    .buttons-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .cfg-btn {
        padding: 10px 5px !important;
        font-size: 11px !important;
    }
}
/* Контейнер для кнопок */
.buttons-grid {
    display: flex !important;
    flex-wrap: wrap !important; /* Позволяет переносить кнопки на новую строку */
    gap: 12px !important;      /* Расстояние МЕЖДУ кнопками */
    justify-content: flex-start !important; 
    padding: 10px 0 !important;
}

/* Сами кнопки */
.cfg-btn {
    background: #f0f0f0 !important; /* Светлый фон как на скрине, или верни темный */
    border: 1px solid #ccc !important;
    color: #000 !important;         /* Черный текст для контраста */
    padding: 10px 18px !important;
    border-radius: 50px !important; /* Овальные кнопки как на скрине */
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease-in-out !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important; /* Чтобы текст не рвался на две строки */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Эффект при наведении */
.cfg-btn:hover {
    background: #e0e0e0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    border-color: #b629ee !important; /* Твой фиолетовый акцент */
}

/* Иконки (эмодзи) делаем чуть крупнее */
.cfg-btn span::before {
    margin-right: 8px;
    font-size: 1.2em;
}

#pc-stats-widget {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background: rgba(15, 15, 15, 0.95);
    border: 2px solid #b629ee;
    padding: 15px 25px;
    border-radius: 15px;
    color: white;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(182, 41, 238, 0.3);
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: -10px;
}

.stat-item:last-child { margin-bottom: 0; }

.stat-label { color: #888; font-size: 12px; text-transform: uppercase; }

#stat-power { color: #00ffff; font-weight: bold; }
#stat-price { color: #00ff9d; font-weight: 900; font-size: 20px; }

.ccb-section {
	display: none !important
}

.highlight-part {
    filter: drop-shadow(0 0 10px #00ffff) brightness(1.5) !important;
    transition: all 0.3s ease;
}

.info-btn-new {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 26px !important;
    height: 26px !important;
    background: #007bff !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-family: serif !important;
    cursor: pointer !important;
    z-index: 999 !important;
    border: 2px solid white !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.5) !important;
}

.info-btn-new:hover {
    background: #b629ee !important;
    transform: scale(1.1);
}

.card-img-wrapper {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.part-card {
    overflow: visible !important; /* Чтобы кнопка i не обрезалась краями */
}

.info-btn-new {
    /* Добавляем принудительное отображение */
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
#custom-parts-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    padding: 10px !important;
}

.part-card {
    position: relative !important;
    overflow: visible !important; /* ВАЖНО: чтобы кнопка i не пропадала */
    display: flex !important;
    flex-direction: column !important;
    z-index: 1 !important;
}

/* На всякий случай, если тема прячет кнопку */
.info-btn-fixed {
    visibility: visible !important;
    opacity: 1 !important;
}
/* Кнопка i в углу карточки */
.my-info-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 24px !important;
    height: 24px !important;
    background: #007bff !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 10 !important;
    border: 2px solid #fff !important;
    font-family: sans-serif !important;
    transition: transform 0.2s;
}

.my-info-btn:hover {
    transform: scale(1.1);
    background: #0056b3 !important;
}

/* Скрытая панель с текстом */
.extra-info-panel {
    display: none;
    font-size: 12px;
    color: #eee;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    margin: 5px 0;
    border: 1px solid #444;
    text-align: left;
}

/* Сама карточка */
.part-card {
    transition: border-color 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: #222;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
}

.part-card:hover {
    border-color: #b629ee;
}

/* Модальное окно описания */
#full-info-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.info-modal-content {
    background: #1a1a1a;
    padding: 30px;
    border: 2px solid #b629ee;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    color: white;
    box-shadow: 0 0 20px rgba(182, 41, 238, 0.4);
}

.info-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.info-modal-close:hover { color: white; }

#info-modal-title { color: #b629ee; margin-bottom: 15px; }

#info-modal-text { line-height: 1.6; font-size: 15px; }

/* Кнопка i в карточке */
.my-info-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 26px !important;
    height: 26px !important;
    background: #007bff !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 10 !important;
    border: 2px solid #fff !important;
}
.card-price {
	color: #ffcc00 !important;
}

/* Стиль для несовместимой карточки */
.incompatible-card {
    border: 1px solid #ff4d4d !important; /* Красная рамка */
    opacity: 0.7;
    cursor: not-allowed !important;
    background: rgba(255, 77, 77, 0.05) !important;
}

.incompatible-card:hover {
    border-color: #ff0000 !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

/* Наш новый цвет цены */
.card-price-custom {
    margin-top: auto;
    font-weight: 800;
    color: #ffcc00; /* Сделал бирюзовым, или верни #ffcc00 (золотой) */
    font-size: 16px;
}

/* Короткое описание */
.short-desc {
    font-size: 11px;
    color: #aaa;
    margin: 5px 0 10px 0;
    min-height: 24px;
}
.wpuf_details_422 {
	display: none !important
}
.details {
	display: none !important
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* Запрещаем прокрутку всей страницы */
}

.configurator-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.main-content {
    display: flex;
    flex: 1; /* Занимает всё оставшееся место под хедером */
    overflow: hidden;
}

#canvas-container {
    flex: 1; /* 3D сцена растягивается по центру */
    background: #0a0a0a;
    position: relative;
}

.left-panel, .right-panel {
    width: 300px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #333;
    padding: 20px;
    overflow-y: auto; /* Если контента много, скроллится только панель */
}

:root {
    --bg-dark: #0f0f0f;
    --panel-bg: rgba(20, 20, 20, 0.95);
    --accent: #00ffff;
    --text-main: #ffffff;
    --border: #333;
}

body, html {
    margin: 0; padding: 0;
    height: 100vh; width: 100vw;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden; /* НИКАКИХ ПРОКРУТОК */
}

/* Добавляем это в самое начало твоего CSS */

.app-container {
    position: fixed; /* Фиксируем поверх всего сайта */
    top: 0;
    left: 0;
    width: 100vw;    /* Ровно 100% ширины окна */
    height: 100vh;   /* Ровно 100% высоты окна */
    z-index: 9999;   /* Чтобы быть выше хедера и футера сайта */
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    overflow: hidden;
}

/* Убедись, что у родительских контейнеров Elementor нет ограничений, 
   но position: fixed обычно решает это автоматически. */

.app-body {
    display: flex;
    flex: 1;
    width: 100%;     /* Растягиваем внутреннюю часть */
    height: calc(100vh - 60px); /* Высота за вычетом шапки */
}

#canvas-container {
    flex-grow: 1;    /* Центр забирает всё свободное место */
    position: relative;
}

/* HEADER */
.app-header {
    height: 60px;
    background: #000;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}
.logo { font-weight: 900; letter-spacing: 2px; }
.logo span { color: var(--accent); }

/* MAIN LAYOUT */
.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.side-panel {
    width: 320px;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    backdrop-filter: blur(10px);
}

/* 3D CANVAS */
#canvas-container {
    flex: 1;
    position: relative;
    background: radial-gradient(circle, #1a1a1a 0%, #000 100%);
}

/* КАРТОЧКИ ВЫБОРА СЛЕВА */
.selector-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}
.selector-card:hover { border-color: var(--accent); background: #252525; }
.selector-card .icon { font-size: 24px; margin-right: 15px; }
.selector-card small { color: #888; display: block; }
/* Делаем карточки более компактными */
.selector-card {
    padding: 8px 10px !important;
    margin-bottom: 6px !important;
    min-height: 48px; /* Чтобы не сплющило совсем */
}

/* Уменьшаем эмодзи */
.selector-card .icon {
    font-size: 18px !important;
    margin-right: 10px !important;
}

/* Уменьшаем текст */
.selector-card small {
    font-size: 10px !important;
    margin-bottom: 2px !important;
    line-height: 1;
}

.selector-card strong {
    font-size: 12px !important;
    line-height: 1.2;
}

/* Фикс для кнопки "+" (multi-slot) */
.selector-card.multi-slot {
    padding-right: 40px !important;
}

.add-multi-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 16px !important;
    right: 8px !important;
}

/* ПРАВАЯ ПАНЕЛЬ */
.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    border-bottom: 1px dashed #444;
}
.stat-item strong { color: var(--accent); font-size: 1.2em; }

.compatibility-check {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent);
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    margin: 20px 0;
}
/* Сбрасываем возможные отступы виджета */
.elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
	.side-panel.right {
		padding: 20px 15px 140px 15px !important; /* Огромный отступ снизу под липкую кнопку */
	}
	.app-body {
        flex-direction: column; /* Складываем блоки вертикально */
        overflow-y: auto;
    }

    .side-panel.left, .side-panel.right {
        width: 100%; /* Панели на всю ширину */
        height: auto;
        border-left: none;
        border-right: none;
        backdrop-filter: none;
        position: relative;
        z-index: 10;
    }

    .side-panel.left {
        order: 2; /* Выбор деталей под 3D сценой */
    }

    #canvas-container {
        height: 50vh; /* 3D сцена занимает половину экрана сверху */
        width: 100%;
        order: 1;
        flex: none;
    }

    .side-panel.right {
        order: 3; /* Статистика в самом низу */
        border-top: 1px solid var(--border);
    }

    .part-selector-list {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Делаем выбор в две колонки на мобилке */
        gap: 10px;
    }

    .selector-card {
        margin-bottom: 0;
        padding: 8px;
    }

    .app-header {
        padding: 0 10px;
        font-size: 14px;
    }
}

.elementor-editor-active #pc-builder-dashboard {
    display: none !important;
}
/* Верхняя навигация */
.top-nav-bar {
    display: flex;
    justify-content: center;
    gap: 30px; /* Большое расстояние */
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav-item {
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.top-nav-item:hover {
    color: #00ffff; /* Неоновый голубой вместо желтого */
    border-color: rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.05);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Нижнее меню кнопок */
.bottom-actions-menu {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    padding: 12px 25px;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(15px);
    z-index: 100;
}

.action-btn {
    background: #222;
    color: #eee;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.action-btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

.action-btn.primary {
    background: #00ffff;
    color: #000;
    font-weight: bold;
}
#save-btn {
    background: transparent;
    border: 1px solid #444;
    color: #eee;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

#save-btn:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
}
.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    text-decoration: none;
    color: #888; /* Спокойный серый по умолчанию */
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

/* Эффект при наведении */
.header-nav a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Анимированная полоска под текстом */
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ffff;
    box-shadow: 0 0 8px #00ffff;
    transition: width 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
}
@media (max-width: 900px) { 
	.header-nav a {
		font-size: 10px;
	}
}
@media (max-width: 1200px) {
    #main-order-btn.order-btn-active {
        position: fixed !important;
        bottom: 10px;
        left: 5%;
        width: 90% !important;
        z-index: 99999;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
    }
}
@media (max-width: 900px) {
    #main-order-btn.order-btn-active {
        background: linear-gradient(90deg, #28a745, #1e7e34) !important;
        backdrop-filter: blur(10px); /* Эффект стекла, если кнопка чуть прозрачная */
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    /* Небольшая анимация появления, чтобы кнопка не "прыгала" резко */
    #main-order-btn.order-btn-active:active {
        transform: scale(0.95); /* Отклик на нажатие пальцем */
    }
}

/* Контейнер поиска и фильтра в модалке */
.modal-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 10px;
}

#part-search {
    flex: 2;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

#part-search:focus {
    border-color: #b629ee;
}

#price-sort {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
}

#price-sort:focus {
    border-color: #b629ee;
}

@media (max-width: 600px) {
    .modal-controls {
        flex-direction: column;
    }
}

.build-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

#build-progress-bar {
    width: 0%; /* Будет меняться скриптом */
    height: 100%;
    background: linear-gradient(90deg, #b629ee, #00ffff);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transition: width 0.5s ease;
}

.power-scale {
    margin: 8px 0;
    text-align: left;
}
.power-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
}
.power-track {
    width: 100%;
    height: 6px;
    background: #000;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
    border: 1px solid #333;
}
.power-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
}
.fps-counter-block {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid rgba(182, 41, 238, 0.2);
}

.fps-header {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}

.fps-value {
    font-size: 18px;
    font-weight: 900;
    transition: color 0.3s ease;
    /* Мягкое свечение вокруг цифр */
    text-shadow: 0 0 10px currentColor; 
}

.fps-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    align-items: center;
    border-left: 3px solid transparent;
    transition: 0.3s;
}

/* Подсветка всей строки при наведении */
.fps-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(5px);
}

.fps-value::after {
    content: ' FPS';
    font-size: 10px;
    color: #666;
}
.ai-tips-block {
    background: rgba(182, 41, 238, 0.1);
    border: 1px dashed #b629ee;
    border-radius: 10px;
    padding: 12px;
    margin-top: 15px;
    animation: fadeIn 0.5s ease;
}
.tips-header {
    font-size: 11px;
    font-weight: bold;
    color: #b629ee;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.tip-item {
    font-size: 12px;
    line-height: 1.4;
    color: #ddd;
    margin-bottom: 5px;
}




/* Кнопка в меню */
.trade-in-trigger {
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    border: 1px solid #00ffff;
    color: white;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.3s;
    text-align: left;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.trade-in-trigger:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.trade-in-trigger small {
    font-size: 0.7rem;
    opacity: 0.7;
}



/* Модальное окно */
.tradein-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none; /* Скрыто по умолчанию */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.tradein-content {
    background: #111;
    border: 2px solid #00ffff;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.tradein-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.tradein-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.tradein-slot {
    background: #1a1a1a;
    padding: 12px;
    border-radius: 8px;
    border: 1px border transparent;
    cursor: pointer;
    transition: 0.2s;
}

.tradein-slot:hover {
    border-color: #00ffff;
    background: #222;
}

.tradein-slot label {
    display: block;
    font-size: 0.75rem;
    color: #00ffff;
    margin-bottom: 5px;
}

.slot-value {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tradein-footer {
    margin-top: 25px;
    background: #000;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discount-val {
    color: #ff4d4d;
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
}

.tradein-save-btn {
    background: #00ff9d;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}
.trade-in-row {
    font-size: 0.9em;
    opacity: 0.9;
}
.final-price-row {
    font-size: 1.2em;
    text-transform: uppercase;
}


/* Контейнер для скидки */
.tradein-result-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed #555;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    display: flex;
    flex-direction: row; /* Текст в линию */
    justify-content: center;
    align-items: center;
    gap: 10px; /* Расстояние между надписью и цифрой */
}

/* Надпись "Ваша знижка" */
.tradein-label {
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Сама сумма красным цветом */
.tradein-value {
    color: #ff4d4d;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

/* Кнопка "Застосувати" на всю ширину */
.apply-discount-btn {
    width: 100%;
    background: #00ff9d;
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.apply-discount-btn:hover {
    background: #00cc7a;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}




/* Полноэкранная подложка */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a; /* Полностью темный фон */
    justify-content: center;
    align-items: flex-start; /* Начинаем сверху, чтобы работала прокрутка */
    overflow-y: auto; /* Включаем прокрутку, если текста много */
}

/* Контент на весь экран */
.info-conf-content {
    background: #0a0a0a;
    min-height: 100vh; /* Минимум на всю высоту экрана */
    width: 100%;
    padding: 60px 20px; /* Большие отступы сверху и снизу */
    box-sizing: border-box;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем текст по горизонтали */
}

/* Ограничитель ширины текста (чтобы строки не были слишком длинными на мониторе) */
.info-container-inner {
    max-width: 800px;
    width: 100%;
}

/* Кнопка закрытия (фиксируем в углу) */
.close-info {
    position: fixed;
    right: 30px;
    top: 20px;
    font-size: 40px;
    color: #ff4d4d;
    cursor: pointer;
    z-index: 10000;
    transition: 0.3s;
}

.close-info:hover {
    transform: rotate(90deg);
}




/* Контейнер для подробного описания в модалке */
.info-modal-content {
    white-space: pre-line; /* Оставляем для работы \n */
    line-height: 1.8;
    color: #ccc;
    font-size: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 157, 0.1);
    position: relative;
    margin-top: 15px;
}

/* Эффект разделения строк (имитация списка) */
.info-modal-content::first-line {
    color: #00ff9d; /* Первая строка (обычно Типоразмер) будет акцентной */
    font-weight: bold;
    font-size: 16px;
}

/* Добавим легкий градиент на фон, чтобы текст не висел в пустоте */
.info-modal-content {
    background: linear-gradient(145deg, rgba(20,20,20,1) 0%, rgba(30,30,30,1) 100%);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

/* Бейдж для 3D */
.model-badge {
    position: absolute;
    top: 10px;
    right: 40px; /* Чтобы не перекрывал кнопку "i" */
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
    text-transform: uppercase;
    pointer-events: none; /* Чтобы не мешал кликать по карточке */
}

.yes-3d {
    background: rgba(0, 255, 157, 0.2);
    color: #00ff9d;
    border: 1px solid #00ff9d;
}

.no-3d {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    opacity: 0.7;
}

/* Относительное позиционирование для карточки, чтобы значок не улетал */
.part-card {
    position: relative;
}

.filter-3d-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
    white-space: nowrap;
    padding: 0 10px;
}

.filter-3d-label input {
    cursor: pointer;
    accent-color: #00ff9d; /* Цвет галочки под твой стиль */
}

.selector-card.multi-slot {
    position: relative;
    padding-right: 50px; /* Место для кнопки */
}

.add-multi-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid #00ff9d;
    color: #00ff9d;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}

.add-multi-btn:hover {
    background: #00ff9d;
    color: #111;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}
/* Базовые сбросы для режима Canvas */
body, html { margin: 0; padding: 0; background-color: #0f0f0f; color: #eeeeee; height: 100vh; overflow: hidden; }

/* Каркас на весь экран */
.store-mode { display: flex; flex-direction: column; height: 100vh; }
.app-body { display: flex; flex: 1; overflow: hidden; }

/* Шапка с поиском */
.header-search-bar { display: flex; align-items: center; background: rgba(255,255,255,0.05); border-radius: 8px; padding: 5px 15px; border: 1px solid #333; width: 300px; }
.header-search-bar input { background: transparent; border: none; color: white; outline: none; flex: 1; }
.header-search-bar .search-btn { background: transparent; border: none; color: #00ff9d; cursor: pointer; }

/* Боковые панели */
.store-sidebar, .store-cart-panel { width: 300px; background: #161616; border-right: 1px solid #222; padding: 20px; overflow-y: auto; }
.store-cart-panel { border-right: none; border-left: 1px solid #222; text-align: center; color: #888; }

/* Категории слева */
.category-list { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.cat-btn { background: rgba(255,255,255,0.05); border: 1px solid transparent; color: white; padding: 12px; text-align: left; border-radius: 8px; cursor: pointer; transition: 0.3s; }
.cat-btn:hover { background: rgba(0, 255, 157, 0.1); border-color: #00ff9d; }
.cat-btn.active { background: rgba(0, 255, 157, 0.2); border-color: #00ff9d; color: #00ff9d; font-weight: bold; }

/* Центральный блок с товарами */
.store-main-content { flex: 1; padding: 30px; overflow-y: auto; background: #0a0a0a; }
.store-content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid #222; padding-bottom: 15px; }

/* --- СЕТКА ТОВАРОВ --- */
.woo-products-grid .woocommerce ul.products,
.woo-products-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important; /* Чуть шире колонки */
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 1. ЖЕСТКО УБИВАЕМ БЕЛЫЙ ФОН у всех возможных внутренних оберток */
.woo-products-grid ul.products li.product > div,
.woo-products-grid ul.products li.product .product-inner,
.woo-products-grid ul.products li.product .product-content,
.woo-products-grid ul.products li.product a.woocommerce-LoopProduct-link {
    background-color: transparent !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. ЗАДАЕМ НАШ ТЕМНЫЙ ФОН самой карточке */
.woo-products-grid ul.products li.product {
    background-color: #111 !important;
    border: 1px solid #222 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Неоновое свечение */
.woo-products-grid ul.products li.product:hover {
    border-color: #00ff9d !important;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.15) !important;
    transform: translateY(-5px) !important;
}

/* 3. КАРТИНКИ (Чиним продолговатость) */
.woo-products-grid ul.products li.product img {
    width: 100% !important;
    height: 180px !important;
    object-fit: contain !important; /* Вписывает картинку без растягивания */
    margin-bottom: 20px !important;
    background: transparent !important; /* Убираем белый фон за самой картинкой */
    padding: 0 !important;
}

/* 4. ТЕКСТЫ И ЗАГОЛОВКИ */
.woo-products-grid ul.products li.product h2,
.woo-products-grid ul.products li.product h3,
.woo-products-grid ul.products li.product .woocommerce-loop-product__title {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

/* 5. ЦЕНА */
.woo-products-grid ul.products li.product .price,
.woo-products-grid ul.products li.product .price span.amount {
    color: #00ff9d !important;
    font-size: 18px !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    display: inline-block !important;
    background: transparent !important;
}

.woo-products-grid ul.products li.product .price del span.amount {
    color: #666 !important;
    font-size: 14px !important;
    text-decoration: line-through !important;
    margin-right: 8px !important;
}

/* 6. КНОПКА "В КОРЗИНУ" */
.woo-products-grid ul.products li.product .button,
.woo-products-grid ul.products li.product .add_to_cart_button {
    background: transparent !important;
    border: 1px solid #00ff9d !important;
    color: #00ff9d !important;
    border-radius: 6px !important;
    padding: 10px 15px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    transition: 0.3s !important;
    margin-top: auto !important; /* Прибивает кнопку к низу карточки */
    display: block !important;
    width: 100% !important; /* Кнопка на всю ширину карточки смотрится круче */
    text-align: center !important;
}

.woo-products-grid ul.products li.product .button:hover {
    background: rgba(0, 255, 157, 0.15) !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3) !important;
}
/* Кнопка "Показати ще" */
.load-more-btn {
    padding: 12px 30px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border: 1px solid #00ff9d !important;
    background: transparent !important;
    color: #00ff9d !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    text-transform: uppercase !important;
}

.load-more-btn:hover {
    background: rgba(0, 255, 157, 0.15) !important;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3) !important;
    color: #fff !important;
}

/* Кнопка "Оформити замовлення" в корзине */
.store-checkout-btn {
    width: 100% !important;
    background: #00ff9d !important;
    color: #000 !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    text-transform: uppercase !important;
}

.store-checkout-btn:hover {
    background: #00e68d !important;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.5) !important;
    transform: translateY(-2px) !important;
}
/* --- МОДАЛЬНЫЕ ОКНА --- */
.kravino-modal {
    display: none; /* Скрыты по умолчанию */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.kravino-modal-content {
    background: #111;
    border: 1px solid #00ff9d;
    border-radius: 12px;
    padding: 30px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.15);
    animation: modalFadeIn 0.3s ease;
}

.checkout-content { max-width: 500px; }

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #888;
    font-size: 30px;
    cursor: pointer;
    transition: 0.3s;
}
.close-modal:hover { color: #ff4d4d; }

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Внутренности карточки товара в модалке */
.prod-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media(max-width: 768px) { .prod-modal-grid { grid-template-columns: 1fr; } }
.prod-main-img { width: 100%; height: 350px; object-fit: contain; background: #050505; border-radius: 8px; border: 1px solid #222; }
.prod-thumbnails { display: flex; gap: 10px; margin-top: 15px; }
.prod-thumbnails img { width: 70px; height: 70px; object-fit: contain; background: #050505; cursor: pointer; border: 1px solid #222; border-radius: 6px; transition: 0.3s; }
.prod-thumbnails img:hover, .prod-thumbnails img.active { border-color: #00ff9d; }

/* Форма оформления заказа */
#checkout-form { display: flex; flex-direction: column; gap: 15px; }
#checkout-form input { background: #1a1a1a; border: 1px solid #333; padding: 15px; border-radius: 6px; color: #fff; font-size: 16px; outline: none; transition: 0.3s; }
#checkout-form input:focus { border-color: #00ff9d; background: #222; }
.submit-order-btn { background: #00ff9d; color: #000; border: none; padding: 16px; border-radius: 6px; font-weight: bold; font-size: 16px; cursor: pointer; text-transform: uppercase; transition: 0.3s; }
.submit-order-btn:hover { background: #00e68d; box-shadow: 0 0 15px rgba(0, 255, 157, 0.4); }

/* Делаем курсор поинтером для самих карточек */
.woo-products-grid ul.products li.product { cursor: pointer; }
/* --- ТОВАРЫ НЕ В НАЛИЧИИ --- */
.product.out-of-stock {
    opacity: 0.6;
    filter: grayscale(80%);
}
.product.out-of-stock img {
    filter: grayscale(100%);
}
.disabled-btn {
    background: transparent !important;
    border: 1px solid #555 !important;
    color: #777 !important;
    cursor: not-allowed !important;
}

/* --- КНОПКА ИЗБРАННОГО (СЕРДЕЧКО) --- */
.woo-products-grid ul.products li.product {
    position: relative; /* Важно, чтобы сердечко позиционировалось внутри карточки */
}

.fav-btn:hover {
    transform: scale(1.1);
    border-color: #ff4d4d;
}

.fav-btn.active {
    border-color: #ff4d4d;
}
.fav-btn.active {
    color: #ff4d4d; /* Становится красным */
    border-color: #ff4d4d;
}
.fav-btn:hover { transform: scale(1.1); }

/* --- НИЖНЯЯ НАВИГАЦИЯ --- */
/* Отступ внизу контента, чтобы товары не прятались за нижней панелью */
.store-main-content {
    flex: 1;
    padding: 30px; 
    padding-bottom: 90px !important; /* Добавили воздух снизу */
    overflow-y: auto; 
    background: #0a0a0a;
}

/* --- НИЖНЯЯ НАВИГАЦИЯ --- */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #00ff9d; /* Неоново-зелений фон */
    backdrop-filter: blur(10px);
    border: none; /* Прибрали сіру рамку */
    border-radius: 20px 20px 0 0;
    display: flex;
    gap: 20px;
    padding: 12px 35px;
    z-index: 9000;
    box-shadow: 0 -5px 25px rgba(0, 255, 157, 0.3); /* Зелене світіння вгору */
}
.bottom-nav-btn {
    background: transparent;
    border: none;
    color: #000; /* Чорний текст для ідеального контрасту */
    font-size: 20px;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 20px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bottom-nav-btn span { font-size: 14px; font-weight: bold; }
.bottom-nav-btn:hover { background: rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.bottom-nav-btn.cart-nav-btn { position: relative; }

/* Счетчик на кнопке корзины */
.cart-badge {
    position: absolute; top: -5px; right: -5px;
    background: #ff4d4d; /* Червоний бейдж, щоб виділявся на зеленому */
    color: #fff;
    font-size: 11px; padding: 2px 6px; border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.fav-btn svg {
    width: 20px;
    height: 20px;
    fill: transparent; /* Пустое внутри */
    stroke: #fff; /* Белый контур */
    stroke-width: 2px;
    transition: 0.3s;
}
.fav-btn.active svg {
    fill: #ff4d4d; /* Закрашиваем красным */
    stroke: #ff4d4d; /* Красный контур */
}
/* --- КНОПКА ИЗБРАННОГО (СЕРДЕЧКО) --- */
.woo-products-grid ul.products li.product {
    position: relative !important; 
}

.fav-btn {
    position: absolute !important; 
    top: 15px !important; 
    right: 15px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid #333 !important; 
    border-radius: 50% !important;
    width: 38px !important; 
    height: 38px !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    cursor: pointer !important; 
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    color: #fff !important; /* Цвет контура по умолчанию (белый) */
    padding: 0 !important;
}

.fav-btn:hover { 
    transform: scale(1.1) !important; 
    border-color: #ff4d4d !important;
}

.fav-btn.active {
    color: #ff4d4d !important; /* Меняем цвет на красный */
    border-color: #ff4d4d !important;
}

.fav-btn svg {
    width: 20px !important;
    height: 20px !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important; /* Важно! Чтобы клик мышкой не "застревал" на картинке */
}

.fav-btn.active svg {
    fill: #ff4d4d !important; /* Заливаем сердечко внутри */
}
/* --- ВКЛАДКИ АВТОРИЗАЦИИ --- */
.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #888;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
}
.auth-tab.active {
    color: #00ff9d;
    border-bottom: 2px solid #00ff9d;
    font-weight: bold;
}
.auth-tab:hover { color: #fff; }
/* --- ВИПАДАЮЧЕ МЕНЮ ПРОФІЛЮ --- */
.user-dropdown-menu {
    position: absolute;
    top: 70px; /* Висота під шапкою, можливо треба буде підправити */
    right: 30px;
    background: #161616;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
}
.user-dropdown-menu button {
    background: transparent;
    border: none;
    color: #eee;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-dropdown-menu button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
/* --- СТИЛІ КАБІНЕТУ --- */
.prof-tab-btn { background: transparent; border: none; color: #888; display: block; width: 100%; text-align: left; padding: 15px; font-size: 15px; cursor: pointer; border-radius: 8px; transition: 0.3s; margin-bottom: 10px; }
.prof-tab-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.prof-tab-btn.active { background: rgba(0, 255, 157, 0.1); color: #00ff9d; font-weight: bold; border-left: 3px solid #00ff9d; border-radius: 0 8px 8px 0; }

.data-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid #222; }
.data-label { font-size: 12px; color: #777; display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.data-value { font-size: 18px; color: #fff; font-weight: 500; }

.edit-data-btn { background: transparent; border: 1px solid #444; color: #aaa; padding: 8px 15px; border-radius: 6px; cursor: pointer; font-size: 13px; transition: 0.3s; }
.edit-data-btn:hover { border-color: #00ff9d; color: #00ff9d; }

.edit-block { display: flex; gap: 10px; padding: 15px 0; border-bottom: 1px solid #222; background: #111; padding: 15px; border-radius: 8px; margin-top: -10px; margin-bottom: 10px; }
.prof-input { 
    background: #1a1a1a !important; 
    border: 1px solid #333 !important; 
    color: #fff !important; 
    padding: 12px !important; 
    border-radius: 6px !important; 
    outline: none !important; 
    flex: 1 !important; 
    font-size: 15px !important; 
    transition: 0.3s !important; 
}
.prof-input:focus { 
    border-color: #00ff9d !important; 
    background: #222 !important; 
}

.save-data-btn { background: #00ff9d; color: #000; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 14px; transition: 0.3s; }
.save-data-btn:hover { background: #00e68d; box-shadow: 0 0 15px rgba(0, 255, 157, 0.3); }
.order-card:hover {
    border-color: #00ff9d !important;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.1);
}
/* --- КНОПКИ ТА ФОН ДЛЯ МОБІЛКИ (Сховані на ПК) --- */
.mobile-menu-btn { display: none; background: transparent; border: none; color: #fff; font-size: 28px; cursor: pointer; padding: 0; }
.close-mobile-btn { display: none; width: 100%; background: #1a1a1a; color: #ff4d4d; border: none; border-bottom: 1px solid #333; padding: 15px; font-size: 16px; text-align: right; cursor: pointer; }
#mobile-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9990; backdrop-filter: blur(5px); }

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 768px) {
    /* Шапка */
    .app-header { padding: 10px 15px !important; }
    .mobile-menu-btn { display: block; }
    .header-nav { display: none !important; }
    .header-logo { width: auto !important; font-size: 20px !important; text-align: center; flex: 1; }
    .hide-on-mobile { display: none; } /* Ховаємо слово "Увійти", залишаємо тільки іконку/ім'я */
    .login-nav-btn { padding: 6px 10px !important; }

    /* Ліва панель (Категорії) - Виїжджає зліва */
/* Ліва панель (Категорії) - Виїжджає зліва */
    .store-sidebar {
        position: fixed !important; 
        top: 0 !important; 
        left: -100% !important; 
        width: 280px !important; 
        height: 100vh !important;
        background: #0a0a0a !important; 
        z-index: 9999 !important; 
        transition: left 0.3s ease !important;
        padding: 0 !important; 
        overflow-y: auto !important;
        visibility: hidden !important; /* Робимо повністю невидимою за замовчуванням */
    }
    .store-sidebar.active { 
        left: 0 !important; 
        visibility: visible !important; 
    }
    .store-sidebar h3 { padding: 15px !important; margin: 0 !important; }

    /* Права панель (Кошик) - На весь екран */
    .cart-sidebar {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: #0a0a0a; z-index: 9999; transition: right 0.3s ease;
        padding: 0 !important;
    }
    .cart-sidebar.active { right: 0; }
    
    .close-mobile-btn { display: block; }

    /* Центральна частина та Пошук */
    .store-main-content { padding: 10px !important; padding-bottom: 130px !important; }
    .store-content-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .search-container { margin-bottom: 15px !important; }
    .header-search-bar { width: 100% !important; padding: 8px 12px !important; }

/* --- ІДЕАЛЬНА СІТКА ТОВАРІВ (Бронебійна специфічність) --- */
    body .woo-products-grid .woocommerce ul.products,
    body .woo-products-grid ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    /* Сама картка */
    body .woo-products-grid ul.products li.product { 
        min-width: 0 !important; 
        width: 100% !important;
        margin: 0 !important; 
        padding: 10px !important; 
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
        background-color: #111 !important;
        border: 1px solid #222 !important;
        border-radius: 12px !important;
    }
    
    body .woo-products-grid ul.products li.product img { 
        height: 100px !important; 
        width: 100% !important; 
        object-fit: contain !important; 
        margin-bottom: 10px !important; 
    }
    
    /* Обрізаємо довгий текст (перебиваємо старі класи Woo) */
    body .woo-products-grid ul.products li.product h2,
    body .woo-products-grid ul.products li.product .woocommerce-loop-product__title { 
        font-size: 11px !important; 
        margin-bottom: 5px !important; 
        line-height: 1.3 !important; 
        height: 28px !important; 
        color: #fff !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important; 
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        white-space: normal !important;
    }
    
    body .woo-products-grid ul.products li.product .price,
    body .woo-products-grid ul.products li.product .price span.amount { 
        font-size: 14px !important; 
        margin-bottom: 10px !important; 
        color: #00ff9d !important; 
        font-weight: bold !important; 
    }
    
    body .woo-products-grid ul.products li.product .button,
    body .woo-products-grid ul.products li.product .add_to_cart_button { 
        padding: 8px 5px !important; 
        font-size: 11px !important; 
        margin-top: auto !important; 
        width: 100% !important; 
        text-align: center !important; 
    }
    
    body .fav-btn { width: 30px !important; height: 30px !important; top: 8px !important; right: 8px !important; }
    body .fav-btn svg { width: 15px !important; height: 15px !important; }
    /* --- ПРАВИЛЬНИЙ КОШИК (Бронебійний) --- */
    body .store-cart-panel {
        position: fixed !important; 
        top: 0 !important; 
        right: -100% !important; 
        width: 100% !important; 
        max-width: 100% !important;
        height: 100vh !important;
        background: #0a0a0a !important; 
        z-index: 99999 !important;
        transition: right 0.3s ease !important;
        padding: 0 !important;
        visibility: hidden !important;
        display: flex !important; 
        flex-direction: column !important;
    }
    
    body .store-cart-panel.active { 
        right: 0 !important; 
        visibility: visible !important; 
    }
    /* --- МОБІЛЬНИЙ ПРОФІЛЬ --- */
    #kravino-profile-modal .kravino-modal-content {
        flex-direction: column !important;
        overflow-y: auto !important;
        min-height: auto !important;
        padding: 0 !important;
    }
    
    /* Верхня панель з кнопками (колишня бокова) */
    #kravino-profile-modal .kravino-modal-content > div:first-child {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #222 !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
    }

  /* Нижня панель з даними */
    #kravino-profile-modal .kravino-modal-content > div:last-child {
        padding: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: static !important; /* Відв'язуємо хрестик від цього блоку */
    }

    /* Жорстко фіксуємо хрестик у кутку */
    #kravino-profile-modal .close-modal {
        top: 15px !important;
        right: 15px !important;
        z-index: 99 !important;
    }
    }

    .prof-tab-btn { margin-bottom: 5px !important; text-align: center !important; }

/* --- СТИЛІ ДЛЯ КАТЕГОРІЙ (АКОРДЕОН ТА МОДАЛКА) --- */
.cat-square { background: #1a1a1a; border: 1px solid #333; border-radius: 12px; padding: 20px 10px; text-align: center; cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cat-square:hover { border-color: #00ff9d; box-shadow: 0 5px 15px rgba(0,255,157,0.1); transform: translateY(-3px); }
.cat-square img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 15px; }
.cat-square .c-title { color: #fff; font-size: 14px; font-weight: bold; line-height: 1.3; }

.custom-cat-group { margin-bottom: 5px; }
.main-cat { font-weight: bold; font-size: 14px !important; }
.sub-cat { font-size: 12px !important; color: #aaa; background: transparent; padding: 8px 12px !important; }
.sub-cat:hover { color: #fff; }
.subcats-container { margin-top: 5px; }
/* --- ІДЕАЛЬНА СІТКА ТОВАРІВ (Десктоп) --- */
.woo-products-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Сама картка товару (щоб тягнулася на всю висоту ячейки) */
.woo-products-grid ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

/* --- СІТКА ДЛЯ МОБІЛОК (2 товари в ряд) --- */
@media (max-width: 768px) {
    .woo-products-grid ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/* Щоб самі картки не ламалися */
.kravino-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
/* Адаптивность для мобилок */
@media (max-width: 900px) {
    .app-body {
        flex-direction: column !important;
        height: auto !important;
        overflow-y: auto;
    }
    .side-panel {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
    }
    #canvas-container {
        height: 400px !important; /* Фиксированная высота 3D на мобилках */
    }
    .bottom-actions-menu {
        position: relative !important;
        bottom: 0 !important;
        flex-wrap: wrap;
        justify-content: center;
        background: rgba(0,0,0,0.5);
    }
}

/* Стиль кнопки ЗАКАЗАТЬ */
#main-order-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.order-btn-disabled {
    background: #333 !important;
    color: #666 !important;
    pointer-events: none;
    border: 1px solid #444 !important;
}

.order-btn-active {
    background: linear-gradient(90deg, #28a745, #218838) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
    pointer-events: auto !important;
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #111;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    border: 1px solid #28a745;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    background: none; border: none; color: white; font-size: 30px; cursor: pointer;
}
.modal-header {
    font-size: 20px; color: #28a745; margin-bottom: 20px; font-weight: bold;
}
/* Основной фон на весь экран */
.info-overlay-full {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    z-index: 999999; /* Поверх всего */
}

/* Контейнер со скроллом */
.info-scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Включаем прокрутку */
    padding: 60px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ограничитель ширины контента */
.info-content-wrap {
    max-width: 800px;
    width: 100%;
}
/* Відновлення базових сіток після Елементора */
#modal-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 15px;
}
.cat-square {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.cat-square:hover { border-color: #00ff9d; transform: translateY(-3px); }
.cat-square img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 10px; }
.cart-items { gap: 15px; }
.cart-item { align-items: center; }
#kravino-product-modal {
    z-index: 9999999 !important; /* Робимо модалку товару найвищою */
}
.order-card:hover {
    border-color: #00ff9d !important;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.1);
}
/* ==========================================
   ФІКСИ МОБІЛЬНОЇ ВЕРСТКИ (МАГАЗИН ТА МОДАЛКИ)
   ========================================== */

@media (max-width: 900px) {
    /* 1. Рятуємо бокові панелі (Кошик та Меню) */
    body .store-sidebar, 
    body .store-cart-panel {
        position: fixed !important;
        height: 100vh !important;
        z-index: 99999 !important;
        box-sizing: border-box !important;
        padding-bottom: 120px !important; /* Відступ під нижню зелену менюшку */
        overflow-y: auto !important;
    }
    
    body .store-sidebar { width: 280px !important; }
    body .store-cart-panel { width: 100% !important; }

/* 2. ІДЕАЛЬНИЙ ФІКС МОДАЛОК (Товар, Фільтри, Кошик) */
    body .kravino-modal {
        /* Прибрали display: flex !important;, який примусово відкривав вікна */
        align-items: flex-start !important; 
        padding: 40px 15px 50px 15px !important; 
        box-sizing: border-box !important;
        overflow: hidden !important; 
    }
    
    body .kravino-modal-content {
        margin: 0 auto !important; 
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important; 
        box-sizing: border-box !important; 
        overflow-x: hidden !important; 
        overflow-y: auto !important; 
    }
}

/* 3. Жорстко фіксуємо хрестики закриття для ВСІХ модалок */
body .kravino-modal-content .close-modal {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    margin: 0 !important;
    z-index: 1000 !important;
    line-height: 1 !important;
    font-size: 28px !important;
}





/* ==========================================
   ФІКСИ МОБІЛЬНОГО КОНФІГУРАТОРА
   ========================================== */

/* 1. Робимо хрестик в інфо-модалці ВЕЛИКИМ і ЧЕРВОНИМ (працює і на ПК, і на мобілці) */
.close-info-conf {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    font-size: 40px !important;
    color: #ff4d4d !important;
    cursor: pointer !important;
    z-index: 9999999 !important;
    line-height: 1 !important;
    transition: 0.3s !important;
}
.close-info-conf:hover { transform: scale(1.1) !important; }

@media (max-width: 900px) {
    /* 2. Рятуємо сторінку від обрізання та скролу вправо */
    html, body {
        overflow-x: hidden !important;
        width: 100vw !important;
    }
    .app-body, .side-panel, .main-content {
        box-sizing: border-box !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* 3. Збільшуємо RGB-кнопки і робимо відступ до Trade-In */
    .rgb-controls {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-bottom: 25px !important; /* Той самий відступ вниз */
        padding: 10px 0 !important;
        flex-wrap: wrap !important;
    }
    .rgb-controls span {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 8px !important;
        font-size: 14px !important;
        color: #fff !important;
    }
    .rgb-controls button {
        width: 35px !important; /* Були дрібні, стали зручні для пальця */
        height: 35px !important;
        border-radius: 50% !important; /* Робимо їх круглими для краси */
        border: 2px solid #333 !important;
    }

    /* 4. Повертаємо сітку деталей по 2 в ряд! */
    #custom-parts-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Жорстко 2 колонки */
        gap: 10px !important;
        padding: 5px !important;
    }
    
    /* Трохи адаптуємо тексти всередині карток, щоб вони гарно влазили у 2 колонки на телефоні */
    .part-card {
        padding: 10px !important;
        min-height: 240px !important;
    }
    .part-card h4 {
        font-size: 11px !important;
        height: 32px !important;
        margin: 5px 0 !important;
        line-height: 1.3 !important;
    }
    .card-img-wrapper {
        height: 90px !important;
    }
    .card-price-custom {
        font-size: 13px !important;
    }
/* 1. ФІКСОВАНА 3D-СЦЕНА ТА ЇЇ МЕНЮ (Третина екрана + Розділювач) */
    html, body, .app-container, .configurator-wrapper {
        height: 100vh !important;
        overflow: hidden !important;
    }
    
    .app-body {
        flex-direction: column !important;
        overflow-y: auto !important;
        height: calc(100vh - 60px) !important;
        display: flex !important;
    }
    
   /* 1. ФІКСОВАНА 3D-СЦЕНА */
    #canvas-container {
        position: sticky !important;
        top: 0 !important;
        z-index: 50 !important;
        height: 35vh !important; 
        min-height: 35vh !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        /* Ми прибрали border-bottom та box-shadow звідси, щоб їх не перекривав canvas */
    }

    /* 2. НЕОНОВА ЛІНІЯ (Малюємо окремим шаром поверх 3D-сцени) */
    #canvas-container::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px; /* Товщина нашої лінії */
        background: #b629ee; /* Фіолетовий неон */
        box-shadow: 0 5px 15px rgba(0,0,0,0.8), 0 0 15px rgba(182, 41, 238, 0.6) !important;
        z-index: 100 !important; /* Жорстко закидаємо поверх Three.js */
        pointer-events: none; /* Щоб лінія не блокувала пальці при обертанні 3D-моделі */
    }

    /* Рятуємо менюшку 3D-сцени (Ввімкнути, Кришка), щоб вона не випадала */
    .bottom-actions-menu {
        position: absolute !important; /* Жорстко фіксуємо всередині 3D-сцени */
        bottom: 10px !important; 
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 95% !important; 
        display: flex !important;
        justify-content: space-between !important;
        gap: 5px !important;
        padding: 8px !important;
        background: rgba(10, 10, 10, 0.85) !important;
        border: 1px solid #333 !important;
        border-radius: 12px !important;
        backdrop-filter: blur(5px) !important;
        box-sizing: border-box !important;
    }

    .bottom-actions-menu button {
        flex: 1 !important;
        padding: 8px 5px !important;
        font-size: 11px !important; /* Трохи зменшили текст, щоб не злипався */
        white-space: nowrap !important;
        border-radius: 8px !important;
    }

    .side-panel {
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Додаємо трохи повітря зверху для списку деталей, щоб вони не билися об розділювач */
    .side-panel.left {
        padding-top: 20px !important;
    }

    /* 3. ПРАВИЛЬНІ ПРОПОРЦІЇ ДЛЯ КАРТИНОК (Як на ПК) */
    .card-img-wrapper {
        height: 120px !important; /* Робимо контейнер високим і майже квадратним */
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin-bottom: 8px !important; /* Відступ до тексту */
    }
    
    .card-img-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important; /* Ідеально вписує картинку без спотворень */
    }
    
    /* Робимо саму картку вищою, щоб все красиво влізло */
    .part-card {
        min-height: 250px !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important; /* Розштовхує ціну в самий низ */
    }
}

/* ==========================================
   ФІКСИ ДЛЯ ПК (КОНФІГУРАТОР)
   ========================================== */
@media (min-width: 901px) {
    /* Вмикаємо скрол для лівої панелі */
    .side-panel.left {
        overflow-y: auto !important;
        max-height: calc(100vh - 60px) !important; /* Захист від випадання за екран (100% висоти мінус шапка) */
        padding-right: 15px !important; /* Відступ, щоб повзунок не наїжджав на текст */
    }
    
    /* Забороняємо кнопкам деталей сплющуватись, коли з'являється скрол */
    .selector-card {
        flex-shrink: 0 !important;
    }

    /* 🎨 Робимо скролбаар красивим (Кіберпанк стиль) */
    .side-panel.left::-webkit-scrollbar {
        width: 6px !important; /* Тонкий та акуратний */
    }
    .side-panel.left::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 10px !important;
    }
    .side-panel.left::-webkit-scrollbar-thumb {
        background: #b629ee !important; /* Фіолетовий неон */
        border-radius: 10px !important;
    }
    .side-panel.left::-webkit-scrollbar-thumb:hover {
        background: #00ffff !important; /* Блакитний при наведенні мишки */
    }
    /* 🎨 Збільшуємо RGB-кнопки та робимо відступ від Trade-in на ПК */
    .rgb-controls {
        display: flex !important;
        gap: 12px !important;
        margin-bottom: 25px !important; /* Той самий рятівний відступ вниз */
        align-items: center !important;
        flex-wrap: wrap !important;
    }
    
    .rgb-controls span {
        width: 100% !important;
        margin-bottom: 8px !important;
        font-size: 14px !important;
        color: #fff !important;
    }

    .rgb-controls button {
        width: 32px !important; /* Зручний розмір для кліку мишкою */
        height: 32px !important;
        border-radius: 50% !important; /* Робимо їх ідеально круглими */
        border: 2px solid #333 !important;
        cursor: pointer !important;
        transition: transform 0.2s, border-color 0.2s !important;
    }

    .rgb-controls button:hover {
        transform: scale(1.2) !important; /* Злегка збільшується при наведенні */
        border-color: #b629ee !important; /* Фіолетова підсвітка контуру */
        box-shadow: 0 0 10px rgba(182, 41, 238, 0.4) !important;
    }
}
/* ==========================================
   ОНОВЛЕНЕ НИЖНЄ МЕНЮ (МЕНШЕ + РОЗДІЛЮВАЧІ)
   ========================================== */
@media (max-width: 900px) {
    .bottom-nav-bar {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        border-radius: 20px 20px 0 0 !important;
        /* ЗМЕНШИЛИ ВІДСТУПИ, щоб меню стало тоншим */
        padding: 5px 5px 10px 5px !important; 
        justify-content: space-around !important;
        gap: 0 !important;
        box-sizing: border-box !important;
        z-index: 999999 !important;
    }

    .bottom-nav-btn {
        flex-direction: column !important; 
        /* ЗМЕНШИЛИ ВНУТРІШНІ ВІДСТУПИ */
        padding: 4px 2px !important;
        border-radius: 0 !important; /* Прибрали округлення для рівних розділювачів */
        flex: 1 !important; 
        gap: 4px !important;
        text-align: center !important;
        font-size: 18px !important; /* Трохи зменшили іконки */
    }

    /* 🎨 МАГІЯ: ДОДАЄМО РОЗДІЛЮВАЧІ МІЖ КНОПКАМИ */
    .bottom-nav-btn:not(:last-child) {
        border-right: 1px solid rgba(0, 0, 0, 0.15) !important;
    }

    .bottom-nav-btn span {
        font-size: 10px !important;
        font-weight: bold !important;
        line-height: 1 !important;
    }

    /* Коригуємо червоний бейдж кошика для нової тонкої верстки */
    .cart-badge {
        top: 0px !important;
        right: calc(50% - 20px) !important; 
        padding: 1px 5px !important; 
        font-size: 10px !important;
    }
}
/* ==========================================
   СТИЛІ ДЛЯ ВИБОРУ ДОСТАВКИ ТА ОПЛАТИ
   ========================================== */
.checkout-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}
.checkout-option {
    background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 15px;
    cursor: pointer; transition: 0.3s; display: flex; align-items: flex-start; gap: 10px;
}
.checkout-option:hover { border-color: #00ff9d; }
.checkout-option.active { border-color: #00ff9d; background: rgba(0, 255, 157, 0.05); }

/* Приховуємо стандартні кружечки */
.checkout-option input[type="radio"] { display: none; }

/* Малюємо свої неонові кружечки */
.checkout-option .custom-radio {
    width: 18px; height: 18px; border: 2px solid #555; border-radius: 50%;
    display: inline-block; position: relative; margin-top: 2px; flex-shrink: 0;
}
.checkout-option input[type="radio"]:checked + .custom-radio { border-color: #00ff9d; }
.checkout-option input[type="radio"]:checked + .custom-radio::after {
    content: ''; position: absolute; top: 4px; left: 4px; width: 10px; height: 10px;
    background: #00ff9d; border-radius: 50%;
}

.option-details { flex: 1; }
.option-title { color: #fff; font-weight: bold; font-size: 14px; margin-bottom: 5px; }
.option-desc { color: #888; font-size: 12px; line-height: 1.3; }

@media (max-width: 600px) {
    .checkout-options-grid { grid-template-columns: 1fr; }
}