/* ============================================================
   1. Скрываем все элементы (корзина, кабинет, сравнение, закладки)
   ============================================================ */

/* Скрываем корзину */
.quantity-adder,
.cart,
#button-cart,
.cart .btn-general,
#cart,
.box-cart,
.shopping-cart {
    display: none !important;
}

/* Скрываем кабинет */
.box-account,
.btn-account,
#login-popup {
    display: none !important;
}

/* Скрываем мобильные кнопки сравнения и закладок */
.box-compare-mob,
.box-wishlist-mob,
.mob-m-i.box-compare-mob,
.mob-m-i.box-wishlist-mob,
.btn-mob-compare-bottom,
.btn-mob-wishlist-bottom {
    display: none !important;
}

/* Скрываем все кнопки с корзиной */
button[onclick*="cart.add"],
button[onclick*="upstoreNotifyStock"],
.action-group .cart,
.price-actions-box .cart {
    display: none !important;
}

/* ============================================================
   2. Стили для футера
   ============================================================ */

/* Скрываем верхнюю часть футера в темной теме */
footer.ch-dark-theme .footer-top {
    display: none !important;
}

/* Отступ сверху для центральной части футера */
footer .footer-center {
    padding-top: 40px !important;
}

/* ============================================================
   3. Стили для кнопок
   ============================================================ */

/* Стиль для кнопок "Запрос цены" и "Уведомить о цене" */
.btn-cheaper, 
.btn-notify-price {
    display: inline !important;
}

/* Стиль для кнопки быстрого заказа на больших экранах */
@media (min-width: 1320px) {
    #product .btn-fastorder {
        margin-left: 0px !important;
    }
}

/* ============================================================
   Таблицы в описании
   ============================================================ */

/* ===== ОСНОВНЫЕ СТИЛИ ТАБЛИЦЫ ===== */
.table-resp {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #F0F2F5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* ОТСТУПЫ СВЕРХУ И СНИЗУ */
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

/* ===== ЗАГОЛОВКИ ===== */
.table-resp thead {
    background: #F0F2F5;
}

.table-resp thead th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #333333;
    border-bottom: 2px solid #e0e3e8;
    white-space: nowrap;
}

/* ===== ЯЧЕЙКИ ===== */
.table-resp tbody td {
    padding: 13px 18px;
    border-bottom: 1px solid #F0F2F5;
    background-color: #FFFFFF;
    color: #333333;
}

.table-resp tbody tr:nth-child(even) td {
    background-color: #F9F9F9;
}

.table-resp tbody tr:hover td {
    background-color: #F0F2F5;
}

.table-resp tbody tr:last-child td {
    border-bottom: none;
}

.table-resp tbody td:first-child {
    font-weight: 600;
}

