/* =================================================================
   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: #F5F6FA !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;
}

/* Сбрасываем любые старые скриптовые sticky-стили меню (защита от JS) */
.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;
    }
}



/* =================================================================
   ФАЗА 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, #oct-bluring-box {
    background-color: transparent !important;
    color: #1a1a1a;
    font-family: 'Inter', 'Roboto', sans-serif !important;
    overflow-x: clip !important; /* Fixes position: sticky inside body/wrappers */
}

/* Эффект матового стекла (общий утилитарный класс) */
.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: inline-flex;
}

.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);
}

/* Background animation rules are defined ONLY in modern-overrides.css */

/* ─── Метка "Не продаётся отдельно" ─── */
.not-sold-separately-badge {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    max-width: 90%;
    background: rgba(143, 42, 42, 0.88);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 3px 10px;
    border-radius: 4px;
    text-align: center;
    z-index: 5;
    pointer-events: none;
}

.not-sold-separately-product-page {
    position: static;
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: 4px 0 10px 0;
    font-size: 13px;
    padding: 5px 14px;
}
