/* ============================================================
   SZHK — фирменная тема поверх стандартных Bootstrap-шаблонов
   OpenCart 4. v2: усилено !important, акцент сделан заметно
   отличимым от стандартного синего Bootstrap, чтобы сразу было
   видно, применилась ли тема.
   ============================================================ */

:root {
	--sz-bg: #f5f8fb !important;
	--sz-card: #ffffff !important;
	--sz-text: #172333 !important;
	--sz-muted: #64748b !important;
	--sz-accent: #0878c9 !important;
	--sz-accent2: #07558f !important;
	--sz-border: #e7eef5 !important;
}

body {
	background: var(--sz-bg) !important;
	color: var(--sz-text) !important;
	font-family: -apple-system, "Segoe UI", Arial, sans-serif !important;
}

a {
	color: var(--sz-accent) !important;
}
a:hover {
	color: var(--sz-accent2) !important;
}

/* --- Верхняя тонкая полоса (валюта/язык/аккаунт/корзина) --- */
nav#top, #top {
	background: var(--sz-text) !important;
	color: #cfe0ef !important;
	font-size: 13px !important;
	padding: 6px 0 !important;
}
#top a, #top .dropdown-toggle, #top span {
	color: #cfe0ef !important;
}
#top a:hover {
	color: #ffffff !important;
}

/* --- Основная шапка (логотип / поиск / корзина) --- */
header {
	background: #ffffff !important;
	padding: 18px 0 !important;
	border-bottom: 3px solid var(--sz-accent) !important;
}
#logo h1 a, #logo a {
	color: var(--sz-text) !important;
	font-weight: 800 !important;
	font-size: 22px !important;
	text-decoration: none !important;
}
#logo img {
	max-height: 70px !important;
}

/* --- Меню категорий --- */
nav#menu, #menu.navbar, #menu {
	background: var(--sz-accent) !important;
	border-radius: 10px !important;
	margin: 14px 0 22px !important;
}
#menu .nav-link, #menu .dropdown-item, #menu a {
	color: #ffffff !important;
	font-weight: 600 !important;
}
#menu .nav-link:hover, #menu .dropdown-item:hover {
	background: rgba(255,255,255,.15) !important;
	color: #ffffff !important;
}
#menu #category {
	color: #ffffff !important;
	padding: 10px 15px !important;
	font-weight: 600 !important;
}

/* --- Кнопки --- */
.btn-primary {
	background: var(--sz-accent) !important;
	border-color: var(--sz-accent) !important;
	font-weight: 600 !important;
}
.btn-primary:hover, .btn-primary:focus {
	background: var(--sz-accent2) !important;
	border-color: var(--sz-accent2) !important;
}
.btn-dark {
	background: var(--sz-text) !important;
	border-color: var(--sz-text) !important;
}
.btn-light {
	background: #eef4f9 !important;
	border-color: #eef4f9 !important;
	color: var(--sz-text) !important;
}

/* --- Хлебные крошки --- */
.breadcrumb {
	background: transparent !important;
	padding: 14px 0 !important;
	font-size: 14px !important;
}

/* --- Карточка товара в каталоге (thumb.twig) --- */
.product-thumb, .card.product-layout {
	background: var(--sz-card) !important;
	border: 1px solid var(--sz-border) !important;
	border-radius: 14px !important;
	overflow: hidden !important;
	height: 100% !important;
}
.product-thumb .image, .card.product-layout .image {
	background: #eef4f9 !important;
	text-align: center !important;
	padding: 18px !important;
}
.product-thumb .image img, .card.product-layout .image img {
	border-radius: 8px !important;
}
.product-thumb .description h4 a, .card-title a {
	color: var(--sz-text) !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	text-decoration: none !important;
}
.product-thumb .price, .price {
	font-weight: 800 !important;
	font-size: 18px !important;
	color: var(--sz-accent2) !important;
}
.product-thumb .price-old, .price-old {
	color: var(--sz-muted) !important;
	text-decoration: line-through !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	margin-left: 6px !important;
}

