/*
Theme Name: Vendora Child
Theme URI: http://vendora.novaworks.net
Description: This is a child theme for Vendora Theme.
Author: Novaworks
Author URI: http: //www.novaworks.net/
Template: vendora
Version: 1.0
*/

/****************************************************************/
/*************** ADD YOUR CUSTOM CSS IN THIS AREA ***************/
/****************************************************************/

/* Section 363259a is replaced by the njh-wrap hero slider via JS injection.
   The Elementor element is hidden by JS; no CSS overrides needed here. */

/* ── Zakładki produktów — kolor aktywny/hover: brand blue ── */
.kitify-tabs > .kitify-tabs__control-wrapper .kitify-tabs__control:hover .kitify-tabs__label-text,
.kitify-tabs > .kitify-tabs__control-wrapper .kitify-tabs__control.active-tab .kitify-tabs__label-text {
    color: #2563eb !important;
}
.kitify-tabs > .kitify-tabs__control-wrapper .kitify-tabs__control:hover,
.kitify-tabs > .kitify-tabs__control-wrapper .kitify-tabs__control.active-tab {
    border-color: #2563eb !important;
}
.kitify-tabs-style-vendora-01 .kitify-tabs__control:hover .kitify-tabs__label-text:before,
.kitify-tabs-style-vendora-01 .kitify-tabs__control.active-tab .kitify-tabs__label-text:before {
    background-color: #2563eb !important;
}







/* ── Mobile — tytuły produktów ── */
@media (max-width: 640px) {

    /* Tytuł karty: zawijanie tekstu, maks. 2 linie */
    ul.products .product .product-item .woocommerce-loop-product__title,
    ul.products .product .product-item .woocommerce-loop-product__title a {
        font-size: 13px !important;
        line-height: 1.35 !important;
        word-break: break-word;
        overflow-wrap: break-word;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: normal !important;
    }

    /* Tytuły sekcji */
    .elementor-heading-title {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Tytuły bannerów */
    .kitify-banner__title,
    .kitify-bannerlist__title {
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    ul.products .product .product-item .woocommerce-loop-product__title,
    ul.products .product .product-item .woocommerce-loop-product__title a {
        font-size: 12px !important;
    }
}

/****************************************************************/
/****************************************************************/

/* ── Sidebar bloga — styl kart (taka sama klasa jak sklep) ── */
.blog-sidebar-right .site-sidebar--blog .widget,
.blog-sidebar-left .site-sidebar--blog .widget,
#sidebar_primary .widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 18px 20px 20px;
    margin-bottom: 16px;
    box-shadow: none;
}
#sidebar_primary .widget .widget-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e1e1e;
    padding: 0 0 10px;
    margin: 0 0 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: default;
    letter-spacing: -.01em;
}
#sidebar_primary .widget .widget-title:after { display: none; }

/****************************************************************/

/* ── Shop grid: 4 kolumny, lepszy wygląd kart produktów ── */

/* Zmniejsz padding kart przy 4 kolumnach żeby się mieściły (tylko widok kafelków —
   :not(.product-list-display) bo inaczej psuje szerokość/odstępy widoku listy) */
ul.products.columns-4:not(.product-list-display) li.product {
    padding: 0 10px 24px !important;
}

/* Karty: zaokrąglone rogi, cień, border
   (overflow:hidden NIE jest tu, tylko na miniaturce — inaczej obcina panel
   "Dodaj do koszyka" wysuwany pod kartą po najechaniu, patrz niżej) */
ul.products li.product .product-item {
    border-radius: 8px;
    border: 1px solid #eee;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background: #fff;
}

ul.products li.product .product-item:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

/* Obraz: zaokrąglone górne rogi + przycięcie, zachowaj proporcje */
ul.products li.product .product-item__thumbnail {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
ul.products li.product .product-item__thumbnail img {
    object-fit: cover;
    aspect-ratio: 1 / 1;
    width: 100%;
}

/* Przycisk "Dodaj do koszyka": ukryty domyślnie, pojawia się po najechaniu
   na kartę (tak jak w sekcjach na stronie głównej) — sam panel i animacja
   są już w theme (app.css), tu tylko dopinamy płynne pojawianie się. */
ul.products li.product .product-item__actions {
    transition: opacity .2s ease, visibility .2s ease;
}

/* Opis: padding */
ul.products li.product .product-item__description {
    padding: 12px 14px 8px;
}

/* Tytuł produktu: max 2 linie */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title a {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal !important;
    color: #1e1e1e;
}

/* Cena */
ul.products li.product .product-item__description--price .price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2563eb;
}

/* Przycisk "Dodaj do koszyka" */
ul.products li.product .product-item__actions {
    padding: 0 14px 14px;
}

