/* Голубєв START 2026-06-29: OpenCart - новый дизайн Kapitoshka */

/* Базовая идея:
   темно-фиолетовый верх + темно-зеленый акцент + белый чистый фон
*/

:root {
    --kapi-purple: #21182e;
    --kapi-purple-2: #241a33;
    --kapi-purple-dark: #1a1224;
    --kapi-green: #1f7a4d;
    --kapi-green-hover: #17633f;
    --kapi-red: #c73535;
    --kapi-text: #20242a;
    --kapi-muted: #6b7280;
    --kapi-light: #f6f7f9;
    --kapi-border: #e5e7eb;
}

/* Общий фон */
body {
    background: #ffffff !important;
    color: var(--kapi-text) !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
}

/* Верхняя панель */
.top-line,
.us-top-line,
#top,
header .top,
header .top-line {
    background: var(--kapi-purple) !important;
    color: #ffffff !important;
}

.top-line a,
.us-top-line a,
#top a,
header .top a,
header .top-line a {
    color: #ffffff !important;
}

.top-line a:hover,
.us-top-line a:hover,
#top a:hover,
header .top a:hover {
    color: #9fd8bb !important;
}

/* Шапка */
header,
.us-header,
.header,
#header {
    background: #ffffff !important;
}

/* Логотип */
#logo a,
.logo a,
.us-logo a {
    color: var(--kapi-purple) !important;
}

/* Поиск */
input[type="text"],
input[type="search"],
.form-control {
    border-color: var(--kapi-border) !important;
}

input[type="text"]:focus,
input[type="search"]:focus,
.form-control:focus {
    border-color: var(--kapi-green) !important;
    box-shadow: 0 0 0 2px rgba(31, 122, 77, 0.12) !important;
}

/* Главное меню UltraStore */
.menu-row,
.us-menu-row,
.oct-menu-row,
#menu,
.menu,
.oct-mm,
.oct-menu,
.us-menu {
    background: var(--kapi-purple-2) !important;
}

/* Пункты меню */
.menu-row a,
.us-menu-row a,
.oct-menu-row a,
#menu a,
.menu a,
.oct-mm a,
.oct-menu a,
.us-menu a {
    color: #ffffff !important;
}

/* Активный пункт и наведение */
.menu-row a:hover,
.us-menu-row a:hover,
.oct-menu-row a:hover,
#menu a:hover,
.menu a:hover,
.oct-mm a:hover,
.oct-menu a:hover,
.us-menu a:hover,
.menu-row .active > a,
.us-menu-row .active > a,
.oct-menu-row .active > a,
#menu .active > a,
.menu .active > a,
.oct-mm .active > a,
.oct-menu .active > a,
.us-menu .active > a {
    background: var(--kapi-green) !important;
    color: #ffffff !important;
}

/* Выпадающее меню */
.dropdown-menu,
.oct-menu-dropdown,
.oct-mm-dropdown,
.us-dropdown-menu {
    background: #ffffff !important;
    border: 1px solid var(--kapi-border) !important;
    box-shadow: 0 12px 30px rgba(33, 24, 46, 0.18) !important;
}

.dropdown-menu a,
.oct-menu-dropdown a,
.oct-mm-dropdown a,
.us-dropdown-menu a {
    background: #ffffff !important;
    color: var(--kapi-text) !important;
}

.dropdown-menu a:hover,
.oct-menu-dropdown a:hover,
.oct-mm-dropdown a:hover,
.us-dropdown-menu a:hover {
    background: var(--kapi-light) !important;
    color: var(--kapi-green) !important;
}

/* Левое меню категорий */
#column-left,
#column-right,
.sidebar,
.list-group,
.us-column-box,
.us-category-box,
.us-category-wall {
    background: var(--kapi-light) !important;
}

.list-group a,
.us-column-box a,
.us-category-box a,
.us-category-wall a {
    color: #374151 !important;
}

.list-group a:hover,
.us-column-box a:hover,
.us-category-box a:hover,
.us-category-wall a:hover,
.list-group .active {
    color: var(--kapi-green) !important;
}

/* Заголовки */
h1, h2, h3, h4,
.us-main-shop-title,
.us-module-header {
    color: var(--kapi-text) !important;
}

/* Карточки товаров */
.product-thumb,
.product-layout,
.us-module-item,
.us-product-grid-item,
.us-product-list-item {
    background: #ffffff !important;
    border-color: #eef0f3 !important;
}

.product-thumb,
.us-module-item,
.us-product-grid-item,
.us-product-list-item {
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(33, 24, 46, 0.06) !important;
    transition: all 0.2s ease-in-out !important;
}

.product-thumb:hover,
.us-module-item:hover,
.us-product-grid-item:hover,
.us-product-list-item:hover {
    box-shadow: 0 8px 24px rgba(33, 24, 46, 0.12) !important;
}

/* Название товара */
.product-thumb h4 a,
.product-thumb .caption a,
.us-module-title a,
.us-product-title a,
.us-product-name a,
.product-title a {
    color: var(--kapi-text) !important;
    font-weight: 600 !important;
}

.product-thumb h4 a:hover,
.product-thumb .caption a:hover,
.us-module-title a:hover,
.us-product-title a:hover,
.us-product-name a:hover,
.product-title a:hover {
    color: var(--kapi-green) !important;
}

