/* =================================================================
   MODERN OVERRIDES — avtokraska.ru
   Поверхностные CSS-улучшения без изменения исходных стилей
   ================================================================= */

/* ─── Google Font ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* =================================================================
   ФАЗА 1.2 — Типографика
   ================================================================= */
body {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
.h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
h2,
.h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
}
h3,
.h3 {
    font-size: 18px;
    font-weight: 600;
}
h4,
.h4 {
    font-size: 15px;
    font-weight: 500;
}

.product-header {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

/* =================================================================
   ФАЗА 1.3 — Чистый фон вместо текстуры
   ================================================================= */
.background {
    display: none !important;
}
body {
    background-color: transparent !important;
}

/* =================================================================
   ФАЗА 1.4 — Карточки товаров
   ================================================================= */
.product-thumb {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10) !important;
}

.product-thumb .caption {
    padding: 12px 16px !important;
}

.product-thumb .h4 a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #2C3E50;
}

.product-thumb .price {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
}

.content-row {
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* =================================================================
   ФАЗА 1.5 — Кнопки
   ================================================================= */
.oct-button,
.oct-button:visited,
.oct-button:focus {
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    text-transform: none;
    letter-spacing: 0.2px;
}

.oct-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Умная 2025 Flex-сетка для кнопок во всех карточках (на странице товара и в модулях) */
.product-thumb .cart,
.item .cart,
.item-box .cart,
.product-buttons-box {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    background: transparent !important;
}

/* Clearfix pseudo-elements break layout by acting as items. Kill them. */
.product-thumb .cart::before,
.product-thumb .cart::after,
.item .cart::before,
.item .cart::after,
.item-box .cart::before,
.item-box .cart::after,
.product-buttons-box::before,
.product-buttons-box::after {
    display: none !important;
    content: none !important;
}

.product-thumb .cart a.oct-button,
.item .cart a.oct-button,
.item-box .cart a.oct-button,
.product-buttons-box a.oct-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 42px !important;
    margin: 0 !important;
}

/* Главная кнопка "В корзину" (тянется на оставшееся место) */
.product-thumb .cart .button-cart,
.item .cart .button-cart,
.item-box .cart .button-cart,
.product-buttons-box #button-cart {
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(143, 42, 42, 0.3) !important;
    flex: 1 1 auto !important;
    min-width: 0 !important; /* CRITICAL: Allows button to shrink instead of wrapping peers */
    padding: 0 10px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-thumb .cart .button-cart:hover,
.item .cart .button-cart:hover,
.item-box .cart .button-cart:hover,
.product-buttons-box #button-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(143, 42, 42, 0.4) !important;
}

/* Второстепенные квадратные кнопки (Избранное, Сравнение, В 1 клик) */
.product-thumb .cart .wishlist,
.product-thumb .cart .compare,
.item .cart .wishlist,
.item .cart .compare,
.item-box .cart .wishlist,
.item-box .cart .compare,
.product-buttons-row .button-one-click,
.product-buttons-row .button-wishlist,
.product-buttons-row .button-compare {
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    width: 42px !important; 
    height: 42px !important;
    padding: 0 !important;
    background-color: #f0f2f5 !important;
    color: #555 !important;
    flex-shrink: 0 !important;
}

.product-thumb .cart .wishlist i,
.product-thumb .cart .compare i,
.item .cart .wishlist i,
.item .cart .compare i,
.item-box .cart .wishlist i,
.item-box .cart .compare i,
.product-buttons-row .button-one-click i,
.product-buttons-row .button-wishlist i,
.product-buttons-row .button-compare i {
    font-size: 16px;
    margin: 0 !important;
}

.product-thumb .cart .wishlist:hover,
.product-thumb .cart .compare:hover,
.item .cart .wishlist:hover,
.item .cart .compare:hover,
.item-box .cart .wishlist:hover,
.item-box .cart .compare:hover,
.product-buttons-row .button-one-click:hover,
.product-buttons-row .button-wishlist:hover,
.product-buttons-row .button-compare:hover {
    transform: translateY(-2px);
    background-color: #333 !important; 
    color: #fff !important;
}

/* =================================================================
   ФАЗА 1.6 — Убрать мигающий hue-rotate
   ================================================================= */
.hue {
    animation: none !important;
}

.oct-discount-item {
    border-radius: 20px !important;
    padding: 4px 12px !important;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.oct-sticker-item {
    border-radius: 20px !important;
    font-weight: 500;
    font-size: 11px;
}

/* =================================================================
   ФАЗА 2.1 — Scroll-анимации
   ================================================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Каскадная задержка для сетки товаров */
.product-layout:nth-child(1) .animate-on-scroll {
    transition-delay: 0.03s;
}
.product-layout:nth-child(2) .animate-on-scroll {
    transition-delay: 0.06s;
}
.product-layout:nth-child(3) .animate-on-scroll {
    transition-delay: 0.09s;
}
.product-layout:nth-child(4) .animate-on-scroll {
    transition-delay: 0.12s;
}
.product-layout:nth-child(5) .animate-on-scroll {
    transition-delay: 0.15s;
}
.product-layout:nth-child(6) .animate-on-scroll {
    transition-delay: 0.18s;
}
.product-layout:nth-child(7) .animate-on-scroll {
    transition-delay: 0.21s;
}
.product-layout:nth-child(8) .animate-on-scroll {
    transition-delay: 0.24s;
}

/* =================================================================
   ФАЗА 2.2 — Hover на изображениях товаров
   ================================================================= */
.product-thumb .image {
    overflow: hidden !important;
    border-radius: 12px 12px 0 0;
    position: relative;
    display: block; 
}

/* Базовые стили для плавности */
.product-thumb .image a img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Фикс для Theme Lazy Load: сохраняем их центрирование через transform */
.product-thumb:hover .image .lazy_link img {
    transform: translateX(-50%) translateY(-50%) scale(1.04) !important;
}

/* Если Lazy Load выключен (ретросовместимость) */
.product-thumb:hover .image > a:not(.lazy_link) img {
    transform: scale(1.04);
}

/* Quick View кнопка — плавное появление */
.product-thumb .image .quick-view {
    transition: opacity 0.3s ease !important;
    border-radius: 8px !important;
}

/* =================================================================
   ФАЗА 3.1 — Истинный Floating Header (Glassmorphism 2025)
   ================================================================= */
.modern-header-wrapper {
    position: relative !important;
    z-index: 10000 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    flex-direction: column;
}

.modern-header-wrapper.scrolled {
    background: transparent !important;
    box-shadow: none !important;
    top: auto !important;
}

/* На мобильных/планшетах убираем только backdrop-filter,
   чтобы wrapper не создавал containing block для position:fixed #top.
   Все отступы обеспечивает responsive.css через body { padding-top: 58px } */
@media (max-width: 992px) {
    .modern-header-wrapper {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

.menu-row {
    position: static !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    box-shadow: none !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important;
}

/* Top bar default positioning */
#top {
    width: 100% !important;
    z-index: 10050 !important;
    display: table !important;
}

@media (min-width: 993px) {
    #top {
        position: relative !important;
        display: table !important;
    }
    #top .not-mobile-container,
    #top #top-left-links,
    #top #top-right-links {
        display: block !important;
    }
}