/* --- Карточка товара (product.twig) --- */
#product-info h1, #content h1 {
	font-size: 28px !important;
	font-weight: 800 !important;
	color: var(--sz-text) !important;
}
.price-new {
	color: var(--sz-accent2) !important;
	font-weight: 800 !important;
}
.img-thumbnail {
	border-radius: 12px !important;
	border-color: var(--sz-border) !important;
}
.nav-tabs .nav-link.active {
	color: var(--sz-accent2) !important;
	font-weight: 700 !important;
	border-bottom: 2px solid var(--sz-accent) !important;
}

/* --- Футер --- */
footer {
	background: #10263a !important;
	color: #cfe0ef !important;
	padding: 40px 0 20px !important;
	margin-top: 40px !important;
}
footer h5 {
	color: #ffffff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	margin-bottom: 14px !important;
}
footer a {
	color: #b9cfe2 !important;
}
footer a:hover {
	color: #ffffff !important;
}
footer hr {
	border-color: rgba(255,255,255,.15) !important;
	margin: 24px 0 14px !important;
}
footer p {
	color: #8fa8bd !important;
	font-size: 13px !important;
}
/* ===== ШАПКА СЗХК ===== */

.szhk-top {
    background: #0d2d46;
    color: #ffffff;
    font-size: 14px;
}

.szhk-top-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.szhk-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.szhk-head {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 35px;
}

.szhk-logo {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
}

.szhk-logo img {
    display: block;
    width: 190px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.szhk-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.szhk-nav a {
    color: #14263b;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.szhk-nav a:hover {
    color: #087fc3;
}

.szhk-phone {
    flex: 0 0 auto;
    color: #14263b;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.szhk-phone:hover {
    color: #087fc3;
}

/* Поиск и корзина */

.szhk-shopbar {
    background: #ffffff;
    border-bottom: 1px solid #dbe5ed;
    padding: 12px 0;
}

.szhk-shopbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.szhk-search {
    width: 430px;
    max-width: 100%;
}

.szhk-cart {
    width: 250px;
}

/* Не даём стандартным элементам OpenCart растягиваться */

.szhk-search .input-group,
.szhk-cart .dropdown {
    width: 100%;
}

@media (max-width: 991px) {

    .szhk-top-inner {
        justify-content: center;
        text-align: center;
    }

    .szhk-top-inner span:last-child {
        display: none;
    }

    .szhk-head {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 0;
        gap: 15px;
    }

    .szhk-logo {
        flex: 0 0 100%;
        justify-content: center;
    }

    .szhk-logo img {
        width: 170px;
    }

    .szhk-nav {
        flex: 0 0 100%;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .szhk-phone {
        flex: 0 0 100%;
        text-align: center;
    }

    .szhk-shopbar-inner {
        flex-wrap: wrap;
    }

    .szhk-search,
    .szhk-cart {
        width: 100%;
    }
}
/* =========================================
   СЗХК — ПОДВАЛ
   ========================================= */

.szhk-footer {
    margin-top: 60px;
    padding: 50px 0 0;
    background: #0b2f49;
    color: #dce8f0;
    border-top: 4px solid #078bd3;
}

.szhk-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.25fr;
    gap: 50px;
}

.szhk-footer h4 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.szhk-footer p {
    margin: 0 0 9px;
    color: #c9d9e4;
    line-height: 1.6;
}

.szhk-footer-text {
    max-width: 390px;
}

.szhk-footer a {
    display: block;
    margin: 0 0 10px;
    color: #dce8f0;
    text-decoration: none;
    transition: 0.2s;
}

.szhk-footer a:hover {
    color: #38a9e6;
}

.szhk-footer-phone {
    margin-bottom: 14px !important;
    color: #ffffff !important;
    font-size: 19px;
    font-weight: 700;
}

.szhk-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.15);
    color: #9fb6c6;
    font-size: 13px;
}


/* Телефон */

@media (max-width: 767px) {

    .szhk-footer {
        margin-top: 40px;
        padding-top: 35px;
    }

    .szhk-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .szhk-footer-bottom {
        flex-direction: column;
        gap: 5px;
        margin-top: 30px;
    }
}
/* =====================================================
   СЗХК — КАРТОЧКА ТОВАРА
   ===================================================== */