ul.products li.product .product-item__actions .button {
    border-radius: 6px !important;
    font-size: 13px !important;
    padding: 10px 0 !important;
    width: 100%;
    text-align: center;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

/* Szerokość kolumny przy sidebarze — zapobiegaj overflow (tylko kafelki;
   bez :not() ta reguła ma wyższą specyficzność niż theme'owe "width:100%"
   widoku listy i wymusza wąskie 25%-owe rzędy też w widoku listy) */
.shop-has-sidebar ul.products.columns-4:not(.product-list-display) li.product {
    width: 25%;
}

/* Mobile: 2 kolumny (tylko kafelki) */
@media (max-width: 767px) {
    ul.products.columns-4:not(.product-list-display) li.product {
        width: 50% !important;
        padding: 0 6px 16px !important;
    }
}

/* Widok listy: miniaturka po lewej — zaokrąglone rogi z lewej, nie z góry */
ul.products.product-list-display li.product .product-item__thumbnail {
    border-radius: 8px 0 0 8px;
}

/* Fix: invisible mega-menu (1100px wide, is-active) blocks clicks on toolbar + first product row.
   The parent .kitify-category-menu__content has pointer-events:none but CSS doesn't cascade
   pointer-events to children — children with visibility:visible still intercept clicks. */
.kitify-category-menu:not(.show) .kitify-category-menu__content .mega-menu,
.kitify-category-menu:not(.show) .kitify-category-menu__content .sub-menu {
    pointer-events: none !important;
    visibility: hidden !important;
}

/* ── Header top bar: override beige #F6E2C4 → brand blue ── */
.elementor-location-header .elementor-element-5c958eb8,
.elementor-location-header .elementor-element-5c958eb8:not(.elementor-motion-effects-element-type-background),
.elementor-location-header .njcod-info-carousel-ready {
    background-color: #2563eb !important;
}

/* ── Sidebar sklepu (Kategorie / Marka / Cena / Ocena): karty zamiast gołej listy ── */
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 18px 20px 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}

:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget .widget-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #0f172a;
    padding: 0 0 12px;
    margin: 0 0 12px;
    border-bottom: 1px solid #f1f5f9;
    cursor: default;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget .widget-title:after { display: none; }

:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget li { margin: 0 0 2px; }

/* Lista kategorii */
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_product_categories .product-categories li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.35;
    color: #334155;
    text-decoration: none;
    transition: background .15s, color .15s;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_product_categories .product-categories li a:hover {
    background: #eff6ff;
    color: #2563eb;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_product_categories .product-categories li.current-cat > a {
    background: #2563eb !important;
    color: #fff !important;
    padding: 7px 9px !important;
    margin-left: 0 !important;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_product_categories .product-categories li.current-cat > a:after { display: none; }
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_product_categories .product-categories li.current-cat > a .count {
    background: rgba(255, 255, 255, .25) !important;
    color: #fff !important;
}

/* Plakietka licznika (Kategorie + Marka) */
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_product_categories .count,
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_layered_nav .count {
    flex-shrink: 0;
    min-width: 26px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px 8px;
}

/* Marka (layered nav) */
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_layered_nav .woocommerce-widget-layered-nav-list .wc-layered-nav-term {
    padding: 5px 4px;
    border-radius: 8px;
    transition: background .15s;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_layered_nav .woocommerce-widget-layered-nav-list .wc-layered-nav-term:hover {
    background: #f8fafc;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_layered_nav .woocommerce-widget-layered-nav-list .wc-layered-nav-term a {
    font-size: 13.5px;
    color: #334155;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_layered_nav .woocommerce-widget-layered-nav-list .wc-layered-nav-term a:before {
    border-radius: 4px;
    border-color: #cbd5e1;
}

/* Cena: pasek zakresu + czytelny odczyt + jeden pełny, ładny przycisk pod suwakiem
   (domyślnie theme robi z przycisku mały podkreślony link float:right, który
   nakłada się na etykietę ceny — stąd "FILTRUJ" wyglądał jak naklejona plakietka) */
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_price_filter .price_slider_wrapper {
    padding: 2px 6px 0;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_price_filter .price_slider.ui-slider {
    height: 4px;
    margin: 16px 4px 26px;
    background: #e2e8f0;
    border-radius: 999px;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_price_filter .ui-slider .ui-slider-range {
    background: #2563eb !important;
    height: 4px;
    border-radius: 999px;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_price_filter .ui-slider .ui-slider-handle {
    width: 16px;
    height: 16px;
    top: -7px;
    margin-left: -8px;
    background: #fff !important;
    border: 3px solid #2563eb;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .3);
    transition: box-shadow .15s;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_price_filter .ui-slider .ui-slider-handle:hover,
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_price_filter .ui-slider .ui-slider-handle:focus {
    box-shadow: 0 0 0 6px rgba(37, 99, 235, .15);
}

:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_price_filter .price_slider_amount {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_price_filter .price_slider_amount .price_label {
    float: none !important;
    order: -1;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    padding: 0;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_price_filter .price_slider_amount .price_label .from,
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_price_filter .price_slider_amount .price_label .to {
    color: #0f172a;
    font-weight: 700;
}
/* Przycisk widgetu Cena jest zastąpiony jednym wspólnym przyciskiem "Filtruj"
   na dole sidebaru (njcod-filters-apply) — ukryty też w CSS jako fallback,
   gdyby JS się nie wykonał, layout pozostaje czysty (sam suwak + odczyt). */
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_price_filter .price_slider_amount .button {
    display: none !important;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_price_filter .price_slider_amount .clear {
    display: none;
}

/* Wspólny przycisk "Filtruj" dla całego panelu (Marka + Cena + Ocena) */
.njcod-filters-apply {
    position: sticky;
    bottom: 16px;
    margin-top: 4px;
}
.njcod-filters-apply__btn {
    display: block;
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
    transition: background .15s;
}
.njcod-filters-apply__btn:hover {
    background: #1d4ed8;
}

/* Ocena */
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_rating_filter ul li {
    padding: 5px 4px;
    border-radius: 8px;
    transition: background .15s;
}
:is(.site-sidebar--shop, .kitify-toggle-sidebar__inner) .widget_rating_filter ul li:hover {
    background: #f8fafc;
}

/****************************************************************/
