/* Chakta storefront presentation only. Keep finder markup, options and handlers intact. */
body.ecowheels-catalog-mode .header-search-form input:not([type="hidden"]) {
    background: var(--eco-surface);
    border: 1px solid var(--eco-border);
    border-radius: 6px;
    color: var(--eco-ink);
    font-size: 14px;
    height: 44px;
    padding: 0 44px 0 14px;
}
body.ecowheels-catalog-mode .header-search-form button {
    align-items: center;
    color: var(--eco-primary);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 44px;
}
body.ecowheels-catalog-mode .header-search-form button i { position: static; }
body.ecowheels-catalog-mode .header-search-form :focus-visible { outline: 3px solid var(--eco-focus); outline-offset: 3px; }

body.ecowheels-catalog-home .hero-area-v2 .hero-slide-two .single-hero { padding: 64px 0 56px; }
body.ecowheels-catalog-home .hero-area-v2 .single-hero .hero-content h1 {
    font-size: clamp(32px, 4.5vw, 56px);
    letter-spacing: -.035em;
    line-height: 1.15;
    margin: 0 auto 12px;
    max-width: 22ch;
}
body.ecowheels-catalog-home .hero-area-v2 .single-hero .hero-content h5 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 48ch;
}
body.ecowheels-catalog-home .hero-area-v2 .single-hero .hero-filter {
    border: 1px solid var(--eco-border);
    border-radius: 10px;
    margin: 0 auto;
    max-width: 1140px;
    padding: 24px;
    width: calc(100% - 32px);
}
body.ecowheels-catalog-home .hero-filter .ecowheels-finder { margin-bottom: 0; }

