/* ============================================
   ICC-Service Custom Header v4.0
   Modular two-row header with:
   - Mobile sidebar menu + hamburger
   - Sticky header (main bar)
   - wp_nav_menu integration
   - Cart dropdown + AJAX
   - SEO Schema.org
   - Full a11y support
   ============================================ */

/* --- Hide standard OceanWP header --- */
body.icc-custom-header-active #site-header,
body.icc-custom-header-active #site-header-inner,
body.icc-custom-header-active .is-sticky #site-header,
body.icc-custom-header-active #top-bar-wrap {
    display: none !important;
}

/* --- Header container --- */
.icc-header {
    position: relative;
    z-index: 9999;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.icc-header-inner {
    width: var(--icc-container-w, 1440px);
    max-width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ===== ROW 1: TOP BAR (white) ===== */
.icc-header-top {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}

.icc-header-top .icc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.icc-header-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.icc-header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.icc-header-logo a:focus,
.icc-header-logo a:focus-visible,
.icc-header-logo a:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.icc-header-logo a:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 8px rgba(0, 151, 167, 0.35));
}

.icc-header-logo a:active {
    transform: scale(0.97);
    filter: drop-shadow(0 1px 4px rgba(0, 151, 167, 0.25));
}

.icc-header-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Tagline next to logo */
.icc-header-tagline {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 500;
    color: #555;
    line-height: 1.35;
    max-width: 200px;
    padding-left: 14px;
    border-left: 2px solid var(--icc-primary, #0097a7);
    opacity: 0.85;
}

.icc-header-logo-text {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: var(--icc-primary, #0097a7);
}

/* Site name next to logo image — hidden on desktop, shown on mobile */
.icc-header-logo-name {
    display: none;
    font-size: 14px;
    font-weight: 700;
    color: #1a202c;
    white-space: nowrap;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

/* Schedule */
.icc-header-schedule {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 14px;
}

.icc-header-schedule i {
    color: var(--icc-primary, #0097a7);
    font-size: 20px;
}

.icc-header-schedule-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.icc-header-schedule-label {
    font-size: 12px;
    color: #888;
}

.icc-header-schedule-value {
    font-weight: 600;
    color: #222;
}

/* Phone */
.icc-header-phones {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icc-header-phones i {
    color: var(--icc-primary, #0097a7);
    font-size: 22px;
}

.icc-header-phone-info {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.icc-header-phone-number {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 700;
    color: #222;
    text-decoration: none;
}

.icc-header-phone-number:hover {
    color: var(--icc-primary, #0097a7);
}

.icc-header-phone-label {
    font-size: 12px;
    color: #888;
}

/* Top menu (links or wp_nav_menu) */
.icc-header-top-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icc-header-top-menu a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.icc-header-top-menu a:hover {
    color: var(--icc-primary, #0097a7);
}

/* wp_nav_menu in top bar */
.icc-top-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.icc-top-menu-list li {
    margin: 0;
    padding: 0;
}

.icc-top-menu-list li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.icc-top-menu-list li a:hover {
    color: var(--icc-primary, #0097a7);
}

/* Callback button */
.icc-header-callback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--icc-primary, #0097a7);
    color: #fff !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.icc-header-callback:hover {
    background: var(--icc-primary-hover, #00838f);
    color: #fff !important;
}

/* Social Icons */
.icc-header-socials {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.icc-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease,
                filter 0.25s ease;
    position: relative;
    overflow: hidden;
}

.icc-social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.icc-social-icon:hover::before {
    opacity: 1;
}

.icc-social-icon:hover {
    transform: translateY(-2px) scale(1.12);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    color: #fff;
}

.icc-social-icon:active {
    transform: translateY(0) scale(0.95);
}

/* Brand colors */
.icc-social-whatsapp  { background: #25d366; }
.icc-social-telegram  { background: #2aabee; }
.icc-social-vk        { background: #4c75a3; }
.icc-social-youtube   { background: #ff0000; }
.icc-social-dzen      { background: #000; }

/* ===== ROW 2: MAIN BAR (primary color) ===== */
.icc-header-main {
    background: var(--icc-primary, #0097a7);
    padding: 0;
}

.icc-header-main .icc-header-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* --- Catalog Button --- */
.icc-header-catalog-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(0,0,0,0.15);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    border: none;
    outline: none;
}

.icc-header-catalog-btn:hover,
.icc-header-catalog-btn:focus {
    background: rgba(0,0,0,0.25);
}

.icc-header-catalog-btn i {
    font-size: 18px;
}

.icc-header-main .icc-header-catalog-btn a.icc-header-catalog-link,
.icc-header-main .icc-header-catalog-btn a.icc-header-catalog-link:visited,
.icc-header-main .icc-header-catalog-btn a.icc-header-catalog-link:active,
.icc-header-main .icc-header-catalog-btn a.icc-header-catalog-link:hover,
.icc-header-main .icc-header-catalog-btn a.icc-header-catalog-link:focus {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    text-decoration: none !important;
}

/* Catalog dropdown */
.icc-header-catalog-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1000;
}

.icc-header-catalog-btn:hover .icc-header-catalog-dropdown,
.icc-header-catalog-btn:focus-within .icc-header-catalog-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.icc-header-catalog-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s, color 0.15s;
}

.icc-header-catalog-dropdown a:last-child {
    border-bottom: none;
}

.icc-header-catalog-dropdown a:hover {
    background: #f8f9fa;
    color: var(--icc-primary, #0097a7);
}

.icc-cat-count {
    color: #999;
    font-size: 12px;
    margin-left: 8px;
}

.icc-cat-all {
    font-weight: 600 !important;
    background: #f8f9fa;
    color: var(--icc-primary, #0097a7) !important;
}

/* --- Navigation (wp_nav_menu or fallback) --- */
.icc-header-nav {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    overflow: visible;
}

/* wp_nav_menu generated list */
.icc-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}

.icc-nav-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.icc-nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
    height: 100%;
    box-sizing: border-box;
}

.icc-nav-menu > li > a:hover,
.icc-nav-menu > li.current-menu-item > a,
.icc-nav-menu > li.current-menu-parent > a {
    background: rgba(0,0,0,0.12);
    color: #fff;
}

/* Submenu (level 2) */
.icc-nav-menu > li > .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 6px 6px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1000;
}

.icc-nav-menu > li:hover > .sub-menu,
.icc-nav-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.icc-nav-menu > li > .sub-menu > li {
    margin: 0;
    padding: 0;
}

.icc-nav-menu > li > .sub-menu > li > a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s, color 0.15s;
}

.icc-nav-menu > li > .sub-menu > li:last-child > a {
    border-bottom: none;
}

.icc-nav-menu > li > .sub-menu > li > a:hover {
    background: #f8f9fa;
    color: var(--icc-primary, #0097a7);
}

/* Fallback nav items (no wp_nav_menu) */
.icc-header-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.icc-header-nav-item:hover {
    background: rgba(0,0,0,0.1);
    color: #fff;
}

.icc-header-nav-item i {
    font-size: 16px;
    opacity: 0.8;
}

/* Submenu (fallback) */
.icc-header-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1000;
}

.icc-has-submenu:hover .icc-header-submenu,
.icc-has-submenu:focus-within .icc-header-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.icc-header-submenu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s, color 0.15s;
}

.icc-header-submenu a:last-child {
    border-bottom: none;
}

.icc-header-submenu a:hover {
    background: #f8f9fa;
    color: var(--icc-primary, #0097a7);
}

.icc-submenu-all {
    font-weight: 600 !important;
    background: #f8f9fa;
    color: var(--icc-primary, #0097a7) !important;
}

/* --- Search --- */
.icc-header-search {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    padding: 6px 30px;
    min-width: 120px;
}

.icc-header-search form {
    position: relative;
    width: 100%;
    display: flex;
    align-items: stretch;
}

.icc-header-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0 15px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    height: 44px;
    line-height: 44px;
}

.icc-header-search input[type="search"]::placeholder {
    color: #999;
}

.icc-header-search button[type="submit"] {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    background: var(--icc-primary-hover, #00838f);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.icc-header-search button[type="submit"]:hover {
    background: rgba(0,0,0,0.3);
}

.icc-header-search label.screen-reader-text,
.icc-header-search .woocommerce-product-search label {
    display: none;
}

/* --- Cart --- */
.icc-header-cart-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.icc-header-cart-wrap .icc-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.2s;
}

.icc-header-cart-wrap .icc-cart-link:hover {
    opacity: 0.8;
    color: #fff !important;
}

.icc-header-cart-wrap .icc-cart-link i {
    font-size: 22px;
    color: #fff !important;
}

.icc-header-cart-wrap .icc-cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #fff;
    color: var(--icc-primary, #0097a7);
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
}

/* Cart Dropdown */
.icc-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-width: 94vw;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 9999;
    padding-top: 10px;
    overflow: visible;
}

.icc-header-cart-wrap:hover .icc-cart-dropdown,
.icc-cart-dropdown:hover,
.icc-cart-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.icc-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.06);
}

.icc-cart-dropdown-inner {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.icc-cart-dropdown .widget_shopping_cart_content .woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}

.icc-cart-dropdown ul.woocommerce-mini-cart {
    list-style: none;
    margin: 0;
    padding: 0;
}

.icc-cart-dropdown ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.icc-cart-dropdown ul.woocommerce-mini-cart li.woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}

.icc-cart-dropdown ul.woocommerce-mini-cart li img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.icc-cart-dropdown ul.woocommerce-mini-cart li a:not(.remove) {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.icc-cart-dropdown ul.woocommerce-mini-cart li a:not(.remove):hover {
    color: var(--icc-primary);
}

.icc-cart-dropdown ul.woocommerce-mini-cart li .quantity {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

.icc-cart-dropdown ul.woocommerce-mini-cart li a.remove {
    position: absolute;
    top: 12px;
    right: 0;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 16px;
    color: #ccc !important;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.icc-cart-dropdown ul.woocommerce-mini-cart li a.remove:hover {
    color: #e53935 !important;
    background: #fce4ec;
}

.icc-cart-dropdown .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 2px solid #f0f0f0;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.icc-cart-dropdown .woocommerce-mini-cart__total .woocommerce-Price-amount {
    color: var(--icc-primary);
    font-size: 16px;
}

.icc-cart-dropdown .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 12px 0 4px;
}

.icc-cart-dropdown .woocommerce-mini-cart__buttons a {
    flex: 1 1 0;
    text-align: center;
    padding: 10px 6px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
    line-height: 1.3;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icc-cart-dropdown .woocommerce-mini-cart__buttons a.wc-forward:first-child {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.icc-cart-dropdown .woocommerce-mini-cart__buttons a.wc-forward:first-child:hover {
    background: #e8e8e8;
}

.icc-cart-dropdown .woocommerce-mini-cart__buttons a.checkout {
    background: #e53935;
    color: #fff;
    border: 1px solid #e53935;
}

.icc-cart-dropdown .woocommerce-mini-cart__buttons a.checkout:hover {
    background: #c62828;
}

/* ===== STICKY HEADER ===== */
.icc-header-can-stick .icc-header-main.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: icc-slideDown 0.3s ease;
}

.icc-header-can-stick .icc-header-main.is-sticky + .icc-sticky-spacer {
    display: block;
}

.icc-sticky-spacer {
    display: none;
}

@keyframes icc-slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* ===== MOBILE TOGGLE (hamburger) ===== */
.icc-mobile-toggle {
    display: none; /* shown via media query */
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    margin-left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}

.icc-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 20px;
}

.icc-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger → X animation */
.icc-mobile-toggle[aria-expanded="true"] .icc-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.icc-mobile-toggle[aria-expanded="true"] .icc-hamburger span:nth-child(2) {
    opacity: 0;
}

.icc-mobile-toggle[aria-expanded="true"] .icc-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE MENU (sidebar) ===== */
.icc-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: none;
    visibility: hidden;
}

.icc-mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
}

/* Overlay */
.icc-mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.icc-mobile-menu.is-open .icc-mobile-overlay {
    opacity: 1;
}

/* Panel (slides from right) */
.icc-mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.icc-mobile-menu.is-open .icc-mobile-panel {
    transform: translateX(0);
}

/* Panel header */
.icc-mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--icc-primary, #0097a7);
    color: #fff;
    flex-shrink: 0;
}

.icc-mobile-title {
    font-size: 18px;
    font-weight: 700;
}

.icc-mobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.icc-mobile-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Mobile search */
.icc-mobile-search {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.icc-mobile-search form {
    display: flex;
    align-items: stretch;
}

.icc-mobile-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.icc-mobile-search button {
    flex: 0 0 42px;
    width: 42px;
    background: var(--icc-primary, #0097a7);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile navigation */
.icc-mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.icc-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.icc-mobile-nav-list li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.icc-mobile-nav-list li a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s;
}

.icc-mobile-nav-list li a:hover {
    background: #f8f9fa;
    color: var(--icc-primary, #0097a7);
}

.icc-mobile-nav-list li.current-menu-item > a {
    color: var(--icc-primary, #0097a7);
    font-weight: 600;
}

/* Mobile submenu */
.icc-mobile-nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

.icc-mobile-nav-list .sub-menu li a {
    padding-left: 32px;
    font-size: 14px;
    font-weight: 400;
    color: #555;
}

.icc-mobile-nav-list .sub-menu .sub-menu li a {
    padding-left: 48px;
    font-size: 13px;
    color: #777;
}

/* Mobile categories (now appears FIRST) */
.icc-mobile-cats {
    padding: 0;
    border-bottom: 2px solid #eee;
}

.icc-mobile-cats-title {
    padding: 12px 20px 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
}

/* Nav menu after categories */
.icc-mobile-nav-list {
    margin-top: 0;
    border-top: none;
}

.icc-mobile-cats ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.icc-mobile-cats li {
    border-bottom: 1px solid #f5f5f5;
}

.icc-mobile-cats li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s;
}

.icc-mobile-cats li a:hover {
    background: #f8f9fa;
    color: var(--icc-primary, #0097a7);
}

.icc-mob-cat-count {
    color: #bbb;
    font-size: 12px;
}

/* Mobile contacts */
.icc-mobile-contacts {
    padding: 16px 20px;
    border-top: 2px solid #eee;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafafa;
}

.icc-mobile-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--icc-primary, #0097a7);
    text-decoration: none;
}

.icc-mobile-schedule {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.icc-mobile-cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.icc-mobile-cart-link:hover {
    border-color: var(--icc-primary, #0097a7);
    color: var(--icc-primary, #0097a7);
}

.icc-mobile-cart-link .icc-cart-count {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--icc-primary, #0097a7);
    color: #fff;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    margin-left: auto;
    padding: 0 6px;
}

/* Mobile socials */
.icc-mobile-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.icc-mobile-socials .icc-social-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
}

/* Body scroll lock when mobile menu open */
body.icc-mobile-open {
    overflow: hidden;
}

/* --- Mobile-only elements (hidden on desktop) --- */
.icc-mobile-top-cart {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #333;
    text-decoration: none;
    flex-shrink: 0;
}

.icc-mobile-top-cart i {
    font-size: 20px;
    color: var(--icc-primary, #0097a7);
}

.icc-mobile-top-cart .icc-cart-count {
    position: absolute;
    top: 2px;
    right: -2px;
    background: var(--icc-primary, #0097a7);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 3px;
}

.icc-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.icc-search-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.icc-search-toggle[aria-expanded="true"] {
    background: rgba(0,0,0,0.15);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1100px) {
    .icc-header-top .icc-header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .icc-header-top-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .icc-header-tagline {
        font-size: 12px;
        max-width: 160px;
    }

    .icc-header-socials {
        order: 2;
    }

    .icc-header-main .icc-header-inner {
        flex-wrap: wrap;
    }

    .icc-header-search {
        order: 10;
        flex: 1 1 100%;
        padding: 8px 0;
    }

    .icc-nav-menu > li > a {
        padding: 14px 12px;
        font-size: 13px;
    }
}

/* ===== MOBILE: 2-row compact header ===== */
/* Row 1: Logo (left) | Phone (center) | Cart (right)
   Row 2: Каталог (left) | ... | Search icon | Burger (right)
   Search bar: toggleable slide-down */
@media (max-width: 768px) {

    /* --- ROW 1: Compact top bar --- */
    .icc-header-top {
        padding: 6px 0;
        border-bottom: 1px solid #e9ecef;
    }

    .icc-header-top .icc-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 0 12px;
    }

    /* Logo compact */
    .icc-header-logo {
        flex: 0 0 auto;
    }

    .icc-header-logo img {
        max-height: 36px;
    }

    /* Hide schedule on mobile */
    .icc-header-schedule {
        display: none;
    }

    /* Hide tagline on mobile, show site name instead */
    .icc-header-tagline {
        display: none;
    }

    .icc-header-logo-name {
        display: inline;
    }

    /* Hide socials on mobile (shown in mobile panel) */
    .icc-header-socials {
        display: none;
    }

    /* Phone — centered */
    .icc-header-phones {
        flex: 1 1 auto;
        justify-content: center;
        gap: 6px;
    }

    .icc-header-phones i {
        font-size: 16px;
    }

    .icc-header-phone-info {
        align-items: center;
    }

    .icc-header-phone-number {
        font-size: clamp(14px, 3.8vw, 17px);
        white-space: nowrap;
    }

    .icc-header-phone-label {
        display: none;
    }

    /* Show mobile cart icon in Row 1 */
    .icc-mobile-top-cart {
        display: flex;
    }

    /* Hide entire top menu (callback + links) */
    .icc-header-top-menu {
        display: none;
    }

    .icc-top-menu-list {
        display: none;
    }

    /* --- ROW 2: Blue compact bar --- */
    .icc-header-main {
        padding: 0;
    }

    .icc-header-main .icc-header-inner {
        display: flex;
        align-items: stretch;
        flex-wrap: wrap;
        gap: 0;
        padding-right: 12px; /* Match Row 1 for alignment */
    }

    /* Catalog — left */
    .icc-header-catalog-btn {
        flex: 0 0 auto;
        padding: 10px 16px;
        font-size: 14px;
    }

    /* Hide desktop navigation */
    .icc-header-nav {
        display: none;
    }

    /* Search bar — hidden by default, slide-down on toggle */
    .icc-header-search {
        flex: 1 1 100%;
        order: 20;
        max-height: 0;
        overflow: hidden;
        padding: 0 10px;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
    }

    .icc-header-search.icc-search-active {
        max-height: 60px;
        opacity: 1;
        padding: 8px 10px;
    }

    .icc-header-search form {
        max-width: 100%;
    }

    .icc-header-search input[type="search"] {
        height: 40px;
        line-height: 40px;
        font-size: 14px;
    }

    .icc-header-search button[type="submit"] {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    /* Hide desktop cart (moved to Row 1) */
    .icc-header-cart-wrap {
        display: none;
    }

    .icc-cart-dropdown {
        display: none;
    }

    /* Show search toggle */
    .icc-search-toggle {
        display: flex;
        margin-left: auto;
    }

    /* Show burger */
    .icc-mobile-toggle {
        display: flex;
    }
}

/* Small mobile — tighter spacing */
@media (max-width: 480px) {
    .icc-header-top .icc-header-inner {
        padding: 0 8px;
        gap: 2px;
    }

    /* Match Row 1 right padding for vertical alignment */
    .icc-header-main .icc-header-inner {
        padding-left: 12px;
        padding-right: 8px;
    }

    .icc-header-logo img {
        max-height: 30px;
    }

    .icc-header-phones i {
        display: none;
    }

    .icc-header-phone-number {
        font-size: clamp(13px, 3.5vw, 15px);
    }

    .icc-mobile-top-cart {
        width: 38px;
        height: 38px;
    }

    .icc-mobile-top-cart i {
        font-size: 18px;
    }

    .icc-header-catalog-btn {
        padding: 10px 12px;
        font-size: 13px;
        gap: 6px;
    }

    .icc-header-catalog-btn i {
        font-size: 16px;
    }

    .icc-search-toggle {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .icc-mobile-toggle {
        width: 42px;
        height: 42px;
    }

    .icc-mobile-panel {
        width: 280px;
    }
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
    .icc-header *,
    .icc-header-catalog-dropdown,
    .icc-header-submenu,
    .icc-nav-menu > li > .sub-menu,
    .icc-cart-dropdown,
    .icc-header-search,
    .icc-mobile-panel,
    .icc-mobile-overlay,
    .icc-hamburger span,
    .icc-search-toggle,
    .icc-header-can-stick .icc-header-main.is-sticky {
        transition: none !important;
        animation: none !important;
    }
}

/* Logo — no focus outline (has its own hover/active animation) */
.icc-header-logo a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.icc-header a:focus-visible,
.icc-header button:focus-visible,
.icc-header [tabindex]:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.icc-header-top a:focus-visible,
.icc-header-top button:focus-visible {
    outline-color: var(--icc-primary, #0097a7);
}

/* Logo override — AFTER generic rules to ensure specificity */
.icc-header-top .icc-header-logo a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.icc-cart-dropdown a:focus-visible,
.icc-header-catalog-dropdown a:focus-visible,
.icc-header-submenu a:focus-visible,
.icc-nav-menu > li > .sub-menu > li > a:focus-visible {
    outline-color: var(--icc-primary, #0097a7);
    outline-offset: -2px;
}

.icc-mobile-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
