/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.1-v9
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/


.columns-4 .product__categories {
    display: none !important;
}

.columns-4 .product__categories .woocommerce-image__wrapper {
    padding-bottom: 10px !important;
    border-bottom: 1px solid #a7a7a7 !important;
}

.columns-4 .woocommerce-card__header .price {
    margin: 10px 0px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
}

.columns-4 .woocommerce-card__header .woocommerce-loop-product__title {
    font-size: 16px !important;
}

.columns-4 .woocommerce-loop-category__title {
    font-size: 16px !important;
}
/* ============================================================
 * Mega menu polish — heading vertical alignment + spacing
 * Added 2026-05-04 (TC unified vehicle search project)
 * ============================================================ */

/* Equalize column heading top padding so all headings line up
 * vertically across columns. Shoptimizer's default applies
 * padding-top:0 only to :first-child which misaligns headings. */
@media (min-width: 993px) {
    .main-navigation ul.menu li.full-width li.heading,
    .main-navigation ul.menu li.full-width li.heading.nolink:first-child,
    .main-navigation ul.menu li.full-width li.heading.nolink:first-child span:not(.caret) {
        padding-top: 0 !important;
    }

    /* Push the "→ Vse ..." highlight link below all columns by making
     * it span the full row beneath the columns. */
    .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.highlight {
        width: 100%;
        margin-top: 1.25rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
        text-align: center;
    }
    .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.highlight > a {
        display: inline-block;
        font-weight: 600;
        color: #f20505;
        text-decoration: none;
    }
    .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.highlight > a:hover {
        text-decoration: underline;
    }

    /* Heading icon sizing — keep emoji proportional to heading font */
    .main-navigation ul.menu li.full-width li.heading > span:not(.caret) {
        line-height: 1.4;
    }
}

/* ============================================================
 * Mega menu polish v2 — wider content, compact CTA, item dividers
 * Added 2026-05-04
 * ============================================================ */
@media (min-width: 993px) {
    /* Wider container — give content more breathing room */
    .main-navigation ul.menu li.full-width .container {
        max-width: 1500px !important;
    }
    .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu {
        padding: 30px 0 24px !important;
    }

    /* Tighter column padding so more content fits per column */
    .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li {
        padding-right: 18px !important;
        padding-left: 18px !important;
    }

    /* Compact "→ Vse ..." CTA — small inline button, not full-width row */
    .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.highlight {
        width: auto !important;
        margin-top: 0.6rem;
        padding: 0 18px !important;
        border-top: none !important;
        text-align: left;
        flex: 0 0 auto;
    }
    .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.highlight > a {
        display: inline-block;
        padding: 8px 18px;
        background: #f20505;
        color: #fff !important;
        font-weight: 600;
        font-size: 13px;
        letter-spacing: 0.3px;
        border-radius: 4px;
        text-decoration: none !important;
        transition: background 0.2s;
    }
    .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.highlight > a:hover {
        background: #c00404;
        text-decoration: none !important;
    }

    /* Item dividers — thin separator between sub-items in each column */
    .main-navigation ul.menu li.full-width > .sub-menu-wrapper li.heading > .sub-menu-wrapper > .container > ul.sub-menu > li {
        border-bottom: 1px solid #ececec;
        padding-bottom: 6px !important;
        margin-bottom: 6px !important;
    }
    .main-navigation ul.menu li.full-width > .sub-menu-wrapper li.heading > .sub-menu-wrapper > .container > ul.sub-menu > li:last-child {
        border-bottom: none;
    }

    /* Heading visual separator — thin underline below heading text */
    .main-navigation ul.menu li.full-width li.heading > span:not(.caret) {
        display: block;
        padding-bottom: 8px;
        margin-bottom: 10px;
        border-bottom: 2px solid #f20505;
    }
}

/* ============================================================
 * Mega menu mobile polish
 * Added 2026-05-04
 * ============================================================ */