body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-discovery__heading { align-items: center; gap: 16px; margin-bottom: 16px; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-discovery__heading :is(h1, h2) { font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-discovery__eyebrow { font-size: 11px; margin-bottom: 5px; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-search-switcher { background: var(--eco-paper); border-radius: 6px; padding: 3px; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-search-switcher a { border-radius: 4px; font-size: 14px; font-weight: 600; line-height: 1.4; min-height: 40px; padding: 10px 14px; }
body.ecowheels-catalog-mode .ecowheels-finder-keyword { gap: 8px; margin-bottom: 12px; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-finder-keyword input[type="search"],
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-brand select,
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-vehicle-picker select,
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-vehicle-picker input[type="search"],
body.ecowheels-catalog-mode .ecowheels-finder-panel__body select {
    border: 1px solid var(--eco-input-border);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    height: 48px;
    line-height: 1.5;
    min-height: 48px;
    padding: 11px 14px;
}
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-brand select { padding-right: 36px; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-apply {
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    height: 48px;
    letter-spacing: 0;
    min-height: 48px;
    padding: 11px 20px;
    text-transform: none;
}
body.ecowheels-catalog-mode .ecowheels-finder-toolbar { gap: 12px; padding-bottom: 12px; }
body.ecowheels-catalog-mode .ecowheels-finder-toolbar .ecowheels-catalog-type { border-radius: 6px; font-size: 13px; font-weight: 500; line-height: 1.4; min-height: 44px; padding: 11px 12px; }
body.ecowheels-catalog-mode .ecowheels-finder-panel > summary { border-radius: 6px; font-weight: 500; line-height: 1.4; min-height: 44px; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-facets { gap: 10px; margin-top: 12px; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-brand { color: var(--eco-muted); font-size: 12px; font-weight: 500; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-facet { border-radius: 6px; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-facet > summary { font-size: 13px; font-weight: 500; line-height: 1.5; min-height: 46px; padding: 11px 14px; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-filter-status { display: inline-block; margin: 8px 12px 0 0; vertical-align: middle; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-filter-actions { display: inline-flex; margin: 0; vertical-align: middle; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-active { border: 0; gap: 6px; margin-top: 4px; padding-top: 0; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-active > span { border-radius: 4px; font-size: 12px; font-weight: 500; padding: 5px 8px; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-vehicle-picker { background: transparent; border: 0; border-radius: 0; margin-bottom: 12px; padding: 0; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-vehicle-picker__hint { margin-bottom: 14px; }
body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-vehicle-guidance { font-size: 12px; line-height: 1.6; margin: 0; }

/* Reuse Chakta's configured photograph while keeping the banner compact. */
body.ecowheels-catalog-mode.ecowheels-catalog-listing .klb-shop-breadcrumb,
body.ecowheels-catalog-mode.single-product .klb-shop-breadcrumb {
    background-color: var(--eco-paper);
    background-position: center 55%;
    background-size: cover;
    border-bottom: 1px solid var(--eco-border);
    padding: 38px 0;
}
body.ecowheels-catalog-mode .klb-shop-breadcrumb::after { background: linear-gradient(90deg, rgba(13, 31, 25, .88), rgba(13, 31, 25, .55)); }
body.ecowheels-catalog-mode .klb-shop-breadcrumb .col-lg-8 { flex-basis: 100%; max-width: 100%; }
body.ecowheels-catalog-mode .klb-shop-breadcrumb .breadcrumbs-content { text-align: left !important; }
body.ecowheels-catalog-mode .klb-shop-breadcrumb .breadcrumbs-content h1 { color: #fff; font-size: 28px; line-height: 1.25; margin-bottom: 6px; }
body.ecowheels-catalog-mode .klb-shop-breadcrumb .breadcrumbs-content a { color: #fff; }
body.ecowheels-catalog-mode .klb-shop-breadcrumb .breadcrumb-menu { color: #fff; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
body.ecowheels-catalog-mode .klb-shop-breadcrumb .breadcrumb-menu :is(li, span),
body.ecowheels-catalog-mode .klb-shop-breadcrumb .breadcrumb-menu a::after { color: #fff; text-transform: none; }
body.ecowheels-catalog-mode.single-product .klb-shop-breadcrumb { padding: 28px 0; }
body.ecowheels-catalog-mode.single-product .klb-shop-breadcrumb .breadcrumbs-content h1 { display: none; }
body.ecowheels-catalog-mode.ecowheels-catalog-listing .shop-grid-sidebar { padding-top: 32px; }
body.ecowheels-catalog-mode.single-product .shop-details-section { padding-top: 32px; padding-bottom: 40px; }
body.ecowheels-catalog-mode.single-product .details-content-box { padding: 28px; }
body.ecowheels-catalog-mode .product-filter .fliter-left ul li a.active { background: var(--eco-primary); }
body.ecowheels-catalog-mode .woocommerce-tabs li.nav-item.active a { color: var(--eco-primary); }
body.ecowheels-catalog-mode .woocommerce-tabs li.nav-item.active a::after { background: var(--eco-primary); }

/* Optional price/options stay in normal flow; short titles reserve no blank area. */
body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product > .shop-item { margin-bottom: 0 !important; }
body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .shop-content { height: auto !important; min-height: 0; padding: 0; }
body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .shop-content .title { height: auto !important; min-height: 0; margin: 0; }
body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .ecowheels-catalog-actions--loop { margin-top: 10px; padding-top: 0; }
@media (min-width: 768px) {
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .shop-img { aspect-ratio: 4 / 3; background: var(--eco-paper); margin-bottom: 12px; }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .shop-img > img { height: 100%; min-height: 0; object-fit: contain; padding: 8px; width: 100%; }
    body.ecowheels-catalog-mode .ecowheels-vehicle-family ul.products > li.product { padding: 14px !important; }
    body.ecowheels-catalog-mode .ecowheels-vehicle-family .ecowheels-catalog-actions--loop { padding: 0; }
}

@media (max-width: 767.98px) {
    body.ecowheels-catalog-home .hero-area-v2 .hero-slide-two .single-hero { padding: 36px 0 32px; }
    body.ecowheels-catalog-home .hero-area-v2 .single-hero .hero-content { display: block; padding: 0 16px; }
    body.ecowheels-catalog-home .hero-area-v2 .single-hero .hero-content h1 { font-size: 32px; max-width: 18ch; }
    body.ecowheels-catalog-home .hero-area-v2 .single-hero .hero-content h5 { font-size: 14px; margin-bottom: 20px; }
    body.ecowheels-catalog-home .hero-area-v2 .single-hero .hero-filter { padding: 16px; }
    body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-discovery__heading { align-items: flex-start; gap: 12px; }
    body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-discovery__heading :is(h1, h2) { font-size: 23px; }
    body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-search-switcher a { min-height: 44px; }
    body.ecowheels-catalog-mode .ecowheels-finder-keyword { gap: 8px; }
    body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-apply { min-width: 80px; padding-right: 14px; padding-left: 14px; }
    body.ecowheels-catalog-home .hero-filter .ecowheels-home-category-trigger { border-radius: 6px; min-height: 56px; padding: 10px 12px; }
    body.ecowheels-catalog-home .hero-filter .ecowheels-home-category-trigger ~ .ecowheels-finder-panel { margin-left: 0; }
    body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-facet > summary { gap: 5px; padding: 10px 12px; }
    body.ecowheels-catalog-mode .ecowheels-finder .ecowheels-catalog-active { margin-bottom: 0; }
    body.ecowheels-catalog-mode.ecowheels-catalog-listing .klb-shop-breadcrumb { padding: 28px 0; }
    body.ecowheels-catalog-mode.ecowheels-catalog-listing .shop-grid-sidebar { padding-top: 24px; }
    body.ecowheels-catalog-mode.single-product .shop-details-section { padding-top: 24px; padding-bottom: 24px; }
    body.ecowheels-catalog-mode.single-product .details-content-box { margin-top: 20px; padding: 20px 16px; }
}
@media (pointer: coarse) {
    body.ecowheels-catalog-mode .header-search-form input:not([type="hidden"]) { font-size: 16px; }
}

@media (max-width: 767.98px) {
    /* Contained thumbnails never inherit the height of the title/actions column. */
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product {
        align-content: start;
        border-radius: 8px;
        gap: 6px 12px;
        grid-template-columns: minmax(88px, 32%) minmax(0, 1fr);
        grid-template-rows: auto auto minmax(44px, 1fr);
        padding: 12px;
    }
    body.ecowheels-catalog-mode .ecowheels-vehicle-family ul.products > li.product { padding: 12px !important; }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .shop-img {
        align-self: stretch;
        aspect-ratio: auto;
        border-radius: 6px;
        grid-row: 1 / 4;
        min-height: 96px;
        position: relative;
    }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .shop-img > img {
        height: 100%;
        inset: 0;
        min-height: 0;
        object-fit: contain;
        padding: 6px;
        position: absolute;
    }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .shop-content { padding: 0; }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .shop-content .title { font-size: 14px; line-height: 1.4; }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .ecowheels-catalog-actions--loop { display: contents; }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .ecowheels-wheel-set-price {
        font-size: 15px;
        font-weight: 600;
        grid-column: 2;
        grid-row: 2;
        line-height: 1.35;
        margin: 0;
    }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .ecowheels-wheel-set-price-unit { font-size: 11px; line-height: 1.4; }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .ecowheels-catalog-badges {
        align-self: start;
        grid-column: 2;
        grid-row: 3;
        margin: 0;
        max-width: calc(100% - 44px);
        min-height: 44px;
    }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .ecowheels-catalog-stock {
        background: transparent;
        border-radius: 0;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.4;
        padding: 0;
    }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .ecowheels-catalog-stock > span { flex-shrink: 0; height: 6px; width: 6px; }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .ecowheels-card-options { grid-column: 1 / -1; margin: 0; }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .ecowheels-card-option { font-size: 12px; }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .ecowheels-whatsapp-actions {
        gap: 8px;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 4px;
    }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product a.ecowheels-whatsapp-button {
        background: var(--eco-surface) !important;
        border-color: var(--eco-border) !important;
        border-radius: 6px;
        color: var(--eco-primary) !important;
        font-size: 12px !important;
        font-weight: 500;
        gap: 5px;
        line-height: 1.3;
        min-height: 44px;
        min-width: 0;
        padding: 8px 6px;
    }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .ecowheels-whatsapp-button .fa-whatsapp { font-size: 16px; }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .tinvwl-loop-button-wrapper {
        align-self: start;
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        margin: 0;
    }
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product .tinvwl_add_to_wishlist_button {
        align-items: center;
        display: inline-flex;
        height: 44px;
        justify-content: center;
        margin: 0;
        padding: 0;
        width: 44px;
    }
    /* Keep native tab links/panels; only the tab strip scrolls. */
    body.ecowheels-catalog-mode.single-product .woocommerce-tabs .discription_tabs .nav-tabs {
        border-bottom: 1px solid var(--eco-border);
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        padding: 4px 4px 6px;
        scroll-padding-inline: 4px;
        scrollbar-color: var(--eco-border) transparent;
        scrollbar-width: thin;
    }
    body.ecowheels-catalog-mode.single-product .woocommerce-tabs .discription_tabs .nav-tabs .nav-item { flex: 0 0 auto; float: none; margin: 0; width: auto; }
    body.ecowheels-catalog-mode.single-product .woocommerce-tabs .discription_tabs .nav-tabs .nav-link {
        align-items: center;
        color: var(--eco-muted);
        display: flex;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.4;
        min-height: 44px;
        padding: 10px 0;
        white-space: nowrap;
    }
    body.ecowheels-catalog-mode.single-product .woocommerce-tabs .discription_tabs .nav-tabs .active .nav-link { color: var(--eco-primary); }
    body.ecowheels-catalog-mode.single-product .woocommerce-tabs .discription_tabs .nav-tabs .active .nav-link::after { display: block; transition: none; }
    body.ecowheels-catalog-mode.single-product .woocommerce-tabs .discription_tabs .nav-tabs .nav-link:focus-visible { outline: 3px solid var(--eco-focus); outline-offset: 1px; }
}
@media (max-width: 767.98px) and (hover: hover) and (pointer: fine) {
    body.ecowheels-catalog-mode :is(.products, .row[class*="columns-"]) > .product a.ecowheels-whatsapp-button:hover {
        background: var(--eco-selected) !important;
        border-color: var(--eco-primary) !important;
    }
}