/* Цена */
.price,
.us-price,
.product-price,
.us-module-price,
.price-new {
    color: var(--kapi-text) !important;
    font-weight: 700 !important;
}

/* Акционная цена */
.price-new,
.special-price,
.us-price-new,
.us-module-price-new {
    color: var(--kapi-red) !important;
    font-weight: 800 !important;
}

/* Старая цена */
.price-old,
.old-price,
.us-price-old,
.us-module-price-old {
    color: #9ca3af !important;
    text-decoration: line-through !important;
}

/* Кнопки купить / корзина */
.btn-primary,
.button-cart,
#button-cart,
.us-module-btn,
.us-product-btn,
button[onclick*="cart.add"],
button[onclick*="cart.add("],
input[type="button"].btn-primary,
input[type="submit"].btn-primary {
    background: var(--kapi-green) !important;
    border-color: var(--kapi-green) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.btn-primary:hover,
.button-cart:hover,
#button-cart:hover,
.us-module-btn:hover,
.us-product-btn:hover,
button[onclick*="cart.add"]:hover,
button[onclick*="cart.add("]:hover,
input[type="button"].btn-primary:hover,
input[type="submit"].btn-primary:hover {
    background: var(--kapi-green-hover) !important;
    border-color: var(--kapi-green-hover) !important;
    color: #ffffff !important;
}

/* Ссылки */
a {
    color: var(--kapi-green);
}

a:hover {
    color: var(--kapi-green-hover);
}

/* Бейджи, счетчики, акции */
.badge,
.label,
.sticker,
.product-sticker,
.us-module-stickers span,
.us-product-stickers span,
#cart-total,
.cart-total {
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.badge-danger,
.label-danger,
.sticker-special,
.us-module-stickers span.sticker-special,
.us-product-stickers span.sticker-special {
    background: var(--kapi-red) !important;
    color: #ffffff !important;
}

/* Корзина и счетчик */
#cart-total,
.cart-total,
.us-cart-total {
    background: var(--kapi-red) !important;
    color: #ffffff !important;
}

/* Хлебные крошки */
.breadcrumb {
    background: #ffffff !important;
}

.breadcrumb a {
    color: var(--kapi-muted) !important;
}

.breadcrumb a:hover {
    color: var(--kapi-green) !important;
}

/* Футер */
footer,
#footer,
.us-footer,
.footer {
    background: var(--kapi-purple-dark) !important;
    color: #e5e7eb !important;
}

footer a,
#footer a,
.us-footer a,
.footer a {
    color: #d1d5db !important;
}

footer a:hover,
#footer a:hover,
.us-footer a:hover,
.footer a:hover {
    color: #9fd8bb !important;
}

/* Плавающая боковая панель */
.oct-fixed-bar,
.us-fixed-bar,
.fixed-left {
    background: var(--kapi-purple) !important;
}

.oct-fixed-bar a,
.us-fixed-bar a,
.fixed-left a {
    color: #ffffff !important;
}

/* Плавающая кнопка чата */
.oct-chat,
.us-chat,
.chat-btn,
.messengers-widget,
.oct-messengers {
    background: var(--kapi-green) !important;
}

/* Голубєв END 2026-06-29: OpenCart - новый дизайн Kapitoshka */














/* Голубєв START 2026-06-29: OpenCart - шапка в одну линию Kapitoshka */

/* Первый верхний уровень полностью скрыт */
.top-line,
.us-top-line,
#top,
.oct-top,
.header-top,
.top-row {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Скрываем старую строку шапки, потому что собираем новую */
.kapi-original-header-row {
    display: none !important;
}

/* Белая шапка минимальной высоты */
header,
#header,
.us-header,
.header {
    background: #ffffff !important;
    min-height: 64px !important;
    padding: 0 !important;
    margin: 0 !important;
}

header .container,
#header .container,
.us-header .container,
.header .container {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Новый единый ряд */
.kapi-header-line {
    display: grid !important;
    grid-template-columns: 250px 300px 150px 120px 145px !important;
    column-gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 56px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Все зоны внутри в одну линию */
.kapi-logo-box,
.kapi-search-box,
.kapi-links-box,
.kapi-phone-box,
.kapi-cart-box-final {
    display: flex !important;
    align-items: center !important;
    min-height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Логотип */
.kapi-logo-box {
    justify-content: flex-start !important;
}

#logo,
.logo,
.us-logo {
    width: 250px !important;
    max-width: 250px !important;
    min-width: 250px !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#logo a,
.logo a,
.us-logo a {
    display: block !important;
    width: 250px !important;
    height: 50px !important;
    background: url('/image/catalog/kapitoshka/logo-header.png?v=2026062911') no-repeat left center !important;
    background-size: contain !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    color: transparent !important;
}

#logo img,
.logo img,
.us-logo img {
    display: none !important;
}

/* Пошук */
.kapi-search-box {
    justify-content: flex-start !important;
}

#search,
.search,
.us-search,
.header-search {
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#search input,
.search input,
.us-search input,
.header-search input,
input[name="search"] {
    height: 38px !important;
    border: 1px solid #dfe4ea !important;
    border-radius: 8px 0 0 8px !important;
    background: #ffffff !important;
    color: #20242a !important;
    font-size: 13px !important;
}

#search button,
.search button,
.us-search button,
.header-search button {
    height: 38px !important;
    border-radius: 0 8px 8px 0 !important;
}

/* Язык + личный кабинет */
.kapi-links-box {
    justify-content: flex-start !important;
    gap: 5px !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.kapi-links-box a,
.kapi-links-box button,
.kapi-links-box span {
    color: #24153a !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.kapi-links-box button {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    font: inherit !important;
}

.kapi-links-box a:hover,
.kapi-links-box button:hover {
    color: #39b765 !important;
}

.kapi-separator {
    color: #b5bbc4 !important;
}

.kapi-account-link {
    margin-left: 6px !important;
}

/* Телефон */
.kapi-phone-box {
    justify-content: flex-start !important;
    white-space: nowrap !important;
}

.kapi-phone-box a,
header a[href^="tel"],
#header a[href^="tel"],
.us-header a[href^="tel"],
.header a[href^="tel"] {
    color: #20242a !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.kapi-phone-box a:hover {
    color: #39b765 !important;
}

/* Кошик */
.kapi-cart-box-final {
    justify-content: flex-start !important;
    white-space: nowrap !important;
}

.kapi-cart-box-final #cart,
.kapi-cart-box-final .us-cart,
.kapi-cart-box-final .header-cart {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    text-align: left !important;
    z-index: 1 !important;
}

.kapi-cart-box-final #cart .btn,
.kapi-cart-box-final .us-cart .btn,
.kapi-cart-box-final .header-cart .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #24153a !important;
    line-height: 1.05 !important;
    text-align: left !important;
}

.kapi-cart-box-final #cart a,
.kapi-cart-box-final .us-cart a,
.kapi-cart-box-final .header-cart a {
    color: #39b765 !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
}

/* Меню под шапкой */
.menu-row,
.us-menu-row,
.oct-menu-row,
#menu,
.menu,
.oct-mm,
.oct-menu,
.us-menu {
    background: #24153a !important;
    margin-top: 0 !important;
}

/* Для экранов уже */
@media (max-width: 1250px) {
    .kapi-header-line {
        grid-template-columns: 235px 260px 140px 112px 132px !important;
        column-gap: 9px !important;
    }

    #logo,
    .logo,
    .us-logo,
    #logo a,
    .logo a,
    .us-logo a {
        width: 235px !important;
        min-width: 235px !important;
        max-width: 235px !important;
        height: 48px !important;
    }

    #search,
    .search,
    .us-search,
    .header-search {
        width: 260px !important;
        max-width: 260px !important;
        min-width: 260px !important;
    }

    .kapi-links-box {
        font-size: 11px !important;
    }

    .kapi-phone-box a {
        font-size: 12px !important;
    }

    .kapi-cart-box-final #cart,
    .kapi-cart-box-final .us-cart,
    .kapi-cart-box-final .header-cart {
        width: 132px !important;
        min-width: 132px !important;
        max-width: 132px !important;
    }
}

/* Мобильная версия */
@media (max-width: 991px) {
    .kapi-header-line {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        min-height: auto !important;
        padding: 8px 0 !important;
    }

    .kapi-logo-box,
    .kapi-search-box,
    .kapi-links-box,
    .kapi-phone-box,
    .kapi-cart-box-final {
        min-height: auto !important;
        justify-content: center !important;
    }

    #logo,
    .logo,
    .us-logo,
    #logo a,
    .logo a,
    .us-logo a {
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
        height: 50px !important;
        background-position: center center !important;
    }

    #search,
    .search,
    .us-search,
    .header-search {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
}

/* Голубєв END 2026-06-29: OpenCart - шапка в одну линию Kapitoshka */

/* Голубєв START 2026-06-29: OpenCart - единая темная шапка Kapitoshka */

/* Единый цвет для всей шапки */
header,
#header,
.us-header,
.header {
    background: #24153a !important;
    border-bottom: none !important;
}

/* Контейнер верхней линии */
.kapi-header-line {
    background: #24153a !important;
}

/* Логотип на белой аккуратной плашке, чтобы не пропал на темном фоне */
.kapi-logo-box {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 4px 10px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    min-height: 48px !important;
}

/* Чуть компактнее логотип внутри плашки */
#logo,
.logo,
.us-logo {
    width: 238px !important;
    max-width: 238px !important;
    min-width: 238px !important;
    height: 44px !important;
}

#logo a,
.logo a,
.us-logo a {
    width: 238px !important;
    height: 44px !important;
    background-size: contain !important;
    background-position: left center !important;
}

/* Поиск на темной шапке */
.kapi-search-box {
    min-height: 48px !important;
}

#search input,
.search input,
.us-search input,
.header-search input,
input[name="search"] {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #20242a !important;
}

#search input::placeholder,
.search input::placeholder,
.us-search input::placeholder,
.header-search input::placeholder,
input[name="search"]::placeholder {
    color: #9ca3af !important;
}

#search button,
.search button,
.us-search button,
.header-search button {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #8b95a1 !important;
}

#search button:hover,
.search button:hover,
.us-search button:hover,
.header-search button:hover {
    background: #39b765 !important;
    border-color: #39b765 !important;
    color: #ffffff !important;
}

/* Язык и личный кабинет на темном фоне */
.kapi-links-box a,
.kapi-links-box button,
.kapi-links-box span {
    color: #ffffff !important;
}

.kapi-links-box a:hover,
.kapi-links-box button:hover {
    color: #39b765 !important;
}

.kapi-separator {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Телефон */
.kapi-phone-box a,
header a[href^="tel"],
#header a[href^="tel"],
.us-header a[href^="tel"],
.header a[href^="tel"] {
    color: #ffffff !important;
}

.kapi-phone-box a:hover,
header a[href^="tel"]:hover,
#header a[href^="tel"]:hover,
.us-header a[href^="tel"]:hover,
.header a[href^="tel"]:hover {
    color: #39b765 !important;
}

/* Кошик на темном фоне */
.kapi-cart-box-final #cart,
.kapi-cart-box-final .us-cart,
.kapi-cart-box-final .header-cart {
    color: #ffffff !important;
}

.kapi-cart-box-final #cart .btn,
.kapi-cart-box-final .us-cart .btn,
.kapi-cart-box-final .header-cart .btn {
    color: #ffffff !important;
}

.kapi-cart-box-final #cart strong,
.kapi-cart-box-final #cart b,
.kapi-cart-box-final .us-cart strong,
.kapi-cart-box-final .us-cart b,
.kapi-cart-box-final .header-cart strong,
.kapi-cart-box-final .header-cart b {
    color: #ffffff !important;
}

.kapi-cart-box-final #cart a,
.kapi-cart-box-final .us-cart a,
.kapi-cart-box-final .header-cart a {
    color: #39b765 !important;
}

/* Счетчик корзины */
#cart-total,
.cart-total,
.us-cart-total {
    background: #e84b5f !important;
    color: #ffffff !important;
}

/* Вторая линия категорий тем же цветом */
.menu-row,
.us-menu-row,
.oct-menu-row,
#menu,
.menu,
.oct-mm,
.oct-menu,
.us-menu {
    background: #24153a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Категории */
.menu-row a,
.us-menu-row a,
.oct-menu-row a,
#menu a,
.menu a,
.oct-mm a,
.oct-menu a,
.us-menu a {
    color: #ffffff !important;
}

/* Наведение по категориям */
.menu-row a:hover,
.us-menu-row a:hover,
.oct-menu-row a:hover,
#menu a:hover,
.menu a:hover,
.oct-mm a:hover,
.oct-menu a:hover,
.us-menu a:hover,
.menu-row .active > a,
.us-menu-row .active > a,
.oct-menu-row .active > a,
#menu .active > a,
.menu .active > a,
.oct-mm .active > a,
.oct-menu .active > a,
.us-menu .active > a {
    background: #39b765 !important;
    color: #ffffff !important;
}

/* Убираем визуальный разрыв между первой и второй линией */
.kapi-header-line {
    margin-bottom: 0 !important;
}

header .container,
#header .container,
.us-header .container,
.header .container {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Чуть мягче фон страницы под темную шапку */
body {
    background: #ffffff !important;
}

/* Голубєв END 2026-06-29: OpenCart - единая темная шапка Kapitoshka */


/* Голубєв START 2026-06-29: OpenCart - выпадающие категории Kapitoshka */

/* Фон выпадающего меню */
.menu .dropdown-menu,
#menu .dropdown-menu,
.oct-menu .dropdown-menu,
.oct-mm .dropdown-menu,
.us-menu .dropdown-menu,
.us-menu-row .dropdown-menu,
.oct-menu-row .dropdown-menu,
.menu-row .dropdown-menu,
.menu .dropdown-inner,
#menu .dropdown-inner,
.oct-menu .dropdown-inner,
.oct-mm .dropdown-inner,
.us-menu .dropdown-inner,
.mega-menu,
.megamenu {
    background: #ffffff !important;
    border: 1px solid #e7ebf0 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Текст внутри выпадающего меню */
.menu .dropdown-menu a,
#menu .dropdown-menu a,
.oct-menu .dropdown-menu a,
.oct-mm .dropdown-menu a,
.us-menu .dropdown-menu a,
.us-menu-row .dropdown-menu a,
.oct-menu-row .dropdown-menu a,
.menu-row .dropdown-menu a,
.menu .dropdown-inner a,
#menu .dropdown-inner a,
.oct-menu .dropdown-inner a,
.oct-mm .dropdown-inner a,
.us-menu .dropdown-inner a,
.mega-menu a,
.megamenu a {
    color: #20242a !important;
    background: #ffffff !important;
}

/* Заголовки колонок / подкатегорий */
.menu .dropdown-menu .see-all,
#menu .dropdown-menu .see-all,
.oct-menu .dropdown-menu .see-all,
.oct-mm .dropdown-menu .see-all,
.us-menu .dropdown-menu .see-all,
.menu .dropdown-menu .dropdown-header,
#menu .dropdown-menu .dropdown-header,
.oct-menu .dropdown-menu .dropdown-header,
.oct-mm .dropdown-menu .dropdown-header,
.us-menu .dropdown-menu .dropdown-header {
    color: #24153a !important;
    background: #ffffff !important;
    font-weight: 700 !important;
}

/* Hover / active в выпадающем меню */
.menu .dropdown-menu a:hover,
#menu .dropdown-menu a:hover,
.oct-menu .dropdown-menu a:hover,
.oct-mm .dropdown-menu a:hover,
.us-menu .dropdown-menu a:hover,
.us-menu-row .dropdown-menu a:hover,
.oct-menu-row .dropdown-menu a:hover,
.menu-row .dropdown-menu a:hover,
.menu .dropdown-inner a:hover,
#menu .dropdown-inner a:hover,
.oct-menu .dropdown-inner a:hover,
.oct-mm .dropdown-inner a:hover,
.us-menu .dropdown-inner a:hover,
.mega-menu a:hover,
.megamenu a:hover {
    background: #f3fbf6 !important;
    color: #39b765 !important;
}

/* Если есть списки / li */
.menu .dropdown-menu li > a,
#menu .dropdown-menu li > a,
.oct-menu .dropdown-menu li > a,
.oct-mm .dropdown-menu li > a,
.us-menu .dropdown-menu li > a {
    color: #20242a !important;
    background: #ffffff !important;
}

.menu .dropdown-menu li > a:hover,
#menu .dropdown-menu li > a:hover,
.oct-menu .dropdown-menu li > a:hover,
.oct-mm .dropdown-menu li > a:hover,
.us-menu .dropdown-menu li > a:hover {
    color: #39b765 !important;
    background: #f3fbf6 !important;
}

/* Верхний уровень категорий оставляем белым на темном фоне */
.menu-row > ul > li > a,
.us-menu-row > ul > li > a,
.oct-menu-row > ul > li > a,
#menu > ul > li > a,
.menu > ul > li > a,
.oct-mm > ul > li > a,
.oct-menu > ul > li > a,
.us-menu > ul > li > a {
    color: #ffffff !important;
}

/* Активная верхняя категория */
.menu-row > ul > li:hover > a,
.us-menu-row > ul > li:hover > a,
.oct-menu-row > ul > li:hover > a,
#menu > ul > li:hover > a,
.menu > ul > li:hover > a,
.oct-mm > ul > li:hover > a,
.oct-menu > ul > li:hover > a,
.us-menu > ul > li:hover > a {
    background: #39b765 !important;
    color: #ffffff !important;
}

/* Голубєв END 2026-06-29: OpenCart - выпадающие категории Kapitoshka */


/* Голубєв START 2026-06-29: OpenCart - полировка меню Kapitoshka */

/* Зеленый акцент ближе к логотипу */
.menu-row a:hover,
.us-menu-row a:hover,
.oct-menu-row a:hover,
#menu a:hover,
.menu a:hover,
.oct-mm a:hover,
.oct-menu a:hover,
.us-menu a:hover,
.menu-row .active > a,
.us-menu-row .active > a,
.oct-menu-row .active > a,
#menu .active > a,
.menu .active > a,
.oct-mm .active > a,
.oct-menu .active > a,
.us-menu .active > a {
    background: #39b765 !important;
    color: #ffffff !important;
}

/* Выпадающее меню компактнее */
.menu .dropdown-menu,
#menu .dropdown-menu,
.oct-menu .dropdown-menu,
.oct-mm .dropdown-menu,
.us-menu .dropdown-menu,
.us-menu-row .dropdown-menu,
.oct-menu-row .dropdown-menu,
.menu-row .dropdown-menu {
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 0 0 8px 8px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 28px rgba(36, 21, 58, 0.18) !important;
}

/* Строки подкатегорий */
.menu .dropdown-menu a,
#menu .dropdown-menu a,
.oct-menu .dropdown-menu a,
.oct-mm .dropdown-menu a,
.us-menu .dropdown-menu a,
.us-menu-row .dropdown-menu a,
.oct-menu-row .dropdown-menu a,
.menu-row .dropdown-menu a {
    min-height: 44px !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    color: #20242a !important;
    background: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Hover подкатегорий */
.menu .dropdown-menu a:hover,
#menu .dropdown-menu a:hover,
.oct-menu .dropdown-menu a:hover,
.oct-mm .dropdown-menu a:hover,
.us-menu .dropdown-menu a:hover,
.us-menu-row .dropdown-menu a:hover,
.oct-menu-row .dropdown-menu a:hover,
.menu-row .dropdown-menu a:hover {
    background: #f3fbf6 !important;
    color: #39b765 !important;
}

/* Убираем пустые строки, если шаблон их создает */
.menu .dropdown-menu li:empty,
#menu .dropdown-menu li:empty,
.oct-menu .dropdown-menu li:empty,
.oct-mm .dropdown-menu li:empty,
.us-menu .dropdown-menu li:empty,
.menu .dropdown-inner ul:empty,
#menu .dropdown-inner ul:empty,
.oct-menu .dropdown-inner ul:empty,
.oct-mm .dropdown-inner ul:empty,
.us-menu .dropdown-inner ul:empty {
    display: none !important;
}

/* Голубєв END 2026-06-29: OpenCart - полировка меню Kapitoshka */


/* Голубєв START 2026-06-29: OpenCart - чистое выпадающее меню Kapitoshka */

/* Выпадающее меню: белый фон, нормальный размер */
.dropdown-menu,
.dropdown-inner,
.oct-mm-dropdown,
.oct-menu-dropdown,
.us-dropdown-menu,
.menu-row .dropdown-menu,
.us-menu-row .dropdown-menu,
.oct-menu-row .dropdown-menu {
    background: #ffffff !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 6px 0 !important;
    border: 1px solid #e7ebf0 !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 12px 28px rgba(36, 21, 58, 0.18) !important;
    overflow: hidden !important;
}

/* Убираем пустые строки */
.dropdown-menu li:empty,
.dropdown-inner li:empty,
.oct-mm-dropdown li:empty,
.oct-menu-dropdown li:empty,
.us-dropdown-menu li:empty,
.dropdown-menu a:empty,
.dropdown-inner a:empty,
.oct-mm-dropdown a:empty,
.oct-menu-dropdown a:empty,
.us-dropdown-menu a:empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Пункты выпадающего меню */
.dropdown-menu li,
.dropdown-inner li,
.oct-mm-dropdown li,
.oct-menu-dropdown li,
.us-dropdown-menu li {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #f1f3f5 !important;
}

/* Текст подкатегорий */
.dropdown-menu a,
.dropdown-inner a,
.oct-mm-dropdown a,
.oct-menu-dropdown a,
.us-dropdown-menu a,
.menu-row .dropdown-menu a,
.us-menu-row .dropdown-menu a,
.oct-menu-row .dropdown-menu a {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 10px 16px !important;
    background: #ffffff !important;
    color: #20242a !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    white-space: normal !important;
}

/* Наведение подкатегорий */
.dropdown-menu a:hover,
.dropdown-inner a:hover,
.oct-mm-dropdown a:hover,
.oct-menu-dropdown a:hover,
.us-dropdown-menu a:hover,
.menu-row .dropdown-menu a:hover,
.us-menu-row .dropdown-menu a:hover,
.oct-menu-row .dropdown-menu a:hover {
    background: #39b765 !important;
    color: #ffffff !important;
}

/* Верхние пункты меню остаются белыми на темной шапке */
.menu-row > ul > li > a,
.us-menu-row > ul > li > a,
.oct-menu-row > ul > li > a,
#menu > ul > li > a,
.menu > ul > li > a,
.oct-mm > ul > li > a,
.oct-menu > ul > li > a,
.us-menu > ul > li > a {
    color: #ffffff !important;
}

/* Голубєв END 2026-06-29: OpenCart - чистое выпадающее меню Kapitoshka */


/* Голубєв START 2026-06-29: OpenCart - убрать левый баннер */

/* Убираем рекламный/картинный блок под левым меню категорий */
#column-left .banner,
#column-left .us-banner,
#column-left .oct-banner,
#column-left .us-html-box,
#column-left .html-module,
#column-left .module-banner,
#column-left .swiper-container,
#column-left .slideshow,
#column-left .carousel,
#column-left img:not(.category-image) {
    display: none !important;
}

/* Убираем пустой белый блок, если после скрытия картинки он остался */
#column-left .banner:empty,
#column-left .us-banner:empty,
#column-left .oct-banner:empty,
#column-left .us-html-box:empty,
#column-left .html-module:empty,
#column-left .module-banner:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Голубєв END 2026-06-29: OpenCart - убрать левый баннер */


/* Голубєв START 2026-06-29: OpenCart - плавающая панель справа */

/* Переносим боковую панель избранного/корзины с левой стороны на правую */
.fixed-left,
.oct-fixed-bar,
.us-fixed-bar,
.oct-fixed-buttons,
.us-fixed-buttons,
.kapi-move-fixed-right {
    left: auto !important;
    right: 16px !important;
    top: 45% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 999 !important;
}

/* Внешний вид панели */
.fixed-left,
.oct-fixed-bar,
.us-fixed-bar,
.oct-fixed-buttons,
.us-fixed-buttons,
.kapi-move-fixed-right {
    background: #24153a !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(36, 21, 58, 0.22) !important;
}

/* Иконки внутри панели */
.fixed-left a,
.oct-fixed-bar a,
.us-fixed-bar a,
.oct-fixed-buttons a,
.us-fixed-buttons a,
.kapi-move-fixed-right a {
    color: #ffffff !important;
}

/* Счетчики на иконках */
.fixed-left .badge,
.oct-fixed-bar .badge,
.us-fixed-bar .badge,
.oct-fixed-buttons .badge,
.us-fixed-buttons .badge,
.kapi-move-fixed-right .badge {
    background: #39b765 !important;
    color: #ffffff !important;
}

/* На мобильных экранах не мешаем */
@media (max-width: 767px) {
    .fixed-left,
    .oct-fixed-bar,
    .us-fixed-bar,
    .oct-fixed-buttons,
    .us-fixed-buttons,
    .kapi-move-fixed-right {
        right: 8px !important;
        top: 55% !important;
    }
}

/* Голубєв END 2026-06-29: OpenCart - плавающая панель справа */


/* Голубєв START 2026-06-30: OpenCart - скрыть Купити в один клік */

/* Скрываем one-click покупку на карточке товара */
form[id^="oct_purchase_byoneclick_form"],
#one_click_input,
.one_click_input,
.oct-product-one-click,
.oct-product-oneclick,
.us-product-one-click,
.us-product-oneclick {
    display: none !important;
}

/* Голубєв END 2026-06-30: OpenCart - скрыть Купити в один клік */


/* Голубєв START 2026-07-05: header cleanup */

/* Убираем текст "Зробити замовлення" под корзиной, корзину и сумму оставляем */
header a[href*="checkout/checkout"],
header a[href*="route=checkout/checkout"] {
    display: none !important;
}

/* Логотип и поиск делаем одной визуальной высоты */
header .us-logo-box,
header .us-logo,
header #logo {
    min-height: 52px;
    display: flex;
    align-items: center;
}

header #logo img,
header .us-logo img {
    max-height: 52px;
    width: auto;
}

header #search,
header .us-search,
header .us-search-box {
    min-height: 52px;
    display: flex;
    align-items: center;
}

header #search input,
header .us-search input {
    height: 52px !important;
}

header #search button,
header .us-search button {
    height: 52px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Голубєв END 2026-07-05: header cleanup */

/* Голубєв START 2026-07-05: exact cart checkout link hide */

/* Убираем именно текстовую ссылку "Зробити замовлення" под корзиной */
header .us-cart-content .us-cart-link,
header .us-cart-content a[href$="/checkout"],
header .us-cart-content a[href*="/checkout"] {
    display: none !important;
}

/* Чтобы после удаления ссылки корзина выглядела компактно */
header .us-cart-content {
    min-width: auto !important;
}

/* Логотип и поиск одной высоты */
header #logo,
header .us-logo-box,
header .us-logo {
    height: 52px !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
}

header #logo img,
header .us-logo img,
header .us-logo-box img {
    max-height: 52px !important;
    width: auto !important;
}

header #search,
header .us-search,
header .us-search-box,
header .input-group.search,
header .search-box {
    height: 52px !important;
    min-height: 52px !important;
}

header #search input,
header .us-search input,
header input[name="search"] {
    height: 52px !important;
    min-height: 52px !important;
}

header #search button,
header .us-search button,
header .input-group-btn button {
    height: 52px !important;
    min-height: 52px !important;
}

/* Голубєв END 2026-07-05: exact cart checkout link hide */

/* Голубєв START 2026-07-05: compact cart/header alignment */

/* Делаем корзину компактнее в верхней строке */
header #cart.us-cart-box,
header #cart {
    max-width: 170px !important;
    flex: 0 0 170px !important;
    padding-left: 8px !important;
    padding-right: 0 !important;
    justify-content: flex-start !important;
}

/* Иконка корзины */
header #cart .us-cart-img {
    margin-right: 8px !important;
}

/* Блок суммы */
header #cart .us-cart-content {
    display: flex !important;
    align-items: center !important;
    min-width: auto !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* Сумма рядом с корзиной */
header #cart .us-cart-text,
header #cart .us-cart-total,
header #cart .cart-total-price {
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* Верхняя строка: элементы по центру */
header .row,
header .us-header-row,
header .us-menu-row {
    align-items: center !important;
}

/* Поиск и логотип визуально одинаковой высоты */
header #logo,
header #search {
    height: 56px !important;
    min-height: 56px !important;
}

header #logo img {
    max-height: 56px !important;
}

header input[name="search"] {
    height: 56px !important;
}

/* Голубєв END 2026-07-05: compact cart/header alignment */

/* Голубєв START 2026-07-05: compact cart/header alignment */

/* Делаем корзину компактнее в верхней строке */
header #cart.us-cart-box,
header #cart {
    max-width: 170px !important;
    flex: 0 0 170px !important;
    padding-left: 8px !important;
    padding-right: 0 !important;
    justify-content: flex-start !important;
}

/* Иконка корзины */
header #cart .us-cart-img {
    margin-right: 8px !important;
}

/* Блок суммы */
header #cart .us-cart-content {
    display: flex !important;
    align-items: center !important;
    min-width: auto !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* Сумма рядом с корзиной */
header #cart .us-cart-text,
header #cart .us-cart-total,
header #cart .cart-total-price {
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* Верхняя строка: элементы по центру */
header .row,
header .us-header-row,
header .us-menu-row {
    align-items: center !important;
}

/* Поиск и логотип визуально одинаковой высоты */
header #logo,
header #search {
    height: 56px !important;
    min-height: 56px !important;
}

header #logo img {
    max-height: 56px !important;
}

header input[name="search"] {
    height: 56px !important;
}

/* Голубєв END 2026-07-05: compact cart/header alignment */

/* Голубєв START 2026-07-05: second phone header */
.kapi-phone-sep {
    display: inline-block;
    margin: 0 3px;
    opacity: 0.7;
}

.kapi-phone-box,
.kapi-phone-box a,
header .kapi-phone-link,
header a[href^="tel:"] {
    white-space: nowrap !important;
    font-size: 13px !important;
    font-weight: 700;
}
/* Голубєв END 2026-07-05: second phone header */

/* Голубєв START 2026-07-05: second phone visual */
.kapi-phone-sep {
    display: inline-block;
    margin: 0 3px;
    opacity: 0.75;
}

header a[href="tel:+380663101333"],
header a[href="tel:+380672318445"] {
    white-space: nowrap !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}
/* Голубєв END 2026-07-05: second phone visual */

/* Голубєв START 2026-07-05: phones two lines fix */

/* Телефоны в две строки, чтобы не лезли на корзину */
.kapi-phone-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    line-height: 15px !important;
    min-width: 104px !important;
    max-width: 108px !important;
    white-space: nowrap !important;
}

.kapi-phone-list a {
    display: block !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 15px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Убираем старый разделитель, если браузер закэшировал старый блок */
.kapi-phone-sep {
    display: none !important;
}

/* Даем корзине место справа */
header #cart,
header #cart.us-cart-box {
    margin-left: 12px !important;
    flex: 0 0 115px !important;
    max-width: 115px !important;
}

/* Голубєв END 2026-07-05: phones two lines fix */

/* Голубєв START 2026-07-05: header phones final */
.kapi-phone-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0 !important;
    line-height: 13px !important;
    margin-left: 6px !important;
    white-space: nowrap !important;
}

.kapi-phone-list a {
    display: block !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.kapi-account-link {
    white-space: nowrap !important;
}

.kapi-phone-sep {
    display: none !important;
}

/* немного уменьшаем правый блок, чтобы не лез на корзину */
.kapi-right-zone,
.kapi-header-right,
.kapi-account-phone {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}
/* Голубєв END 2026-07-05: header phones final */

/* Голубєв START 2026-07-05: final phones two lines */
.kapi-phone-final-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 105px !important;
    max-width: 110px !important;
    overflow: visible !important;
}

.kapi-phone-final {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    line-height: 13px !important;
    white-space: nowrap !important;
}

.kapi-phone-final a {
    display: block !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 13px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.kapi-phone-sep {
    display: none !important;
}
/* Голубєв END 2026-07-05: final phones two lines */



/* Голубєв START 2026-07-05: show two phones by CSS */

/* Делаем первый телефон контейнером на 2 строки */
header a[href="tel:+380663101333"] {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    font-size: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    min-width: 104px !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Первая строка */
header a[href="tel:+380663101333"]::before {
    content: "+380663101333";
    display: block !important;
    font-size: 11px !important;
    line-height: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

/* Вторая строка */
header a[href="tel:+380663101333"]::after {
    content: "+380672318445";
    display: block !important;
    font-size: 11px !important;
    line-height: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

/* Если ранее был разделитель или второй номер JS — скрыть лишнее */
header .kapi-phone-sep,
header a[href="tel:+380672318445"] {
    display: none !important;
}

/* Чтобы кошик не наезжал */
header #cart,
header #cart.us-cart-box {
    margin-left: 14px !important;
}

/* Голубєв END 2026-07-05: show two phones by CSS */

/* Голубєв START 2026-07-05: compact header desktop + mobile */

/* аккаунт */
.kapi-account-link {
    display: inline-block !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-decoration: none !important;
    margin: 0 10px !important;
}

/* блок телефонов */
.kapi-phone-list {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    line-height: 1.1 !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}

.kapi-phone-link {
    display: block !important;
    font-size: 12px !important;
    line-height: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.kapi-phone-link:hover {
    opacity: 0.9;
    text-decoration: none !important;
}

/* логотип компактнее */
header img[alt*="Капітошка"],
header .logo img,
header #logo img {
    max-height: 58px !important;
    width: auto !important;
}

/* поиск компактнее */
header input[type="text"],
header .form-control {
    height: 42px !important;
    font-size: 14px !important;
}

/* корзина */
header #cart,
header .us-cart-box {
    margin-left: 12px !important;
}

/* --- планшет --- */
@media (max-width: 991px) {
    .kapi-account-link {
        font-size: 12px !important;
        margin: 0 6px !important;
    }

    .kapi-phone-link {
        font-size: 11px !important;
        line-height: 13px !important;
    }

    header img[alt*="Капітошка"],
    header .logo img,
    header #logo img {
        max-height: 50px !important;
    }

    header input[type="text"],
    header .form-control {
        height: 38px !important;
        font-size: 13px !important;
    }
}

/* --- мобильная версия --- */
@media (max-width: 767px) {
    .kapi-account-link {
        font-size: 11px !important;
        max-width: 72px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        margin: 0 4px !important;
    }

    .kapi-phone-list {
        margin-left: 4px !important;
    }

    .kapi-phone-link {
        font-size: 10px !important;
        line-height: 12px !important;
    }

    /* второй номер скрываем на мобилке */
    .kapi-phone-link:last-child {
        display: none !important;
    }

    header img[alt*="Капітошка"],
    header .logo img,
    header #logo img {
        max-height: 42px !important;
    }

    header input[type="text"],
    header .form-control {
        height: 36px !important;
        font-size: 12px !important;
    }

    header #cart,
    header .us-cart-box {
        margin-left: 6px !important;
    }
}

/* Голубєв END 2026-07-05: compact header desktop + mobile */

/* Голубєв START 2026-07-06: product price visual fix */

/* Акционная цена */
.product-info .price-new,
.us-product-info .price-new,
.us-price-new,
.price .price-new,
.product-price .price-new,
.autocalc-product-price,
.us-product-price .price-new {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ef5b5b !important;
    color: #ffffff !important;
    padding: 9px 14px !important;
    border-radius: 6px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-right: 14px !important;
    margin-bottom: 8px !important;
}

/* Старая цена */
.product-info .price-old,
.us-product-info .price-old,
.us-price-old,
.price .price-old,
.product-price .price-old,
.us-product-price .price-old {
    display: inline-block !important;
    color: #8b95a1 !important;
    font-size: 15px !important;
    text-decoration: line-through !important;
    margin-left: 4px !important;
    vertical-align: middle !important;
}

/* Чтобы цены не липли друг к другу */
.product-info .price,
.us-product-info .price,
.product-price,
.us-product-price {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

/* Голубєв END 2026-07-06: product price visual fix */