@media (max-width: 992px) {
    #top {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* =================================================================
   ФАЗА 3.2 — Поле поиска в шапке (Современный Pill-дизайн 2025)
   ================================================================= */
.modern-search-container {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 40px !important;
    border: 2px solid #e31e24 !important; /* Firm Red Border */
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10050; /* ВЫВЕСТИ НА ПЕРЕДНИЙ ПЛАН */
    
    /* Дефолтная мобильная высота */
    height: 48px;
}

@media (min-width: 992px) {
    .modern-search-container {
        height: 36px; /* Компактная десктопная строка */
    }
}

.modern-search-container:focus-within {
    box-shadow: 0 8px 30px rgba(227, 30, 36, 0.25), 0 0 0 3px rgba(227, 30, 36, 0.1);
    transform: translateY(-1px);
}

/* Обертка для инпута */
.search-input-wrapper {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.modern-search-input {
    width: 100%;
    height: 100%;
    border: none !important;
    background: transparent !important;
    padding: 0 40px 0 24px !important;
    font-size: 15px !important;
    color: #333 !important;
    outline: none !important;
    font-family: 'Inter', sans-serif;
}

.modern-search-input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Кнопка очистки крестик */
.btn-clear {
    position: absolute;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f1f1f1;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.btn-clear.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.btn-clear:hover {
    background: #e1e1e1;
    color: #333;
}

/* Главная кнопка поиска лупа */
.modern-search-btn {
    width: 56px;
    height: 100%;
    border: none !important;
    background: #e31e24 !important; /* Red button hitting the red border seamlessly */
    color: white !important;
    border-radius: 0 40px 40px 0 !important; /* Must round the button since container doesn't have overflow: hidden anymore */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.modern-search-btn:hover {
    background: #c2191f !important;
}

/* Почта под телефоном (соцсети) */
.modern-header-email {
    margin-top: 4px;
    padding-left: 20px; /* отступ, чтобы выровнять с текстом телефона */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modern-header-email a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.modern-header-email a i {
    color: #e31e24;
    font-size: 14px;
    width: 14px;
    text-align: center;
}

.modern-header-email a:hover {
    color: #e31e24;
}

.modern-phone-link {
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #1a1a1a !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modern-phone-link i:first-child {
    color: #e31e24;
    font-size: 16px;
}

/* Убираем голосовой поиск (микрофон) от стороннего скрипта */
#bus-voice-search,
[id^="bus-voice-search"] {
    display: none !important;
}

/* Убираем системные крестики обозревателей */
#search input[type="search"]::-webkit-search-decoration,
#search input[type="search"]::-webkit-search-cancel-button,
#search input[type="search"]::-webkit-search-results-button,
#search input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* =================================================================
   ФАЗА 4.1 — Галерея товара
   ================================================================= */
.thumbnails-one img,
.thumbnails-one a img {
    border-radius: 12px !important;
}

#image-additional .owl-item a {
    border-radius: 8px !important;
    border: 2px solid transparent !important;
    transition: border-color 0.3s ease, transform 0.3s ease !important;
    overflow: hidden;
}

#image-additional .owl-item a:hover {
    border-color: #C0392B !important;
    transform: scale(1.05);
}

#image-additional .owl-item a.selected-thumb {
    border-color: #C0392B !important;
}

/* =================================================================
   ФАЗА 4.2 — Цена крупнее
   ================================================================= */
.product-price h2,
.product-price .h2 {
    font-size: 30px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
}

.product-price h3,
.product-price .h3 {
    color: #999 !important;
    font-size: 18px !important;
}

/* =================================================================
   ФАЗА 4.3 — Табы товара — pill-стиль
   ================================================================= */
.product-tabs-row .nav-tabs > li > a {
    border-radius: 24px !important;
    margin-right: 8px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.product-tabs-row .nav-tabs > li.active > a::before {
    border: none !important;
    display: none !important;
}

.product-tabs-row .tab-content {
    padding: 20px 10px !important;
    line-height: 1.7;
}

/* =================================================================
   ФАЗА 5.1 — Подкатегории
   ================================================================= */
#subcats .subcat-box {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 16px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

#subcats .subcat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#subcats .subcat-box img {
    border-radius: 8px;
    transition: transform 0.4s ease;
}

#subcats .subcat-box:hover img {
    transform: scale(1.05);
    opacity: 1 !important;
}

/* =================================================================
   ФАЗА 5.2 — Фильтры
   ================================================================= */
.box-heading {
    border-radius: 8px 8px 0 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif;
}

.box-content {
    border-radius: 0 0 8px 8px !important;
}

.filtered input[type=checkbox]+label::before,
.filtered input[type=radio]+label::before {
    border-radius: 4px !important;
    width: 18px !important;
    height: 18px !important;
    transition: all 0.2s ease;
}

.filtered .checkbox input[type=checkbox]+label,
.filtered .radio input[type=radio]+label {
    font-family: 'Inter', sans-serif;
    font-size: 13px !important;
}

/* =================================================================
   ФАЗА 6.1 — Footer
   ================================================================= */
footer {
    border-radius: 24px 24px 0 0 !important;
    margin-top: 40px !important;
    padding-top: 50px !important;
}

footer h5,
footer .h5 {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

footer ul li {
    font-family: 'Inter', sans-serif !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
}

footer .input-box input {
    border-radius: 24px !important;
    font-family: 'Inter', sans-serif;
}

footer .actions button {
    border-radius: 20px !important;
    transition: all 0.3s ease;
}

footer .actions button:hover {
    transform: translateY(-2px);
}

/* =================================================================
   ФАЗА 7.1 — Попапы
   ================================================================= */
.popup-box,
#oct-popup-product-view-box,
.oct-popup-add-to-cart-box,
.mfp-content .popup-box {
    border-radius: 16px !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15) !important;
    animation: popup-enter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes popup-enter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-form-box input[type='text'],
.popup-form-box input[type='tel'],
.popup-form-box input[type='email'],
.popup-form-box textarea {
    border-radius: 8px !important;
    border: 2px solid #e0e0e0 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    font-family: 'Inter', sans-serif !important;
}

.popup-form-box input:focus,
.popup-form-box textarea:focus {
    border-color: #C0392B !important;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.08) !important;
}

h2.popup-header {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
}

/* =================================================================
   ФАЗА 3.0 — Glassmorphism и общие стили
   ================================================================= */

body, html {
    background-color: transparent !important;
    color: #1a1a1a;
    font-family: 'Inter', 'Roboto', sans-serif !important;
    overflow-x: clip !important; /* Fixes position: sticky inside body/wrappers */
}

#oct-bluring-box {
    background-color: transparent !important;
    overflow-x: clip !important;
}

/* Эффект матового стекла (общий утилитарный класс) */
.glass-panel {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* =================================================================
   ФАЗА 8.1 — Пагинация
   ================================================================= */
.pagination {
    border: none !important;
    border-radius: 12px !important;
    overflow: visible !important;
    gap: 4px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination > li > a,
.pagination > li > span {
    border-radius: 8px !important;
    border: none !important;
    background: #f0f2f5 !important;
    transition: all 0.25s ease !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    margin: 0 2px;
    min-width: 36px;
    text-align: center;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
    background: #e0e3e8 !important;
    transform: translateY(-1px);
}

.pagination > .active > a,
.pagination > .active > span {
    background: #8F2A2A !important;
    color: #fff !important;
}

/* =================================================================
   ФАЗА 8.2 — Хлебные крошки
   ================================================================= */
.breadcrumb {
    border-radius: 20px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.breadcrumb > li a {
    transition: color 0.2s ease;
}

/* =================================================================
   ФАЗА 8.3 — Скроллбары
   ================================================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #C0392B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A93226;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #C0392B #f1f1f1;
}

/* =================================================================
   Формы — общие улучшения
   ================================================================= */
input[type="text"].form-control,
select.form-control,
input[type="password"].form-control,
input[type="email"].form-control,
input[type="tel"].form-control {
    border-radius: 8px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    font-family: 'Inter', sans-serif !important;
}

input[type="text"].form-control:focus,
select.form-control:focus,
input[type="password"].form-control:focus,
input[type="email"].form-control:focus,
input[type="tel"].form-control:focus {
    border-color: #C0392B !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08) !important;
}

/* =================================================================
   Доп. улучшения — ссылки и переходы
   ================================================================= */
a {
    transition: color 0.2s ease;
}

/* Плавные transition для меню */
#menu .nav > li {
    transition: background-color 0.3s ease, border-color 0.3s ease !important;
}

#menu .nav > li > a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}

/* Dropdown меню — плавнее */
#menu .dropdown-menu {
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Карусельные заголовки */
.oct-carousel-header {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.3px;
}

/* Социальные иконки в footer — hover */
.oct-messengers a {
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.oct-messengers a:hover {
    transform: scale(1.2);
}

/* Advantage блоки на главной */
.main-advantage-item {
    border-radius: 12px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.main-advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

/* Bottom panel — мягче */
#oct-slide-panel .oct-slide-panel-heading {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Alert стили */
.alert {
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

/* Sort row */
.row.sort-row {
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

/* Product info list */
.product-info-li {
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px !important;
}

/* Specification table */
.oct-specification .row.attr-content {
    border-radius: 4px;
    transition: background 0.2s ease;
}

.oct-specification .row.attr-content:hover {
    background: rgba(192, 57, 43, 0.03) !important;
}
/* =================================================================
   Карточки товаров — детальная стилизация внутренних элементов
   ================================================================= */

/* Артикул — компактный бейдж */
.product-thumb .caption p.cat-model {
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #999 !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px !important;
  padding: 2px 0 !important;
  line-height: 1.3;
}

.product-thumb .caption p.cat-model span {
  color: #777;
}

/* Название товара — крупнее и чётче */
.product-thumb .caption div.cat-model {
  margin-bottom: 8px !important;
  height: auto !important;
  min-height: 36px;
  max-height: 52px;
  overflow: hidden;
}

.product-thumb .caption div.cat-model a {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #2C3E50 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-thumb .caption div.cat-model a:hover {
  color: #C0392B !important;
}

/* Рейтинг — звёзды золотые, крупнее */
.product-thumb .rating {
  margin-bottom: 6px !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.product-thumb .rating .fa-stack {
  font-size: 6px !important;
  width: 16px !important;
  height: 16px !important;
  line-height: 16px !important;
}

.product-thumb .rating .fa-star {
  color: #F39C12 !important;
}

.product-thumb .rating .fa-star-o {
  color: #DDD !important;
}

/* Мета-информация (отзывы, количество, просмотры) — бейджи */
.product-thumb .oct-count-reviews {
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  color: #AAA !important;
  margin-left: 4px;
  white-space: nowrap;
}

.product-thumb .oct-count-reviews i {
  font-size: 10px !important;
  margin-right: 2px;
}

/* Дата обновления — мельче, максимально ненавязчиво */
.product-thumb .caption > div > span[data-tooltip*="Дата"] {
  font-size: 9px !important;
  color: #CCC !important;
  letter-spacing: 0.3px;
}

.product-thumb .caption > div > span[data-tooltip*="Дата"] i {
  font-size: 9px !important;
}

/* Тултип даты — отключаем (дата и так видна как текст с иконкой) */
.product-thumb .caption > div > span[data-tooltip*="Дата"]::after,
.product-thumb .caption > div > span[data-tooltip*="Дата"]::before {
  display: none !important;
}

/* Разделитель — тоньше и мягче */
.product-thumb .caption hr {
  border-top: 1px solid rgba(0,0,0,0.06) !important;
  margin: 12px 0 8px !important;
}

/* Зона цены и кнопок — отключаем старый эффект скрытия при наведении */
.product-thumb .cat-box-effect {
  padding: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.product-thumb .cat-box-effect-inner {
  height: auto !important;
  transform: none !important;
}

.product-thumb:hover .cat-box-effect-inner {
  transform: none !important;
}

/* =================================================================
   Всплывающие подсказки (Наличие в магазинах - data-tooltip) 
   ================================================================= */
*[data-tooltip] {
  position: relative;
}

*[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: auto !important;
  bottom: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(10px) !important;
  
  /* Glassmorphism дизайн */
  background: rgba(44, 62, 80, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
  
  /* Типографика */
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  padding: 12px 16px !important;
  min-width: 220px !important;
  white-space: pre-wrap !important; /* Чтобы текст переносился, а не был длинной строкой */
  z-index: 999999 !important;
  
  /* Анимация */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Стрелочка для тултипа */
*[data-tooltip]::before {
  content: '';
  position: absolute;
  top: auto !important;
  bottom: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(10px) !important;
  border: 6px solid transparent !important;
  border-top-color: rgba(44, 62, 80, 0.85) !important;
  
  /* Анимация */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  z-index: 999999 !important;
}

/* Hover анимация появления */
*[data-tooltip]:hover::after {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(-8px) !important;
}

*[data-tooltip]:hover::before {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(4px) !important; /* Упирается в низ тултипа */
}
.product-thumb .price {
  font-family: 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #2C3E50 !important;
  margin-bottom: 8px !important;
  line-height: 1.3;
}

.product-thumb .price .price-new {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #C0392B !important;
}

.product-thumb .price .price-old {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #BBB !important;
  text-decoration: line-through;
}

.product-thumb .price .common-price {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #2C3E50 !important;
}

/* Кнопка «В корзину» в карточке */
.product-thumb .button-group .oct-button,
.product-thumb .button-group .button-cart-box .oct-button {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  transition: all 0.3s ease !important;
}

.product-thumb .button-group .oct-button:hover {
  transform: translateY(-1px);
}

/* Кнопки вишлист/сравнение в карточке */
.product-thumb .button-group .button-wish,
.product-thumb .button-group .button-comp {
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.product-thumb .button-group .button-wish:hover,
.product-thumb .button-group .button-comp:hover {
  transform: scale(1.1);
}

/* Стикеры скидок в карточках — более заметные */
.product-thumb .oct-discount-box {
  z-index: 3 !important;
}

.product-thumb .oct-discount-item {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  padding: 4px 10px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Кнопки — и сетке товаров (owl carousel) */
.owl-carousel .product-thumb .button-group .oct-button {
  font-size: 11px !important;
  padding: 8px 10px !important;
}

/* Out-of-stock карточки */
.product-thumb .out-of-stock-button {
  font-family: 'Inter', sans-serif !important;
  border-radius: 8px !important;
}

/* =================================================================
   OCT ПЛАГИНЫ — Попапы (все типы)
   ================================================================= */

/* Общий попап контейнер */
.white-popup {
  border-radius: 16px !important;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2) !important;
  animation: popup-enter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.narrow-popup,
.semi-middle-popup,
.middle-popup,
.wide-popup {
  border-radius: 16px !important;
}

/* Кнопка закрытия попапа — аккуратная */
.mfp-close-btn-in .mfp-close {
  background: rgba(0,0,0,0.06) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  right: 12px !important;
  top: 12px !important;
  font-size: 22px !important;
  transition: all 0.3s ease;
  color: #666 !important;
  opacity: 0.8;
}

.mfp-close-btn-in .mfp-close:hover {
  background: rgba(0,0,0,0.12) !important;
  opacity: 1;
  transform: rotate(90deg);
}

/* Заголовки попапов */
h2.popup-header {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 22px !important;
  text-transform: none !important;
  letter-spacing: -0.3px;
  color: #2C3E50 !important;
}

/* Текст попапов */
.popup-text {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* Popup-кнопки — все типы */
.popup-button {
  border-radius: 10px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 28px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.popup-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
  filter: brightness(1.1);
}

/* Popup-кнопки-группа */
.popup-buttons-box {
  margin-top: 24px !important;
}

.popup-buttons-box .popup-button {
  margin: 0 4px !important;
}

/* =================================================================
   OCT — Popup корзина (#cart-popup, #addcart-popup)
   ================================================================= */
#cart-popup .popup-text,
#addcart-popup .popup-text {
  margin-top: 16px !important;
}

.popup-cart-box .table > thead > tr > td,
.popup-cart-box .table > thead > tr > th {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
}

.popup-cart-box .table > tbody > tr > td {
  font-family: 'Inter', sans-serif;
  vertical-align: middle !important;
}

.popup-cart-box .oct-popup-cart-link {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  transition: color 0.2s ease;
}

td.delete-td button {
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  padding: 0 !important;
  transition: all 0.3s ease;
  font-size: 16px !important;
}

td.delete-td button:hover {
  background: rgba(229, 57, 53, 0.1) !important;
  transform: scale(1.1);
}

.popup-total-cart .total-text {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 500;
}

.popup-img-thumbnail {
  border-radius: 8px !important;
}

/* =================================================================
   OCT — Одноклик (#oneclick-popup)
   ================================================================= */
#oneclick-popup h2 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 20px !important;
  text-transform: none !important;
}

#oneclick-popup .img-responsive {
  border-radius: 12px !important;
}

#oneclick-popup #you-save,
#popup-you-save {
  border-radius: 20px !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
}

#oneclick-popup .payment-quantity input.plus-minus {
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
}

#oneclick-popup .popup-form-box input[type="text"],
#oneclick-popup .popup-form-box input[type="tel"],
#oneclick-popup .popup-form-box input[type="email"] {
  border-radius: 10px !important;
  border: 2px solid #e0e0e0 !important;
  font-family: 'Inter', sans-serif !important;
  transition: border-color 0.3s ease !important;
}

#oneclick-popup .popup-form-box input:focus {
  border-color: #C0392B !important;
}

/* =================================================================
   OCT — Обратный звонок (#callback-popup)
   ================================================================= */
#callback-popup .popup-form-box input {
  border-radius: 10px !important;
  border: 2px solid #e0e0e0 !important;
  font-family: 'Inter', sans-serif !important;
}

#callback-popup .oct-messengers a {
  transition: transform 0.3s ease !important;
}

#callback-popup .oct-messengers a:hover {
  transform: scale(1.2);
}

/* =================================================================
   OCT — Нашли дешевле (#cheaper-popup)
   ================================================================= */
#cheaper-popup h3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}

#cheaper-popup .popup-form-box input {
  border-radius: 10px !important;
}

#cheaper-popup .popup-form-box textarea {
  border-radius: 10px !important;
}

/* =================================================================
   OCT — Авторизация (#auth-popup)
   ================================================================= */
#auth-popup .popup-form-box input {
  border-radius: 10px !important;
  border: 2px solid #e0e0e0 !important;
  font-family: 'Inter', sans-serif !important;
}

#auth-popup .auth-popup-links a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* =================================================================
   OCT — Быстрый просмотр (#quick-view), Опции (#product-options-popup)
   ================================================================= */
#quick-view .thumbnails .image-additional {
  border-radius: 6px;
  overflow: hidden;
}

#product-options-popup .popup-h3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}

#product-options-popup .control-label,
#oneclick-popup .control-label {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}

#product-options-popup .options-box .img-thumbnail,
#oneclick-popup .options-box .img-thumbnail {
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
}