/* ===== МОБИЛЬНЫЕ — КАРТОЧКИ ===== */
@media (max-width: 768px) {
    .table-resp thead {
        display: none;
    }
    
    .table-resp tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #F0F2F5;
        border-radius: 10px;
        background: #FFFFFF;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }
    
    .table-resp tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        border-bottom: 1px solid #F0F2F5;
        background: #FFFFFF;
        text-align: right;
        font-size: 13px;
        min-height: 44px;
    }
    
    .table-resp tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: #888888;
        text-align: left;
        flex-shrink: 0;
        margin-right: 15px;
    }
    
    .table-resp tbody td:last-child {
        border-bottom: none;
    }
    
    .table-resp tbody tr:nth-child(even) td {
        background: #FFFFFF;
    }
    
    .table-resp tbody tr:hover td {
        background: #F9F9F9;
    }
    
    .table-resp tbody td:first-child {
        font-weight: 600;
        color: #333333;
    }
    
    .table-resp tbody td:first-child:before {
        color: #333333;
        font-weight: 700;
    }
    
    /* ===== ВЕРХНЯЯ СТРОКА КАРТОЧКИ — ФОН #F0F2F5 ===== */
    .table-resp tbody td:first-child {
        background: #F0F2F5 !important;
        font-weight: 700;
        color: #1a1a2e;
        border-bottom: 2px solid #e0e3e8;
        font-size: 14px;
        border-radius: 10px 10px 0 0;
    }
    
    .table-resp tbody td:first-child:before {
        color: #1a1a2e;
        font-weight: 700;
    }
    
    /* ОТСТУПЫ НА МОБИЛЬНЫХ */
    .table-resp {
        margin-top: 25px !important;
        margin-bottom: 25px !important;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ ===== */
@media (max-width: 480px) {
    .table-resp tbody td {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 38px;
    }
    
    .table-resp tbody td:first-child {
        font-size: 13px;
        padding: 10px 12px;
        border-radius: 8px 8px 0 0;
    }
    
    .table-resp tbody td:before {
        font-size: 11px;
    }
    
    .table-resp tbody tr {
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .table-resp {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
}


/* ===== СТИЛИ ДЛЯ FAQ АККОРДИОН ===== */
.tm-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #F0F2F5;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tm-faq-item {
    border: 1px solid #F0F2F5;
    border-radius: 10px;
    overflow: hidden;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.tm-faq-item h5 {
    margin: 0;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    background: #F9F9F9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s ease;
}

.tm-faq-item h5:hover {
    background: #F0F2F5;
}

.tm-faq-item h5::after {
    content: "+";
    font-size: 20px;
    font-weight: 300;
    color: #1a3a6a;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.tm-faq-item.active h5::after {
    content: "−";
}

.tm-faq-item .tm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
    background: #FFFFFF;
}

.tm-faq-item.active .tm-faq-answer {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

.tm-faq-item .tm-faq-answer p {
    margin: 0;
    padding: 12px 0 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #444444;
}

.tm-faq-item > p {
    display: none;
}

/* ===== ТЕМНАЯ ТЕМА ===== */
.dark-theme .tm-faq {
    background: #1a2332;
    border-color: #2d3a4d;
}

.dark-theme .tm-faq-item {
    border-color: #2d3a4d;
    background: #1a2332;
}

.dark-theme .tm-faq-item h5 {
    color: #e2e8f0;
    background: #1f2b3d;
}

.dark-theme .tm-faq-item h5:hover {
    background: #2a3a52;
}

.dark-theme .tm-faq-item h5::after {
    color: #7aa5f0;
}

.dark-theme .tm-faq-item .tm-faq-answer {
    background: #1a2332;
}

.dark-theme .tm-faq-item .tm-faq-answer p {
    color: #b0c4e8;
}

/* ===== МОБИЛЬНЫЕ ===== */
@media (max-width: 768px) {
    .tm-faq {
        padding: 12px;
        gap: 10px;
        margin: 20px 0;
        border-radius: 8px;
    }
    .tm-faq-item {
        border-radius: 8px;
    }
    .tm-faq-item h5 {
        padding: 14px 16px;
        font-size: 14px;
    }
    .tm-faq-item.active .tm-faq-answer {
        padding: 0 16px 16px 16px;
    }
    .tm-faq-item .tm-faq-answer p {
        font-size: 13px;
        padding-top: 10px;
    }
}

@media (max-width: 480px) {
    .tm-faq {
        padding: 8px;
        gap: 8px;
        margin: 15px 0;
    }
    .tm-faq-item h5 {
        padding: 12px 14px;
        font-size: 13px;
    }
    .tm-faq-item h5::after {
        font-size: 18px;
    }
    .tm-faq-item.active .tm-faq-answer {
        padding: 0 14px 14px 14px;
    }
    .tm-faq-item .tm-faq-answer p {
        font-size: 12px;
        padding-top: 8px;
    }
}

/* Разрешаем отображение контейнера OCFilter внутри скрытого сайдбара на мобильных */
@media (max-width: 991px) {
    #column-left .ocfilter-mobile, 
    #column-right .ocfilter-mobile,
    .breadcrumb + .ocfilter-mobile {
        display: block !important;
    }
    
    /* Сдвигаем плавающую мобильную кнопку OCFilter, чтобы она не перекрывала кнопку "Наверх" шаблона UpStore */
    .ocf-btn-mobile-fixed {
        bottom: 20px !important;
        left: 20px !important; /* если кнопка темы справа, фильтр смещаем влево */
        z-index: 9999 !important;
    }
}

/* ===== кнопка фильтра ===== */


    .ocf-btn {
        width: 100%;
		border-radius: 20px !important;
    }

    .ocf-header .ocf-close-mobile {
        width: auto;
    }
    .ocf-theme-light-block .ocf-filter {
        border-radius: 20px !important;
    }