#product-info {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Хлебные крошки */

#product-info .breadcrumb {
    background: #ffffff;
    border: 1px solid #e2eaf0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 25px;
}

/* Верхняя часть карточки */

#product-info #content > .row.mb-3 {
    background: #ffffff;
    border: 1px solid #e2eaf0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 35px !important;
    box-shadow: 0 8px 28px rgba(15, 48, 70, 0.06);
}

/* Фото */

#product-info .image {
    text-align: center;
}

#product-info .image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    background: #ffffff;
    border-radius: 12px;
}

#product-info .image > a > img {
    width: auto;
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
    border: 0 !important;
    box-shadow: none !important;
}

/* Название */

#product-info h1 {
    color: #102a40;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 22px;
}

/* Производитель, код, наличие */

#product-info h1 + .list-unstyled {
    color: #5b6e7d;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 20px;
}

#product-info h1 + .list-unstyled a {
    color: #078bd3;
    font-weight: 600;
    text-decoration: none;
}

/* Цена */

#product-info .price-new {
    display: inline-block;
    color: #0878ba;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    margin: 10px 0 15px;
}

#product-info .price-old {
    color: #8b98a2;
    text-decoration: line-through;
}

/* Количество + корзина */

#product-info #product {
    margin-top: 10px;
}

#product-info #product .input-group {
    max-width: 390px !important;
    height: 48px;
}

#product-info #product .input-group-text {
    background: #f3f7fa;
    border-color: #dbe5ec;
    color: #536776;
}

#product-info #input-quantity {
    max-width: 75px !important;
    text-align: center;
    border-color: #dbe5ec;
}

#product-info #button-cart {
    min-width: 145px;
    padding-left: 24px;
    padding-right: 24px;
    background: #078bd3;
    border-color: #078bd3;
    font-weight: 700;
    border-radius: 0 8px 8px 0;
}

#product-info #button-cart:hover {
    background: #056fa9;
    border-color: #056fa9;
}

/* Вкладки */

#product-info .nav-tabs {
    margin-top: 15px;
    border-bottom: 2px solid #e1e9ef;
    gap: 5px;
}

#product-info .nav-tabs .nav-link {
    color: #536776;
    font-weight: 700;
    padding: 13px 20px;
    border: 0;
    border-radius: 8px 8px 0 0;
}

#product-info .nav-tabs .nav-link:hover {
    color: #078bd3;
    background: #eef7fc;
}

#product-info .nav-tabs .nav-link.active {
    color: #078bd3;
    background: #ffffff;
    border-bottom: 3px solid #078bd3;
}

/* Содержимое вкладок */

#product-info .tab-content {
    background: #ffffff;
    border: 1px solid #e2eaf0;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    padding: 28px;
    margin-bottom: 30px;
}

/* Описание */

#tab-description {
    color: #415666;
    font-size: 15px;
    line-height: 1.75;
}

#tab-description h2,
#tab-description h3 {
    color: #102a40;
}

/* Таблица характеристик */

#tab-specification .table {
    margin-bottom: 0;
    border-color: #e2eaf0;
}

#tab-specification thead td {
    padding: 15px 18px;
    background: #0d3854;
    color: #ffffff;
    font-size: 17px;
}

#tab-specification tbody td {
    padding: 13px 18px;
    vertical-align: middle;
    border-color: #e2eaf0;
}

#tab-specification tbody tr:nth-child(even) td {
    background: #f5f9fc;
}

#tab-specification tbody td:first-child {
    width: 42%;
    color: #18384f;
    font-weight: 700;
}

#tab-specification tbody td:last-child {
    color: #536776;
}


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