/* =================================================================
   OCT — Предзаказ (#popup-product-preorder-wrapper)
   ================================================================= */
#popup-product-preorder-wrapper .popup-text {
  font-family: 'Inter', sans-serif !important;
}

/* =================================================================
   OCT — Модальные окна (Bootstrap modal)
   ================================================================= */
.modal .modal-dialog {
  border-radius: 16px !important;
  overflow: hidden;
}

.modal .modal-header {
  font-family: 'Inter', sans-serif !important;
}

.modal .modal-header h4 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 20px !important;
  text-transform: none !important;
}

/* =================================================================
   OCT — Кнопка «Наверх» (#back-top)
   ================================================================= */
#back-top {
  border-radius: 12px !important;
  width: 46px !important;
  height: 46px !important;
  line-height: 46px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0.75 !important;
}

#back-top:hover {
  opacity: 1 !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
}

#back-top i {
  font-size: 24px !important;
  top: 4px !important;
}

/* =================================================================
   OCT — Кнопка звонка (#uptocall-mini)
   ================================================================= */
#uptocall-mini {
  border-radius: 50% !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

#uptocall-mini:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3) !important;
}

#uptocall-mini .uptocall-mini-phone {
  transition: background-color 0.3s ease !important;
}

/* =================================================================
   OCT — Нижняя панель (#oct-slide-panel)
   ================================================================= */
