/* ============================================
   ТЕХКОМ-АВТОМАТИКА — ОСНОВНЫЕ СТИЛИ
   ============================================ */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: Arial, Helvetica, sans-serif; 
    font-size: 13px; 
    color: #333; 
    background: #fff; 
}

a { 
    color: #333; 
    text-decoration: none; 
}

a:hover { 
    color: #d32f2f; 
}

/* ─── TOPBAR ─── */
.topbar { 
    border-bottom: 1px solid #e0e0e0; 
    font-size: 12px; 
    color: #999; 
}

.topbar-inner { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 8px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.topbar-right { 
    display: flex; 
    align-items: center; 
    gap: 0; 
}

.topbar-right a { 
    color: #666; 
    font-size: 12px; 
}

.topbar-right a:hover { 
    color: #d32f2f; 
}

.topbar-sep { 
    color: #ddd; 
    margin: 0 10px; 
}

.badge { 
    background: #d32f2f; 
    color: #fff; 
    border-radius: 10px; 
    padding: 2px 7px; 
    font-size: 10px; 
    margin-left: 4px; 
    font-weight: bold; 
}

/* ─── Уведомления ─── */
.bell-wrap { 
    position: relative; 
    display: inline-flex; 
    align-items: center; 
}

.bell-wrap .bell-badge {
    position: absolute; 
    top: -6px; 
    right: -8px;
    background: #d32f2f; 
    color: #fff;
    font-size: 9px; 
    padding: 2px 5px;
    border-radius: 50%; 
    line-height: 1.2;
    font-weight: bold;
}

/* ─── HEADER ─── */
.header { 
    border-bottom: 1px solid #e0e0e0; 
}

.header-inner { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 12px 20px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.logo img { 
    height: 50px; 
}

.logo-text { 
    font-size: 24px; 
    font-weight: bold; 
    color: #333; 
}

.search-box { 
    flex: 1; 
    max-width: 450px; 
    margin: 0 30px; 
    position: relative; 
}

.search-box input { 
    width: 100%; 
    padding: 10px 50px 10px 18px; 
    border: 1px solid #ccc; 
    border-radius: 25px;
    font-size: 13px; 
    color: #666; 
}

.search-box input:focus { 
    border-color: #999; 
    color: #333; 
    outline: none; 
}

.search-box button { 
    position: absolute; 
    right: 5px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: #d32f2f; 
    color: #fff;
    border: none; 
    cursor: pointer; 
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: #b71c1c;
}

.header-phone { 
    text-align: right; 
}

.header-phone .number { 
    font-size: 22px; 
    font-weight: bold; 
}

.header-phone .time { 
    font-size: 11px; 
    color: #999; 
    margin-top: 2px; 
}

/* ─── NAV ─── */
.nav { 
    background: #f7f7f7; 
    border-bottom: 1px solid #e0e0e0; 
}

.nav-inner { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    overflow-x: auto; 
}

.nav a { 
    padding: 11px 18px; 
    font-size: 13px; 
    color: #333; 
    white-space: nowrap; 
    border-bottom: 2px solid transparent; 
    display: block; 
}

.nav a:first-child { 
    background: #eee; 
}

.nav a:hover { 
    color: #d32f2f; 
    border-bottom-color: #d32f2f; 
}

.nav a.active { 
    color: #d32f2f; 
    border-bottom-color: #d32f2f; 
}

/* ─── CONTAINER ─── */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 30px 20px; 
}

/* ─── LK LAYOUT ─── */
.lk-layout { 
    display: flex; 
    gap: 40px; 
}

.lk-sidebar { 
    width: 200px; 
    flex-shrink: 0; 
}

.lk-content { 
    flex: 1; 
    min-width: 0; 
}

.lk-title { 
    font-size: 18px; 
    font-weight: bold; 
    margin-bottom: 20px; 
}

.lk-menu { 
    list-style: none; 
}

.lk-menu li { 
    border-bottom: 1px solid #e8e8e8; 
}

.lk-menu li:first-child { 
    border-top: 1px solid #e8e8e8; 
}

.lk-menu a { 
    display: flex; 
    justify-content: space-between; 
    padding: 11px 12px; 
    font-size: 13px; 
    color: #333; 
}

.lk-menu a:hover { 
    background: #fafafa; 
    color: #d32f2f; 
}

.lk-menu a.active { 
    background: #f5f5f5; 
}

.lk-menu .count { 
    color: #999; 
    font-size: 12px; 
}

/* ─── CONTENT HEADER ─── */
.content-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
    margin-bottom: 20px; 
    border-bottom: 1px solid #e0e0e0; 
    padding-bottom: 10px; 
}

.content-title { 
    font-size: 18px; 
    font-weight: bold; 
}

.content-subtitle { 
    font-size: 13px; 
    color: #999; 
}

.content-actions { 
    display: flex; 
    gap: 15px; 
    font-size: 13px; 
}

.content-actions a { 
    color: #666; 
}

.content-actions a:hover, 
.content-actions a.active { 
    color: #d32f2f; 
    text-decoration: underline; 
}

/* ─── TABLE ─── */
.table { 
    width: 100%; 
    border-collapse: collapse; 
}

.table th { 
    text-align: left; 
    padding: 10px 12px; 
    border-bottom: 1px solid #ccc; 
    font-size: 12px; 
    color: #666; 
    font-weight: normal; 
    background: #fafafa; 
}

.table td { 
    padding: 14px 12px; 
    border-bottom: 1px solid #eee; 
    vertical-align: top; 
    font-size: 13px; 
}

.table tr:hover td { 
    background: #fafafa; 
}

/* ─── STATUS DOTS ─── */
.dot { 
    width: 18px; 
    height: 18px; 
    border-radius: 50%; 
    display: inline-block;
    margin-right: 8px;  /* ← ДОБАВЬ ЭТУ СТРОКУ! */
}

.dot-red { 
    background: #d32f2f; 
}

.dot-green { 
    background: #4caf50; 
}

.dot-gray { 
    background: #bbb; 
}

/* ✅ Специальные отступы для таблиц */
td .dot,
th .dot {
    margin-right: 12px;
    vertical-align: middle;
}

/* ✅ Отступ для текста после точки */
.dot + span,
.dot + a {
    margin-left: 4px;
}

/* ─── ORDER DETAIL ─── */
.order-header { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 20px; 
}

.order-number { 
    font-size: 18px; 
    font-weight: bold; 
}

.order-meta { 
    color: #999; 
    font-size: 13px; 
}

.order-info { 
    margin-bottom: 25px; 
    line-height: 1.9; 
}

.order-side-actions { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    min-width: 200px; 
}

.order-action { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 12px; 
    color: #555; 
}

.order-action:hover { 
    color: #d32f2f; 
}

.order-total { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 20px; 
    padding-top: 15px; 
    border-top: 1px solid #ccc; 
}

.order-total-label { 
    font-size: 18px; 
    font-weight: bold; 
}

.order-total-sum { 
    font-size: 20px; 
    font-weight: bold; 
}

.shipping-log { 
    font-size: 11px; 
    color: #888; 
    margin-top: 4px; 
}

.check { 
    color: #4caf50; 
    margin-left: 3px; 
}

/* ─── BUTTONS ─── */
.btn { 
    display: inline-block; 
    padding: 10px 25px; 
    font-size: 13px; 
    border: none; 
    border-radius: 3px; 
    cursor: pointer; 
}

.btn-red { 
    background: #d32f2f; 
    color: #fff; 
}

.btn-red:hover { 
    background: #b71c1c; 
    color: #fff; 
}

.btn-outline { 
    background: #fff; 
    color: #333; 
    border: 1px solid #ccc; 
}

.btn-outline:hover { 
    border-color: #999; 
}

.btn-sm { 
    padding: 6px 15px; 
    font-size: 12px; 
}

.btn-group { 
    display: flex; 
    gap: 10px; 
    margin-top: 25px; 
    justify-content: flex-end; 
}

/* ─── FORMS ─── */
.form-group { 
    margin-bottom: 18px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 5px; 
    font-size: 12px; 
    color: #666; 
}

.form-group label .req { 
    color: #d32f2f; 
}

.form-group input, 
.form-group select, 
.form-group textarea { 
    width: 100%; 
    padding: 10px 12px; 
    border: 1px solid #ccc; 
    border-radius: 3px; 
    font-size: 14px; 
}

.form-group input:focus, 
.form-group select:focus { 
    border-color: #999; 
    outline: none; 
}

.form-row { 
    display: flex; 
    gap: 15px; 
}

.form-row .form-group { 
    flex: 1; 
}

.alert-success { 
    background: #e8f5e9; 
    color: #2e7d32; 
    padding: 10px 15px; 
    border-radius: 3px; 
    margin-bottom: 15px; 
}

/* ─── ADDRESS CARD ─── */
.address-card { 
    border: 1px solid #e0e0e0; 
    padding: 15px 20px; 
    margin-bottom: 12px; 
}

.address-card-header { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 8px; 
}

.address-card-title { 
    font-weight: bold; 
    font-size: 14px; 
}

.address-card-actions { 
    font-size: 12px; 
    color: #999; 
}

.address-card-actions a { 
    color: #999; 
    margin-left: 10px; 
}

.address-card-actions a:hover { 
    color: #d32f2f; 
}

.address-card-body { 
    font-size: 13px; 
    color: #555; 
    margin-bottom: 8px; 
}

.address-card-radio { 
    font-size: 12px; 
    color: #666; 
}

.address-card-radio input { 
    margin-right: 5px; 
}

/* ─── DISCOUNT SCALE ─── */
.discount-scale { 
    background: #f9f9f9; 
    border: 1px solid #e0e0e0; 
    padding: 25px; 
    margin-top: 10px; 
    text-align: center; 
}

.discount-bar { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0; 
    margin: 20px auto; 
    max-width: 400px; 
}

.discount-level { 
    text-align: center; 
    flex: 1; 
    position: relative; 
}

.discount-circle { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    color: #fff; 
    margin: 0 auto 8px; 
    font-size: 14px; 
}

.discount-circle.active { 
    background: #d32f2f; 
}

.discount-circle.inactive { 
    background: #e0e0e0; 
    color: #999; 
    border: 2px solid #ccc; 
}

.discount-amount { 
    font-size: 12px; 
    color: #666; 
}

.discount-line { 
    height: 3px; 
    background: #d32f2f; 
    flex: 0.5; 
    margin-top: -30px; 
}

.discount-line.gray { 
    background: #e0e0e0; 
}

.discount-current { 
    font-size: 12px; 
    color: #666; 
    margin-bottom: 5px; 
}

/* ─── FAVORITES TABLE ─── */
.fav-params { 
    font-size: 12px; 
    color: #666; 
    line-height: 1.5; 
}

.fav-params a { 
    color: #d32f2f; 
}

.fav-qty { 
    width: 50px; 
    padding: 5px; 
    border: 1px solid #ccc; 
    text-align: center; 
    font-size: 13px; 
}

.fav-actions { 
    display: flex; 
    gap: 8px; 
    align-items: center; 
}

.fav-icon { 
    color: #999; 
    font-size: 16px; 
    cursor: pointer; 
}

.fav-icon:hover { 
    color: #d32f2f; 
}

/* ─── SECTION DIVIDER ─── */
.section-title { 
    font-size: 16px; 
    font-weight: bold; 
    margin: 30px 0 15px; 
    padding-bottom: 8px; 
    border-bottom: 1px solid #e0e0e0; 
}

/* ─── FOOTER ─── */
.footer { 
    border-top: 1px solid #e0e0e0; 
    margin-top: 60px; 
}

.footer-inner { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 30px 20px; 
    display: flex; 
    gap: 50px; 
}

.footer-col h3 { 
    font-size: 14px; 
    font-weight: bold; 
    margin-bottom: 15px; 
}

.footer-col ul { 
    list-style: none; 
}

.footer-col li { 
    margin-bottom: 8px; 
}

.footer-col a { 
    font-size: 13px; 
    color: #666; 
}

.footer-col a:hover { 
    color: #d32f2f; 
}

.footer-logo-col { 
    max-width: 250px; 
}

.footer-logo-col img { 
    height: 40px; 
    margin-bottom: 10px; 
}

