/*
Theme Name: climat-almaty.kz
Theme URI: https://climat-almaty.kz
Author: Amarant Team
Author URI: https://climat-almaty.kz
Description: Адаптированная тема для интернет-магазина climat-almaty.kz
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

*/
/* --- Base & Layout --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --header-height: 56px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f6f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Desktop Header --- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.top-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    padding: 8px 0;
    font-size: 13px;
    color: #666;
}

.flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.geo-tag {
    font-weight: 500;
}

.work-hours {
    color: #888;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}

.top-nav a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.top-nav a:hover {
    color: #0b4699;
}

/* Main Header */
.main-header {
    padding: 16px 0;
}

.grid-header {
    display: grid;
    grid-template-columns: 280px 1fr auto;
    gap: 30px;
    align-items: center;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon svg {
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #0b4699;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.accent-blue {
    color: #e74c3c;
}

.brand-slogan {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Search */
.header-search {
    max-width: 500px;
}

.search-form {
    display: flex;
    border: 2px solid #0b4699;
    border-radius: 8px;
    overflow: hidden;
}

.search-field {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
}

.search-submit {
    background: #0b4699;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: #08306b;
}

/* Header Contacts */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone-link {
    font-size: 18px;
    font-weight: 700;
    color: #0b4699;
    text-decoration: none;
}

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

/* Header Cart */
.header-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    color: #0b4699;
    transition: color 0.2s;
    margin-left: 8px;
}

.header-cart:hover {
    color: #e74c3c;
}

.header-cart svg {
    width: 24px;
    height: 24px;
}

.header-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav Bar */
.nav-bar {
    background: #0b4699;
    padding: 0;
}

.nav-bar .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Catalog Dropdown */
.catalog-menu-wrapper {
    position: relative;
}

.catalog-btn {
    background: #08306b;
    color: #fff;
    border: none;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.burger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.burger-icon span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
}

.catalog-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    min-width: 260px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    margin: 0;
    list-style: none;
}

.catalog-dropdown-menu.show {
    display: block !important;
}

.catalog-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-dropdown-list li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.catalog-dropdown-list li a:hover {
    background: #f0f4ff;
    color: #0b4699;
}

/* Main Nav */
.main-nav {
    flex: 1;
}

.main-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-menu-list a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 0;
    display: block;
    transition: opacity 0.2s;
}

.main-menu-list a:hover {
    opacity: 0.8;
}

/* Sticky Nav */
.nav-bar.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: #0b4699;
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ============================================
   MOBILE HEADER
   ============================================ */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99998;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px 16px;
}

.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.mobile-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-burger {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0b4699;
    border-radius: 1px;
    transition: all 0.3s;
}

.mobile-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-burger.active span:nth-child(2) {
    opacity: 0;
}

.mobile-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.mobile-logo svg {
    width: 32px;
    height: 32px;
}

.mobile-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #0b4699;
    letter-spacing: -0.5px;
}

.mobile-logo-text span {
    color: #e74c3c;
}

.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background: rgba(0,0,0,0.5);
    z-index: 99997;
}