#oct-slide-panel .oct-slide-panel-heading {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.oct-panel-link,
.oct-panel-link:focus,
.oct-panel-link:visited {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
}

.oct-slide-panel-quantity {
  border-radius: 6px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
}

#oct-slide-panel .oct-slide-panel-content {
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* =================================================================
   OCT — Категории-стена (category wall)
   ================================================================= */
.oct-category-item-box {
  border-radius: 12px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.oct-category-item-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.oct-category-item-box .oct-category-item-text {
  font-family: 'Inter', sans-serif !important;
}

.oct-category-item-header {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}

.oct-category-item-text ul li a {
  transition: color 0.2s ease !important;
}

/* =================================================================
   OCT — Карусель (oct-carousel, owl-carousel)
   ================================================================= */
.oct-carousel-box {
  border-radius: 12px !important;
}

.oct-product-tab {
  border-radius: 12px !important;
}

.oct-product-tab ul.nav-tabs {
  border-radius: 10px !important;
}

.oct-product-tab ul.nav-tabs > li.active,
.oct-product-tab ul.nav-tabs > li:hover {
  transition: background-color 0.3s ease !important;
}

.oct-product-tab ul.nav-tabs > li a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

/* Кнопки карусели — современные */
.oct-product-tab .owl-carousel .owl-buttons div,
.oct-carousel-row .owl-carousel .owl-buttons div,
.oct-day-goods-box .owl-carousel .owl-buttons div,
.news-carousel-box .owl-carousel .owl-buttons div,
.brands-carousel-box .owl-carousel .owl-buttons div {
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
}

.oct-product-tab .owl-carousel .owl-buttons div:hover,
.oct-carousel-row .owl-carousel .owl-buttons div:hover,
.oct-day-goods-box .owl-carousel .owl-buttons div:hover,
.news-carousel-box .owl-carousel .owl-buttons div:hover,
.brands-carousel-box .owl-carousel .owl-buttons div:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* =================================================================
   OCT — Товар дня (oct-day-goods)
   ================================================================= */
.oct-day-goods-box .owl-carousel .owl-wrapper-outer .item .oct-day-goods-item {
  border-radius: 12px !important;
  transition: transform 0.3s ease !important;
}

.oct-day-goods-box .owl-carousel .owl-wrapper-outer .item .oct-day-goods-item:hover {
  transform: translateY(-4px);
}

.oct-day-goods-box .owl-carousel .owl-item .things-to-buy {
  border-radius: 0 0 12px 12px !important;
  transition: background-color 0.3s ease !important;
}

.oct-day-goods-box .owl-carousel .owl-item .things-to-buy .cart a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
}

/* =================================================================
   OCT — Новости/Блог
   ================================================================= */