.footer-logo-text { 
    font-size: 12px; 
    color: #666; 
    line-height: 1.5; 
}

.footer-bottom { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 15px 20px; 
    border-top: 1px solid #e0e0e0; 
    display: flex; 
    justify-content: space-between; 
    font-size: 12px; 
    color: #999; 
}

.subscribe-form { 
    display: flex; 
    margin-top: 10px; 
}

.subscribe-form input { 
    flex: 1; 
    padding: 8px 12px; 
    border: 1px solid #ccc; 
    border-radius: 3px 0 0 3px; 
}

.subscribe-form button { 
    padding: 8px 15px; 
    background: #fff; 
    border: 1px solid #ccc; 
    border-left: none; 
    border-radius: 0 3px 3px 0; 
    cursor: pointer; 
}

/* /* ============================================
   АНИМАЦИЯ РАСКРЫТИЯ ТОВАРА
   ============================================ */

/* .product-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.product-details.open {
    max-height: 500px;
    padding-top: 10px;
} */ */


/* ============================================
   SVG ИКОНКИ
   ============================================ */

.icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.icon-bell {
    width: 16px;
    height: 16px;
}

.icon-cart {
    width: 20px;
    height: 20px;
}

.icon-user {
    width: 18px;
    height: 18px;
}

.icon-search {
    width: 16px;
    height: 16px;
}

/* ============================================
   УВЕДОМЛЕНИЯ - КАРТОЧКИ
   ============================================ */

.notifications-grid {
    display: grid;
    gap: 15px;
}

.notification-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: box-shadow 0.2s ease;
}

.notification-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.notification-card.unread {
    background: #fffbeb;
    border-left: 4px solid #d32f2f;
}