@media (max-width: 767px) {

    #product-info {
        padding-left: 15px;
        padding-right: 15px;
    }

    #product-info #content > .row.mb-3 {
        padding: 15px;
        border-radius: 12px;
    }

    #product-info .image > a {
        min-height: auto;
    }

    #product-info .image > a > img {
        max-height: 420px;
    }

    #product-info h1 {
        margin-top: 20px;
        font-size: 27px;
    }

    #product-info .price-new {
        font-size: 29px;
    }

    #product-info .tab-content {
        padding: 16px;
    }

    #product-info .nav-tabs .nav-link {
        padding: 10px 11px;
        font-size: 13px;
    }

    #tab-specification tbody td {
        padding: 10px;
    }
}
/* =========================================
   СЗХК — ХАРАКТЕРИСТИКИ ТОВАРА
   ========================================= */

#tab-specification {
    padding-top: 6px;
}

#tab-specification .table-responsive {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dfe8ee;
    background: #ffffff;
}

#tab-specification .table {
    margin: 0;
    border-collapse: collapse;
}

#tab-specification thead td {
    background: #0d3854;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 20px;
    border: 0;
}

#tab-specification tbody tr {
    border-bottom: 1px solid #e5edf2;
}

#tab-specification tbody tr:last-child {
    border-bottom: 0;
}

#tab-specification tbody td {
    padding: 14px 20px;
    border: 0;
    vertical-align: middle;
    font-size: 15px;
}

#tab-specification tbody tr:nth-child(even) td {
    background: #f6f9fb;
}

#tab-specification tbody td:first-child {
    width: 42%;
    color: #17364c;
    font-weight: 700;
}

#tab-specification tbody td:last-child {
    color: #536776;
}

/* Небольшой эффект при наведении */

#tab-specification tbody tr:hover td {
    background: #eef7fc;
}

/* Мобильная версия */

@media (max-width: 767px) {

    #tab-specification .table-responsive {
        border-radius: 8px;
    }

    #tab-specification thead td {
        font-size: 16px;
        padding: 13px 14px;
    }

    #tab-specification tbody td {
        padding: 11px 12px;
        font-size: 14px;
    }

    #tab-specification tbody td:first-child {
        width: 48%;
    }
}
/* Исправление выпадающего меню категорий */
#menu .dropdown-menu {
    background: #ffffff !important;
}

#menu .dropdown-menu .dropdown-item {
    color: #172333 !important;
    background: #ffffff !important;
}

#menu .dropdown-menu .dropdown-item:hover,
#menu .dropdown-menu .dropdown-item:focus {
    color: #ffffff !important;
    background: #0878c9 !important;
}
/* Верхняя панель каталога */

/* Убираем пустую кнопку сравнения */
#compare-total {
    display: none !important;
}

/* Панель над товарами */
#product-list + .row,
#product-grid + .row {
    align-items: center !important;
}

/* Кнопки список / сетка */
#button-list,
#button-grid {
    width: 42px !important;
    height: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
}

/* Поля сортировки и количества */
#input-sort,
#input-limit {
    height: 38px !important;
    border-radius: 6px !important;
}

/* Убираем лишнюю высоту панели */
.product-filter,
#product-category .row.mb-3 {
    margin-bottom: 18px !important;
}
/* ===== Карточки товаров СЗХК ===== */

/* Убираем строку Ex Tax / Без НДС */
.product-thumb .price-tax {
    display: none !important;
}

/* Нижняя панель карточки */
.product-thumb .button-group {
    display: block !important;
    width: 100% !important;
    padding: 12px !important;
    border-top: 1px solid #e7eef5 !important;
}

/* Убираем Избранное и Сравнение */
.product-thumb .button-group button:nth-child(2),
.product-thumb .button-group button:nth-child(3) {
    display: none !important;
}

/* Кнопка В корзину */
.product-thumb .button-group button:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    width: 100% !important;
    min-height: 44px !important;

    background: #0878c9 !important;
    border: 1px solid #0878c9 !important;
    border-radius: 7px !important;

    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* Добавляем текст к значку корзины */
.product-thumb .button-group button:first-child::after {
    content: "В корзину";
}

/* Наведение */
.product-thumb .button-group button:first-child:hover {
    background: #075f9f !important;
    border-color: #075f9f !important;
}
/* Строка "В наличии" над кнопкой */
.product-thumb .price::after {
    content: "✓ В наличии";
    display: block;
    margin-top: 8px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}