.news-carousel-box .owl-carousel .owl-wrapper-outer .item .oct-news-item {
  border-radius: 12px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.news-carousel-box .owl-carousel .owl-wrapper-outer .item .oct-news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.news-carousel-box .owl-carousel .owl-wrapper-outer .item .oct-news-item .name a {
  font-family: 'Inter', sans-serif !important;
}

.news-carousel-box .owl-carousel .owl-wrapper-outer .item .oct-news-item .news-button .oct-button {
  border-radius: 20px !important;
}

.news-row .product-thumb {
  border-radius: 12px !important;
}

/* =================================================================
   OCT — Отзывы
   ================================================================= */
.review-table {
  border-radius: 10px !important;
  overflow: hidden;
}

.review-table .author {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}

.review-table .review-text {
  font-family: 'Inter', sans-serif !important;
  line-height: 1.7 !important;
}

.review-table .reputation-buttons button {
  transition: transform 0.2s ease;
}

.review-table .reputation-buttons button:hover {
  transform: scale(1.2);
}

/* =================================================================
   OCT — Фильтр (oct-product-filter)
   ================================================================= */
#oct-selected-values button {
  border-radius: 20px !important;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.2s ease !important;
}

#oct-selected-values button:hover {
  transform: translateY(-1px);
}

#button-reset {
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.3s ease !important;
}

#button-reset:hover {
  transform: translateY(-1px);
}

/* =================================================================
   OCT — Политика конфиденциальности (#oct-policy)
   ================================================================= */
#oct-policy {
  border-radius: 16px 16px 0 0 !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  background: rgba(0, 0, 0, 0.8) !important;
}

.oct-policy-text {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
}

#oct-policy-btn {
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

#oct-policy-btn:hover {
  transform: translateY(-1px);
}

/* =================================================================
   OCT — Информационная панель (#oct-information_bar)
   ================================================================= */
#oct-information_bar {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.oct-information_bar-text {
  font-family: 'Inter', sans-serif !important;
}

#oct-information_bar-btn {
  border-radius: 6px !important;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.3s ease !important;
}

/* =================================================================
   OCT — Слайдшоу
   ================================================================= */
.oct-slideshow-box .item .oct-slideshow-item-text {
  font-family: 'Inter', sans-serif !important;
}

.oct-slideshow-box .item .oct-slideshow-item-button .oct-button {
  border-radius: 24px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
}

.oct-slideshowplus-header {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}

/* =================================================================
   OCT — Бренды
   ================================================================= */
.brands-carousel-box .brands-carousel {
  border-radius: 12px !important;
}

.brands-carousel-box .brands-carousel .item img {
  transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.brands-carousel-box .brands-carousel .item:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

/* =================================================================
   OCT — Кнопки корзины в карточках
   ================================================================= */
.product-thumb .button-group {
  border-radius: 0 0 12px 12px !important;
  overflow: hidden;
}

.product-thumb .button-group button {
  transition: all 0.2s ease !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.product-thumb .button-group button:hover {
  background-color: rgba(0,0,0,0.06) !important;
}

/* =================================================================
   OCT — Карт items в корзине
   ================================================================= */
.oct-cart-item {
  transition: background 0.2s ease;
  border-radius: 8px;
}

.oct-cart-item:hover {
  background: rgba(0,0,0,0.02);
}

.oct-cart-item > div.item-name a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
}

.oct-cart-item > div.delete-item button {
  border-radius: 50% !important;
  transition: all 0.3s ease;
}

.oct-cart-item > div.delete-item button:hover {
  background: rgba(231, 33, 33, 0.1) !important;
  transform: scale(1.15);
}

/* =================================================================
   OCT — Sidebar-меню (#sstore-3-level)
   ================================================================= */
#sstore-3-level > ul > li > a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

#sstore-3-level ul ul li a {
  font-family: 'Inter', sans-serif !important;
  transition: all 0.2s ease !important;
}

/* =================================================================
   OCT — Manufacturer page
   ================================================================= */
.oct-manufacturer-item {
  border-radius: 12px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.oct-manufacturer-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.oct-manufacturer-item a {
  font-family: 'Inter', sans-serif !important;
}

/* =================================================================
   OCT — Сравнение товаров
   ================================================================= */
.table.compare-table .oct-button {
  border-radius: 8px !important;
}

/* =================================================================
   OCT – Описание на странице товара (атрибуты)
   ================================================================= */
.oct-attr-product-header-text {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}

.oct-attr-product-item {
  font-family: 'Inter', sans-serif !important;
}

/* =================================================================
   OCT — Количество в карточке
   ================================================================= */
.number {
  border-radius: 8px !important;
}

.number .btn-minus button,
.number .btn-plus button {
  transition: all 0.2s ease !important;
}

.number .btn-minus button:hover,
.number .btn-plus button:hover {
  transform: scale(1.15);
}

/* =================================================================
   Крутой анимированный фон (Premium Mesh Gradient / Aurora)
   ================================================================= */
.modern-bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -5;
  overflow: hidden;
  background-color: #f6f8fb; /* Базовый светлый фон */
  pointer-events: none;
}

/* Плавающие цветовые пятна (эффект Mesh Gradient / Watercolor) */
.modern-bg-animation .blob {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.8;
  animation: blob-float 20s infinite ease-in-out alternate;
  will-change: transform;
}

.modern-bg-animation .blob:nth-child(1) {
  width: 50vw; height: 50vw;
  background: #ffcfd2; /* Нежный красный/розовый */
  top: -10%; left: -10%;
  animation-duration: 28s;
}

.modern-bg-animation .blob:nth-child(2) {
  width: 45vw; height: 45vw;
  background: #cfd8ff; /* Нежный синий (отличное сочетание) */
  top: 30%; right: -10%;
  animation-duration: 32s;
  animation-delay: -5s;
}

.modern-bg-animation .blob:nth-child(3) {
  width: 40vw; height: 40vw;
  background: #fdf2e9; /* Тёплый персиковый/оранжевый */
  bottom: -20%; left: 10%;
  animation-duration: 25s;
  animation-delay: -10s;
}

.modern-bg-animation .blob:nth-child(4) {
  width: 55vw; height: 55vw;
  background: #f1c40f; /* Мягкий желтоватый блик */
  opacity: 0.5;
  top: 10%; left: 40%;
  animation-duration: 35s;
  animation-delay: -15s;
}

@keyframes blob-float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8vw, -8vh) scale(1.15); }
  66% { transform: translate(-8vw, 8vh) scale(0.85); }
  100% { transform: translate(0, 0) scale(1.05); }
}

/* =================================================================
   Respect prefers-reduced-motion
   ================================================================= */
@media(prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .modern-bg-animation .blob { 
    animation: none !important; 
  }
}

/* =================================================================
   ФАЗА 3.3 — Блок производителей в категориях (Collapsible)
   ================================================================= */
.modern-category-brands-wrapper {
	position: relative;
	max-height: 85px; /* Примерно полтора ряда визуальности */
	overflow: hidden;
	margin-top: 10px;
	margin-bottom: 0;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 12px;
}

.modern-category-brands-wrapper.expanded {
	max-height: 2500px; /* Снимаем ограничение высоты для полного списка */
}

.modern-category-brands {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.modern-brand-item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 5px 15px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 8px;
	transition: all 0.2s ease;
	text-decoration: none !important;
}

.modern-brand-item:hover {
	border-color: rgba(0,0,0,0.15);
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	transform: translateY(-2px);
}

.modern-brand-item img {
	max-height: 30px;
	width: auto;
	object-fit: contain;
}

.brand-text-fallback {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #555;
}

.modern-brands-gradient {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40px;
	background: linear-gradient(to bottom, rgba(245,246,250,0), rgba(245,246,250,1)); /* Учитываем фон body */
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.modern-category-brands-wrapper.expanded .modern-brands-gradient {
	opacity: 0;
}

.modern-brands-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 5px auto 25px;
	background: transparent;
	border: none;
	color: #e31e24;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 10px;
	transition: color 0.2s ease;
}

.modern-brands-toggle:hover {
	color: #c2191f;
}