.notification-icon-wrapper {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.notification-icon-wrapper.status {
    background: #e3f2fd;
}

.notification-icon-wrapper.delivery {
    background: #e8f5e9;
}

.notification-icon-wrapper.payment {
    background: #fff3e0;
}

.notification-icon-wrapper.promo {
    background: #fce4ec;
}

.notification-body {
    flex: 1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.notification-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.notification-date {
    font-size: 11px;
    color: #999;
}

.notification-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.notification-link {
    font-size: 12px;
    color: #d32f2f;
    text-decoration: underline;
}

.notification-link:hover {
    color: #b71c1c;
}

.notification-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.notification-actions button {
    padding: 5px 12px;
    font-size: 11px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
}

.notification-actions button:hover {
    background: #f5f5f5;
}

.notification-actions button.primary {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

.notification-actions button.primary:hover {
    background: #b71c1c;
}
/* ============================================
   СТРОЧНЫЙ ВИД ТОВАРОВ (МАКСИМАЛЬНО КОМПАКТНО)
   ============================================ */

.products-table-header {
    display: grid;
    grid-template-columns: 45px 1fr 80px 85px 110px;
    gap: 8px;
    padding: 8px 12px;
    background: #fafafa;
    border-bottom: 2px solid #d32f2f;
    font-size: 11px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-row {
    display: grid;
    grid-template-columns: 45px 1fr 80px 85px 110px;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    align-items: center;
    background: #fff;
    transition: background 0.15s ease;
}

.product-row:hover {
    background: #fafafa;
}

.product-row:nth-child(even) {
    background: #fefefe;
}

.product-row:nth-child(even):hover {
    background: #fafafa;
}

/* ─── Пиктограмма ─── */
.product-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border: 1px solid #e5e5e5;
    padding: 2px;
    background: #fff;
}

.product-thumb-placeholder {
    width: 40px;
    height: 40px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
}

/* ─── Название и характеристики ─── */
.product-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 2px;
}

.product-name:hover {
    color: #d32f2f;
}

.product-chars {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
    margin-top: 3px;
}

.product-details-toggle {
    font-size: 11px;
    color: #d32f2f;
    margin-top: 4px;
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

.product-details-toggle:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* ─── Остаток ─── */
.product-stock {
    text-align: center;
    font-size: 12px;
}

.stock-available {
    color: #4caf50;
    font-weight: 600;
}

.stock-none {
    color: #999;
}

/* ─── Цена ─── */
.product-price {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.product-old-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
    margin-top: 2px;
}

/* ─── Виджет корзины ─── */
.cart-widget-cell {
    text-align: center;
}

.add-to-cart-btn {
    padding: 5px 12px;
    font-size: 11px;
    white-space: nowrap;
}

.quantity-controls.show {
    display: block !important;
}

.qty-control-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.15s ease;
}

.qty-btn:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

.qty-btn:active {
    background: #e8e8e8;
}

.qty-input {
    width: 45px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 4px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 600;
}

.qty-input:focus {
    outline: none;
    border-color: #d32f2f;
}

/* ============================================
   ПЛАВНАЯ АНИМАЦИЯ РАСКРЫТИЯ ТОВАРА
   ============================================ */

.product-details-wrapper {
    grid-column: 1 / -1;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-details-wrapper.open {
    max-height: 600px;
    opacity: 1;
    padding: 15px 0 10px 0;
    border-top: 1px solid #e8e8e8;
    margin-top: 8px;
}

.product-details-content {
    display: flex;
    gap: 20px;
}

.product-details-image {
    flex-shrink: 0;
}

.product-details-image img {
    max-width: 180px;
    height: auto;
    border: 1px solid #e0e0e0;
    padding: 8px;
    background: #fff;
}

.product-details-info {
    flex: 1;
    font-size: 12px;
    color: #555;
    line-height: 1.7;
}

.product-details-info b {
    color: #333;
    font-weight: 600;
}

.product-details-docs {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.product-details-docs a {
    font-size: 11px;
    color: #d32f2f;
    margin-right: 15px;
    text-decoration: none;
}

.product-details-docs a:hover {
    text-decoration: underline;
}

/* ============================================
   ФИЛЬТРЫ (КОМПАКТНЫЕ)
   ============================================ */

.filters-sidebar {
    width: 180px;
    flex-shrink: 0;
}

.filter-group {
    margin-bottom: 18px;
}

.filter-group-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.filter-option {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    cursor: pointer;
}

.filter-option input {
    margin-right: 6px;
}

.filter-option:hover {
    color: #d32f2f;
}

.filter-reset {
    font-size: 11px;
    color: #d32f2f;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

.filter-reset:hover {
    text-decoration: underline;
}

/* ==========================================================================
   АДАПТИВНЫЕ КЛАССЫ ДЛЯ КАТАЛОГА
   ========================================================================== */

.catalog-layout {
    display: flex;
    gap: 15px;
}

.catalog-sidebar {
    width: 100%;
    order: 1;  /* ← БРЕНДЫ СВЕРХУ! */
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.catalog-content {
    order: 2;  /* ← ТОВАРЫ СНИЗУ */
}

.product-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.product-gallery {
    width: 300px;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    min-width: 260px;
}

.products-table-header {
    display: grid;
    grid-template-columns: 35px 1fr 60px 70px 220px;
    gap: 6px;
    padding: 6px 10px;
    background: #fafafa;
    border-bottom: 2px solid #d32f2f;
    font-size: 10px;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
}

.product-row {
    display: grid;
    grid-template-columns: 35px 1fr 60px 70px 220px;
    gap: 6px;
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    align-items: center;
    font-size: 12px;
}

/* ==========================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ========================================================================== */

@media (max-width: 768px) {

    /* ФИКС для fixed элементов */
    html {
        position: relative !important;
        overflow-x: hidden !important;
    }
    
    body {
        position: relative !important;
        transform: none !important;
        -webkit-transform: none !important;
        will-change: auto !important;
    }
    /* Контейнер */
    .container {
        padding: 10px;
    }

        /* Топбар - скрываем на мобиле */
    .topbar {
        display: none !important;
    }

    /* Левая часть топбара - скрываем */
    .topbar-inner > div:first-child {
        display: none !important;
    }

    /* Скрываем навигационную панель категорий */
    .nav {
        display: none !important;
    }

    .topbar-right {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        font-size: 0 !important; /* Скрываем весь текст */
        width: 100% !important;
        justify-content: space-around !important;
    }

    /* Все ссылки в топбаре - только иконки */
    .topbar-right a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        font-size: 0 !important;
        position: relative !important;
        padding: 8px !important;
        border-radius: 4px !important;
        transition: background 0.2s ease !important;
    }

    .topbar-right a:hover {
        background: rgba(211, 47, 47, 0.1) !important;
    }

    /* Иконки в топбаре */
    .topbar-right a svg {
        width: 20px !important;
        height: 20px !important;
        font-size: 20px !important;
    }

    /* Badges остаются видимыми */
    .topbar-right .badge {
        font-size: 10px !important;
        position: absolute !important;
        top: 2px !important;
        right: 2px !important;
        min-width: 16px !important;
        height: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Уведомления - badge */
    .bell-wrap #bell-badge-slot {
        font-size: 10px !important;
        position: absolute !important;
        top: 2px !important;
        right: 2px !important;
        min-width: 16px !important;
        height: 16px !important;
        border-radius: 8px !important;
        background: #d32f2f !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Личный кабинет - показываем "ЛК" */
    .topbar-right a[href*="profile"]::after,
    .topbar-right a[href*="login"]::after {
        content: "ЛК" !important;
        font-size: 11px !important;
        color: #666 !important;
        font-weight: 600 !important;
        margin-left: 4px !important;
    }

    /* Сепараторы убираем */
    .topbar-sep {
        display: none !important;
    }

    /* Навигация - компактная */
    .nav-inner {
        padding: 0 10px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE/Edge */
    }

    .nav-inner::-webkit-scrollbar {
        display: none !important; /* Chrome/Safari */
    }

    .nav a {
        padding: 8px 10px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    /* Первую ссылку "Все категории" делаем короче */
    .nav a:first-child {
        background: #eee !important;
        font-size: 10px !important;
        padding: 8px 8px !important;
    }

    /* Если есть длинные названия категорий - сокращаем */
    .nav a {
        max-width: 80px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Шапка */
    .header-inner {
        flex-wrap: wrap;
        padding: 10px;
        gap: 10px;
    }

    .logo img {
        height: 35px;
    }

    .search-box {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0;
        flex: none;
    }

    .header-phone .number {
        font-size: 16px;
    }

    .header-phone .time {
        display: none;
    }

    /* Навигация */
    .nav-inner {
        padding: 0 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav a {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* КАТАЛОГ - ключевые изменения */
    .catalog-layout {
        flex-direction: column;
        gap: 15px;
    }

    /* Левая колонка на мобильных */
    div[style*="width:160px; flex-shrink:0"] {
        width: 100% !important;
        order: 2 !important; /* После товаров */
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Фильтры на мобильных */
    div[style*="width:160px"] form {
        background: #f9f9f9 !important;
        padding: 15px !important;
        border-radius: 8px !important;
        order: 1 !important;
    }

    /* Бренды на мобильных - отдельно */
    div[style*="width:160px"] .brands-sidebar {
        order: 2 !important;
        margin-top: 0 !important;
    }

    /* Правая колонка (товары) - первая */
    div[style*="flex:1; min-width:0"] {
        order: 1 !important;
        width: 100% !important;
    }

    /* Таблица товаров → карточки */
    .products-table-header {
        display: none;
    }

    .product-row {
        display: block;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .product-row > div:first-child {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }

    .product-row > div:first-child img,
    .product-row > div:first-child > div {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .product-row > div:nth-child(2) {
        flex: 1;
        min-width: 0;
    }

    .product-row > div:nth-child(3) {
        margin-top: 8px;
        text-align: left;
    }

    .product-row > div:nth-child(3)::before {
        content: "Остаток: ";
        font-weight: 600;
        color: #666;
    }

    .product-row > div:nth-child(4) {
        margin-top: 8px;
        text-align: left;
        font-size: 16px;
    }

    .product-row > div:nth-child(4)::before {
        content: "Цена: ";
        font-weight: 600;
        color: #666;
        font-size: 14px;
    }

    .product-row > div:nth-child(5) {
        margin-top: 12px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Виджет корзины на мобиле */
    .cart-widget {
        width: 100%;
    }

    .add-to-cart-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        text-align: center;
    }

    .qty-control-wrapper {
        width: 100%;
        justify-content: center;
    }

    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .qty-input {
        width: 80px;
        height: 40px;
        font-size: 16px;
    }

    /* Кнопки действий */
    .product-row > div:nth-child(5) > div:last-child {
        display: flex;
        gap: 8px;
        justify-content: center;
    }

    .prod-icon-btn {
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
    }

    /* Карточка товара */
    .product-layout {
        flex-direction: column;
        gap: 20px;
    }

    .product-gallery {
        width: 100%;
    }

    .product-info {
        min-width: 0;
    }

    /* Личный кабинет */
    .lk-layout {
        flex-direction: column;
        gap: 20px;
    }

    .lk-sidebar {
        width: 100%;
    }

    .lk-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .lk-menu li {
        flex: 1 1 calc(50% - 4px);
        border: 1px solid #e0e0e0;
        border-radius: 6px;
    }

    .lk-menu a {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* Таблицы */
    .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    /* Формы */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Футер */
    .footer-inner {
        flex-direction: column;
        gap: 25px;
        padding: 20px 15px;
    }

    .footer-logo-col {
        max-width: 100%;
    }

    /* Уведомления */
    .notification-card {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .notification-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* Подробности товара */
    .product-details {
        padding: 15px;
        border-radius: 8px;
        background: #f9f9f9;
        margin-top: 10px;
    }
}

/* Если хочется еще более компактную навигацию */
.nav a[href*="news"],
.nav a[href*="article"],
.nav a[href*="tech-docs"] {
    display: none !important;
}

/* Или альтернативно - dropdown для дополнительных разделов */
.nav-dropdown {
    position: relative !important;
    display: inline-block !important;
}

.nav-dropdown-btn {
    background: #f0f0f0 !important;
    border: none !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    cursor: pointer !important;
}

.nav-dropdown-content {
    display: none !important;
    position: absolute !important;
    background: #fff !important;
    min-width: 120px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    z-index: 1000 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block !important;
}

.nav-dropdown-content a {
    display: block !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    border-bottom: 1px solid #eee !important;
    max-width: none !important;
}

/* ==========================================================================
   ПЛАНШЕТЫ (768px - 1024px)
   ========================================================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .catalog-sidebar {
        width: 140px;
    }

    .product-gallery {
        width: 250px;
    }

    .products-table-header {
        grid-template-columns: 30px 1fr 70px 80px 180px;
    }

    .product-row {
        grid-template-columns: 30px 1fr 70px 80px 180px;
    }

    .search-box {
        max-width: 300px;
        margin: 0 15px;
    }

    .footer-inner {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-col {
        min-width: 200px;
    }
}

.icon-action-btn{background:none;border:none;cursor:pointer;padding:3px;color:#bbb;line-height:1;}
.icon-action-btn.is-active,.icon-action-btn:hover{color:#d32f2f;}
.icon-action-btn.is-active .fav-icon{fill:#d32f2f;}
.fav-icon{fill:none;}

/* ── Product row action icons (compare / favorite) ── */
.prod-icon-wrap {
    position: relative;
    display: inline-block;
}
.prod-icon-btn {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    padding: 4px 5px;
    color: #bbb;
    line-height: 1;
    transition: color .15s, border-color .15s, background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prod-icon-btn:hover { color: #d32f2f; border-color: #d32f2f; background: #fff5f5; }
.prod-icon-btn.prod-icon-active { color: #d32f2f; border-color: #d32f2f; }
.prod-icon-btn.prod-icon-active .prod-fav-svg { fill: #d32f2f; }
.prod-fav-svg { fill: none; transition: fill .15s; }

.prod-icon-tip {
    display: none;
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
    padding: 3px 7px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 10;
}
.prod-icon-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
}
.prod-icon-wrap:hover .prod-icon-tip { display: block; }
/* Спиннер для загрузки */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #d32f2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* ==========================================================================
   МОБИЛЬНАЯ НИЖНЯЯ НАВИГАЦИЯ + УВЕДОМЛЕНИЯ В ШАПКЕ
   ========================================================================== */

.mobile-bottom-nav {
    display: none !important;
}

.mobile-notifications {
    display: none !important;
}

.mobile-contacts {
    display: none !important;
}

@media (max-width: 768px) {
    /* Уведомления в шапке */
    .mobile-notifications {
        display: block;
    }

    .mobile-bell {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        color: #666;
        border-radius: 6px;
        transition: background 0.2s ease;
    }

    .mobile-bell:hover {
        background: rgba(211, 47, 47, 0.1);
        color: #d32f2f;
    }

    .mobile-bell svg {
        width: 20px;
        height: 20px;
    }

    .mobile-bell-badge {
        position: absolute;
        top: 2px;
        right: 2px;
        background: #d32f2f;
        color: #fff;
        border-radius: 8px;
        padding: 2px 5px;
        font-size: 9px;
        font-weight: bold;
        min-width: 14px;
        height: 14px;
        display: none;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .mobile-bell-badge:not(:empty) {
        display: flex;
    }

    /* Нижняя навигация */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        border-top: 1px solid #e0e0e0 !important;
        padding: 6px 0 6px 0 !important;
        justify-content: space-around !important;
        align-items: center !important;
        z-index: 9999 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        height: 60px !important;
        width: 100% !important;
    }
        /* Скрываем номер телефона в шапке */
    .header-phone {
        display: none !important;
    }

        .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px 8px;
        color: #999;
        text-decoration: none;
        position: relative;
        border-radius: 6px;
        min-width: 36px;
        max-width: 48px;
        height: 40px;
        flex: 0 0 auto;
        
        /* Только убираем подсветку тапа */
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        outline: none;
        transition: none;
    }


    /* АКТИВНОЕ СОСТОЯНИЕ - красная иконка */
    .mobile-nav-item.active {
        color: #d32f2f !important;
        background: rgba(211, 47, 47, 0.1) !important;
    }

    .mobile-nav-item.active svg {
        stroke: #d32f2f !important;
    }

    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
        stroke-width: 2;
        transition: none !important;
        animation: none !important;
        will-change: auto;
    }
    .mobile-nav-badge {
        position: absolute;
        top: 3px;
        right: 3px;
        background: #d32f2f;
        color: #fff;
        border-radius: 8px;
        padding: 1px 4px;
        font-size: 9px;
        font-weight: bold;
        min-width: 14px;
        height: 14px;
        display: none;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .mobile-nav-badge:not(:empty) {
        display: flex;
    }

    /* Отступ для контента */
    body {
        padding-bottom: 65px !important;
        margin-bottom: 0 !important;
    }

    /* Скрываем топбар */
    .topbar {
        display: none !important;
    }

    /* ========== ГЛАВНАЯ СТРАНИЦА ========== */
    
    /* Навигация табов - делаем компактнее */
    div[style*="border-bottom: 1px solid #e0e0e0"] > div {
        padding: 0 10px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 0 !important;
    }
    
    div[style*="border-bottom: 1px solid #e0e0e0"] a {
        padding: 8px 12px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        border-bottom-width: 1px !important;
    }

    /* Основной layout - вертикально */
    div[style*="display:flex; gap:35px"] {
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* Левая колонка (новости) на полную ширину */
    div[style*="width:250px; flex-shrink:0"] {
        width: 100% !important;
        order: 1 !important;
        margin-bottom: 25px !important;
    }

    /* Правая колонка */
    div[style*="flex:1"]:not(.catalog-content):not(.lk-content) {
        order: 2 !important;
    }

    /* Блок новостей - компактнее */
    div[style*="width:250px"] h2 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    div[style*="border:1px solid #e0e0e0; margin-bottom:20px"] > div {
        padding: 10px 12px !important;
    }

    /* Популярные статьи - компактнее */
    div[style*="width:250px"] h2:nth-of-type(2) {
        font-size: 15px !important;
        margin-bottom: 8px !important;
        margin-top: 15px !important;
    }

    /* Grid статей → вертикальный список */
    div[style*="display:grid; grid-template-columns:1fr 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }

    /* Карточки статей */
    div[style*="display:grid; grid-template-columns:1fr 1fr 1fr"] > div {
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    }

    /* Картинки статей */
    div[style*="display:grid; grid-template-columns:1fr 1fr 1fr"] img {
        height: 140px !important;
    }

    div[style*="display:grid; grid-template-columns:1fr 1fr 1fr"] div[style*="height:115px"] {
        height: 140px !important;
    }

    /* Техническая документация - переносим вниз (только на главной) */
    div[style*="flex:1"] > div[style*="border:1px solid #e0e0e0; padding:20px; margin-bottom:25px; display:flex"] {
        order: 3 !important;
        margin-top: 30px !important;
        margin-bottom: 15px !important;
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px 15px !important;
    }

    /* Заголовок техдокументации на главной */
    div[style*="flex:1"] > h2:first-child {
        order: 3 !important;
        margin-top: 25px !important;
    }

    /* Заголовки разделов */
    div[style*="flex:1"]:not(.catalog-content):not(.lk-content) h2 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
        margin-top: 25px !important;
    }

    div[style*="flex:1"]:not(.catalog-content):not(.lk-content) h2:first-child {
        margin-top: 0 !important;
    }

    /* Блоки с контентом - компактнее */
    div[style*="border:1px solid #eee; padding:30px; text-align:center"] {
        padding: 20px 15px !important;
        margin-bottom: 12px !important;
        border-radius: 6px !important;
        font-size: 12px !important;
    }

    /* ========== СТРАНИЦЫ НОВОСТЕЙ И СТАТЕЙ ========== */
    
    /* Список новостей/статей - тоже делаем вертикальным */
    div[style*="display:flex; gap:40px"] {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Левая боковая панель */
    div[style*="width:250px; flex-shrink:0"]:not([style*="order"]) {
        width: 100% !important;
        order: 2 !important;
    }

    /* Основной контент */
    div[style*="flex:1"]:not(.catalog-content):not(.lk-content):not([style*="order"]) {
        order: 1 !important;
    }

    /* Рассылка (боковая панель) */
    div[style*="width:220px; flex-shrink:0"] {
        width: 100% !important;
        order: 3 !important;
        background: #f9f9f9 !important;
        padding: 15px !important;
        border-radius: 8px !important;
        margin-top: 20px !important;
    }

    /* Карточки новостей в списке */
    div[style*="border:1px solid #eee; padding:20px; margin-bottom:15px; display:flex"] {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 15px !important;
        border-radius: 6px !important;
        background: #fff !important;
    }

    /* Дата в новостях */
    div[style*="text-align:center; color:#999; font-size:13px; width:40px"] {
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 8px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        padding-bottom: 5px !important;
    }

    /* Фильтр по годам */
    div[style*="text-align:center; margin-bottom:25px"] {
        text-align: left !important;
        margin-bottom: 15px !important;
    }

    div[style*="text-align:center; margin-bottom:25px"] a {
        display: inline-block !important;
        margin: 5px 5px 5px 0 !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    /* ГЛАВНАЯ СТРАНИЦА - блоки друг под другом */
    .home-content-grid,
    .news-grid,
    .articles-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Новости и статьи вертикально */
    .news-section,
    .articles-section {
        order: 1 !important;
        margin-bottom: 20px !important;
    }

    /* Техдокументация внизу */
    .techdocs-section {
        order: 3 !important;
        margin-top: 30px !important;
    }

    /* Блоки новостей/статей */
    .news-item,
    .article-item {
        width: 100% !important;
        margin-bottom: 15px !important;
        padding: 15px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 6px !important;
        background: #fff !important;
    }
  /* ========== КАТАЛОГ (root.html) ========== */
    
    /* Основной layout каталога - вертикально */
    .container > div[style*="display:flex; gap:25px"] {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Бренды - красиво под заголовком */
    div[style*="width:170px; flex-shrink:0"] {
        width: 100% !important;
        order: 0 !important; /* Перед категориями */
        margin-bottom: 20px !important;
        margin-top: 0 !important;
    }

    /* Кнопка "Все производители" - скрываем */
    div[style*="width:170px; flex-shrink:0"] > a {
        display: none !important;
    }

    /* Заголовки групп брендов - скрываем */
    div[style*="width:170px; flex-shrink:0"] > div[style*="font-size:10px"] {
        display: none !important;
    }
    
    /* Контейнер брендов - горизонтально */
    div[style*="width:170px; flex-shrink:0"] {
        display: flex !important;
        gap: 10px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    /* Карточки брендов */
    div[style*="width:170px; flex-shrink:0"] > div[style*="padding:10px 8px"] {
        width: 120px !important;
        padding: 15px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
        text-align: center !important;
        flex: 0 0 auto !important;
    }
    
    /* Ссылки брендов */
    div[style*="width:170px; flex-shrink:0"] div a {
        display: block !important;
        padding: 10px 0 !important;
    }

    /* Сетка категорий - в одну колонку */
    div[style*="display:grid; grid-template-columns:1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        order: 1 !important;
    }

        /* Карточки категорий - компактные */
    div[style*="display:grid; grid-template-columns:1fr 1fr"] > a {
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        padding: 10px !important;
        border-radius: 6px !important;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
        margin: 0 !important;
        gap: 10px !important;
    }

    /* Картинки категорий - маленькие */
    div[style*="display:grid; grid-template-columns:1fr 1fr"] img,
    div[style*="display:grid; grid-template-columns:1fr 1fr"] > a > div[style*="width:130px"] {
        width: 50px !important;
        height: 40px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Убираем уродские эмодзи коробок */
    div[style*="display:grid; grid-template-columns:1fr 1fr"] > a > div[style*="📦"] {
        display: none !important;
    }

    /* Или заменяем на нейтральный блок */
    div[style*="display:grid; grid-template-columns:1fr 1fr"] > a > div[style*="width:130px; height:100px; background:#f5f5f5"] {
        background: #e8e8e8 !important;
        border-radius: 4px !important;
        font-size: 0 !important; /* Скрываем текст эмодзи */
        position: relative !important;
    }

    /* Добавляем простую иконку вместо эмодзи */
    div[style*="display:grid; grid-template-columns:1fr 1fr"] > a > div[style*="width:130px; height:100px; background:#f5f5f5"]:before {
        content: "" !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 20px !important;
        height: 20px !important;
        background: #ccc !important;
        border-radius: 3px !important;
    }

    /* Номера категорий */
    div[style*="display:grid; grid-template-columns:1fr 1fr"] span[style*="position:absolute"] {
        position: static !important;
        display: inline-block !important;
        margin-bottom: 4px !important;
        font-size: 9px !important;
        padding: 2px 5px !important;
    }

    /* Текст категорий */
    div[style*="display:grid; grid-template-columns:1fr 1fr"] > a > div:last-child {
        flex: 1 !important;
    }

    div[style*="display:grid; grid-template-columns:1fr 1fr"] > a > div:last-child > div:first-child {
        font-size: 13px !important;
        margin-bottom: 3px !important;
    }

    div[style*="display:grid; grid-template-columns:1fr 1fr"] > a > div:last-child > div:last-child {
        font-size: 11px !important;
        line-height: 1.4 !important;
        color: #666 !important;
    }

    /* ========== ПОДКАТЕГОРИИ (subcategories.html) ========== */
    
    /* Layout подкатегорий */
    div[style*="display:grid; grid-template-columns:1fr 1fr; gap:15px"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Карточки подкатегорий */
    div[style*="background:#f9f9f9; padding:15px 20px"] {
        border-radius: 6px !important;
        background: #fff !important;
        border: 1px solid #e0e0e0 !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    }

    /* ========== ИСПРАВЛЕНИЕ БРЕНДОВ В СУБКАТЕГОРИЯХ ========== */

    /* Бренды в subcategories.html - тот же селектор но другой контекст */
    h1 + div[style*="display:flex; gap:25px"] div[style*="width:170px; flex-shrink:0"] {
        width: 100% !important;
        order: 0 !important;
        margin-bottom: 15px !important;
        margin-top: 0 !important;
        display: flex !important;
        gap: 8px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    /* Скрываем заголовок "Все производители" в субкатегориях */
    h1 + div[style*="display:flex; gap:25px"] div[style*="background:#f5f5f5; padding:10px 12px"] {
        display: none !important;
    }

    /* Заголовки групп брендов в субкатегориях */
    h1 + div[style*="display:flex; gap:25px"] div[style*="font-size:10px"] {
        display: none !important;
    }

    /* Карточки брендов в субкатегориях */
    h1 + div[style*="display:flex; gap:25px"] div[style*="padding:18px 14px"] {
        width: 100px !important;
        padding: 12px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 6px !important;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
        text-align: center !important;
        flex: 0 0 auto !important;
        margin: 2px !important;
    }
  
    /* ═══════════════════════════════════════════════════════════════
    ТАБЛИЦА ТОВАРОВ НА МОБИЛЕ — КОМПАКТНЫЕ СТРОКИ
    ═══════════════════════════════════════════════════════════════ */

    /* Хедер таблицы - ИСПРАВЛЕН */
    div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"][style*="background:#fafafa"] {
        display: grid !important;
        grid-template-columns: 35px 1fr 40px 65px 85px !important;
        gap: 4px !important;
        padding: 6px 8px !important;
        font-size: 9px !important;
        align-items: center !important;
        text-transform: uppercase !important;
        font-weight: bold !important;
        color: #888 !important;
    }

    /* Настройка заголовков */
    div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"][style*="background:#fafafa"] > div:nth-child(1) {
        text-align: center !important;
    }

    div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"][style*="background:#fafafa"] > div:nth-child(2) {
        text-align: left !important;
    }

    div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"][style*="background:#fafafa"] > div:nth-child(3) {
        text-align: center !important;
    }

    /* Заменяем заголовки 4-й и 5-й колонок */
    div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"][style*="background:#fafafa"] > div:nth-child(4) {
        display: block !important;
        text-align: right !important;
    }

    div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"][style*="background:#fafafa"] > div:nth-child(4)::before {
        content: "ЦЕНА" !important;
    }

    div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"][style*="background:#fafafa"] > div:nth-child(5) {
        display: none !important;
    }

    div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"][style*="background:#fafafa"] > div:nth-child(6) {
        text-align: center !important;
    }

    /* ─────────────────────────────────────────────────────────────
    СТРОКИ ТОВАРОВ — для всех (включая подгруженные!)
    ───────────────────────────────────────────────────────────── */

    .product-row-wrap > div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"],
    div[data-product-id][style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] {
        display: grid !important;
        grid-template-columns: 35px 1fr 40px 65px 85px !important;
        gap: 4px !important;
        padding: 8px !important;
        font-size: 11px !important;
        align-items: center !important;
        border-bottom: 1px solid #eee !important;
        min-height: 50px !important;
    }

    /* ═══ 1. ФОТО (35px) ═══ */
    .product-row-wrap div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:first-child,
    div[data-product-id][style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:first-child {
        width: 35px !important;
        height: 35px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .product-row-wrap div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:first-child > div,
    div[data-product-id][style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:first-child > div {
        width: 35px !important;
        height: 35px !important;
    }

    .product-row-wrap div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] img,
    div[data-product-id][style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] img {
        width: 35px !important;
        height: 35px !important;
        object-fit: contain !important;
        border: 1px solid #eee !important;
    }

    /* ═══ 2. НАЗВАНИЕ + ХАРАКТЕРИСТИКИ (1fr) ═══ */
    .product-row-wrap div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(2) > div,
    div[data-product-id][style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(2) > div {
        display: none !important; /* СКРЫВАЕМ описание на мобильном */
    }

    .product-row-wrap div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] a,
    div[data-product-id][style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] a {
        color: #333 !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        display: block !important;
        margin-bottom: 2px !important;
    }

    .product-row-wrap div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(2) > div,
    div[data-product-id][style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(2) > div {
        font-size: 9px !important;
        color: #666 !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    .product-row-wrap div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] .details-toggle,
    div[data-product-id][style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] .details-toggle {
        font-size: 9px !important;
        margin-top: 3px !important;
        padding: 2px 6px !important;
        border-radius: 3px !important;
        background: rgba(211, 47, 47, 0.1) !important;
        display: inline-block !important;
        border: 1px solid rgba(211, 47, 47, 0.2) !important;
    }

    /* ═══ 3. ОСТАТОК (40px) ═══ */
    .product-row-wrap div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(3),
    div[data-product-id][style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(3) {
        display: block !important;
        font-size: 10px !important;
        text-align: center !important;
        white-space: nowrap !important;
        width: 40px !important;
    }

    /* ═══ 4. ЦЕНА (65px) — ПОКАЗЫВАЕМ, работает как Цена/Сумма ═══ */
    .product-row-wrap > div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(4),
    div[data-product-id][style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(4) {
        display: block !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #d32f2f !important;
        text-align: right !important;
        white-space: nowrap !important;
        width: 65px !important;
    }

    /* ═══ 5. СУММА (СКРЫВАЕМ на мобиле) ═══ */
    .product-row-wrap > div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(5),
    div[data-product-id][style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(5) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* ═══ 6. ДЕЙСТВИЯ (85px) — КРАСИВЫЕ КНОПКИ ═══ */
    .product-row-wrap div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(6),
    div[data-product-id][style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(6) {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        align-items: center !important;
        width: 85px !important;
    }

    /* ───── КОРЗИНА ───── */
    .product-row-wrap .cart-widget {
        width: 100% !important;
    }

    .product-row-wrap .add-to-cart-btn {
        width: 100% !important;
        padding: 6px 4px !important;
        font-size: 9px !important;
        text-align: center !important;
        white-space: nowrap !important;
        min-height: 26px !important;
        border-radius: 4px !important;
        background: #d32f2f !important;
        color: #fff !important;
        border: none !important;
        font-weight: 600 !important;
    }

    .product-row-wrap .add-to-cart-btn:hover {
        background: #b71c1c !important;
    }

    .product-row-wrap .qty-control-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        width: 100% !important;
        justify-content: center !important;
        background: #f5f5f5 !important;
        padding: 3px !important;
        border-radius: 4px !important;
        border: 1px solid #e0e0e0 !important;
    }

    .product-row-wrap .qty-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 14px !important;
        padding: 0 !important;
        border-radius: 3px !important;
        background: #fff !important;
        border: 1px solid #ccc !important;
        color: #666 !important;
        font-weight: bold !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .product-row-wrap .qty-btn:hover {
        background: #f0f0f0 !important;
        border-color: #d32f2f !important;
        color: #d32f2f !important;
    }

    .product-row-wrap .qty-input {
        width: 32px !important;
        height: 24px !important;
        font-size: 11px !important;
        text-align: center !important;
        padding: 2px !important;
        border: 1px solid #ddd !important;
        border-radius: 3px !important;
        background: #fff !important;
        font-weight: 600 !important;
    }

    .product-row-wrap .qty-input:focus {
        border-color: #d32f2f !important;
        outline: none !important;
    }

    /* ───── ИКОНКИ СРАВНЕНИЕ/ИЗБРАННОЕ ───── */
    .product-row-wrap div[style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(6) > div:last-child,
    div[data-product-id][style*="grid-template-columns:35px 1fr 60px 60px 70px 180px"] > div:nth-child(6) > div:last-child {
        display: flex !important;
        gap: 4px !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .product-row-wrap .prod-icon-btn {
        width: 28px !important;
        height: 28px !important;
        padding: 6px !important;
        border-radius: 4px !important;
        background: #fff !important;
        border: 1px solid #e0e0e0 !important;
        color: #888 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
    }

    .product-row-wrap .prod-icon-btn:hover {
        background: #f5f5f5 !important;
        border-color: #d32f2f !important;
        color: #d32f2f !important;
    }

    .product-row-wrap .prod-icon-btn.prod-icon-active {
        background: rgba(211, 47, 47, 0.1) !important;
        border-color: #d32f2f !important;
        color: #d32f2f !important;
    }

    .product-row-wrap .prod-icon-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* ───── ПОДРОБНОСТИ ТОВАРА ───── */
    .product-row-wrap .product-details[style*="display: block"],
    div[id^="details-"][style*="display: block"] {
        display: block !important;
        grid-column: 1 / -1 !important;
        margin-top: 8px !important;
        padding: 10px !important;
        background: #f9f9f9 !important;
        border: 1px solid #eee !important;
        border-radius: 4px !important;
        font-size: 11px !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Дополнительные стили для iPhone */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .mobile-bottom-nav {
            padding-bottom: calc(6px + env(safe-area-inset-bottom));
        }
        
        body {
            padding-bottom: calc(65px + env(safe-area-inset-bottom)) !important;
        }
    }

    /* ДОПОЛНИТЕЛЬНАЯ оптимизация */
    .mobile-nav-item,
    .mobile-nav-item * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Включаем GPU ускорение */
    body {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }  

}
.product-details {
    display: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
}

.product-details[style*="display: block"] {
    display: block !important;
    padding: 10px !important;
    margin-top: 8px !important;
    background: #fafafa !important;
    border: 1px solid #eee !important;
}

.product-details.open {
    display: block !important;
}
.badge:empty {
    display: none !important;
}

/* ============================================
   МОБИЛЬНАЯ ПАНЕЛЬ КАТЕГОРИЙ — ПОД ПОИСКОМ
   ============================================ */

@media (max-width: 768px) {
    .mobile-categories-bar {
        display: block !important;
        background: #f8f9fa !important;
        border-bottom: 1px solid #e0e0e0 !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }

    .mobile-cats-scroll {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 8px !important;
        padding: 0 15px !important;
    }

    .mobile-cats-scroll::-webkit-scrollbar {
        display: none !important;
    }

    .mobile-cat-chip {
        flex-shrink: 0 !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        color: #555 !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
        border-radius: 20px !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }

    .mobile-cat-chip:first-child {
        background: #f0f0f0 !important;
        font-weight: 600 !important;
        color: #333 !important;
        border-color: #ccc !important;
    }

    .mobile-cat-chip.active {
        color: #fff !important;
        background: #d32f2f !important;
        border-color: #d32f2f !important;
        font-weight: 600 !important;
        box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4) !important;
        transform: translateY(-1px) !important;
    }

    .mobile-cat-chip:hover:not(.active) {
        border-color: #d32f2f !important;
        color: #d32f2f !important;
        background: #fff5f5 !important;
        transform: translateY(-1px) !important;
    }
}

@media (min-width: 769px) {
    .mobile-categories-bar {
        display: none !important;
    }
}
/* ============================================
   БОЛЬШОЙ ВИДЖЕТ КОРЗИНЫ (карточка товара)
   ============================================ */

.cart-widget-lg {
    display: inline-block;
}

.btn-cart-lg {
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-weight: 600;
    border-radius: 3px;
    height: 40px;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.btn-cart-lg:hover {
    background: #b71c1c !important;
}

.cart-widget-lg .qty-control-wrapper {
    justify-content: flex-start;   /* выравнивание влево как на макете */
    gap: 4px;
}

/* Большие кнопки +/- */
.qty-btn-lg {
    width: 38px !important;
    height: 38px !important;
    font-size: 20px !important;
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.15s ease;
    line-height: 1;
}

.qty-btn-lg:hover {
    background: #f5f5f5;
    border-color: #d32f2f;
    color: #d32f2f;
}

.qty-btn-lg:active {
    background: #e8e8e8;
    transform: scale(0.95);
}

/* Большое поле ввода */
.qty-input-lg {
    width: 60px !important;
    height: 38px !important;
    font-size: 16px !important;
    font-weight: 600;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
}

.qty-input-lg:focus {
    outline: none;
    border-color: #d32f2f;
}

/* ============================================
   ВИДЖЕТ КОРЗИНЫ — КАТАЛОГ (МАЛЕНЬКИЙ)
   ============================================ */

.cart-widget {
    display: inline-block;
}

.cart-widget .quantity-controls {
    display: none;
}

.cart-widget .add-to-cart-btn {
    padding: 5px 12px;
    font-size: 11px;
    white-space: nowrap;
}

.cart-widget .qty-control-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.cart-widget .qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.cart-widget .qty-input {
    width: 45px;
    height: 24px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 4px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 600;
}

/* ============================================
   ВИДЖЕТ КОРЗИНЫ — СТРАНИЦА ТОВАРА (БОЛЬШОЙ)
   ============================================ */

.cart-widget-lg {
    display: inline-block;
}

.cart-widget-lg .add-to-cart-btn {
    padding: 10px 20px;
    font-size: 13px;
    min-width: 180px;
    text-align: center;
}

.cart-widget-lg .qty-control-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    min-width: 180px;
}

.cart-widget-lg .qty-btn-lg {
    width: 38px !important;
    height: 38px !important;
    font-size: 20px !important;
}

.cart-widget-lg .qty-input-lg {
    width: 60px !important;
    height: 38px !important;
    font-size: 16px !important;
    text-align: center !important;
}
/* ==========================================================================
   ИСПРАВЛЕНИЯ МОБИЛЬНЫХ БАГОВ — ТОЧЕЧНО
   ========================================================================== */

@media (max-width: 768px) {
    
    /* ═══════════════════════════════════════════════════════════════
       1. ВКЛАДКИ СТАТЕЙ — НЕ ОБРЕЗАТЬ, ДАТЬ СКРОЛЛ
       ═══════════════════════════════════════════════════════════════ */
    
    /* Контейнер с табами — горизонтальный скролл */
    .content-header,
    div[style*="border-bottom: 1px solid #e0e0e0"],
    .tabs-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 0 10px !important;
        margin: 0 -10px 15px -10px !important;
        padding: 10px !important;
    }
    
    .content-header::-webkit-scrollbar,
    div[style*="border-bottom: 1px solid #e0e0e0"]::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Ссылки табов — не сжимать */
    .content-actions,
    .content-actions a,
    div[style*="gap: 15px"] a {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    
    /* ═══════════════════════════════════════════════════════════════
       2. ТЕКУЩИЕ ЗАКАЗЫ — ТЕЛЕФОН ПОД ФАМИЛИЕЙ (НЕ ВПРАВО)
       ═══════════════════════════════════════════════════════════════ */
    
    /* Первая ячейка таблицы заказов */
    .table td:first-child,
    .orders-table td:first-child {
        max-width: 180px !important;
        min-width: 150px !important;
    }
    
    /* Телефон — на новую строку, без отступа */
    .table td:first-child span[style*="color:#d32f2f"],
    .table td:first-child a[href^="tel:"] {
        display: block !important;
        margin-left: 0 !important;
        margin-top: 3px !important;
        font-size: 11px !important;
        word-break: break-all !important;
    }
    
    
    /* ═══════════════════════════════════════════════════════════════
       3. АДРЕС ДОСТАВКИ — НЕ НА 3 СТРОКИ, КОМПАКТНО
       ═══════════════════════════════════════════════════════════════ */
    
    /* Блок с адресом в заказе */
    .order-info,
    div[style*="line-height: 1.9"],
    .delivery-address-block {
        line-height: 1.3 !important;
        font-size: 12px !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
    }
    
    /* Убираем br в адресе */
    .order-info br {
        display: none !important;
    }
    
    /* Адрес — с переносом слов */
    .order-info,
    .delivery-address {
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    
    /* ═══════════════════════════════════════════════════════════════
       4. УВЕДОМЛЕНИЯ — НЕ ШИРЕ ЭКРАНА (РАБОТАЕТ)
       ═══════════════════════════════════════════════════════════════ */
    
    /* Карточка уведомления */
    .notification-card {
        max-width: calc(100% - 20px) !important;
        margin: 0 10px 15px 10px !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }
    
    /* Заголовок уведомления */
    .notification-title {
        font-size: 13px !important;
        word-wrap: break-word !important;
        max-width: calc(100% - 60px) !important;
    }
    
    /* Иконка уведомления */
    .notification-icon-wrapper {
        width: 45px !important;
        height: 45px !important;
        flex-shrink: 0 !important;
    }
    
    
    /* ═══════════════════════════════════════════════════════════════
       5. КНОПКИ "ВСЕ" И "АКЦИИ" — НЕ ЗАХОДЯТ ЗА ЭКРАН
       ═══════════════════════════════════════════════════════════════ */
    
    /* Контейнер кнопок в уведомлениях */
    .notification-actions {
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-top: 8px !important;
        max-width: 100% !important;
    }
    
    /* Кнопки — компактнее */
    .notification-actions button {
        padding: 4px 10px !important;
        font-size: 10px !important;
        flex: 0 0 auto !important;
        min-width: auto !important;
    }
    
    /* Кнопка "Все" — первая */
    .notification-actions button:first-child {
        margin-right: 0 !important;
    }
    
    /* Кнопка "Акции" — вторая */
    .notification-actions button:last-child {
        margin-left: 0 !important;
    }
    
    
    /* ═══════════════════════════════════════════════════════════════
       6. ВИДЖЕТ "- 1 +" — НЕ НАЛЕЗАЕТ НА ЦЕНУ
       ═══════════════════════════════════════════════════════════════ */
    
    /* Цена товара — отступ справа */
    .product-price,
    .product-row-price,
    div[style*="text-align:right"][style*="font-weight:600"] {
        margin-right: 8px !important;
        padding-right: 5px !important;
        min-width: 55px !important;
        flex-shrink: 0 !important;
    }
    
    /* Виджет корзины — отступ слева */
    .cart-widget,
    .cart-widget-cell,
    .quantity-controls {
        margin-left: 5px !important;
        padding-left: 3px !important;
        flex-shrink: 0 !important;
    }
    
    /* На странице товара — цена и виджет друг под другом */
    .product-info .product-price,
    .cart-widget-lg {
        display: block !important;
        margin: 10px 0 !important;
        width: 100% !important;
    }
    
    /* Виджет на странице товара — на всю ширину */
    .cart-widget-lg .qty-control-wrapper {
        justify-content: center !important;
        margin-top: 8px !important;
    }
    
    
    /* ═══════════════════════════════════════════════════════════════
       7. КОРЗИНА — НЕ ЛИСТАТЬ ВПРАВО, ВСЁ ВИДНО
       ═══════════════════════════════════════════════════════════════ */
    
    /* Таблица корзины — скролл с отступами */
    .cart-table,
    .table.cart,
    .cart-container .table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: calc(100% + 20px) !important;
        margin: 0 -10px !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
    
    /* Ячейки таблицы — минимальная ширина */
    .cart-table td,
    .cart-table th {
        min-width: 70px !important;
        padding: 8px 5px !important;
        font-size: 11px !important;
    }
    
    /* Сумма товара — видна полностью */
    .cart-table td:nth-last-child(2),
    .cart-item-total {
        min-width: 90px !important;
        text-align: right !important;
        padding-right: 10px !important;
    }
    
    /* Крестик удаления — виден */
    .cart-table td:last-child,
    .cart-remove-cell {
        min-width: 35px !important;
        text-align: center !important;
        padding-left: 8px !important;
    }
    
    /* Кнопка удаления — иконка */
    .cart-remove-btn,
    .cart-remove-btn button {
        width: 26px !important;
        height: 26px !important;
        padding: 5px !important;
        font-size: 14px !important;
        line-height: 1 !important;
        background: #fff !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 3px !important;
        color: #999 !important;
    }
    
    .cart-remove-btn:hover,
    .cart-remove-btn button:hover {
        background: #ffebee !important;
        border-color: #d32f2f !important;
        color: #d32f2f !important;
    }
    
    /* Виджет +/- в корзине — компактнее */
    .cart-table .qty-control-wrapper {
        gap: 3px !important;
        justify-content: center !important;
    }
    
    .cart-table .qty-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 13px !important;
        padding: 0 !important;
    }
    
    .cart-table .qty-input {
        width: 38px !important;
        height: 24px !important;
        font-size: 11px !important;
        padding: 2px !important;
    }
    
    
    /* ═══════════════════════════════════════════════════════════════
       8. ОБЩИЕ ИСПРАВЛЕНИЯ — КОНТЕЙНЕРЫ НЕ ВЫХОДЯТ
       ═══════════════════════════════════════════════════════════════ */
    
    /* Все контейнеры — с отступами */
    .container,
    .lk-layout,
    .lk-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Flex-контейнеры — переносят */
    .lk-layout,
    .order-header,
    .content-header,
    .notification-card {
        flex-wrap: wrap !important;
    }
    
    /* Заголовки — переносят текст */
    .lk-title,
    .content-title,
    .order-number,
    h1, h2, h3 {
        word-wrap: break-word !important;
        max-width: 100% !important;
        font-size: 16px !important;
    }
    
    /* Сайдбар ЛК — на всю ширину */
    .lk-sidebar {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* Меню ЛК — плитки */
    .lk-menu {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .lk-menu li {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 140px !important;
    }
}

/* ==========================================================================
   ВКЛАДКИ СТАТЕЙ — МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================================== */

@media (max-width: 768px) {
    
    /* Контейнер с табами статей/новостей */
    .content-header,
    .tabs-container,
    div[style*="border-bottom: 1px solid #e0e0e0"]:has(a),
    div[style*="gap: 15px"]:has(a[href*="current"]),
    .content-actions {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        white-space: nowrap !important;
        padding: 10px !important;
        margin: 0 -10px 15px -10px !important;
        display: flex !important;
        gap: 8px !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }
    
    /* Скрываем скроллбар */
    .content-header::-webkit-scrollbar,
    .tabs-container::-webkit-scrollbar,
    .content-actions::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Ссылки табов — не сжимать */
    .content-actions a,
    .content-header a,
    div[style*="gap: 15px"] a {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
        display: inline-block !important;
    }
    
    /* Активная вкладка — выделена */
    .content-actions a.active,
    .content-header a.active {
        border-bottom-width: 2px !important;
        font-weight: 600 !important;
    }
}

/* ==========================================================================
   СТРАНИЦА ЗАКАЗА — ПЕРЕНОС АДРЕСА ПОД ТРЕК-НОМЕР
   ========================================================================== */

@media (max-width: 768px) {
    
    /* Контейнер заказа — вертикально */
    .order-header,
    .order-info-block,
    div[style*="display:flex"][style*="gap:30px"] {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    /* Левая колонка (информация) — на всю ширину */
    .order-info,
    div[style*="flex:1"] {
        width: 100% !important;
        min-width: 0 !important;
        order: 2 !important; /* После правой колонки */
    }
    
    /* Правая колонка (действия + трек) — сверху */
    .order-side-actions,
    div[style*="min-width: 200px"] {
        width: 100% !important;
        order: 1 !important; /* Первая */
        margin-bottom: 15px !important;
    }
    
    /* Блок с адресом доставки — переносим под трек-номер */
    .order-info b,
    .order-info br,
    div[style*="line-height: 1.9"] {
        display: block !important;
    }
    
    /* "Заказ от:" — отдельный блок */
    .order-info > b:first-of-type,
    div[style*="line-height: 1.9"] > b:first-of-type {
        display: block !important;
        margin-top: 15px !important;
        padding-top: 15px !important;
        border-top: 1px solid #e0e0e0 !important;
    }
    
    /* Адрес доставки — отдельный блок */
    .order-info > b:nth-of-type(2),
    div[style*="line-height: 1.9"] > b:nth-of-type(2) {
        display: block !important;
        margin-top: 12px !important;
        padding-top: 12px !important;
        border-top: 1px solid #e0e0e0 !important;
    }
    
    /* Телефон — на новую строку */
    .order-info span[style*="color:#d32f2f"],
    .order-info a[href^="tel:"] {
        display: block !important;
        margin-left: 0 !important;
        margin-top: 4px !important;
        font-size: 11px !important;
    }
    
    /* Трек-номер — всегда виден */
    .delivery-selected,
    .tracking-block,
    div[style*="background:#e3f2fd"] {
        order: 0 !important;
        margin-bottom: 15px !important;
    }
}

/* ==========================================================================
   ВКЛАДКИ СТАТЕЙ/НОВОСТЕЙ — ИСПРАВЛЕНИЯ
   ========================================================================== */

@media (max-width: 768px) {
    
    /* Контейнер табов — горизонтальный скролл */
    .content-header,
    .content-actions,
    .tabs-wrapper,
    div[style*="justify-content: space-between"][style*="align-items: baseline"] {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 10px !important;
        padding: 10px !important;
        margin: 0 -10px 15px -10px !important;
        max-width: 100% !important;
    }
    
    /* Скрываем скроллбар */
    .content-header::-webkit-scrollbar,
    .content-actions::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Ссылки табов — не сжимать */
    .content-actions a,
    .content-header a,
    div[style*="justify-content: space-between"] a {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
        display: inline-block !important;
        order: 1 !important;
    }
    
    /* Активная вкладка — выделена */
    .content-actions a.active,
    .content-header a.active {
        color: #d32f2f !important;
        font-weight: 600 !important;
        text-decoration: underline !important;
    }
    
    /* Заголовок страницы — на всю строку */
    .content-title,
    .lk-title,
    h1, h2 {
        width: 100% !important;
        order: 0 !important;
        margin-bottom: 10px !important;
        font-size: 16px !important;
    }
}

/* ==========================================================================
   СОРТИРОВКА СТАТЕЙ — ПОРЯДОК ЭЛЕМЕНТОВ
   ========================================================================== */

/* На десктопе — порядок */
.content-actions,
.sort-options,
.filter-options {
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

/* Ссылки сортировки — порядок через order */
.content-actions a[href*="popular"],
a[href*="popularity"],
.sort-popular {
    order: 1 !important; /* Популярность — ПЕРВАЯ */
}

.content-actions a[href*="group"],
a[href*="group"],
.sort-group {
    order: 2 !important; /* Группа — ВТОРАЯ */
}

.content-actions a[href*="date"],
a[href*="date"],
.sort-date {
    order: 3 !important; /* Дата — ТРЕТЬЯ */
}

/* На мобильном — дату скрываем вообще */
@media (max-width: 768px) {
    
    /* Сортировка — компактно */
    .content-actions,
    .sort-options {
        gap: 8px !important;
        padding: 10px !important;
        margin: 0 -10px 15px -10px !important;
    }
    
    /* Дату публикации — СКРЫВАЕМ */
    .content-actions a[href*="date"],
    a[href*="date"],
    .sort-date,
    span[style*="date"],
    .publication-date,
    .article-date,
    .news-date {
        display: none !important;
    }
    
    /* Популярность — первая */
    .content-actions a[href*="popular"],
    a[href*="popularity"],
    .sort-popular {
        order: 1 !important;
    }
    
    /* Группа — вторая */
    .content-actions a[href*="group"],
    a[href*="group"],
    .sort-group {
        order: 2 !important;
    }
    
    /* Дата в карточках статей — тоже скрыть */
    .article-card .date,
    .news-item .date,
    .publication-date,
    div[style*="color:#999"][style*="font-size:13px"] {
        display: none !important;
    }
}

/* ==========================================================================
   ЕДИНЫЙ СТИЛЬ ВКЛАДОК — ВСЕ СТРАНИЦЫ
   ========================================================================== */

/* Контейнер табов — одинаковый везде */
.content-header,
.content-actions,
.tabs-container,
div[style*="border-bottom: 1px solid #e0e0e0"]:has(a) {
    display: flex !important;
    gap: 10px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    margin-bottom: 20px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}

/* Скрываем скроллбар */
.content-header::-webkit-scrollbar,
.content-actions::-webkit-scrollbar {
    display: none !important;
}

/* Ссылки табов — единый стиль */
.content-actions a,
.content-header a,
.tabs-container a {
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #666 !important;
    white-space: nowrap !important;
    border-radius: 20px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

/* Ховер эффект */
.content-actions a:hover,
.content-header a:hover {
    border-color: #d32f2f !important;
    color: #d32f2f !important;
    background: #fff5f5 !important;
}

/* Активная вкладка — красная */
.content-actions a.active,
.content-header a.active {
    background: #d32f2f !important;
    color: #fff !important;
    border-color: #d32f2f !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3) !important;
}

/* На мобильном — скролл */
@media (max-width: 768px) {
    .content-header,
    .content-actions,
    .tabs-container {
        padding: 10px !important;
        margin: 0 -10px 20px -10px !important;
        gap: 8px !important;
    }
    
    .content-actions a,
    .content-header a {
        padding: 8px 14px !important;
        font-size: 11px !important;
    }
}

/* ==========================================================================
   LAYOUT НОВОСТЕЙ/СТАТЕЙ — ПРАВИЛЬНОЕ РЕШЕНИЕ
   ========================================================================== */

/* Основные классы раскладки */
.page-tabs {
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

.page-tabs-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
}

.page-tab {
    padding: 11px 18px;
    font-size: 13px;
    border-bottom: 2px solid transparent;
    display: block;
    color: #333;
}

.page-tab.active {
    border-bottom-color: #d32f2f;
    color: #d32f2f;
}

.content-layout {
    display: flex;
    gap: 35px;
}

.content-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.content-main {
    flex: 1;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.section-title-sm {
    font-size: 16px;
    font-weight: bold;
    margin: 30px 0 15px;
}

.news-box {
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.news-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.news-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.news-text {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.news-footer {
    padding: 10px 15px;
}

.popular-box {
    border: 1px solid #e0e0e0;
}

.popular-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.popular-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 3px;
    line-height: 1.4;
}

.popular-count {
    font-size: 11px;
    color: #999;
}

.techdocs-block {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.techdocs-icon {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
    color: #ccc;
    font-size: 50px;
}

.techdocs-text {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.articles-grid-four {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
}

.article-card {
    border: 1px solid #eee;
}

.article-header {
    padding: 10px 12px;
}

.article-date {
    font-size: 11px;
    color: #999;
}

.article-title {
    font-size: 13px;
    font-weight: bold;
    margin: 4px 0;
    line-height: 1.4;
}

.article-image {
    width: 100%;
    height: 115px;
    object-fit: cover;
    display: block;
}

.article-image-placeholder {
    width: 100%;
    height: 115px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 40px;
}

.article-body {
    padding: 10px 12px;
}

.article-preview {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.content-block {
    border: 1px solid #eee;
    padding: 30px;
    text-align: center;
    color: #999;
    margin-bottom: 15px;
    font-size: 13px;
}

/* Специальные стили для news страниц */
.news-item-left {
    border-left: 3px solid #eee;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.news-item-left .news-date {
    margin-bottom: 5px;
}

.news-item-simple {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

/* ==========================================================================
   МОБИЛЬНЫЕ УСТРОЙСТВА — ВЕРТИКАЛЬНАЯ РАСКЛАДКА
   ========================================================================== */

@media (max-width: 768px) {
    
    /* Табы — горизонтальный скролл */
    .page-tabs-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 10px;
    }
    
    .page-tabs-inner::-webkit-scrollbar {
        display: none;
    }
    
    .page-tab {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    /* Основная раскладка — вертикально */
    .content-layout {
        flex-direction: column;
        gap: 0;
    }
    
    /* Боковая панель — сверху, на всю ширину */
    .content-sidebar {
        width: 100%;
        order: 1;
        margin-bottom: 25px;
    }
    
    /* Основной контент — снизу */
    .content-main {
        order: 2;
    }
    
    /* Заголовки — компактнее */
    .section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .section-title-sm {
        font-size: 15px;
        margin: 15px 0 8px;
    }
    
    /* Сетка статей — одна колонка */
    .articles-grid,
    .articles-grid-four {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    /* Карточки статей — улучшенный дизайн */
    .article-card {
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    
    /* Картинки статей — выше */
    .article-image,
    .article-image-placeholder {
        height: 140px;
    }
    
    /* Техдокументация — вертикально */
    .techdocs-block {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        order: 3;
        margin-top: 30px;
    }
    
    .techdocs-icon {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Блоки контента — компактнее */
    .content-block {
        padding: 20px 15px;
        margin-bottom: 12px;
        border-radius: 6px;
        font-size: 12px;
    }
    
    /* Новости — компактнее */
    .news-box {
        margin-bottom: 15px;
    }
    
    .news-item,
    .popular-item {
        padding: 10px 12px;
    }
    
    .news-footer {
        padding: 8px 12px;
    }
}

/* ==========================================================================
   УЛУЧШЕНИЯ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ НОВОСТЕЙ
   ========================================================================== */

@media (max-width: 768px) {
    
    /* Специальные стили для новостей с левой границей */
    .news-item-left {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-left: 3px solid #d32f2f !important;
        border-radius: 0 6px 6px 0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        margin-bottom: 12px;
        padding: 12px 15px;
    }
    
    /* Простые элементы новостей */
    .news-item-simple {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        margin-bottom: 8px;
        padding: 12px 15px;
    }
    
    /* Ссылка "Все новости" */
    .news-sidebar a[href*="news-list"] {
        display: inline-block;
        margin-top: 10px;
        margin-bottom: 20px;
        padding: 8px 15px;
        background: rgba(211, 47, 47, 0.1);
        border-radius: 15px;
        border: 1px solid rgba(211, 47, 47, 0.2);
        font-size: 12px;
        color: #d32f2f;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .news-sidebar a[href*="news-list"]:hover {
        background: rgba(211, 47, 47, 0.15);
        border-color: #d32f2f;
    }
    
    /* Заголовки на мобильном — более выразительные */
    .content-sidebar .section-title {
        background: #f8f9fa;
        margin: 0 -10px 15px -10px;
        padding: 12px 15px;
        border-left: 4px solid #d32f2f;
        font-size: 16px;
        color: #333;
    }
    
    .content-sidebar .section-title-sm {
        background: #f8f9fa;
        margin: 20px -10px 12px -10px;
        padding: 10px 15px;
        border-left: 3px solid #999;
        font-size: 15px;
        color: #333;
    }
    
    /* Контейнер сайдбара — красивые отступы */
    .content-sidebar {
        background: #fafafa;
        margin: 0 -10px 25px -10px;
        padding: 15px 10px 20px 10px;
        border-radius: 8px;
    }
    
    /* Контейнер основного контента */
    .content-main {
        background: #fff;
    }
    
    /* Популярные статьи — более красивый дизайн */
    .popular-item {
        background: #fff !important;
        border: 1px solid #e0e0e0 !important;
        border-bottom: 1px solid #e0e0e0 !important;
        border-radius: 6px !important;
        margin-bottom: 8px !important;
        padding: 12px 15px !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
        transition: box-shadow 0.2s ease !important;
    }
    
    .popular-item:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* Убираем фон и границы у родительских контейнеров */
    .popular-box {
        background: transparent !important;
        border: none !important;
    }
}
/* ==========================================================================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ ДИЗАЙНА
   ========================================================================== */

/* Более красивые табы на мобильном */
@media (max-width: 768px) {
    
    .page-tabs {
        background: #f8f9fa !important;
        border-bottom: 1px solid #e0e0e0 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    .page-tab {
        background: #fff !important;
        margin: 6px 4px !important;
        border-radius: 15px !important;
        border: 1px solid #ddd !important;
        color: #666 !important;
        font-weight: 500 !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    }
    
    .page-tab:hover {
        border-color: #d32f2f !important;
        color: #d32f2f !important;
        background: #fff5f5 !important;
    }
    
    .page-tab.active {
        background: #d32f2f !important;
        color: #fff !important;
        border-color: #d32f2f !important;
        font-weight: 600 !important;
        box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3) !important;
        transform: translateY(-1px) !important;
    }
    
    /* Контейнер — отступы по бокам */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Техдокументация — более красивая */
    .techdocs-block {
        background: #f9f9f9 !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        margin: 25px 0 20px 0 !important;
        padding: 20px 15px !important;
    }
    
    .techdocs-icon {
        background: rgba(211, 47, 47, 0.1) !important;
        border-radius: 50% !important;
        width: 80px !important;
        height: 80px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 15px auto !important;
    }
}

/* ==========================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ СПИСКА НОВОСТЕЙ
   ========================================================================== */

/* Карточка новости в списке */
.news-article-card {
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    border-radius: 6px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.news-article-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Дата новости */
.news-article-date {
    text-align: center;
    color: #999;
    font-size: 13px;
    width: 40px;
    flex-shrink: 0;
    line-height: 1.3;
}

/* Контент новости */
.news-article-content {
    flex: 1;
}

.news-article-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.news-article-preview {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-article-link {
    color: #d32f2f;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.news-article-link:hover {
    text-decoration: underline;
}

/* Пагинация */
.pagination-wrapper {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.pagination-link {
    margin: 0 3px;
    padding: 6px 10px;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.pagination-link:hover {
    background: #f5f5f5;
    color: #d32f2f;
}

.pagination-current {
    margin: 0 3px;
    padding: 6px 10px;
    background: #d32f2f;
    color: #fff;
    border-radius: 3px;
    font-weight: bold;
}

/* Сайдбар рассылки */
.newsletter-sidebar {
    width: 220px;
}

.newsletter-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.newsletter-text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    box-sizing: border-box;
}

.newsletter-input:focus {
    outline: none;
    border-color: #d32f2f;
}

.newsletter-button {
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ СТРАНИЦЫ НОВОСТЕЙ
   ========================================================================== */

@media (max-width: 768px) {
    
    /* Карточка новости — вертикально */
    .news-article-card {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        margin-bottom: 12px;
    }
    
    /* Дата новости */
    .news-article-date {
        width: 100%;
        text-align: left;
        order: -1;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 8px;
        margin-bottom: 8px;
        font-size: 12px;
    }
    
    /* Заголовок новости */
    .news-article-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    /* Превью новости */
    .news-article-preview {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    /* Ссылка */
    .news-article-link {
        font-size: 12px;
        display: inline-block;
        padding: 6px 12px;
        background: rgba(211, 47, 47, 0.1);
        border-radius: 15px;
        border: 1px solid rgba(211, 47, 47, 0.2);
    }
    
    /* Сайдбар рассылки — снизу */
    .newsletter-sidebar {
        width: 100%;
        order: 2;
        background: #f9f9f9;
        padding: 15px;
        border-radius: 8px;
        margin-top: 20px;
    }
    
    .newsletter-title {
        text-align: center;
        margin-bottom: 12px;
    }
    
    .newsletter-text {
        text-align: center;
        margin-bottom: 15px;
    }
    
    /* Пагинация — компактнее */
    .pagination-wrapper {
        margin-top: 20px;
        font-size: 12px;
    }
    
    .pagination-link,
    .pagination-current {
        padding: 8px 10px;
        margin: 0 2px;
    }
}

/* ==========================================================================
   КАТАЛОГ ТОВАРОВ — ПРАВИЛЬНЫЙ LAYOUT
   ========================================================================== */

.catalog-layout {
    display: flex;
    gap: 15px;
}

.catalog-sidebar {
    width: 160px;
    flex-shrink: 0;
    font-size: 11px;
}

.catalog-content {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   ФИЛЬТРЫ — СТИЛИ
   ========================================================================== */

.filter-group {
    margin-bottom: 12px;
}

.filter-group-title {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.filter-option {
    display: block;
    margin-bottom: 3px;
    cursor: pointer;
    font-size: 11px;
}

.filter-option input {
    margin-right: 4px;
}

.filter-range {
    display: flex;
    gap: 3px;
    align-items: center;
    margin-top: 4px;
}

.filter-range-input {
    width: 45px;
    padding: 3px;
    font-size: 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.filter-range-btn {
    margin-top: 4px;
    padding: 3px 8px;
    font-size: 10px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 2px;
}

.filter-range-btn:hover {
    background: #e8e8e8;
}

/* ==========================================================================
   ТАБЛИЦА ТОВАРОВ — ИСПРАВЛЕНИЯ GRID
   ========================================================================== */

/* Убеждаемся что grid не ломается */
.catalog-content .products-table-header,
.catalog-content .product-row-wrap > div[style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: 35px 1fr 60px 60px 70px 180px !important;
    gap: 6px !important;
}

/* ==========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ КАТАЛОГА
   ========================================================================== */

@media (max-width: 768px) {
    
    .catalog-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    .catalog-sidebar {
        width: 100%;
        order: 2;
        background: #f9f9f9;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
    }
    
    .catalog-content {
        order: 1;
    }
    
    /* Фильтры — компактнее */
    .filter-group {
        margin-bottom: 15px;
    }
    
    .filter-group-title {
        background: #fff;
        padding: 8px 12px;
        margin: 0 -15px 8px -15px;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
    }
    
    .filter-option {
        background: #fff;
        padding: 8px 12px;
        margin: 2px 0;
        border-radius: 4px;
        border: 1px solid #e8e8e8;
    }

        
    /* ТАБЛИЦА НА МОБИЛЬНОМ — используем существующие стили */
    .catalog-content .products-table-header {
        display: grid !important;
        grid-template-columns: 35px 1fr 40px 65px 85px !important;
    }
    
    .catalog-content .product-row-wrap > div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 35px 1fr 40px 65px 85px !important;
    }
}

/* ==========================================================================
   БРЕНДЫ — ПРОСТАЯ ТАБЛИЦА
   ========================================================================== */
   
    /* ═══ ФИЛЬТРЫ ═══ */
    
    /* Заголовки фильтров */
    .container > div[style*="display:flex; gap:15px"] > div[style*="width:160px"] > div[style*="margin-bottom:12px"] {
        margin-bottom: 15px !important;
    }
    
    .container > div[style*="display:flex; gap:15px"] > div[style*="width:160px"] > div[style*="margin-bottom:12px"] > div[style*="font-weight:bold"] {
        background: #fff !important;
        padding: 8px 12px !important;
        margin: 0 -15px 8px -15px !important;
        border-radius: 6px !important;
        border: 1px solid #e0e0e0 !important;
        text-align: center !important;
    }
    
    /* Опции фильтров */
    .container > div[style*="display:flex; gap:15px"] > div[style*="width:160px"] label {
        background: #fff !important;
        padding: 8px 12px !important;
        margin: 2px 0 !important;
        border-radius: 4px !important;
        border: 1px solid #e8e8e8 !important;
        display: block !important;
    }

    /* Опции фильтров */
    .container > div[style*="display:flex; gap:15px"] > div[style*="width:160px"] label {
        background: #fff !important;
        padding: 8px 12px !important;
        margin: 2px 0 !important;
        border-radius: 4px !important;
        border: 1px solid #e8e8e8 !important;
        display: block !important;
    }

/* ==========================================================================
   LAYOUT КАТАЛОГА ТОВАРОВ (products.html)
   ========================================================================== */

/* Основной контейнер каталога */
.catalog-main-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Левая колонка (фильтры + бренды) */
.catalog-sidebar-wrapper {
    width: 170px;
    flex-shrink: 0;
}

/* Правая колонка (товары) */
.catalog-products-wrapper {
    flex: 1;
    min-width: 0; /* Чтобы не вылезал за пределы */
}

/* Блок фильтров */
.filters-block {
    margin-bottom: 20px;
}

/* Блок брендов */
.brands-block {
    margin-top: 20px;
}

/* ─── МОБИЛЬНАЯ ВЕРСИЯ КАТАЛОГА ─── */
@media (max-width: 768px) {
    
    /* Каталог — вертикально */
    .catalog-main-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Левая колонка — только фильтры */
    .catalog-sidebar-wrapper {
        width: 100%;
        order: 2; /* После товаров */
    }
    
    /* Товары — первые */
    .catalog-products-wrapper {
        order: 1;
        width: 100%;
    }
    
    /* Фильтры — компактнее */
    .filters-block {
        background: #f9f9f9;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 0;
    }
}

/* ==========================================================================
   БРЕНДЫ В САЙДБАРЕ — УНИВЕРСАЛЬНЫЕ СТИЛИ
   ========================================================================== */

/* ─── ДЕСКТОП (по умолчанию) ─── */

.brands-sidebar {
    width: 170px;
    flex-shrink: 0;
    margin-top: 15px;
}

/* Кнопка "Все производители" */
.brands-all-btn {
    display: block;
    background: #d32f2f;
    color: #fff !important;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    text-decoration: none;
    text-align: center;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.brands-all-btn:hover {
    background: #b71c1c;
    color: #fff !important;
}

/* Заголовки групп брендов */
.brands-group-title {
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
    padding: 6px 12px 4px;
    letter-spacing: 1px;
    border-top: 2px solid #eee;
    margin-top: 6px;
    background: #f5f5f5;
}

/* Первый заголовок — без отступа сверху */
.brands-sidebar .brands-group-title:first-of-type {
    margin-top: 0;
    border-top: none;
}

/* Карточка бренда — ВЕРТИКАЛЬНАЯ ТАБЛИЧКА */
.brand-card {
    display: block;
    padding: 10px 8px;
    border: 1px solid #eee;
    background: #fff;
    text-align: center;
    color: #666;
    transition: background 0.15s ease, border-color 0.15s ease;
    margin-top: -1px; /* Склеиваем границы */
}

/* Первая карточка после кнопки "Все производители" */
.brands-all-btn + .brand-card {
    margin-top: 8px; /* Отступ между кнопкой и первым брендом */
}

.brand-card:hover {
    background: #f9f9f9;
    border-color: #d32f2f;
    color: #d32f2f;
    z-index: 1;
    position: relative;
}

.brand-card img {
    max-height: 32px;
    width: auto;
    display: inline-block;
}

/* ─── МОБИЛЬНЫЕ (<768px) ─── */

@media (max-width: 768px) {
    
    /* Контейнер брендов */
    .brands-sidebar {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 15px 12px !important;
        background: #f9f9f9 !important;
        border-radius: 8px !important;
        order: 0 !important; /* Бренды СВЕРХУ товаров */
        box-sizing: border-box !important;
    }
    
    /* Кнопка "Все производители" — СКРЫВАЕМ */
    .brands-all-btn {
        display: none !important;
    }
    
    /* Заголовок "Производители" — СОЗДАЕМ */
    .brands-sidebar::before {
        content: "Производители";
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #333;
        margin-bottom: 15px;
        text-align: left;
        padding-bottom: 8px;
        border-bottom: 2px solid #e0e0e0;
    }
    
    /* Скрываем заголовки групп */
    .brands-group-title {
        display: none !important;
    }
    
    /* Обёртка брендов — для clearfix */
    .brands-sidebar::after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* КАРТОЧКИ БРЕНДОВ — 2 В РЯД, последний по центру */
    .brand-card {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        
        /* 2 БРЕНДА В РЯД (50% - отступы) */
        width: calc(50% - 4px) !important;
        margin: 4px 2px !important;
        padding: 15px 10px !important;
        
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
        
        float: left !important;
        box-sizing: border-box !important;
        
        transition: all 0.2s ease !important;
    }
    
    /* ПОСЛЕДНИЙ НЕЧЕТНЫЙ — ПО ЦЕНТРУ */
    .brand-card:nth-last-child(1):nth-child(odd) {
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
    }
    
    /* HOVER эффект */
    .brand-card:hover {
        background: #d32f2f !important;
        border-color: #d32f2f !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3) !important;
    }
    
    .brand-card:hover img {
        filter: brightness(0) invert(1) !important; /* Белый логотип */
    }
    
    /* Логотипы — чуть больше */
    .brand-card img {
        max-height: 38px !important;
        width: auto !important;
    }
}
/* ==========================================================================
   ИСПРАВЛЕНИЕ ДУБЛИРОВАНИЯ БРЕНДОВ — ФИНАЛЬНОЕ
   ========================================================================== */

/* ─── ДЕСКТОП: скрываем мобильную версию ─── */
.mobile-brands-block {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

.desktop-brands-block {
    display: block !important;
    visibility: visible !important;
}

/* Убираем заголовки групп брендов на десктопе */
.brands-group-title {
    display: none !important;
}

/* ─── МОБИЛЬНЫЙ: скрываем десктопную версию ─── */
@media (max-width: 768px) {
    
    /* Мобильная версия — ПОКАЗЫВАЕМ */
    .mobile-brands-block {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
        opacity: 1 !important;
        margin: 15px 0 20px 0 !important;
    }
    
    /* Десктопная версия — УБИРАЕМ НАВСЕГДА */
    .desktop-brands-block,
    .catalog-sidebar-wrapper .brands-sidebar,
    .catalog-sidebar-wrapper .desktop-brands-block,
    .filters-block + .brands-sidebar,
    .brands-sidebar:not(.mobile-brands-block .brands-sidebar) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Стили мобильной версии */
    .mobile-brands-block .brands-sidebar {
        width: 100% !important;
        margin: 0 !important;
        padding: 15px 12px !important;
        background: #f9f9f9 !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    
    /* Кнопка "Все производители" на мобильном — ПОКАЗЫВАЕМ как на десктопе */
    .mobile-brands-block .mobile-brands-all-btn {
        display: block !important;
        background: #d32f2f !important;
        color: #fff !important;
        padding: 12px 15px !important;
        font-size: 12px !important;
        font-weight: bold !important;
        margin: 0 0 15px 0 !important;
        text-decoration: none !important;
        text-align: center !important;
        border-radius: 8px !important;
        transition: background 0.2s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .mobile-brands-block .mobile-brands-all-btn:hover {
        background: #b71c1c !important;
        color: #fff !important;
    }

    /* Заголовок "Производители" — УБИРАЕМ, так как есть кнопка */
    .mobile-brands-block .brands-sidebar::before {
        display: none !important;
    }

    /* Убираем лишние стили если кнопка "Все" нечетная */
    .mobile-brands-block .brand-all-card:nth-last-child(1):nth-child(odd) {
        float: left !important; /* НЕ центрируем кнопку "Все" */
        margin-left: 2px !important;
        margin-right: 2px !important;
    }
    
    /* Заголовок "Производители" */
    .mobile-brands-block .brands-sidebar::before {
        content: "Производители";
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #333;
        margin-bottom: 15px;
        text-align: left;
        padding-bottom: 8px;
        border-bottom: 2px solid #e0e0e0;
    }
    
    /* Скрываем заголовки групп */
    .mobile-brands-block .brands-group-title {
        display: none !important;
    }
    
    /* Clearfix */
    .mobile-brands-block .brands-sidebar::after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* КАРТОЧКИ БРЕНДОВ — 2 В РЯД */
    .mobile-brands-block .brand-card {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        
        width: calc(50% - 4px) !important;
        margin: 4px 2px !important;
        padding: 15px 10px !important;
        
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
        
        float: left !important;
        box-sizing: border-box !important;
        transition: all 0.2s ease !important;
    }
    
    /* ПОСЛЕДНИЙ НЕЧЕТНЫЙ — ПО ЦЕНТРУ */
    .mobile-brands-block .brand-card:nth-last-child(1):nth-child(odd) {
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
    }
    
    /* HOVER эффект */
    .mobile-brands-block .brand-card:hover {
        background: #d32f2f !important;
        border-color: #d32f2f !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3) !important;
    }
    
    .mobile-brands-block .brand-card:hover img {
        filter: brightness(0) invert(1) !important;
    }
    
    .mobile-brands-block .brand-card img {
        max-height: 38px !important;
        width: auto !important;
    }
}

/* ==========================================================================
   СКРЫТИЕ ОПИСАНИЯ ТОВАРОВ НА МОБИЛЬНОМ
   ========================================================================== */

@media (max-width: 768px) {
    
    /* Скрываем характеристики/описание товаров */
    .product-chars,
    .product-description,
    .product-row > div:nth-child(2) > div:not(:first-child),
    div[style*="font-size: 9px"][style*="color: #666"],
    div[style*="font-size:9px"][style*="color:#666"] {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Оставляем только название товара */
    .product-row-wrap div[style*="grid-template-columns"] > div:nth-child(2) a {
        margin-bottom: 8px !important; /* Больше отступ до кнопки "подробнее" */
    }
    
    /* Кнопка "подробнее" — более заметная */
    .product-row-wrap .details-toggle,
    .product-details-toggle {
        font-size: 10px !important;
        margin-top: 6px !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
        background: rgba(211, 47, 47, 0.15) !important;
        display: inline-block !important;
        border: 1px solid rgba(211, 47, 47, 0.3) !important;
        font-weight: 600 !important;
    }
}

/* ==========================================================================
   ИЗБРАННОЕ — МОБИЛЬНАЯ АДАПТАЦИЯ
   ========================================================================== */

/* ─── ДЕСКТОП (по умолчанию) ─── */
.favorites-actions-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.favorites-cart-wrapper {
    flex-shrink: 0;
}

.favorites-icons-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ─── МОБИЛЬНЫЙ ─── */
@media (max-width: 768px) {
    
    /* Скрываем заголовок таблицы */
    .favorites-table-header {
        display: none !important;
    }
    
    /* Строка товара — вертикальная раскладка */
    .favorites-product-row {
        display: flex !important;
        flex-direction: column !important;
        padding: 12px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        margin-bottom: 12px !important;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
        gap: 10px !important;
    }
    
    /* Фото + Название */
    .favorites-product-row > div:nth-child(1),
    .favorites-product-row > div:nth-child(2) {
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .favorites-product-row > div:nth-child(1) {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
    }
    
    .favorites-product-row > div:nth-child(1) img,
    .favorites-product-row > div:nth-child(1) > div {
        width: 60px !important;
        height: 60px !important;
    }
    
    .favorites-product-row > div:nth-child(2) {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    /* Остаток */
    .favorites-product-row > div:nth-child(3) {
        order: 3 !important;
        text-align: left !important;
        font-size: 11px !important;
    }
    
    .favorites-product-row > div:nth-child(3)::before {
        content: "Остаток: ";
        font-weight: 600;
        color: #666;
    }
    
    /* Цена */
    .favorites-product-row > div:nth-child(4) {
        order: 4 !important;
        text-align: left !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #d32f2f !important;
    }
    
    .favorites-product-row > div:nth-child(4)::before {
        content: "Цена: ";
        font-weight: 600;
        color: #666;
        font-size: 12px;
    }
    
    /* ДЕЙСТВИЯ — ВЕРТИКАЛЬНО */
    .favorites-actions-cell {
        order: 5 !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    /* Корзина — центрируем, НЕ растягиваем */
    .favorites-cart-wrapper {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .favorites-cart-wrapper .cart-widget {
        width: auto !important; /* ← НЕ 100%! */
    }

    .favorites-cart-wrapper .add-to-cart-btn {
        width: auto !important; /* ← НЕ 100%! */
        padding: 12px 20px !important;
        font-size: 14px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .favorites-cart-wrapper .qty-control-wrapper {
        width: auto !important; /* ← НЕ 100%! */
        justify-content: center !important;
    }
    
    .favorites-cart-wrapper .qty-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .favorites-cart-wrapper .qty-input {
        width: 80px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    
    /* Иконки ПОД корзиной */
    .favorites-icons-wrapper {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .favorites-icons-wrapper .prod-icon-btn {
        width: 44px !important;
        height: 44px !important;
        padding: 10px !important;
        border-radius: 6px !important;
        background: #fff !important;
        border: 1px solid #e0e0e0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .favorites-icons-wrapper .prod-icon-btn:hover {
        background: #f5f5f5 !important;
        border-color: #d32f2f !important;
    }
    
    .favorites-icons-wrapper .prod-icon-btn.prod-icon-active {
        background: rgba(211, 47, 47, 0.1) !important;
        border-color: #d32f2f !important;
        color: #d32f2f !important;
    }
    
    .favorites-icons-wrapper svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* static/css/main.css */

.sort-btn {
    display: inline-block;
    padding: 6px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.sort-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.sort-btn.active {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
    font-weight: 600;
}

/* Плавный переход при смене контента */
#product-list-wrapper {
    transition: opacity 0.2s ease;
}

/* Индикатор загрузки */
.htmx-swapping #product-list-wrapper {
    opacity: 0.5;
    pointer-events: none;
}

/* Активный бренд */
.brand-card.active {
    border: 2px solid #d32f2f !important;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.brands-all-btn.active {
    background: #d32f2f !important;
    color: #fff !important;
}

.sidebar .tree-item {
    cursor: move;
}

.sidebar .tree-item.dragging {
    opacity: 0.5;
    background: #fff3e0;
}

.sidebar .tree-item.drag-over {
    border-top: 3px solid #d32f2f;
}
/* Кликабельные новости */
.news-text:hover {
    color: #d32f2f !important;
}

.news-article-title:hover {
    color: #d32f2f !important;
}

.news-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-article-card:hover .news-article-title {
    color: #d32f2f !important;
}

.header-phone {
    text-align: right;
    font-size: 13px;
}

.header-phone a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.header-phone a:hover {
    color: #d32f2f;
}

.header-phone .time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .header-phone {
        display: none;  /* Скрываем на мобилках, там есть своя панель */
    }
}
.review-stars {
    font-size: 24px !important; /* ← РАЗМЕР ЗВЁЗДОЧЕК */
    color: #ffa726;
    letter-spacing: 2px;
}