@media (max-width: 992px) {
    /* Heading style — bold, brand red, uppercase */
    .main-navigation ul.menu li.full-width li.heading > span:not(.caret),
    .main-navigation ul.menu li.full-width li.heading > a {
        font-weight: 700;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #f20505;
        padding-top: 0.75rem !important;
    }

    /* "→ Vse kategorije" CTA button on mobile */
    .main-navigation ul.menu li.full-width li.highlight > a {
        display: inline-block;
        margin-top: 0.5rem;
        padding: 8px 16px;
        background: #f20505;
        color: #fff !important;
        font-weight: 600;
        font-size: 13px;
        border-radius: 4px;
        text-decoration: none !important;
    }

    /* Subtle dividers between sub-items in each column on mobile */
    .main-navigation ul.menu li.full-width li.heading > .sub-menu-wrapper li {
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 4px;
    }
    .main-navigation ul.menu li.full-width li.heading > .sub-menu-wrapper li:last-child {
        border-bottom: none;
    }

    /* Tighter spacing — mobile menus get long fast with mega menus */
    .main-navigation ul.menu li.full-width li.heading {
        margin-top: 0.5rem;
    }
}
/* ============================================================
 * 2-ROW HEADER (header-4) — FMIC-style. CLEAN BUILD 2026-05-05
 *
 * Strategy: BGs on outer .header-4-container (full-width). Stack the
 * .header-4-inner as flex column → site-header (row 1) above
 * .col-full-nav (row 2). Override Shoptimizer .col-full max-width:1170 so
 * header content reaches edges. Keep page main content max-width as-is.
 * ============================================================ */