.modern-brands-toggle svg {
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-brands-toggle.active svg {
	transform: rotate(180deg);
}

/* =================================================================
   ФАЗА 3.3 — Авторизация рядом с корзиной
   ================================================================= */
.modern-buttons-box {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}
.header-auth-box {
    position: relative;
    display: flex;
    align-items: center;
}
.modern-auth-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2C3E50;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none !important;
}
.modern-auth-link:hover, .modern-auth-link:focus {
    color: #E31E24;
}
.modern-auth-link svg {
    color: #E31E24;
    transition: color 0.2s ease;
}
.modern-auth-dropdown {
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 8px 0;
}
.modern-auth-dropdown li a {
    padding: 8px 20px;
    color: #2C3E50;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.modern-auth-dropdown li a:hover {
    background: #f8f9fa;
    color: #E31E24;
}

/* =================================================================
   ФАЗА 9 — Современный Live Search Dropdown
   ================================================================= */

/* Контейнер выпадающего списка */
#tech_livesearch, .live-search {
    position: absolute !important;
    top: calc(100% + 14px) !important;
    bottom: auto !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    border: none !important;
    z-index: 10050 !important;
    overflow: hidden !important;
    max-height: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
    opacity: 0;
}

#tech_livesearch.expanded, .live-search {
    max-height: 480px !important;
    opacity: 1;
    border-top: none !important;
}

#tech_livesearch > div, .live-search > ul {
    padding: 12px !important;
    overflow-y: auto !important;
    max-height: 480px !important;
    min-height: auto !important;
    margin: 0 !important;
}

/* Скроллбар внутри дропдауна */
#tech_livesearch > div::-webkit-scrollbar, .live-search > ul::-webkit-scrollbar {
    width: 6px;
}
#tech_livesearch > div::-webkit-scrollbar-track, .live-search > ul::-webkit-scrollbar-track {
    background: transparent;
}
#tech_livesearch > div::-webkit-scrollbar-thumb, .live-search > ul::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
#tech_livesearch > div::-webkit-scrollbar-thumb:hover, .live-search > ul::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.ts-livesearch-list {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Tight gap, handled by item padding */
}

.ts-livesearch-list-item, .live-search ul li {
    background: transparent !important;
    border: none !important;
    border-radius: 10px;
    padding: 8px 12px !important;
    margin-bottom: 0 !important;
    transition: background 0.2s ease !important;
    display: flex;
    align-items: center;
}

.live-search ul li:nth-child(even) {
    background: transparent !important;
}

.ts-livesearch-list-item:hover, .live-search ul li:hover {
    background: #f4f6f8 !important;
}

.ts-livesearch-list-item-image, .live-search .product-image {
    margin-right: 16px !important;
    flex-shrink: 0;
}

.ts-livesearch-list-item-image img, .live-search .product-image img {
    border-radius: 8px;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.04);
}

.ts-livesearch-list-item-info, .live-search .product-name {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left !important;
}

.live-search ul li > div > a {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.live-search .result-text {
    padding: 10px 12px 12px 12px !important;
    background: transparent !important;
    border-top: 1px solid rgba(0,0,0,0.04) !important;
    margin-top: 6px !important;
}

.live-search .result-text a.btn {
    background: #e31e24 !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 10px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    width: 100%;
    display: block;
    text-align: center;
    transition: background 0.2s ease !important;
}

.live-search .result-text a.btn:hover {
    background: #c61a1f !important;
}

.ts-livesearch-list-item-name {
    margin-bottom: 4px !important;
}

.ts-livesearch-list-item-name a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.ts-livesearch-list-item-name a:hover {
    color: #59c2e6 !important; /* Brand blue */
}

.ts-livesearch-list-item-price {
    margin-bottom: 2px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ts-livesearch-list-item-price span.ts-price-actual,
.ts-livesearch-list-item-price span.ts-price-new {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #8F2A2A !important;
}

.ts-livesearch-list-item-price span.ts-price-old {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    color: #999 !important;
    text-decoration: line-through;
}

.ts-livesearch-list-item-model-sku {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    color: #888 !important;
    margin-bottom: 0 !important;
}

.ts-livesearch-list-item-model-sku .ts-product-info-code {
    font-family: monospace;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    color: #555;
}

.ts-livesearch-list-item-stock {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 4px;
}

.ts-livesearch-list-item-stock .in-stock {
    color: #27ae60 !important;
}

.ts-livesearch-list-item-stock .out-of-stock {
    color: #e74c3c !important;
}

/* Button "Show all results" */
.ts-livesearch-list + a,
.ts-livesearch-list + div > a {
    display: block;
    text-align: center;
    background: #8F2A2A !important;
    color: white !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    margin-top: 12px !important;
    transition: background 0.2s ease !important;
}

.ts-livesearch-list + a:hover,
.ts-livesearch-list + div > a:hover {
    background: #C0392B !important;
}

/* Кнопка закрытия */
#tech_livesearch_close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f0f2f5 !important;
    color: #666 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    z-index: 10051 !important;
    opacity: 0;
    padding: 0 !important;
    line-height: 32px !important;
}

#tech_livesearch_close.visible {
    opacity: 1 !important;
}

#tech_livesearch_close:hover {
    background: #e0e3e8 !important;
    color: #333 !important;
}

/* =================================================================
   ФАЗА 10 — Email под телефонами в шапке
   ================================================================= */
.modern-phones-box {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.header-email-row {
    margin-top: 6px;
    font-size: 13px; /* Slightly larger for readability */
    line-height: 1.4;
}

/* Override bad old theme CSS that caused overlap */
.phones-dropdown a.show-phones {
    line-height: 1.4 !important;
    top: 0 !important;
    left: 0 !important;
    margin-top: 3px !important;
    display: block !important;
    text-align: left !important;
}

/* Left-align the entire phone block */
.phones-dropdown {
    text-align: left !important;
}

.phones-dropdown > a.dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.header-email-row .phones-dropdown-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-email-row .phones-dropdown-socials-icon {
    font-size: 12px;
    color: #8F2A2A;
}

.header-email-row .phones-dropdown-socials a {
    color: #555 !important;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-email-row .phones-dropdown-socials a:hover {
    color: #8F2A2A !important;
}

/* =================================================================
   ФАЗА 10.2 — Радикальный override старых стилей #search
   ================================================================= */
#search {
    margin-bottom: 0 !important;
    position: relative !important;
}

/* Kill ALL old theme input styles */
#search .btn-lg,
#search .input-lg,
#search .btn-search,
#search .input-group-btn,
#search .input-group {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    height: auto !important;
    padding: 0 !important;
}

/* The modern search already uses .modern-search-input, not .input-lg */
#search input[name="search"] {
    border: none !important;
    box-shadow: none !important;
    height: 100% !important;
}

/* Kill old dropdown category selector styling */
#search .dropdown-menu {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
}

/* Phone area — callback link */
.show-phones {
    font-size: 12px !important;
    color: #8F2A2A !important;
    cursor: pointer;
    font-family: 'Inter', sans-serif !important;
    display: block;
    margin-top: 2px;
}

.show-phones:hover {
    text-decoration: underline !important;
}

/* Phones dropdown styling */
.phones-dropdown > a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    font-size: 15px !important;
}

.phones-dropdown > a .fa-phone {
    color: #8F2A2A !important;
}

.phones-dropdown .dropdown-menu {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    padding: 8px 0 !important;
    min-width: 220px !important;
}

.phones-dropdown .dropdown-menu li {
    padding: 0 !important;
    border: none !important;
}