.mobile-menu-overlay.show {
    display: block;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.show .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 700;
    color: #0b4699;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0b4699;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-list li a {
    display: block;
    padding: 14px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-menu-list li a:hover {
    color: #0b4699;
}

.mobile-menu-phone {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.mobile-menu-phone a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b4699;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.mobile-menu-phone a svg {
    width: 20px;
    height: 20px;
}

/* Mobile Search in Menu */
.mobile-menu-panel .mobile-search-wrap {
    padding: 0 0 16px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-panel .mobile-search-form {
    display: flex;
    border: 2px solid #0b4699;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.mobile-menu-panel .mobile-search-field {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    background: transparent;
    min-width: 0;
}

.mobile-menu-panel .mobile-search-submit {
    background: #0b4699;
    border: none;
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.mobile-menu-panel .mobile-search-submit:hover {
    background: #08306b;
}

.mobile-menu-panel .mobile-search-submit svg {
    display: block;
}

/* ============================================
   BOTTOM STICKY BAR
   ============================================ */
.cts-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
}

.cts-bottom-bar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    max-width: 100%;
}

.cts-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: #666;
    font-size: 11px;
    font-weight: 500;
    flex: 1;
    height: 100%;
    transition: color 0.2s;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.cts-bottom-item:hover {
    color: #0b4699;
}

.cts-bottom-item svg {
    width: 22px;
    height: 22px;
}

.cts-bottom-item.cts-bottom-primary {
    background: #0b4699;
    color: #fff;
    border-radius: 8px;
    margin: 8px 12px;
    height: calc(100% - 16px);
    flex: 1.2;
}

.cts-bottom-item.cts-bottom-primary:hover {
    background: #08306b;
    color: #fff;
}

/* Bottom bar cart count */
.bottom-cart-count {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

/* ============================================
   HERO SLIDER — БЕЗ GRID
   ============================================ */
.hero-section {
    padding: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    background: transparent;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-slides {
    position: relative;
    min-height: 450px;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Контент поверх фона */
.hero-content-box {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 100px 0;
}

.hero-content-box h1 {
    font-size: 32px;
    color: #0d2c54;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px 0;
}

.hero-subtitle {
    font-size: 20px;
    color: #1a3a5c;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.hero-subsubtitle {
    font-size: 15px;
    color: #4a6580;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.hero-description {
    font-size: 14px;
    color: #4a6580;
    line-height: 1.5;
    margin-bottom: 22px;
    max-width: 380px;
}

.btn-primary {
    display: inline-block;
    background: #0b4699;
    color: #fff;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: #08306b;
    transform: translateY(-1px);
}

/* Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(11,70,153,0.15);
    cursor: pointer;
    font-size: 22px;
    color: #0b4699;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hero-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #08306b;
}

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(11,70,153,0.25);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-dot.active {
    background: #0b4699;
    width: 28px;
    border-radius: 5px;
}

/* ============================================
   WOOCOMMERCE ARCHIVE / CATEGORY
   ============================================ */

/* Breadcrumbs */
.woocommerce-breadcrumb.cts-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce-breadcrumb.cts-breadcrumb a {
    color: #0b4699;
    text-decoration: none;
    transition: color 0.2s;
}

.woocommerce-breadcrumb.cts-breadcrumb a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

.cts-breadcrumb-sep {
    color: #999;
    margin: 0 8px;
}

/* Archive Header */
.cts-archive-header {
    margin-bottom: 30px;
}

.cts-archive-title {
    font-size: 32px;
    font-weight: 700;
    color: #0b4699;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.woocommerce-products-header .term-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
}

.woocommerce-products-header .term-description p {
    margin: 0;
}

/* Subcategories */
.cts-subcategories {
    margin-bottom: 40px;
}

.cts-subcategories-title {
    font-size: 24px;
    font-weight: 600;
    color: #0b4699;
    margin: 0 0 20px 0;
}

.cts-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.cts-subcategory-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

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

.cts-subcategory-image {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f8f9fa;
}

.cts-subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s;
}

.cts-subcategory-card:hover .cts-subcategory-image img {
    transform: scale(1.03);
}

.cts-subcategory-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #0b4699;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}

.cts-subcategory-info {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cts-subcategory-name {
    font-size: 14px;
    font-weight: 600;
    color: #0b4699;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.cts-subcategory-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.cts-subcategory-link {
    font-size: 13px;
    font-weight: 600;
    color: #e74c3c;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cts-subcategory-link::after {
    content: '→';
    font-size: 12px;
}

/* Shop Controls */
.cts-shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.woocommerce-result-count {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Product Grid — Unified (Archive + Related) */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #f8f9fa;
    margin: 0;
    display: block;
    padding: 8px;
    flex-shrink: 0;
}

/* Sale Badge */
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    min-height: auto;
    min-width: auto;
    padding: 4px 10px;
    border-radius: 12px;
    background: #e74c3c !important;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    z-index: 2;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    color: #0b4699;
    padding: 10px 12px 6px;
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    flex-grow: 1;
    min-height: 58px;
}

/* Price */
.woocommerce ul.products li.product .price {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px 10px;
    margin: 0;
    font-size: 13px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-size: 12px;
    opacity: 0.8;
}

.woocommerce ul.products li.product .price del .amount {
    text-decoration: line-through;
}

.woocommerce ul.products li.product .price ins {
    color: #e74c3c;
    font-weight: 700;
    text-decoration: none;
    background: none;
}

.woocommerce ul.products li.product .price ins .amount {
    color: #e74c3c;
    font-size: 15px;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    display: block;
    width: calc(100% - 24px);
    margin: 0 auto 12px;
    padding: 10px 16px;
    background: #0b4699;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: auto;
}

.woocommerce ul.products li.product .button:hover {
    background: #08306b;
}

.woocommerce ul.products li.product .button.added {
    background: #27ae60;
}

.woocommerce ul.products li.product .button.loading {
    opacity: 0.7;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
    margin-top: 40px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    border: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    float: none;
    display: inline-block;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0b4699;
    background: #fff;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    transition: all 0.2s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: #0b4699;
    color: #fff;
    border-color: #0b4699;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #0b4699;
    color: #fff;
    border-color: #0b4699;
}

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */

.cts-product-page {
    padding: 40px 0;
}

.cts-product__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Gallery */
.cts-product__gallery {
    position: relative;
}

.cts-product__gallery .woocommerce-product-gallery {
    opacity: 1 !important;
}

.cts-product__gallery .woocommerce-product-gallery__wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Sale Badge */
.cts-product__gallery .onsale,
.woocommerce .cts-product__gallery .onsale,
.woocommerce span.onsale {
    position: absolute;
    top: 12px;
    left: auto !important;
    right: 12px !important;
    min-height: auto !important;
    min-width: auto !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    background: #e74c3c !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    z-index: 2;
}

/* Product Summary */
.cts-product__summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cts-product__summary .product_title {
    font-size: 28px;
    font-weight: 700;
    color: #0d2c54;
    margin: 0;
    line-height: 1.3;
}

/* Price */
.cts-product__summary .price {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    margin: 0;
}

.cts-product__summary .price del {
    color: #999;
    font-size: 18px;
    opacity: 0.8;
    text-decoration: line-through;
}

.cts-product__summary .price del .amount {
    text-decoration: line-through;
}

.cts-product__summary .price ins {
    color: #e74c3c;
    font-weight: 700;
    text-decoration: none;
    background: none;
}

.cts-product__summary .price ins .amount {
    color: #e74c3c;
    font-size: 28px;
}

/* Short description */
.woocommerce-product-details__short-description {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.woocommerce-product-details__short-description p {
    margin: 0;
}

/* Add to Cart Form */
.cts-product__summary form.cart {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.cts-product__summary .quantity {
    margin: 0;
}

.cts-product__summary .quantity input {
    width: 70px;
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #0d2c54;
}

.cts-product__summary .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 32px;
    background: #0b4699 !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    border: none !important;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.cts-product__summary .single_add_to_cart_button:hover {
    background: #08306b !important;
    transform: scale(1.02);
}

/* Product Meta */
.product_meta {
    font-size: 14px;
    color: #666;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.product_meta .sku_wrapper,
.product_meta .posted_in,
.product_meta .tagged_as {
    display: block;
    margin-bottom: 6px;
}

.product_meta a {
    color: #0b4699;
    text-decoration: none;
}

.product_meta a:hover {
    text-decoration: underline;
}

/* Tabs */
.cts-product__bottom .woocommerce-tabs {
    margin-top: 40px;
}

.cts-product__bottom .tabs {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
}

.cts-product__bottom .tabs li {
    margin: 0;
    padding: 0;
}

.cts-product__bottom .tabs li a {
    display: block;
    padding: 14px 24px;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.cts-product__bottom .tabs li.active a,
.cts-product__bottom .tabs li a:hover {
    color: #0b4699;
    border-bottom-color: #0b4699;
}

.cts-product__bottom .woocommerce-Tabs-panel {
    padding: 24px 0;
}

.cts-product__bottom .woocommerce-Tabs-panel h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0d2c54;
    margin: 0 0 16px 0;
}

.cts-product__bottom .woocommerce-Tabs-panel p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Reviews */
.woocommerce-Reviews-title {
    font-size: 20px;
    font-weight: 700;
    color: #0d2c54;
    margin: 0 0 16px 0;
}

.woocommerce-noreviews {
    color: #64748b;
    font-size: 15px;
}

/* Review Form */
#respond .comment-reply-title {
    font-size: 18px;
    font-weight: 700;
    color: #0d2c54;
    margin-bottom: 16px;
    display: block;
}

.comment-form-rating label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0d2c54;
    margin-bottom: 8px;
}

.comment-form-rating select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.comment-form-comment label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0d2c54;
    margin-bottom: 8px;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
}

.form-submit .submit {
    padding: 12px 28px;
    background: #0b4699;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.form-submit .submit:hover {
    background: #08306b;
}

/* Related Products */
.related.products {
    margin-top: 50px;
}

.related.products h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0d2c54;
    margin: 0 0 24px 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0b1f3d;
    color: #fff;
    padding: 60px 0 0;
}

.grid-footer-cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.f-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.f-accent-blue {
    color: #4a9eff;
}

.footer-about-text {
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-schedule {
    color: #a0aec0;
    font-size: 14px;
}

.footer-schedule p {
    margin: 4px 0;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-list li {
    margin-bottom: 10px;
}

.footer-menu-list a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-menu-list a:hover {
    color: #4a9eff;
}

.footer-contacts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.f-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #a0aec0;
    font-size: 14px;
}

.f-contact-item a {
    color: #fff;
    text-decoration: none;
}

.f-contact-item a:hover {
    color: #4a9eff;
}

.f-wa {
    color: #25D366 !important;
}

.footer-bottom {
    border-top: 1px solid #1a365d;
    margin-top: 40px;
    padding: 20px 0;
}

.flex-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #718096;
}

.footer-bottom a {
    color: #718096;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #a0aec0;
}

/* ============================================
   FLOATING WIDGET (WhatsApp + Instagram)
   ============================================ */
.climat-fab-widget {
    position: fixed;
    bottom: 80px;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.climat-fab-widget.fab-right {
    right: 20px;
    align-items: flex-end;
}

.climat-fab-widget.fab-left {
    left: 20px;
    align-items: flex-start;
}

.fab-main-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.fab-main-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.fab-main-btn.active {
    background: linear-gradient(135deg, #128C7E 0%, #075e54 100%);
    box-shadow: 0 4px 16px rgba(18, 140, 126, 0.4);
}

.fab-main-btn svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.fab-icon-chat,
.fab-icon-close {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-menu {
    position: absolute;
    bottom: 68px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.climat-fab-widget.fab-left .fab-menu {
    right: auto;
    left: 0;
    align-items: flex-start;
}

.fab-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fab-menu-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.climat-fab-widget.fab-left .fab-menu-item:hover {
    transform: translateX(4px);
}

.fab-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.fab-ig {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.fab-menu-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fab-menu-icon svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   MOBILE CATALOG MENU OVERLAY
   ============================================ */
.mobile-catalog-overlay {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background: rgba(0,0,0,0.5);
    z-index: 99997;
}

.mobile-catalog-overlay.show {
    display: block;
}

.mobile-catalog-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 340px;
    height: 100%;
    background: #fff;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-catalog-overlay.show .mobile-catalog-panel {
    transform: translateX(0);
}

.mobile-catalog-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-catalog-parent {
    border-bottom: 1px solid #eee;
}

.mobile-catalog-parent-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    color: #0d2c54;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
}

.mobile-catalog-parent-link:hover {
    color: #0b4699;
}

.mobile-catalog-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #999;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.mobile-catalog-toggle.open {
    transform: rotate(180deg);
    color: #0b4699;
}

.mobile-catalog-children {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 16px;
    display: none;
}

.mobile-catalog-children.show {
    display: block;
}

.mobile-catalog-children li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-catalog-children li:last-child {
    border-bottom: none;
}

.mobile-catalog-children li a {
    display: block;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.mobile-catalog-children li a:hover {
    color: #0b4699;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .grid-header {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .header-search {
        grid-column: 1 / -1;
        order: 3;
        max-width: 100%;
    }

    .cts-subcategories-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .grid-footer-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content-box {
        padding: 80px 0;
    }

    .hero-content-box h1 {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-subsubtitle {
        font-size: 14px;
    }

    .hero-slide-bg {
        width: 100%;
        opacity: 0.6;
        background-size: cover;
    }

    .related.products .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .site-header {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .container {
        padding: 0 12px;
    }

    .cts-bottom-bar {
        display: block;
    }

    body {
        padding-top: 56px;
        padding-bottom: 60px;
    }

    .woocommerce-breadcrumb.cts-breadcrumb,
    .cts-breadcrumb {
        padding-top: 16px;
        margin-top: 0;
    }

    .cts-archive-title {
        font-size: 26px;
    }

    .cts-subcategories-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .woocommerce ul.products li.product img {
        height: 140px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px;
        padding: 8px 8px 4px;
        min-height: 52px;
    }

    .woocommerce ul.products li.product .price {
        padding: 0 8px 6px;
        font-size: 11px;
    }

    .woocommerce ul.products li.product .button {
        width: calc(100% - 16px);
        padding: 8px 4px;
        font-size: 11px;
        margin-bottom: 8px;
    }

    .woocommerce ul.products li.product .onsale {
        padding: 3px 8px;
        font-size: 9px;
    }

    .cts-subcategory-image {
        height: 100px;
    }

    .cts-subcategory-info {
        padding: 8px 10px 10px;
    }

    .cts-subcategory-name {
        font-size: 13px;
    }

    .cts-subcategory-desc {
        font-size: 11px;
    }

    .cts-subcategory-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .cts-subcategory-link {
        font-size: 12px;
    }

    .cts-shop-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .grid-footer-cols {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Hero slider mobile — БЕЗ GRID, простой блок */
    .hero-section {
        margin-top: var(--header-height, 56px);
    }

    .hero-slides {
        min-height: 420px;
        position: relative;
    }

    .hero-slide {
        position: relative;
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 0;
        height: auto;
    }

    .hero-slide:first-child {
        display: block;
    }

    .hero-slide-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        background-size: cover !important;
        background-position: center center !important;
    }

    .hero-content-box {
        position: relative;
        z-index: 2;
        min-height: 420px;
        padding: 140px 15px 40px;
        max-width: 100%;
    }

    .hero-content-box h1 {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-subsubtitle {
        font-size: 12px;
    }

    .hero-arrow,
    .hero-dots {
        display: none !important;
    }

    /* Single product mobile */
    .cts-product__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cts-product__summary .product_title {
        font-size: 22px;
    }

    .cts-product__summary .price {
        font-size: 18px;
        flex-wrap: wrap;
    }

    .cts-product__summary .price ins .amount {
        font-size: 22px;
    }

    .cts-product__summary form.cart {
        flex-wrap: wrap;
    }

    .cts-archive-page .woocommerce-breadcrumb.cts-breadcrumb:first-child,
    .cts-archive-page > .woocommerce-breadcrumb.cts-breadcrumb:first-child {
        padding-top: 16px;
        margin-top: 0;
    }

    .cts-archive-page {
        padding-top: 8px;
    }

    /* Related products mobile */
    .related.products .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .related.products .woocommerce ul.products li.product img {
        height: 130px;
        padding: 6px;
    }

    .related.products .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px;
        padding: 8px 8px 4px;
        min-height: 52px;
    }

    .related.products .woocommerce ul.products li.product .price {
        padding: 0 8px 6px;
        font-size: 11px;
    }

    .related.products .woocommerce ul.products li.product .button {
        width: calc(100% - 16px);
        padding: 8px 6px;
        font-size: 11px;
        margin-bottom: 8px;
    }

    /* FAB mobile */
    .climat-fab-widget {
        bottom: 72px;
    }

    .climat-fab-widget.fab-right {
        right: 12px;
    }

    .climat-fab-widget.fab-left {
        left: 12px;
    }

    .fab-main-btn {
        width: 50px;
        height: 50px;
    }

    .fab-main-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .mobile-header {
        padding: 8px 12px;
    }

    .mobile-logo-text {
        font-size: 14px;
    }

    .mobile-header-right {
        gap: 12px;
    }

    .container {
        padding: 0 10px;
    }

    .woocommerce ul.products li.product img {
        height: 130px;
        padding: 6px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px;
        padding: 8px 8px 4px;
        line-height: 1.3;
    }

    .woocommerce ul.products li.product .price {
        padding: 0 8px 6px;
        font-size: 11px;
        gap: 4px;
        flex-wrap: nowrap;
    }

    .woocommerce ul.products li.product .price del {
        font-size: 10px;
    }

    .woocommerce ul.products li.product .price ins .amount {
        font-size: 13px;
    }

    .woocommerce ul.products li.product .button {
        width: calc(100% - 16px);
        padding: 8px 6px;
        font-size: 11px;
        font-weight: 600;
        border-radius: 6px;
        margin-bottom: 8px;
    }

    .woocommerce ul.products li.product .onsale {
        padding: 3px 6px;
        font-size: 8px;
        top: 6px;
        left: 6px;
        border-radius: 8px;
    }

    .cts-subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cts-subcategory-image {
        height: 120px;
    }

    .cts-subcategory-info {
        padding: 10px 12px 12px;
    }

    .cts-subcategory-name {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .cts-subcategory-desc {
        font-size: 12px;
        line-height: 1.4;
    }

    .cts-subcategory-badge {
        font-size: 10px;
        padding: 3px 8px;
        top: 6px;
        right: 6px;
    }

    .cts-subcategory-link {
        font-size: 13px;
        margin-top: 8px;
    }

    .hero-content-box {
        padding: 120px 15px 30px;
    }

    .hero-content-box h1 {
        font-size: 18px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-subsubtitle {
        font-size: 11px;
    }

    .hero-description {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ============================================
   DESKTOP LANGUAGE SWITCHER (TranslatePress)
   ============================================ */
.header-lang-switcher {
    display: flex;
    align-items: center;
    align-self: center;
    margin-right: 20px;
    flex-shrink: 0;
    line-height: 1;
}

/* ============================================
   MOBILE LANGUAGE SWITCHER (TranslatePress)
   ============================================ */
.mobile-lang-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.logo-flex .custom-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Mobile custom logo */
.mobile-custom-logo {
    max-height: 36px;
    width: auto;
    display: block;
}


/* ============================================
   SINGLE PRODUCT — OPTIMIZED v2.2
   ============================================ */

.cts-product-page {
    padding: 40px 0 60px;
    background: #f8fafc;
}

.cts-product {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Breadcrumb */
.cts-breadcrumb--product {
    margin-bottom: 24px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

/* Grid */
.cts-product__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* ===== GALLERY ===== */
.cts-product__gallery {
    position: relative;
}

.cts-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cts-product-gallery__main {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cts-product-gallery__featured {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.cts-product-badge--sale {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 2;
}

.cts-product-gallery__thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.cts-product-gallery__thumbs::-webkit-scrollbar {
    height: 4px;
}

.cts-product-gallery__thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.cts-product-gallery__thumb {
    flex: 0 0 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    background: #fff;
}

.cts-product-gallery__thumb:hover {
    transform: scale(1.05);
}

.cts-product-gallery__thumb.is-active {
    border-color: #0b4699;
}

.cts-product-gallery__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== SUMMARY ===== */
.cts-product__summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cts-product__title {
    font-size: 32px;
    font-weight: 700;
    color: #0d2c54;
    margin: 0;
    line-height: 1.2;
}

/* Stock Status */
.cts-product__stock {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cts-product__stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.cts-product__stock-badge--in {
    background: #dcfce7;
    color: #166534;
}

.cts-product__stock-badge--out {
    background: #fee2e2;
    color: #991b1b;
}

.cts-product__stock-badge--pre {
    background: #fef3c7;
    color: #92400e;
}

.cts-product__stock-qty {
    font-size: 13px;
    color: #64748b;
}

/* Price */
.cts-product__price-wrap {
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.cts-product__price {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.cts-product__price .woocommerce-Price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #0d2c54;
}

.cts-product__price del .woocommerce-Price-amount {
    font-size: 20px;
    color: #94a3b8;
    font-weight: 500;
    text-decoration: line-through;
}

.cts-product__price ins {
    text-decoration: none;
    background: none;
}

.cts-product__price ins .woocommerce-Price-amount {
    color: #e74c3c;
    font-size: 32px;
}

/* Short Description */
.cts-product__short-desc {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.cts-product__short-desc p {
    margin: 0 0 12px 0;
}

.cts-product__short-desc p:last-child {
    margin-bottom: 0;
}

/* Add to Cart */
.cts-product__cart {
    margin-top: 8px;
}

.cts-product__cart form.cart {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cts-product__cart .quantity {
    margin: 0;
}

.cts-product__cart .quantity input[type="number"] {
    width: 70px;
    height: 52px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #0d2c54;
    background: #fff;
    -moz-appearance: textfield;
}

.cts-product__cart .quantity input[type="number"]::-webkit-outer-spin-button,
.cts-product__cart .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cts-product__cart .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 36px;
    background: #0b4699 !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    border: none !important;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cts-product__cart .single_add_to_cart_button:hover {
    background: #08306b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 70, 153, 0.3);
}

.cts-product__cart .single_add_to_cart_button:active {
    transform: translateY(0);
}

/* Meta */
.cts-product__meta {
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cts-product__meta-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
}

.cts-product__meta-label {
    color: #64748b;
    font-weight: 500;
    min-width: 80px;
}

.cts-product__meta-value {
    color: #334155;
    font-weight: 500;
}

.cts-product__meta-value a {
    color: #0b4699;
    text-decoration: none;
    transition: color 0.2s;
}

.cts-product__meta-value a:hover {
    color: #08306b;
    text-decoration: underline;
}

/* ===== TABS ===== */
.cts-product__tabs {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.cts-product__tabs .woocommerce-tabs {
    margin: 0;
}

.cts-product__tabs .tabs {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: none;
}

.cts-product__tabs .tabs::-webkit-scrollbar {
    display: none;
}

.cts-product__tabs .tabs li {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.cts-product__tabs .tabs li a {
    display: block;
    padding: 14px 24px;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}

.cts-product__tabs .tabs li.active a,
.cts-product__tabs .tabs li a:hover {
    color: #0b4699;
    border-bottom-color: #0b4699;
}

.cts-product__tabs .woocommerce-Tabs-panel {
    padding: 24px 0;
    animation: fadeIn 0.3s ease;
}

.cts-product__tabs .woocommerce-Tabs-panel h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0d2c54;
    margin: 0 0 20px 0;
}

.cts-product__tabs .woocommerce-Tabs-panel p {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.cts-product__tabs .woocommerce-Tabs-panel p:last-child {
    margin-bottom: 0;
}

/* Reviews in tabs */
.cts-product__tabs .woocommerce-Reviews-title {
    font-size: 22px;
    font-weight: 700;
    color: #0d2c54;
    margin: 0 0 20px 0;
}

.cts-product__tabs .woocommerce-noreviews {
    color: #64748b;
    font-size: 15px;
    padding: 16px;
    background: #f1f5f9;
    border-radius: 10px;
}

/* Review Form */
.cts-product__tabs #respond .comment-reply-title {
    font-size: 18px;
    font-weight: 700;
    color: #0d2c54;
    margin-bottom: 16px;
    display: block;
}

.cts-product__tabs .comment-form-rating label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0d2c54;
    margin-bottom: 8px;
}

.cts-product__tabs .comment-form-rating select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #334155;
}

.cts-product__tabs .comment-form-comment label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0d2c54;
    margin-bottom: 8px;
}

.cts-product__tabs .comment-form-comment textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    color: #334155;
    background: #fff;
}

.cts-product__tabs .comment-form-comment textarea:focus {
    outline: none;
    border-color: #0b4699;
    box-shadow: 0 0 0 3px rgba(11, 70, 153, 0.1);
}

.cts-product__tabs .form-submit .submit {
    padding: 14px 32px;
    background: #0b4699;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.cts-product__tabs .form-submit .submit:hover {
    background: #08306b;
    transform: translateY(-1px);
}

/* ===== RELATED PRODUCTS ===== */
.cts-product__related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.cts-product__related .related.products > h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0d2c54;
    margin: 0 0 24px 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SINGLE PRODUCT — MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .cts-product__grid {
        gap: 32px;
    }

    .cts-product__title {
        font-size: 26px;
    }

    .cts-product__price .woocommerce-Price-amount {
        font-size: 24px;
    }

    .cts-product__price ins .woocommerce-Price-amount {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .cts-product-page {
        padding: 20px 0 40px;
    }

    .cts-product {
        padding: 20px;
        border-radius: 12px;
    }

    .cts-breadcrumb--product {
        margin-bottom: 16px;
        padding: 8px 0;
    }

    .cts-product__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .cts-product-gallery__main {
        aspect-ratio: 4 / 3;
        border-radius: 12px;
    }

    .cts-product-gallery__featured {
        padding: 12px;
    }

    .cts-product-gallery__thumb {
        flex: 0 0 60px;
        height: 60px;
        border-radius: 8px;
    }

    .cts-product__title {
        font-size: 22px;
    }

    .cts-product__stock-badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    .cts-product__price-wrap {
        padding: 12px 0;
    }

    .cts-product__price .woocommerce-Price-amount {
        font-size: 22px;
    }

    .cts-product__price del .woocommerce-Price-amount {
        font-size: 16px;
    }

    .cts-product__price ins .woocommerce-Price-amount {
        font-size: 26px;
    }

    .cts-product__short-desc {
        font-size: 14px;
    }

    .cts-product__cart form.cart {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cts-product__cart .quantity {
        width: 100%;
    }

    .cts-product__cart .quantity input[type="number"] {
        width: 100%;
        height: 48px;
    }

    .cts-product__cart .single_add_to_cart_button {
        width: 100%;
        height: 52px;
        font-size: 16px;
    }

    .cts-product__meta {
        padding-top: 16px;
    }

    .cts-product__meta-row {
        font-size: 13px;
    }

    .cts-product__tabs {
        margin-top: 32px;
        padding-top: 24px;
    }

    .cts-product__tabs .tabs li a {
        padding: 12px 16px;
        font-size: 14px;
    }

    .cts-product__tabs .woocommerce-Tabs-panel h2 {
        font-size: 18px;
    }

    .cts-product__related {
        margin-top: 32px;
        padding-top: 24px;
    }

    .cts-product__related .related.products > h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .cts-product {
        padding: 16px;
        border-radius: 10px;
    }

    .cts-product__title {
        font-size: 20px;
    }

    .cts-product-gallery__main {
        aspect-ratio: 1 / 1;
    }

    .cts-product-gallery__thumb {
        flex: 0 0 52px;
        height: 52px;
    }

    .cts-product__price .woocommerce-Price-amount {
        font-size: 20px;
    }

    .cts-product__price ins .woocommerce-Price-amount {
        font-size: 24px;
    }

    .cts-product__tabs .tabs li a {
        padding: 10px 14px;
        font-size: 13px;
    }
}


/* ===== CTS Info Pages (Доставка, Оплата) ===== */
.cts-info-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.cts-info-page h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0b4699;
    margin-bottom: 24px;
    text-align: center;
}
.cts-info-block {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}
.cts-info-block h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}
.cts-info-block p,
.cts-info-block li {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}
.cts-info-block ul {
    margin: 0;
    padding-left: 20px;
}

/* ===== CTS Return Form ===== */
.cts-return-wrap {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.cts-return-title {
    font-size: 24px;
    font-weight: 700;
    color: #0b4699;
    margin-bottom: 8px;
    text-align: center;
}
.cts-return-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    text-align: center;
}
.cts-return-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cts-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cts-form-row label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.cts-form-row input,
.cts-form-row textarea {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
}
.cts-form-row input:focus,
.cts-form-row textarea:focus {
    outline: none;
    border-color: #0b4699;
    background: #fff;
}
.cts-return-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg,#25D366,#128C7E);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    margin-top: 8px;
    width: 100%;
}
.cts-return-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.35);
}
.cts-return-btn:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .cts-info-page,
    .cts-return-wrap {
        margin: 20px 12px;
        padding: 20px;
    }
}



/* === Mobile product grid — universal (categories, related, search, etc.) === */
@media (max-width: 480px) {
    .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .woocommerce ul.products::before,
    .woocommerce ul.products::after {
        display: none !important;
    }
    .woocommerce ul.products li.product {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .woocommerce ul.products li.product .woocommerce-LoopProduct-link {
        display: block !important;
        background: #fff !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
        text-decoration: none !important;
    }
    .woocommerce ul.products li.product img {
        width: 100% !important;
        height: 130px !important;
        object-fit: contain !important;
        background: #f8f9fa !important;
        margin: 0 !important;
        display: block !important;
        padding: 6px !important;
    }
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #0b4699 !important;
        padding: 8px 8px 4px !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        hyphens: auto !important;
        min-height: 52px !important;
    }
    .woocommerce ul.products li.product .price {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 0 8px 6px !important;
        margin: 0 !important;
        font-size: 11px !important;
        flex-wrap: nowrap !important;
    }
    .woocommerce ul.products li.product .price del {
        color: #999 !important;
        font-size: 10px !important;
        opacity: 0.8 !important;
    }
    .woocommerce ul.products li.product .price del .amount {
        text-decoration: line-through !important;
    }
    .woocommerce ul.products li.product .price ins {
        color: #e74c3c !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        background: none !important;
    }
    .woocommerce ul.products li.product .price ins .amount {
        color: #e74c3c !important;
        font-size: 13px !important;
    }
    .woocommerce ul.products li.product .button {
        display: block !important;
        width: calc(100% - 16px) !important;
        margin: 0 auto 8px !important;
        padding: 8px 6px !important;
        background: #0b4699 !important;
        color: #fff !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        text-align: center !important;
        border-radius: 6px !important;
        text-decoration: none !important;
        border: none !important;
        cursor: pointer !important;
    }
    .woocommerce ul.products li.product .onsale {
        position: absolute !important;
        top: 6px !important;
        left: 6px !important;
        right: auto !important;
        min-height: auto !important;
        min-width: auto !important;
        padding: 3px 6px !important;
        border-radius: 8px !important;
        background: #e74c3c !important;
        color: #fff !important;
        font-size: 8px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        line-height: 1 !important;
        z-index: 2 !important;
    }
}


/* === SEO Section === */
.seo-section {
    padding: 48px 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
}
.seo-content {
    max-width: 900px;
    margin: 0 auto;
}
.seo-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0b4699;
    margin-bottom: 16px;
    text-align: center;
}
.seo-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
    text-align: justify;
}
.seo-content strong {
    color: #0b4699;
}
@media (max-width: 768px) {
    .seo-section {
        padding: 32px 16px;
    }
    .seo-content h2 {
        font-size: 18px;
    }
    .seo-content p {
        font-size: 13px;
    }
}

/* === Footer CTA === */
.footer-cta {
    background: linear-gradient(135deg, #0b4699 0%, #1565c0 100%);
    padding: 40px 0;
    color: #fff;
}
.footer-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-cta__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}
.footer-cta__desc {
    font-size: 15px;
    margin: 0;
    opacity: 0.9;
    color: #fff;
}
.footer-cta__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.footer-cta__btn--phone {
    background: #fff;
    color: #0b4699;
}
.footer-cta__btn--phone:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}
.footer-cta__btn--wa {
    background: #25d366;
    color: #fff;
}
.footer-cta__btn--wa:hover {
    background: #1ebe57;
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .footer-cta {
        padding: 32px 16px;
    }
    .footer-cta__inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-cta__title {
        font-size: 20px;
    }
    .footer-cta__actions {
        width: 100%;
        justify-content: center;
    }
    .footer-cta__btn {
        flex: 1;
        min-width: 140px;
    }
}


/* Visually hidden — доступно для скринридеров и поисковиков, но не видно */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === Hero Section Styles (moved from front-page.php inline) === */
/* ============================================
       HERO — простой блочный layout, без grid
       ============================================ */
    .hero-section {
        position: relative;
        width: 100%;
        background: transparent;
        margin: 0;
        padding: 0;
    }

    .hero-slider {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .hero-slides {
        position: relative;
        min-height: 450px;
        width: 100%;
    }

    .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.7s ease, visibility 0.7s ease;
        z-index: 0;
    }

    .hero-slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }

    .hero-slide-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        z-index: 0;
    }

    .hero-content-box {
        position: relative;
        z-index: 2;
        max-width: 640px;
        padding: 100px 20px;
    }

    .hero-content-box h1 {
        font-size: 36px;
        color: #0d2c54;
        font-weight: 800;
        line-height: 1.2;
        margin: 0 0 12px 0;
        text-shadow: 0 2px 8px rgba(255,255,255,0.9), 0 0 2px rgba(255,255,255,0.9);
    }

    .hero-subtitle {
        font-size: 20px;
        color: #1a3a5c;
        font-weight: 700;
        line-height: 1.3;
        margin: 0 0 8px 0;
        text-shadow: 0 1px 4px rgba(255,255,255,0.9);
    }

    .hero-subsubtitle {
        font-size: 15px;
        color: #4a6580;
        font-weight: 500;
        line-height: 1.4;
        margin: 0 0 20px 0;
        text-shadow: 0 1px 4px rgba(255,255,255,0.9);
    }

    .hero-description {
        font-size: 16px;
        color: #4a6580;
        line-height: 1.6;
        margin: 0 0 20px 0;
        text-shadow: 0 1px 4px rgba(255,255,255,0.9);
    }

    .btn-primary {
        display: inline-block;
        background: #0b4699;
        color: #fff;
        padding: 14px 32px;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .btn-primary:hover {
        background: #08306b;
    }

    /* Arrows */
    .hero-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(255,255,255,0.95);
        border: 1px solid rgba(11,70,153,0.15);
        cursor: pointer;
        font-size: 22px;
        color: #0b4699;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .hero-arrow:hover {
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        color: #08306b;
    }
    .hero-prev { left: 24px; }
    .hero-next { right: 24px; }

    /* Dots */
    .hero-dots {
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        display: flex;
        gap: 10px;
    }
    .hero-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: none;
        background: rgba(11,70,153,0.25);
        cursor: pointer;
        transition: all 0.3s;
        padding: 0;
    }
    .hero-dot.active {
        background: #0b4699;
        width: 28px;
        border-radius: 5px;
    }

    /* БЛОК ПРЕИМУЩЕСТВ */
    .benefits-bar {
        background-color: #f1f5f9;
        padding: 30px 0;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
    }
    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .benefit-item {
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }
    .benefit-item .b-icon {
        font-size: 32px;
        flex-shrink: 0;
        line-height: 1;
    }
    .benefit-item h4 {
        margin: 0 0 3px 0;
        font-size: 14px;
        color: #0d2c54;
        font-weight: 700;
    }
    .benefit-item p {
        margin: 0;
        font-size: 12px;
        color: #64748b;
        line-height: 1.4;
    }

    /* СЕКЦИИ КАТЕГОРИЙ */
    .category-section { margin-bottom: 50px; }
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        border-left: 4px solid #0b4699;
        padding-left: 15px;
    }
    .section-header h2 {
        font-size: 24px;
        color: #0d2c54;
        margin: 0;
        font-weight: 700;
    }
    .view-all-link {
        color: #0b4699;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .view-all-link:hover { text-decoration: underline; }

    /* КАРТОЧКИ ПОДРУБРИК v3 */
    .subcat-grid-v2 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .subcat-card-v2 {
        background: #ffffff;
        border: 1px solid #e8ecf1;
        border-radius: 12px;
        padding: 24px;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
        text-decoration: none;
        color: #333;
    }
    .subcat-card-v2:hover {
        box-shadow: 0 8px 24px rgba(11, 70, 153, 0.08);
        border-color: #c8d4e3;
        transform: translateY(-2px);
    }
    .subcat-header { margin-bottom: 16px; }
    .subcat-name {
        font-size: 18px;
        font-weight: 700;
        color: #0d2c54;
        margin: 0 0 8px 0;
        line-height: 1.2;
    }
    .subcat-badge {
        display: inline-block;
        background: #e8f5e9;
        color: #2e7d32;
        font-size: 12px;
        font-weight: 600;
        padding: 3px 10px;
        border-radius: 20px;
        margin-bottom: 8px;
    }
    .subcat-badge-premium {
        background: linear-gradient(135deg, #d4af37, #f5af19);
        color: #fff;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: 1px solid rgba(255,255,255,0.3);
        box-shadow: 0 2px 6px rgba(212,175,55,0.3);
    }
    .subcat-desc {
        font-size: 13px;
        color: #64748b;
        margin: 0;
        line-height: 1.4;
    }
    .subcat-visual {
        width: 100%;
        height: 160px;
        background: #ffffff;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 16px;
        overflow: hidden;
        position: relative;
    }
    .subcat-visual::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: #ffffff;
        z-index: 0;
    }
    .subcat-visual img {
        position: relative;
        z-index: 1;
        max-width: 90%;
        max-height: 90%;
        width: auto;
        height: auto;
        object-fit: contain;
        mix-blend-mode: multiply;
        filter: contrast(1.05) brightness(1.02);
    }
    .subcat-action {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid #f1f5f9;
        color: #0b4699;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.2s;
    }
    .subcat-card-v2:hover .subcat-action { color: #083370; }
    .subcat-arrow {
        font-size: 20px;
        color: #cbd5e1;
        transition: all 0.2s;
    }
    .subcat-card-v2:hover .subcat-arrow {
        color: #0b4699;
        transform: translateX(4px);
    }

    /* АДАПТИВ */
    @media (max-width: 1100px) {
        .subcat-grid-v2 { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 992px) {
        .hero-content-box { padding: 80px 20px; }
        .hero-content-box h1 { font-size: 30px; }
        .hero-subtitle { font-size: 18px; }
        .hero-subsubtitle { font-size: 14px; }
        .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    }

    @media (max-width: 768px) {
        .hero-section {
            margin-top: var(--header-height, 56px);
        }
        .hero-slides {
            min-height: 420px;
        }
        .hero-slide-bg {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            z-index: 0 !important;
            background-size: cover !important;
            background-position: center center !important;
        }
        .hero-content-box {
            position: relative;
            z-index: 2;
            max-width: 100%;
            padding: 140px 15px 40px;
        }
        .hero-content-box h1 {
            font-size: 20px;
            margin: 0 0 8px 0;
        }
        .hero-subtitle {
            font-size: 15px;
            margin: 0 0 6px 0;
        }
        .hero-subsubtitle {
            font-size: 12px;
            margin: 0 0 14px 0;
        }
        .hero-description {
            font-size: 13px;
            margin: 0 0 12px 0;
        }
        .btn-primary {
            padding: 10px 20px;
            font-size: 13px;
        }
        .hero-arrow,
        .hero-dots {
            display: none;
        }

        .subcat-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
        .subcat-visual { height: 130px; }
    }

    @media (max-width: 576px) {
        .hero-content-box { padding: 120px 15px 30px; }
        .hero-content-box h1 { font-size: 18px; }
        .hero-subtitle { font-size: 14px; }
        .hero-subsubtitle { font-size: 11px; }
        .hero-description { font-size: 12px; margin-bottom: 10px; }
        .btn-primary { padding: 8px 18px; font-size: 12px; }

        .subcat-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
        .subcat-card-v2 { padding: 12px; }
        .subcat-name { font-size: 14px; }
        .subcat-badge { font-size: 10px; padding: 2px 8px; }
        .subcat-desc { font-size: 11px; }
        .subcat-visual { height: 100px; }
        .subcat-action { font-size: 12px; padding-top: 10px; }
        .subcat-arrow { font-size: 16px; }
        .benefits-grid { grid-template-columns: 1fr; gap: 15px; }
        .benefit-item .b-icon { font-size: 28px; }
        .benefit-item h4 { font-size: 13px; }
        .benefit-item p { font-size: 11px; }
    }


<main id="primary" class="site-main front-page-layout">

/* === Front Page Styles (moved from front-page.php inline) === */
/* ============================================
       HERO — простой блочный layout, без grid
       ============================================ */
    .hero-section {
        position: relative;
        width: 100%;
        background: transparent;
        margin: 0;
        padding: 0;
    }

    .hero-slider {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .hero-slides {
        position: relative;
        min-height: 450px;
        width: 100%;
    }

    .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.7s ease, visibility 0.7s ease;
        z-index: 0;
    }

    .hero-slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }

    .hero-slide-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        z-index: 0;
    }

    .hero-content-box {
        position: relative;
        z-index: 2;
        max-width: 640px;
        padding: 100px 20px;
    }

    .hero-content-box h1 {
        font-size: 36px;
        color: #0d2c54;
        font-weight: 800;
        line-height: 1.2;
        margin: 0 0 12px 0;
        text-shadow: 0 2px 8px rgba(255,255,255,0.9), 0 0 2px rgba(255,255,255,0.9);
    }

    .hero-subtitle {
        font-size: 20px;
        color: #1a3a5c;
        font-weight: 700;
        line-height: 1.3;
        margin: 0 0 8px 0;
        text-shadow: 0 1px 4px rgba(255,255,255,0.9);
    }

    .hero-subsubtitle {
        font-size: 15px;
        color: #4a6580;
        font-weight: 500;
        line-height: 1.4;
        margin: 0 0 20px 0;
        text-shadow: 0 1px 4px rgba(255,255,255,0.9);
    }

    .hero-description {
        font-size: 16px;
        color: #4a6580;
        line-height: 1.6;
        margin: 0 0 20px 0;
        text-shadow: 0 1px 4px rgba(255,255,255,0.9);
    }

    .btn-primary {
        display: inline-block;
        background: #0b4699;
        color: #fff;
        padding: 14px 32px;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .btn-primary:hover {
        background: #08306b;
    }

    /* Arrows */
    .hero-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(255,255,255,0.95);
        border: 1px solid rgba(11,70,153,0.15);
        cursor: pointer;
        font-size: 22px;
        color: #0b4699;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .hero-arrow:hover {
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        color: #08306b;
    }
    .hero-prev { left: 24px; }
    .hero-next { right: 24px; }

    /* Dots */
    .hero-dots {
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        display: flex;
        gap: 10px;
    }
    .hero-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: none;
        background: rgba(11,70,153,0.25);
        cursor: pointer;
        transition: all 0.3s;
        padding: 0;
    }
    .hero-dot.active {
        background: #0b4699;
        width: 28px;
        border-radius: 5px;
    }

    /* БЛОК ПРЕИМУЩЕСТВ */
    .benefits-bar {
        background-color: #f1f5f9;
        padding: 30px 0;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
    }
    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .benefit-item {
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }
    .benefit-item .b-icon {
        font-size: 32px;
        flex-shrink: 0;
        line-height: 1;
    }
    .benefit-item h4 {
        margin: 0 0 3px 0;
        font-size: 14px;
        color: #0d2c54;
        font-weight: 700;
    }
    .benefit-item p {
        margin: 0;
        font-size: 12px;
        color: #64748b;
        line-height: 1.4;
    }

    /* СЕКЦИИ КАТЕГОРИЙ */
    .category-section { margin-bottom: 50px; }
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        border-left: 4px solid #0b4699;
        padding-left: 15px;
    }
    .section-header h2 {
        font-size: 24px;
        color: #0d2c54;
        margin: 0;
        font-weight: 700;
    }
    .view-all-link {
        color: #0b4699;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .view-all-link:hover { text-decoration: underline; }

    /* КАРТОЧКИ ПОДРУБРИК v3 */
    .subcat-grid-v2 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .subcat-card-v2 {
        background: #ffffff;
        border: 1px solid #e8ecf1;
        border-radius: 12px;
        padding: 24px;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
        text-decoration: none;
        color: #333;
    }
    .subcat-card-v2:hover {
        box-shadow: 0 8px 24px rgba(11, 70, 153, 0.08);
        border-color: #c8d4e3;
        transform: translateY(-2px);
    }
    .subcat-header { margin-bottom: 16px; }
    .subcat-name {
        font-size: 18px;
        font-weight: 700;
        color: #0d2c54;
        margin: 0 0 8px 0;
        line-height: 1.2;
    }
    .subcat-badge {
        display: inline-block;
        background: #e8f5e9;
        color: #2e7d32;
        font-size: 12px;
        font-weight: 600;
        padding: 3px 10px;
        border-radius: 20px;
        margin-bottom: 8px;
    }
    .subcat-badge-premium {
        background: linear-gradient(135deg, #d4af37, #f5af19);
        color: #fff;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: 1px solid rgba(255,255,255,0.3);
        box-shadow: 0 2px 6px rgba(212,175,55,0.3);
    }
    .subcat-desc {
        font-size: 13px;
        color: #64748b;
        margin: 0;
        line-height: 1.4;
    }
    .subcat-visual {
        width: 100%;
        height: 160px;
        background: #ffffff;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 16px;
        overflow: hidden;
        position: relative;
    }
    .subcat-visual::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: #ffffff;
        z-index: 0;
    }
    .subcat-visual img {
        position: relative;
        z-index: 1;
        max-width: 90%;
        max-height: 90%;
        width: auto;
        height: auto;
        object-fit: contain;
        mix-blend-mode: multiply;
        filter: contrast(1.05) brightness(1.02);
    }
    .subcat-action {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid #f1f5f9;
        color: #0b4699;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.2s;
    }
    .subcat-card-v2:hover .subcat-action { color: #083370; }
    .subcat-arrow {
        font-size: 20px;
        color: #cbd5e1;
        transition: all 0.2s;
    }
    .subcat-card-v2:hover .subcat-arrow {
        color: #0b4699;
        transform: translateX(4px);
    }

    /* АДАПТИВ */
    @media (max-width: 1100px) {
        .subcat-grid-v2 { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 992px) {
        .hero-content-box { padding: 80px 20px; }
        .hero-content-box h1 { font-size: 30px; }
        .hero-subtitle { font-size: 18px; }
        .hero-subsubtitle { font-size: 14px; }
        .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    }

    @media (max-width: 768px) {
        .hero-section {
            margin-top: var(--header-height, 56px);
        }
        .hero-slides {
            min-height: 420px;
        }
        .hero-slide-bg {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            z-index: 0 !important;
            background-size: cover !important;
            background-position: center center !important;
        }
        .hero-content-box {
            position: relative;
            z-index: 2;
            max-width: 100%;
            padding: 140px 15px 40px;
        }
        .hero-content-box h1 {
            font-size: 20px;
            margin: 0 0 8px 0;
        }
        .hero-subtitle {
            font-size: 15px;
            margin: 0 0 6px 0;
        }
        .hero-subsubtitle {
            font-size: 12px;
            margin: 0 0 14px 0;
        }
        .hero-description {
            font-size: 13px;
            margin: 0 0 12px 0;
        }
        .btn-primary {
            padding: 10px 20px;
            font-size: 13px;
        }
        .hero-arrow,
        .hero-dots {
            display: none;
        }

        .subcat-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
        .subcat-visual { height: 130px; }
    }

    @media (max-width: 576px) {
        .hero-content-box { padding: 120px 15px 30px; }
        .hero-content-box h1 { font-size: 18px; }
        .hero-subtitle { font-size: 14px; }
        .hero-subsubtitle { font-size: 11px; }
        .hero-description { font-size: 12px; margin-bottom: 10px; }
        .btn-primary { padding: 8px 18px; font-size: 12px; }

        .subcat-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
        .subcat-card-v2 { padding: 12px; }
        .subcat-name { font-size: 14px; }
        .subcat-badge { font-size: 10px; padding: 2px 8px; }
        .subcat-desc { font-size: 11px; }
        .subcat-visual { height: 100px; }
        .subcat-action { font-size: 12px; padding-top: 10px; }
        .subcat-arrow { font-size: 16px; }
        .benefits-grid { grid-template-columns: 1fr; gap: 15px; }
        .benefit-item .b-icon { font-size: 28px; }
        .benefit-item h4 { font-size: 13px; }
        .benefit-item p { font-size: 11px; }
    }


<main id="primary" class="site-main front-page-layout">

/* === Mobile header phone === */
.mobile-header-phone a {
    color: #0b4699;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}