@media (min-width: 993px) {
    body.header-4 .header-4-container {
        padding: 0 !important;
        max-width: none !important;
        width: 100% !important;
        background: #fff;
    }
    body.header-4 .header-4-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Row 1 — site-header */
    body.header-4 header.site-header,
    body.header-4 #masthead {
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        background: #fff;
        border-bottom: 1px solid #ececec;
    }
    /* Row 1 inner content matches Elementor container width (1190px), centred.
       Background band stays full-width (.header-4-container has padding:0). */
    body.header-4 .site-header .main-header.col-full {
        display: flex !important;
        align-items: center;
        gap: 16px;
        max-width: 1190px !important;
        width: 100% !important;
        padding: 12px 20px !important;
        margin: 0 auto !important;
    }
    body.header-4 .site-header .site-branding { flex: 0 0 auto; }
    /* Search expands to fill all space between logo and right group. */
    body.header-4 .site-header .site-search {
        display: block !important;
        flex: 1 1 auto !important;
        width: auto;
        max-width: none !important;
        margin-left: 0 !important;
    }
    body.header-4 .tc-header-myaccount {
        margin-left: 0 !important;
        margin-right: 0;
    }
    body.header-4 .site-header .site-header-cart {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Row 2 — col-full-nav */
    body.header-4 .col-full-nav {
        background: #f8f8f8;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto;
        height: auto !important;
        position: static !important;
        border-top: 0;
        border-bottom: 1px solid #ececec;
    }
    body.header-4 .col-full-nav .main-navigation {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 6px 30px !important;
    }
    body.header-4 .col-full-nav .primary-navigation {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        text-align: left !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    body.header-4 .col-full-nav .menu-primary-menu-container {
        text-align: left;
        margin: 0;
        max-width: none !important;
        width: 100% !important;
    }
    body.header-4 .col-full-nav .menu-primary-menu-container > ul.menu {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    /* Hide ghost search-trigger / cart / search / myaccount Shoptimizer places in col-full-nav */
    body.header-4 .col-full-nav .site-search,
    body.header-4 .col-full-nav .site-header-cart,
    body.header-4 .col-full-nav .search-trigger,
    body.header-4 .col-full-nav .mobile-search-toggle,
    body.header-4 .col-full-nav .shoptimizer-myaccount {
        display: none !important;
    }

    /* Vehicle-finder trigger spacing */
    body.header-4 .menu-item.tcvf-menu-item { margin-right: 24px; }
}

/* === Mobile === */
@media (max-width: 992px) {
    body.header-4 .header-4-inner { flex-direction: column; }
    body.header-4 .site-header .main-header.col-full {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
    }
    body.header-4 .site-header .site-header-cart {
        display: flex !important;
        align-items: center;
        margin-left: auto;
        flex-shrink: 0;
    }
    body.header-4 .col-full-nav { background: #f8f8f8; }
    body.header-4 .col-full-nav .main-navigation { padding: 6px 12px; }
}

/* === v4 patch: center row 2, prevent cart overflow, kill sticky overlap === */
@media (min-width: 993px) {
    /* Row 2: center menu items */
    body.header-4 .col-full-nav .primary-navigation {
        text-align: center !important;
    }
    body.header-4 .col-full-nav .menu-primary-menu-container,
    body.header-4 .col-full-nav .menu-primary-menu-container > ul.menu {
        text-align: center;
        justify-content: center;
    }


    /* Prevent any overflow on row 1 — clip to container */
    body.header-4 header.site-header,
    body.header-4 .site-header .main-header.col-full {
        overflow: visible;
        box-sizing: border-box;
    }
    /* Tighten cart spacing so it fits inside 30px right pad */
    body.header-4 .site-header .site-header-cart {
        margin-right: 0 !important;
        padding-right: 0 !important;
    }
}

/* === v5 patch: kill kirki fixed heights, override header-4 col-full-nav flex-row === */
@media (min-width: 993px) {
    /* Kirki inline-styles set fixed heights — release them so column flex stacks properly */
    body.header-4 .header-4-container {
        height: auto !important;
        min-height: 0 !important;
    }
    body.header-4 .main-header,
    body.header-4 .main-header.col-full {
        height: auto !important;
        min-height: 0 !important;
    }

    /* Shoptimizer base sets .header-4 .col-full-nav { display:flex; margin-left:auto }
       which makes row 2 a flex sibling of row 1 instead of column-stacked. Override. */
    body.header-4 .col-full-nav {
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* === v6 patch: Re-enable sticky header + compact mode on scroll === */
@media (min-width: 993px) {
    /* Sticky 2-row header */
    body.header-4 .header-4-container {
        position: sticky !important;
        top: 0 !important;
        z-index: 99 !important;
        background: #fff;
        transition: box-shadow 0.2s ease;
    }
    body.admin-bar.header-4 .header-4-container {
        top: 32px !important;
    }

    /* Smooth height transitions on inner rows */
    body.header-4 .site-header .main-header.col-full,
    body.header-4 .col-full-nav .main-navigation,
    body.header-4 .custom-logo,
    body.header-4 .tc-header-contact__main {
        transition: all 0.2s ease;
    }

    /* Spacing between phone & email items */
    body.header-4 .tc-header-contact {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    /* COMPACT MODE — applied when body has .is-scrolled */
    body.header-4.is-scrolled .header-4-container {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    /* Row 1 shrinks: smaller padding, hide secondary labels, smaller logo */
    body.header-4.is-scrolled .site-header .main-header.col-full {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    body.header-4.is-scrolled .custom-logo {
        max-height: 32px !important;
        width: auto !important;
    }
    body.header-4.is-scrolled .tc-header-contact__main {
        font-size: 13px;
    }
    body.header-4.is-scrolled .tc-header-contact__item {
        padding: 4px 8px;
    }
    body.header-4.is-scrolled .tc-header-myaccount {
        width: 32px;
        height: 32px;
    }

    /* Row 2 shrinks: smaller padding */
    body.header-4.is-scrolled .col-full-nav .main-navigation {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
    body.header-4.is-scrolled .menu-primary-menu-container > ul.menu > li > a {
        padding-top: 4px;
        padding-bottom: 4px;
    }
    /* Vehicle finder trigger more compact */
    body.header-4.is-scrolled .tcvf-trigger__btn {
        padding: 4px 10px;
        font-size: 12px;
    }
}

/* === v8 patch: row 2 height — full at top, compact only when scrolled === */
@media (min-width: 993px) {
    /* At top: keep Shoptimizer default tall row. No override here. */

    /* Compact mode (scrolled): shrink line-height + padding */
    body.header-4.is-scrolled .col-full-nav .menu-primary-menu-container > ul > li > a,
    body.header-4.is-scrolled .col-full-nav .menu-primary-menu-container > ul > li.nolink > span {
        line-height: 36px !important;
    }
    body.header-4.is-scrolled .col-full-nav .main-navigation {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
}

/* === Hide header contact (phone/email) on mobile/tablet — desktop only === */
@media (max-width: 992px) {
    .tc-header-contact {
        display: none !important;
    }
}

/* === ElasticPress Autosuggest dropdown styling === */
body .ep-autosuggest-container {
    position: relative !important;
    width: 100% !important;
}
body .ep-autosuggest-container .ep-autosuggest {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-top: 3px solid #d73c38 !important; /* visible brand-red top accent */
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
    margin-top: 4px !important;
    overflow: hidden !important;
    max-height: 70vh;
    overflow-y: auto;
}
body .ep-autosuggest-container .ep-autosuggest > ul.autosuggest-list,
body .ep-autosuggest-container .ep-autosuggest > ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
}
body .ep-autosuggest-container .ep-autosuggest > ul > li {
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}
body .ep-autosuggest-container .ep-autosuggest > ul > li > a.autosuggest-link {
    color: #1f2937 !important;
    cursor: pointer !important;
    display: block !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    border-left: 3px solid transparent !important;
    transition: background-color 0.12s ease, border-color 0.12s ease !important;
    background: none !important;
}
body .ep-autosuggest-container .ep-autosuggest > ul > li > a.autosuggest-link:hover,
body .ep-autosuggest-container .ep-autosuggest > ul > li.selected > a.autosuggest-link,
body .ep-autosuggest-container .selected > a.autosuggest-link {
    background-color: #d73c38 !important;
    border-left-color: #d73c38 !important;
    color: #fff !important;
    text-decoration: none !important;
}
body .ep-autosuggest-container .ep-autosuggest > ul > li > a.autosuggest-link:hover mark,
body .ep-autosuggest-container .ep-autosuggest > ul > li.selected mark,
body .ep-autosuggest-container .selected mark {
    color: #fff !important;
}
body .ep-autosuggest-container .ep-autosuggest mark,
body .ep-autosuggest-container .ep-autosuggest .ep-autosuggest-highlight,
body .ep-autosuggest-container .ep-autosuggest strong {
    background: transparent !important;
    color: #d73c38 !important;
    font-weight: 600 !important;
}

/* "View all results" item — pinned at bottom */
body .ep-autosuggest-container .ep-autosuggest > ul > li.tc-autosuggest-viewall {
    border-top: 1px solid #ececec !important;
    margin-top: 4px !important;
}
body .ep-autosuggest-container .ep-autosuggest > ul > li.tc-autosuggest-viewall > a.autosuggest-link {
    color: #d73c38 !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 12px 16px !important;
    border-left: 0 !important;
    background: #fafafa !important;
}
body .ep-autosuggest-container .ep-autosuggest > ul > li.tc-autosuggest-viewall > a.autosuggest-link:hover {
    background: #d73c38 !important;
    color: #fff !important;
}
/* ============================================================
 * TC Vehicle Landing — appended to child theme style.css
 * Section structure: hero → categories → products → brands → universal → cta
 * ============================================================ */
.tcvl-landing { background: #fff; }

.tcvl-section__inner,
.tcvl-hero__inner {
    max-width: 1190px;
    margin: 0 auto;
    padding: 0 20px;
}

.tcvl-section { padding: 48px 0; }
.tcvl-section + .tcvl-section { border-top: 1px solid #f0f0f0; }
.tcvl-section__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #1f2937;
}
.tcvl-section__lead { color: #6b7280; margin: -16px 0 24px; font-size: 15px; }

/* === HERO === */
.tcvl-hero { padding: 24px 0 0; }
.tcvl-hero__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px 32px;
    background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
    border: 1px solid #ececec;
    border-radius: 8px;
}
.tcvl-hero__copy { flex: 1 1 60%; }
.tcvl-hero__visual {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.tcvl-hero__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 600;
    color: #d73c38;
    margin-bottom: 12px;
}
.tcvl-hero__title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #111827;
}
.tcvl-hero__title .tcvl-hero__model,
.tcvl-hero__title .tcvl-hero__gen {
    display: inline-block;
    margin-left: 8px;
    font-weight: 600;
    color: #4b5563;
}
.tcvl-hero__title .tcvl-hero__gen {
    font-weight: 800;
    color: #d73c38;
}
.tcvl-hero__subtitle {
    font-size: 17px;
    color: #4b5563;
    margin: 0;
    max-width: 560px;
}
.tcvl-hero__brand-logo {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}
.tcvl-hero__brand-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1f2937;
}
.tcvl-hero__silhouette {
    width: 100%;
    max-width: 360px;
    color: #1f2937;
    opacity: 0.85;
}
.tcvl-hero__silhouette svg { width: 100%; height: auto; display: block; }

@media (max-width: 768px) {
    .tcvl-hero__inner { flex-direction: column; padding-top: 32px; padding-bottom: 32px; }
    .tcvl-hero__title { font-size: 32px; }
    .tcvl-hero__visual { width: 100%; }
}

/* === CATEGORY TILES — root with subcategory list === */
.tcvl-tile-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.tcvl-tile {
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
}
.tcvl-tile:hover { border-color: #d73c38; box-shadow: 0 4px 14px rgba(215, 60, 56, 0.08); }

.tcvl-tile__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fafafa;
    border-bottom: 1px solid #ececec;
    text-decoration: none !important;
    transition: background 0.15s ease;
}
.tcvl-tile__head:hover { background: #d73c38; text-decoration: none !important; }
.tcvl-tile__head:hover .tcvl-tile__name,
.tcvl-tile__head:hover .tcvl-tile__count { color: #fff; }
.tcvl-tile__name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}
.tcvl-tile__count {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    background: #fff;
    padding: 2px 8px;
    border-radius: 999px;
}

.tcvl-tile__subs {
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    flex: 1;
}
.tcvl-tile__subs li { margin: 0; padding: 0; border: 0; }
.tcvl-tile__subs li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 14px;
    color: #4b5563;
    font-size: 13px;
    text-decoration: none !important;
    transition: color 0.12s ease, background 0.12s ease;
    line-height: 1.3;
}
.tcvl-tile__subs li a:hover {
    color: #d73c38;
    background: #fafafa;
}
.tcvl-tile__sub-name { flex: 1; padding-right: 8px; }
.tcvl-tile__sub-count {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    flex: 0 0 auto;
}
.tcvl-tile__subs li a:hover .tcvl-tile__sub-count { color: #d73c38; }

/* === BRAND CHIPS === */
.tcvl-brand-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tcvl-brand-chip { margin: 0; padding: 0; }
.tcvl-brand-chip a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 14px;
    color: #1f2937;
    text-decoration: none !important;
    transition: all 0.15s ease;
}
.tcvl-brand-chip a:hover {
    background: #d73c38;
    border-color: #d73c38;
    color: #fff;
}
.tcvl-brand-chip__name { font-weight: 600; text-transform: capitalize; }
.tcvl-brand-chip__count {
    font-size: 12px;
    background: #f3f4f6;
    padding: 1px 8px;
    border-radius: 999px;
    color: #6b7280;
    font-weight: 600;
}
.tcvl-brand-chip a:hover .tcvl-brand-chip__count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* === Sidebar product categories widget — always-expanded tree === */
.widget_product_categories .product-categories,
.widget_product_categories .product-categories .children {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.widget_product_categories .product-categories > li {
    padding: 8px 0 !important;
    border-bottom: 1px solid #f3f4f6;
    display: block !important;
}
.widget_product_categories .product-categories > li:last-child {
    border-bottom: 0;
}
.widget_product_categories .product-categories .children {
    display: block !important; /* override Shoptimizer's collapse-by-default */
    padding: 8px 0 4px 14px !important;
    margin: 8px 0 0 4px !important;
    border-left: 2px solid #ececec;
}
.widget_product_categories .product-categories .children li {
    padding: 5px 0 !important;
    border: 0 !important;
    display: block !important;
}
.widget_product_categories .product-categories a {
    color: #1f2937;
    text-decoration: none !important;
    transition: color 0.12s ease;
    display: inline;
}
.widget_product_categories .product-categories > li > a {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 13px;
}
.widget_product_categories .product-categories .children a {
    font-size: 13px;
    color: #4b5563;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}
.widget_product_categories .product-categories a:hover {
    color: #d73c38 !important;
}
.widget_product_categories .product-categories .count {
    color: #9ca3af !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-left: 6px !important;
    background: transparent !important;
    padding: 0 !important;
}
/* Hide Shoptimizer's expand/collapse toggle chevron — we keep tree expanded */
.widget_product_categories .shoptimizer-wc-cat-widget--toggle {
    display: none !important;
}

/* === Delimiter between specific & universal products in shop/category grids === */
.tcvl-products-divider {
    grid-column: 1 / -1;
    list-style: none !important;
    margin: 24px 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    gap: 16px;
    width: auto !important;
    float: none !important;
    background: none !important;
}
.tcvl-products-divider__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d73c38 50%, transparent);
}
.tcvl-products-divider__label {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: #d73c38;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fff5f5;
    white-space: nowrap;
}

/* === Empty-state UX — vehicle filter active but 0 products in category === */
.tcvl-empty-state {
    padding: 24px 0;
}
.tcvl-empty-state__hero {
    text-align: center;
    padding: 32px 20px;
    margin-bottom: 32px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #ececec;
}
.tcvl-empty-state__icon {
    color: #d73c38;
    margin-bottom: 12px;
}
.tcvl-empty-state__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111827;
    line-height: 1.35;
}
.tcvl-empty-state__title strong {
    color: #d73c38;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.tcvl-empty-state__lead {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.tcvl-empty-state__section {
    margin-bottom: 32px;
}
.tcvl-empty-state__heading {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
}
.tcvl-empty-state__products {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.tcvl-empty-state__products > li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
}
@media (max-width: 1100px) {
    .tcvl-empty-state__products { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 768px) {
    .tcvl-empty-state__products { grid-template-columns: repeat(2, 1fr) !important; }
}
.tcvl-empty-state__siblings {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tcvl-empty-state__siblings li { margin: 0; padding: 0; }
.tcvl-empty-state__sibling {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 14px;
    color: #1f2937;
    text-decoration: none !important;
    transition: all 0.15s ease;
}
.tcvl-empty-state__sibling:hover {
    background: #d73c38;
    border-color: #d73c38;
    color: #fff !important;
}
.tcvl-empty-state__sibling-gen { font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.tcvl-empty-state__sibling-count {
    font-size: 12px;
    background: #f3f4f6;
    padding: 1px 8px;
    border-radius: 999px;
    color: #6b7280;
    font-weight: 600;
}
.tcvl-empty-state__sibling:hover .tcvl-empty-state__sibling-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.tcvl-empty-state__cta {
    text-align: center;
    padding: 28px 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #ececec;
    margin-top: 24px;
}
.tcvl-empty-state__cta p { font-size: 15px; color: #4b5563; margin-bottom: 16px; }

/* === Active Vehicle Notice — shop/category pages === */
.tcvl-active-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 0 0 24px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-left: 4px solid #d73c38;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
}
.tcvl-active-notice__icon {
    display: inline-flex;
    align-items: center;
    color: #d73c38;
}
.tcvl-active-notice__text {
    flex: 1;
}
.tcvl-active-notice__text strong {
    color: #d73c38;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.tcvl-active-notice__clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 999px;
    color: #d73c38;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.15s ease;
}
.tcvl-active-notice__clear:hover {
    background: #d73c38;
    border-color: #d73c38;
    color: #fff !important;
}

/* === CTA — 1190px content-width band, not full-width === */
.tcvl-cta { background: transparent; padding-bottom: 64px; }
.tcvl-cta .tcvl-section__inner {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 40px 32px;
}
.tcvl-cta__inner { text-align: center; max-width: 720px; margin: 0 auto; padding: 0 !important; }
.tcvl-cta__inner p { font-size: 16px; color: #4b5563; margin-bottom: 24px; }
/* Use site standard .button styling — no custom override here. */

/* === Product grids — match shop page card style, force 6 per row === */
.tcvl-products .products,
.tcvl-universal .products {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.tcvl-products .products > li.product,
.tcvl-universal .products > li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}
@media (max-width: 1100px) {
    .tcvl-products .products,
    .tcvl-universal .products { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 768px) {
    .tcvl-products .products,
    .tcvl-universal .products { grid-template-columns: repeat(2, 1fr) !important; }
}

/* === v7 patch: CommerceKit desktop sticky ATC above custom sticky header === */
@media (min-width: 993px) {
    .commercekit-sticky-add-to-cart {
        z-index: 9999 !important;
    }
}

/* === TC: TÜV certifikat značka (added 2026-06-07) === */
.woocommerce ul.products li.product { position: relative; }
.tc-tuv-ribbon {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font: 700 11px/1 Roboto, Arial, sans-serif;
    padding: 4px 8px;
    border-radius: 4px;
    background: #2e7d32;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    pointer-events: none;
}
.tc-tuv-ribbon svg { flex: 0 0 auto; }
.tc-tuv-info {
    display: flex;
    width: 100%;
    flex-basis: 100%;
    clear: both;
    align-items: center;
    gap: 10px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 0 0 15px;
    font-family: Roboto, sans-serif;
}
.tc-tuv-info svg { flex: 0 0 auto; }
.tc-tuv-info__label { color: #2e7d32; font-weight: 700; display: block; }
.tc-tuv-info__desc { color: #444; font-size: 12.5px; display: block; margin-top: 2px; }

/* === TC fix: mobile sticky ATC full-screen blank overlay (added 2026-06-10) ===
   CommerceKit sticky add-to-cart na mobile dobi `top:auto; bottom:-95px`,
   ob .visible pa genericno pravilo `top:0` — ker body NIMA sticky-t/sticky-b
   (theme mod sticky_cart_display=false, bar pa rendera CommerceKit modul),
   se element raztegne cez cel viewport (top:0 + bottom:-95px) in prekrije
   stran z belino. Fix: brez position classa se na mobile obnasa kot bottom bar. */
@media (max-width: 992px) {
    body:not(.sticky-t):not(.sticky-b) .commercekit-sticky-add-to-cart.visible {
        top: auto !important;
        bottom: 0;
    }
}