.phones-dropdown .dropdown-menu li a {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
    color: #333 !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.phones-dropdown .dropdown-menu li a i {
    color: #8F2A2A;
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.phones-dropdown .dropdown-menu li a:hover {
    background: #f4f6f8 !important;
    color: #8F2A2A !important;
}

/* Установка Header поверх всего остального для выпадающих меню */
header {
    position: relative;
    z-index: 10020 !important;
    background: transparent !important;
}

/* Применяем ультра-компактность ТОЛЬКО для десктопов (>992px). 
   На мобильных и планшетах шапка должна быть стандартной, иначе едет вёрстка */
@media (min-width: 992px) {
    header {
        padding-top: 4px !important;  /* Убираем 20px из stylesheet.css */
        padding-bottom: 0 !important;
    }

    /* Компактная высота блока с лого, поиском и телефоном */
    header > .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .middle-header {
        min-height: auto !important;
        padding: 8px 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Kill old fixed margins that inflate height */
    .middle-header .phones-top-box,
    .middle-header .ts-logo-box,
    .middle-header .ts-search-box,
    .middle-header .buttons-top-box {
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Логотип компактный */
    #logo {
        margin-bottom: 0 !important; /* Убираем 18px из stylesheet.css */
    }

    #logo img {
        max-height: 40px !important;
        width: auto !important;
    }

    .ts-logo-box {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: auto !important;
    }
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ ШАПКИ (Ультра-минимализм по ТЗ)
   ========================================================= */
@media (max-width: 991px) {
    /* Полностью убираем отступы у шапки, чтобы прилипала к верху */
    header {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: 0 !important;
    }
    
    header > .container {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* На мобилках скрываем весь средний блок (логотип, телефон, старый поиск), 
       так как всё управление теперь в липкой панели с гамбургером */
    header .row.middle-header {
        display: none !important;
    }
}

/* =================================================================
   ФАЗА 20 — Исправление прозрачности фонов (Gradient Bleed Fix)
   ================================================================= */
.oct-carousel-box,
.oct-product-tab,
.main-advantage-item,
#subcats .subcat-box,
.oct-category-item-box,
.about-text-box,
.cat-desc-box,
.news-carousel-box {
    background: #fff !important;
}

/* =================================================================
   ФАЗА 21 — Border Beam (Анимация бегающего свечения при наведении)
   ================================================================= */
@keyframes borderBeamSpin {
    0%   { --beam-angle: 0deg; }
    100% { --beam-angle: 360deg; }
}

@property --beam-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Элементы с border beam эффектом */
.product-thumb,
.oct-carousel-box,
.main-advantage-item,
#subcats .subcat-box,
.oct-category-item-box {
    position: relative;
    overflow: hidden;
}

.product-thumb::before,
.oct-carousel-box::before,
.main-advantage-item::before,
#subcats .subcat-box::before,
.oct-category-item-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from var(--beam-angle, 0deg),
        transparent 0%,
        transparent 70%,
        rgba(227, 30, 36, 0.6) 78%,
        rgba(255, 180, 50, 0.9) 82%,
        rgba(227, 30, 36, 0.6) 86%,
        transparent 94%,
        transparent 100%
    );
    z-index: 0;
    opacity: 0;
    animation: borderBeamSpin 3s linear infinite;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
}

.product-thumb:hover::before,
.oct-carousel-box:hover::before,
.main-advantage-item:hover::before,
#subcats .subcat-box:hover::before,
.oct-category-item-box:hover::before {
    opacity: 1;
}

/* Внутренний фон, прикрывающий beam изнутри (оставляя только бордюр ~2px) */
.product-thumb::after,
.oct-carousel-box::after,
.main-advantage-item::after,
#subcats .subcat-box::after,
.oct-category-item-box::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
}

/* Контент карточки должен быть выше ::after overlay */
.product-thumb > *,
.oct-carousel-box > *,
.main-advantage-item > *,
#subcats .subcat-box > *,
.oct-category-item-box > * {
    position: relative;
    z-index: 2;
}

/* Clearfix ::before и ::after на .cart уже отключены, но убедимся */
.product-thumb .cart::before,
.product-thumb .cart::after {
    content: none !important;
}

/* =================================================================
   ФАЗА 22 — Скрытие всплывающих подсказок на мобильных устройствах
   (Только пузыри ::before/::after, НЕ сами элементы!)
   ================================================================= */
@media (max-width: 992px) {
    /* Скрываем ТОЛЬКО всплывающий пузырь, а не сам элемент */
    *[data-tooltip]::after,
    *[data-tooltip]::before {
        display: none !important;
    }
    /* Bootstrap tooltip тоже убираем на тач-устройствах */
    .tooltip {
        display: none !important;
    }
}

/* =================================================================
   ФАЗА 22.1 — Премиальная таблица складов (Warehouses) 
   ================================================================= */
.warehouse {
    margin-top: 16px;
    margin-bottom: 16px;
}

.warehouse table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: 13px;
}

.warehouse table thead tr {
    background: none;
}

.warehouse table thead th {
    padding: 6px 14px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    border: none;
    background: none;
}

.warehouse table tbody tr {
    background: #f8f8f8;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.warehouse table tbody tr td:first-child {
    border-radius: 8px 0 0 8px;
}

.warehouse table tbody tr td:last-child {
    border-radius: 0 8px 8px 0;
}

.warehouse table tbody tr:hover {
    background: rgba(227, 30, 36, 0.06);
    transform: translateX(2px);
}

.warehouse table tbody td {
    padding: 10px 14px;
    vertical-align: middle;
    border: none;
}

.warehouse table tbody td a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 13px;
}

.warehouse table tbody td a:hover {
    color: #e31e24;
}

.warehouse table tbody td b {
    color: #e31e24;
    font-weight: 700;
    font-size: 14px;
}

@media (max-width: 768px) {
    .warehouse table {
        font-size: 12px;
        border-spacing: 0 4px;
    }
    .warehouse table thead th {
        padding: 4px 10px;
        font-size: 10px;
    }
    .warehouse table tbody td {
        padding: 8px 10px;
    }
    .warehouse table tbody td a {
        font-size: 12px;
    }
}

/* =================================================================
   ФАЗА 23 — Оптимизация для планшетов (768px — 992px)
   ================================================================= */
@media only screen and (min-width: 750px) and (max-width: 992px) {
    /* --- Компактный мобильный top-бар --- */
    #top, .top-mobile-item {
        height: 46px !important;
        min-height: 46px !important;
    }
    .top-mobile-item a {
        line-height: 46px !important;
    }
    .top-mobile-item a i {
        font-size: 22px !important;
        line-height: 46px !important;
    }
    /* Wrapper padding для планшетов (46px бар) */
    body {
        padding-top: 46px !important;
    }

    /* --- Сайдбар: на всю ширину, блоки в ряд --- */
    #column-left, #column-right {
        width: 100% !important;
        float: none !important;
        margin-bottom: 15px;
        display: flex !important;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        align-items: stretch;
    }
    #column-left > div, #column-right > div {
        flex: 1 1 0;
        min-width: 200px;
        max-width: calc(33.333% - 10px);
        display: flex;
        flex-direction: column;
    }
    /* Внутренние блоки: заполняют всю высоту */
    #column-left .oct-carousel-box, #column-right .oct-carousel-box {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-align: center;
        padding: 15px 10px !important;
    }
    /* Скрываем пустые кнопки карусели (стрелки без иконок) */
    #column-left .owl-buttons,
    #column-right .owl-buttons {
        display: none !important;
    }
    /* Заголовки блоков */
    #column-left .oct-carousel-header,
    #column-right .oct-carousel-header {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    /* Товарные карточки внутри блоков */
    #column-left .product-thumb,
    #column-right .product-thumb {
        margin-bottom: 0 !important;
        box-shadow: none !important;
    }
    #content.col-sm-9, #content.col-sm-6 {
        width: 100% !important;
    }

    /* --- Шапка: логотип + корзина компактнее --- */
    header {
        margin-bottom: 8px !important;
    }
    .ts-logo-box {
        text-align: left !important;
        width: 40% !important;
    }
    .mobile-icons-box {
        width: 60% !important;
    }

    /* --- Категории на главной: 2 колонки вместо 1 --- */
    .oct-category-item-box {
        width: calc(50% - 30px) !important;
        display: inline-block !important;
        vertical-align: top !important;
    }
    .oct-category-item-box .oct-category-item-icon img {
        max-height: 80px !important;
    }

    /* --- Товарная сетка: 3 колонки --- */
    #res-products .product-grid {
        width: 33.333% !important;
        min-height: 380px !important;
    }
    .product-grid .product-thumb .h4 {
        height: 50px !important;
        overflow: hidden !important;
    }

    /* --- Меньше вертикальных отступов между секциями --- */
    .oct-carousel-header {
        margin-bottom: 10px !important;
    }
    .oct-carousel-row {
        margin-bottom: 15px !important;
    }

    /* --- Футер: 2 колонки --- */
    footer .third-row > div {
        width: 50% !important;
        float: left !important;
    }
    footer .last-row {
        clear: both;
    }

    /* --- Новостные блоки: 2 колонки --- */
    .oct-news-content .product-list {
        width: 50% !important;
    }

    /* --- Уменьшаем отступы в хлебных крошках --- */
    .breadcrumb-box {
        margin-bottom: 5px !important;
        margin-top: 10px !important;
    }
    .content-row {
        padding-top: 8px !important;
    }

    /* --- Сортировка: компактнее --- */
    .sort-row {
        padding: 8px 0 !important;
    }

    /* --- Блок описания категории: ограничиваем высоту --- */
    .cat-desc-box {
        max-height: 120px;
        overflow: hidden;
        margin-bottom: 10px;
    }
}

/* Remove background from top header cart */
#cart, #oct-micro-cart { background: transparent !important; background-color: transparent !important; box-shadow: none !important; border: none !important; }

#cart > .btn, #cart > button, #cart button, #cart .heading { background: transparent !important; background-color: transparent !important; box-shadow: none !important; border: none !important; }

/* =================================================================
   Floating Cart Button — стиль идентичен #uptocall-mini (обратный звонок)
   ================================================================= */
#floating-cart-mini {
  position: fixed;
  bottom: 155px;
  right: 20px;
  border: 10px solid rgb(169, 68, 66);
  border-radius: 50%;
  z-index: 999;
  cursor: pointer;
  opacity: .85;
  text-decoration: none !important;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

#floating-cart-mini:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3) !important;
  opacity: 1;
}

/* Круг с иконкой — копия #uptocall-mini .uptocall-mini-phone */
#floating-cart-mini .uptocall-mini-phone {
  border-radius: 50% !important;
  background-color: #303030;
  width: 55px;
  height: 55px;
  transform: none !important;
  transition: background-color 0.3s ease !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

#floating-cart-mini:hover .uptocall-mini-phone {
  background-color: #303030;
}

/* Иконка корзины — без rotate, по центру */
#floating-cart-mini .uptocall-mini-phone i {
  font-size: 26px;
  color: #fff;
  transform: none !important;
  position: static;
  top: auto;
  left: auto;
  animation: none !important;
  -webkit-animation: none !important;
}

/* Бейдж с количеством товаров */
.floating-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  padding: 0 6px;
  background: #e31e24;
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  border-radius: 11px;
  box-shadow: 0 2px 6px rgba(227,30,36,0.4);
  display: none;
  z-index: 10;
}
.floating-cart-badge.has-items { display: block; }

@keyframes floating-cart-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.25); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.floating-cart-badge.bounce { animation: floating-cart-bounce 0.5s ease; }

/* Адаптив — следуем за #uptocall-mini */
@media only screen and (max-width: 992px) {
  #floating-cart-mini {
    bottom: 75px;
    right: 0;
  }
}
@media only screen and (max-width: 768px) {
  #floating-cart-mini {
    bottom: 85px;
  }
}

/* #back-top — под кнопкой "Обратный звонок" */
p#back-top {
  bottom: 20px !important;
  right: 30px !important;
}
@media only screen and (max-width: 992px) {
  p#back-top {
    bottom: 5px !important;
    right: 8px !important;
    width: 35px !important;
    height: 35px !important;
    line-height: 35px !important;
  }
}
@media only screen and (max-width: 768px) {
  p#back-top {
    bottom: 5px !important;
  }
}

/* =================================================================
   Модальное окно «Обязательные товары» (Required Products Modal)
   ================================================================= */
.required-products-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rpFadeIn 0.25s ease;
}
@keyframes rpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.required-products-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-width: 560px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0;
  position: relative;
  animation: rpSlideUp 0.3s ease;
}
@keyframes rpSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.rp-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.rp-header h3 {
  margin: 0 0 6px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}
.rp-header p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #777;
  line-height: 1.4;
}
.rp-body {
  padding: 16px 24px;
}
.rp-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: opacity 0.2s ease;
}
.rp-product:last-child {
  border-bottom: none;
}
.rp-product.rp-disabled {
  opacity: 0.4;
}
.rp-product.rp-disabled .rp-qty-control {
  pointer-events: none;
}

/* Чекбокс */
.rp-checkbox-wrap {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  cursor: pointer;
  margin: 0;
}
.rp-checkbox-wrap input.rp-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.rp-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 5px;
  background: #fff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rp-checkbox:checked + .rp-checkmark {
  background: #8F2A2A;
  border-color: #8F2A2A;
}
.rp-checkbox:checked + .rp-checkmark::after {
  content: '✓';
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.rp-product-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: #f8f8f8;
  flex-shrink: 0;
}
.rp-product-info {
  flex: 1;
  min-width: 0;
}
.rp-product-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  line-height: 1.3;
}
.rp-product-price {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #8F2A2A;
  font-weight: 600;
}
.rp-product-avail {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

/* Контрол количества */
.rp-qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}
.rp-qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: #f5f5f5;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  padding: 0;
  line-height: 1;
}
.rp-qty-btn:hover {
  background: #e0e0e0;
}
.rp-qty-input {
  width: 38px;
  height: 30px;
  border: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  background: #fff;
  -moz-appearance: textfield;
  padding: 0;
}
.rp-qty-input::-webkit-outer-spin-button,
.rp-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Итог — количество основного товара */
.rp-summary {
  padding: 12px 24px;
  background: #f9fafb;
  border-top: 1px solid #f0f0f0;
}
.rp-summary-line {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #555;
}
.rp-summary-line strong {
  color: #1a1a1a;
}
#rp-main-qty {
  font-weight: 700;
  color: #8F2A2A;
  font-size: 15px;
}

.rp-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.rp-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.rp-btn-primary {
  background: #8F2A2A;
  color: #fff;
}
.rp-btn-primary:hover:not(:disabled) {
  background: #a63232;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(143,42,42,0.3);
}
.rp-btn-primary:disabled,
.rp-btn-disabled {
  background: #ccc !important;
  color: #999 !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.rp-btn-secondary {
  background: #f0f2f5;
  color: #555;
}
.rp-btn-secondary:hover {
  background: #e4e7eb;
}
.rp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f0f2f5;
  border-radius: 50%;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}
.rp-close:hover {
  background: #e0e3e8;
  color: #333;
}
@media (max-width: 480px) {
  .required-products-modal { width: 96%; }
  .rp-header, .rp-body, .rp-footer, .rp-summary { padding-left: 16px; padding-right: 16px; }
  .rp-footer { flex-direction: column; }
  .rp-btn { min-width: 100%; }
  .rp-product { gap: 8px; }
  .rp-product-img { width: 40px; height: 40px; }
}

