/**
 * Jod-Pol Custom Colors
 * Kolory przewodnie z logo:
 * - Ciemny granat/antracyt: #1a1a2e
 * - Oliwkowo-zielony: #8b9a5b
 * - Kremowy: #f0ede5
 */

:root {
    --jodpol-dark: #1a1a2e;
    --jodpol-dark-lighter: #252542;
    --jodpol-green: #8b9a5b;
    --jodpol-green-dark: #6d7a45;
    --jodpol-green-light: #a0ad6e;
    --jodpol-cream: #f0ede5;
    --jodpol-cream-dark: #e0ddd5;
}

/* Header top */
.header_top {
    background: var(--jodpol-dark);
    position: relative;
    z-index: 1003;
}

.header_top .follow_us label,
.header_top .top_right ul li a {
    color: var(--jodpol-cream);
}

.header_top .follow_link li a {
    color: rgba(240, 237, 229, 0.7);
}

.header_top .follow_link li a:hover,
.header_top .top_right ul li a:hover {
    color: var(--jodpol-green-light);
}

/* Dropdown usera w header top */
.header_top .dropdown_links {
    background: #fff;
}

.header_top .dropdown_links li a {
    color: #333 !important;
}

.header_top .dropdown_links li a:hover {
    color: var(--jodpol-green) !important;
}

/* Header middle */
.header_middle {
    background: #fff;
    position: relative;
    z-index: 1002; /* Wyższy niż header_bottom (1001) aby wyniki wyszukiwania były widoczne */
}

/* Koszyk i inne elementy w header middle */
.header_middle .middel_right_info .mini_cart_wrapper a,
.header_middle .middel_right_info .header_wishlist a {
    color: var(--jodpol-green-light);
}

.header_middle .middel_right_info .mini_cart_wrapper a:hover,
.header_middle .middel_right_info .header_wishlist a:hover {
    color: var(--jodpol-green);
}

.header_middle .middel_right_info .cart_quantity,
.header_middle .middel_right_info .wishlist_quantity {
    background: var(--jodpol-green);
    color: #fff;
}

/* Logo column with dark background */
.header_middle .logo_column {
    position: static;
}

.header_middle .container {
    position: relative;
}

.header_middle .container::before {
    content: '';
    position: absolute;
    top: -50px;
    bottom: -25px;
    right: 75%;
    width: 200vw;
    left: -100vw;
    background: var(--jodpol-dark);
    z-index: 0;
}

.header_middle .row {
    position: relative;
    z-index: 1;
}

.header_middle .logo {
    position: relative;
    z-index: 1;
    padding: 15px 0;
    text-align: center;
}

.header_middle .logo a {
    display: inline-block;
}

.header_middle .logo img {
    max-height: 70px;
    width: auto;
    border-radius: 4px;
}

.header_middle .logo .logo_text {
    font-size: 28px;
    font-weight: bold;
    color: var(--jodpol-green-light);
}

.header_middle .middel_right {
    position: relative;
    z-index: 1;
}

/* Mobile search icon - ukryj na desktop */
.mobile_search_icon {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    /* Mniejszy ciemny pasek za logo */
    .header_middle .container::before {
        bottom: -25px;
    }

    /* Ukryj toolbar na mobile */
    .shop_toolbar_wrapper {
        display: none !important;
    }

    /* Mniejszy header_top na mobile */
    .header_top {
        padding: 5px 0 !important;
    }

    .header_top .follow_us,
    .header_top .top_right {
        font-size: 12px;
    }

    .header_top .follow_us label {
        display: none;
    }

    .header_top .contact_phone {
        font-size: 12px;
    }

    .header_middle .logo_column::before {
        display: none;
    }

    .header_middle .logo {
        background: var(--jodpol-dark);
        padding: 0 10px;
        border-radius: 8px;
        display: inline-block;
        margin: 0;
    }

    .header_middle .logo img {
        max-height: 50px;
    }

    /* Mobile: logo i ikony w jednej linii */
    .header_middle .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .header_middle .logo_column {
        flex: 0 0 auto;
        width: auto;
    }

    .header_middle .col-lg-9 {
        flex: 0 0 auto;
        width: auto;
        padding-right: 50px; /* Przesunięcie od prawej */
    }

    /* Ukryj wyszukiwarkę na mobile w header */
    .header_middle .search-container {
        display: none;
    }

    /* Ikony szukajki i koszyka na mobile */
    .header_middle .middel_right {
        display: flex;
        align-items: center;
    }

    .header_middle .middel_right_info {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-left: 0;
        margin-right: 50px;
    }

    /* Pokaż ikonę szukajki na mobile */
    .mobile_search_icon {
        display: block;
    }

    .mobile_search_icon a {
        font-size: 24px;
        color: var(--jodpol-green);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Koszyk na mobile */
    .header_middle .mini_cart_wrapper {
        position: relative;
    }

    .header_middle .mini_cart_wrapper a {
        font-size: 0; /* Ukryj tekst "Koszyk" */
        display: flex;
        align-items: center;
        color: var(--jodpol-green);
    }

    .header_middle .mini_cart_wrapper a .lnr-cart,
    .header_middle .mini_cart_wrapper a span.lnr {
        font-size: 24px;
    }

    .header_middle .cart_quantity {
        position: absolute;
        top: -8px;
        right: -8px;
        font-size: 11px !important;
        min-width: 18px;
        height: 18px;
        line-height: 18px;
    }
}

/* Jeszcze mniejszy header na bardzo małych ekranach */
@media (max-width: 575px) {
    .header_top {
        padding: 3px 0 !important;
    }

    .header_top .follow_link li a {
        font-size: 14px;
        padding: 0 5px;
    }

    .header_top .contact_phone {
        font-size: 11px;
    }

    .header_middle .col-lg-9 {
        padding-right: 15px;
    }

    .header_middle .middel_right_info {
        gap: 15px;
    }

    .mobile_search_icon a,
    .header_middle .mini_cart_wrapper a .lnr-cart,
    .header_middle .mini_cart_wrapper a span.lnr {
        font-size: 22px;
    }
}

/* Footer logo background */
.footer_logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer_logo img {
    max-height: 60px;
    width: auto;
    border-radius: 5px;
}

.search_box button {
    background: var(--jodpol-green);
    color: #fff;
}

.search_box button:hover {
    background: var(--jodpol-green-dark);
}

.search_box input:focus {
    border-color: var(--jodpol-green);
}

/* Header bottom / Navigation */
.header_bottom,
.header_bottom.sticky-header.sticky {
    background: var(--jodpol-green);
    margin-bottom: 0;
}

/* Sticky navigation using CSS position: sticky */
.header_bottom.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1001;
    transition: box-shadow 0.3s ease;
    background: var(--jodpol-green);
}

/* When scrolled - add shadow via JS class */
.header_bottom.sticky-header.is-stuck {
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

/* Fallback for browsers/situations where sticky doesn't work - JS adds .sticky class */
.header_bottom.sticky-header.sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1001 !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.12) !important;
    background: var(--jodpol-green) !important;
    animation: slideDown 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Force sticky on all screen sizes */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .header_bottom.sticky-header {
        position: sticky;
        top: 0;
    }
    .header_bottom.sticky-header.sticky {
        position: fixed !important;
    }
}

@media only screen and (max-width: 767px) {
    .header_bottom.sticky-header {
        position: sticky;
        top: 0;
    }
    .header_bottom.sticky-header.sticky {
        position: fixed !important;
    }
}

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

/* Placeholder to prevent content jump when using position: fixed */
.sticky-placeholder {
    display: none;
}

.main_menu nav ul li a {
    color: #fff;
}

.main_menu nav ul li:hover > a,
.main_menu nav ul li.active > a {
    color: var(--jodpol-cream);
}

.main_menu nav ul li ul.sub_menu {
    background: #fff;
    border-top: 3px solid var(--jodpol-green);
}

.main_menu nav ul li ul.sub_menu li a {
    color: #333;
}

.main_menu nav ul li ul.sub_menu li a:hover {
    color: var(--jodpol-green);
}

.main_menu nav ul li .mega_menu {
    border-top: 3px solid var(--jodpol-green);
}

/* Mega menu - dropdown pod Produkty */
.main_menu nav ul li .mega_menu a {
    color: var(--jodpol-green) !important;
}

.main_menu nav ul li .mega_menu a:hover {
    color: var(--jodpol-green-dark) !important;
}

.main_menu nav ul li .mega_menu .mega_menu_inner > li > a {
    font-weight: 600;
    color: var(--jodpol-dark) !important;
}

.main_menu nav ul li .mega_menu .mega_menu_inner > li > a:hover {
    color: var(--jodpol-green) !important;
}

/* Categories menu */
.categories_title {
    background: var(--jodpol-dark);
}

.categories_title h2 {
    color: var(--jodpol-cream);
}

.categories_menu_toggle ul li a:hover {
    color: var(--jodpol-green);
}

/* Remove gap between header and main */
main {
    margin-top: 0;
    padding-top: 0;
}

.header_area {
    margin-bottom: 0;
    overflow-x: clip;
}

/* Hero Slider - Custom */
.slider_section {
    margin-top: 0;
    margin-bottom: 30px;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

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

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(26, 26, 46, 0.9) 0%, rgba(26, 26, 46, 0.4) 50%, transparent 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 20px 0;
}

.hero-slide-content h2 {
    color: var(--jodpol-green-light);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-slide-content h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-slide-content .button {
    padding: 15px 40px !important;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hero Slider Navigation */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.hero-slider-nav button {
    pointer-events: auto;
    background: rgba(255,255,255,0.2) !important;
    border: none !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff !important;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-nav button:hover {
    background: var(--jodpol-green) !important;
}

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

.hero-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dots .dot.active {
    background: var(--jodpol-green);
}

@media (max-width: 991px) {
    .hero-slider {
        height: 400px;
    }
    .hero-slide-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        height: 350px;
    }
    .hero-slide-content h1 {
        font-size: 28px;
    }
    .hero-slide-overlay {
        background: rgba(26, 26, 46, 0.7);
    }
    .hero-slide-content {
        text-align: center;
        padding: 20px 15px;
    }
    .hero-slider-nav {
        display: none;
    }
}

.slider_content .button,
.button {
    background: var(--jodpol-green) !important;
    color: #fff !important;
    border: 2px solid var(--jodpol-green) !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.slider_content .button:hover,
.button:hover {
    background: var(--jodpol-green-dark) !important;
    border-color: var(--jodpol-green-dark) !important;
    color: #fff !important;
}

/* All buttons styling */
button,
input[type="submit"],
input[type="button"],
.btn,
.cart_button a,
.checkout_btn,
.add_to_cart_btn,
.submit_btn {
    background: var(--jodpol-green) !important;
    border-color: var(--jodpol-green) !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover,
.cart_button a:hover,
.checkout_btn:hover,
.add_to_cart_btn:hover,
.submit_btn:hover {
    background: var(--jodpol-green-dark) !important;
    border-color: var(--jodpol-green-dark) !important;
    color: #fff !important;
}

/* Secondary/outline buttons */
.btn-outline,
.button_default {
    background: transparent !important;
    border: 2px solid var(--jodpol-green) !important;
    color: var(--jodpol-green) !important;
}

.btn-outline:hover,
.button_default:hover {
    background: var(--jodpol-green) !important;
    color: #fff !important;
}

/* Custom Product Tabs */
.products-tab-content {
    position: relative;
}

.products-tab-pane {
    display: none;
}

.products-tab-pane.active {
    display: block;
}

.product_tab_button li a {
    cursor: pointer;
    transition: color 0.3s ease;
}

.product_tab_button li a:hover {
    color: var(--jodpol-green);
}

.product_tab_button li a.active {
    color: var(--jodpol-green);
}

.product_tab_button li a.active::before {
    background: var(--jodpol-green);
}

/* Product Grid - Equal Heights */
.product-grid {
    display: flex;
    flex-wrap: wrap;
}

.product-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

/* Simple Product Card */
.product-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.product-card-link:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
    border-color: var(--jodpol-green);
    text-decoration: none;
    color: inherit;
}

.product-card-link .product_thumb {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

.product-card-link .product_thumb img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s ease;
}

.product-card-link:hover .product_thumb img {
    transform: scale(1.05);
}

.product-card-link .label_product {
    position: absolute;
    top: 10px;
    left: 10px;
}

.product-card-link .label_sale {
    background: var(--jodpol-green);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
}

.product-card-link .product_content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.product-card-link .product_name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
    flex-grow: 1;
}

.product-card-link:hover .product_name {
    color: var(--jodpol-green);
}

.product-card-link .product_category {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.product-card-link .price_box {
    margin-top: auto;
}

.product-card-link .current_price {
    font-size: 18px;
    font-weight: 700;
    color: var(--jodpol-green);
}

.product-card-link .old_price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

/* Section titles */
.section_title h2 span strong {
    color: var(--jodpol-green);
}

.section_title h2::before {
    background: var(--jodpol-green);
}

.product_tab_button li a.active,
.product_tab_button li a:hover {
    color: var(--jodpol-green);
}

.product_tab_button li a.active::before {
    background: var(--jodpol-green);
}

/* Product cards */
.single_product .product_name h3 a:hover {
    color: var(--jodpol-green);
}

.single_product .manufacture_product a {
    color: #666;
}

.single_product .manufacture_product a:hover {
    color: var(--jodpol-green);
}

.product_thumb .label_sale {
    background: var(--jodpol-green);
}

.action_links ul li a:hover {
    background: var(--jodpol-green);
    border-color: var(--jodpol-green);
}

.price_box .current_price,
.product_price .current_price {
    color: var(--jodpol-green);
}

/* Shipping area */
.shipping_inner {
    border-color: var(--jodpol-green);
}

.single_shipping .shipping_icone img {
    filter: hue-rotate(45deg);
}

/* Banners */
.banner_content a {
    color: var(--jodpol-green-light);
}

.banner_content a:hover {
    color: var(--jodpol-cream);
}

/* Fullwidth banner */
.fullwidth_banner_wrapper::before {
    background: rgba(26, 26, 46, 0.85);
}

.fullwidth_banner_content .button {
    background: var(--jodpol-green);
}

.fullwidth_banner_content .button:hover {
    background: var(--jodpol-green-dark);
}

/* Column titles */
.column_title h3 {
    border-bottom-color: var(--jodpol-green);
}

.column_product_info h4 a:hover {
    color: var(--jodpol-green);
}

/* Footer */
.footer_widgets {
    background: var(--jodpol-dark);
}

.footer_top {
    background: var(--jodpol-dark);
}

.footer_bottom {
    background: var(--jodpol-dark-lighter);
    border-top: 1px solid rgba(240, 237, 229, 0.1);
}

.widgets_container h3 {
    color: var(--jodpol-cream);
}

.widgets_container p,
.footer_menu ul li a,
.footer_contact p,
.footer_contact p a {
    color: rgba(240, 237, 229, 0.7);
}

.footer_menu ul li a:hover,
.footer_contact p a:hover {
    color: var(--jodpol-green-light);
}

.subscribe_form button {
    background: var(--jodpol-green);
}

.subscribe_form button:hover {
    background: var(--jodpol-green-dark);
}

.subscribe_form input:focus {
    border-color: var(--jodpol-green);
}

.footer_social ul li a {
    background: rgba(240, 237, 229, 0.1);
    color: var(--jodpol-cream);
}

.footer_social ul li a:hover {
    background: var(--jodpol-green);
    color: #fff;
}

.copyright_area p {
    color: rgba(240, 237, 229, 0.7);
}

.author_credit {
    color: rgba(240, 237, 229, 0.5);
    font-size: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(240, 237, 229, 0.1);
}

.author_credit a {
    color: var(--jodpol-green-light);
    text-decoration: none;
}

.author_credit a:hover {
    color: var(--jodpol-cream);
    text-decoration: underline;
}

/* Footer links */
.footer_links {
    color: rgba(240, 237, 229, 0.7);
    font-size: 14px;
}

.footer_links a {
    color: rgba(240, 237, 229, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer_links a:hover {
    color: var(--jodpol-green-light);
}

.footer_links .separator {
    margin: 0 10px;
    color: rgba(240, 237, 229, 0.3);
}

/* Offcanvas menu */
.Offcanvas_menu_wrapper {
    background: var(--jodpol-dark);
}

.offcanvas_main_menu li a {
    color: var(--jodpol-cream);
}

.offcanvas_main_menu li a:hover {
    color: var(--jodpol-green-light);
}

.canvas_close a {
    color: var(--jodpol-cream);
}

.canvas_open {
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--jodpol-green) !important;
    text-align: center;
    padding: 10px 15px;
    display: block !important;
    justify-content: initial !important;
}

.canvas_open a {
    color: var(--jodpol-green);
    display: block;
    font-size: 22px;
    line-height: 1;
}

.canvas_open span {
    color: var(--jodpol-green);
    font-weight: 600;
    font-size: 13px;
    display: block;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 5px;
}

/* Mobile Menu Buttons Container */
.mobile_menu_buttons {
    display: flex;
    gap: 10px;
}

.mobile_menu_buttons .canvas_open,
.mobile_menu_buttons .categories_open {
    flex: 1;
}

.categories_open {
    cursor: pointer;
    background: var(--jodpol-green);
    text-align: center;
    padding: 10px 15px;
    border: 1px solid var(--jodpol-green);
}

.categories_open span {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    display: block;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 5px;
}

.categories_open a {
    color: #fff;
    font-size: 22px;
    display: block;
    line-height: 1;
}

/* Mobile Categories Overlay */
.mobile_categories_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile_categories_overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Categories Wrapper */
.Mobile_categories_wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100%;
    background: #fff;
    z-index: 999999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}

.Mobile_categories_wrapper.active {
    right: 0;
}

.mobile_categories_close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.mobile_categories_close a {
    font-size: 28px;
    color: #333;
}

.mobile_categories_close a:hover {
    color: var(--jodpol-green);
}

.mobile_categories_header {
    padding: 20px 20px 15px;
    background: linear-gradient(135deg, var(--jodpol-green) 0%, var(--jodpol-green-dark) 100%);
    flex-shrink: 0;
}

.mobile_categories_header h3 {
    color: #fff;
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.mobile_categories_header h3 i {
    margin-right: 10px;
}

.mobile_categories_content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile Category Tree */
.mobile_category_tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile_category_tree > li {
    border-bottom: 1px solid #eee;
}

.mobile-category-all {
    background: #f8f9fa;
}

.mobile-category-all a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.mobile-category-all a i {
    margin-right: 10px;
    color: var(--jodpol-green);
}

.mobile-category-all a:hover {
    background: #e9ecef;
}

.mobile-category-item {
    display: flex;
    align-items: center;
}

.mobile-category-item > a {
    flex: 1;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

.mobile-category-item > a:hover {
    color: var(--jodpol-green);
}

.mobile-category-toggle {
    background: none;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.mobile-category-toggle:hover {
    color: var(--jodpol-green);
}

.mobile-category-parent.open > .mobile-category-item .mobile-category-toggle,
.mobile-category-child.open > .mobile-category-item .mobile-category-toggle {
    transform: rotate(180deg);
}

.mobile-category-children,
.mobile-category-grandchildren {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: #f5f5f5;
}

.mobile-category-parent.open > .mobile-category-children,
.mobile-category-child.open > .mobile-category-grandchildren {
    display: block;
}

.mobile-category-children > li {
    border-top: 1px solid #eee;
}

.mobile-category-children .mobile-category-item > a {
    padding-left: 35px;
    font-size: 14px;
}

.mobile-category-grandchildren > li > a {
    display: block;
    padding: 12px 20px 12px 50px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    border-top: 1px solid #e5e5e5;
}

.mobile-category-grandchildren > li > a:hover {
    color: var(--jodpol-green);
    background: #eee;
}

.mobile-category-count {
    color: #999;
    font-size: 12px;
    font-weight: normal;
    margin-left: 5px;
}

/* Desktop: hide categories button */
@media (min-width: 992px) {
    .categories_open {
        display: none;
    }
    .mobile_menu_buttons {
        display: block;
    }
}

/* Mobile menu z-index fix */
.Offcanvas_menu_wrapper {
    z-index: 999999 !important;
}

.off_canvars_overlay {
    z-index: 999998 !important;
}

.off_canvars_overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu custom styles */
.Offcanvas_menu_wrapper {
    background: #fff;
}

.offcanvas_main_menu li {
    position: relative;
}

.offcanvas_main_menu li a {
    color: #333;
    border-bottom-color: #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas_main_menu li a i.fa-angle-down {
    color: var(--jodpol-green);
    font-size: 14px;
    transition: transform 0.3s;
}

.offcanvas_main_menu li.menu-open > a i.fa-angle-down {
    transform: rotate(180deg);
}

.offcanvas_main_menu li a:hover {
    color: var(--jodpol-green) !important;
}

.offcanvas_main_menu li span.menu-expand {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--jodpol-green);
    z-index: 2;
}

.offcanvas_main_menu li ul.sub-menu {
    padding-left: 15px;
    background: #f9f9f9;
    margin-left: -20px;
    margin-right: -20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 5px;
}

.offcanvas_main_menu li ul.sub-menu li a {
    font-size: 13px;
    padding: 8px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.offcanvas_main_menu li ul.sub-menu li:last-child a {
    border-bottom: none;
}

.offcanvas_main_menu li ul.sub-menu li ul.sub-menu {
    background: #f0f0f0;
    margin-left: -15px;
    padding-left: 25px;
}

.canvas_close a {
    color: #333;
}

.canvas_close a:hover {
    color: var(--jodpol-green);
}

.Offcanvas_follow label {
    color: #666;
}

.Offcanvas_follow ul li a {
    color: var(--jodpol-green);
}

.Offcanvas_follow ul li a:hover {
    color: var(--jodpol-green-dark);
}

/* Mini cart */
.mini_cart {
    background: var(--jodpol-dark);
}

.mini_cart .cart_text h3 {
    color: var(--jodpol-cream);
}

.mini_cart .cart_button a,
.mini_cart_footer .cart_button a {
    background: var(--jodpol-green) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 25px;
    display: block;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mini_cart .cart_button a:hover,
.mini_cart_footer .cart_button a:hover,
.mini_cart .cart_button a.active,
.mini_cart_footer .cart_button a.active {
    background: var(--jodpol-green-dark) !important;
    color: #fff !important;
}

/* Cart quantity badge */
.cart_quantity,
.wishlist_quantity {
    background: var(--jodpol-green);
}

/* Links */
a:hover {
    color: var(--jodpol-green);
}

/* Buttons - comprehensive styling */
.btn-primary,
.add_to_cart a,
.add_to_cart button,
.product_action a,
.product_action button,
.cart_submit button,
.coupon_code button,
.proceed_to_checkout a,
.return_to_shop a,
.woocommerce-button,
.single_add_to_cart_button,
.checkout-button,
.place-order button,
.login_form button,
.register_form button,
.contact_form button,
.newsletter_form button,
.comment_form button {
    background: var(--jodpol-green) !important;
    border: 2px solid var(--jodpol-green) !important;
    color: #fff !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-primary:hover,
.add_to_cart a:hover,
.add_to_cart button:hover,
.product_action a:hover,
.product_action button:hover,
.cart_submit button:hover,
.coupon_code button:hover,
.proceed_to_checkout a:hover,
.return_to_shop a:hover,
.woocommerce-button:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
.place-order button:hover,
.login_form button:hover,
.register_form button:hover,
.contact_form button:hover,
.newsletter_form button:hover,
.comment_form button:hover {
    background: var(--jodpol-green-dark) !important;
    border-color: var(--jodpol-green-dark) !important;
    color: #fff !important;
}

/* Action links in products */
.action_links ul li a {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.action_links ul li a:hover {
    background: var(--jodpol-green) !important;
    border-color: var(--jodpol-green) !important;
    color: #fff !important;
}

/* Product stock */
.product_stock .in_stock {
    color: var(--jodpol-green);
}

/* Breadcrumb */
.breadcrumb_content ul li a:hover {
    color: var(--jodpol-green);
}

/* Pagination */
.pagination li a:hover,
.pagination li a.active {
    background: var(--jodpol-green);
    border-color: var(--jodpol-green);
}

/* Forms */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--jodpol-green);
    outline: none;
}

/* Scrollbar */
::-webkit-scrollbar-thumb {
    background: var(--jodpol-green);
}

/* Selection */
::selection {
    background: var(--jodpol-green);
    color: #fff;
}

::-moz-selection {
    background: var(--jodpol-green);
    color: #fff;
}

/* ==========================================
   BUTTONS - COMPREHENSIVE OVERRIDE
   ========================================== */

/* Default Autima button class */
a.button,
button.button,
input.button,
.btn_default,
.default_btn,
.shop_btn,
.view_btn,
.quick_button,
.compare_btn,
.wishlist_btn {
    background: var(--jodpol-green) !important;
    border: 2px solid var(--jodpol-green) !important;
    color: #fff !important;
    padding: 10px 25px !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

a.button:hover,
button.button:hover,
input.button:hover,
.btn_default:hover,
.default_btn:hover,
.shop_btn:hover,
.view_btn:hover,
.quick_button:hover,
.compare_btn:hover,
.wishlist_btn:hover {
    background: var(--jodpol-green-dark) !important;
    border-color: var(--jodpol-green-dark) !important;
    color: #fff !important;
}

/* Shopping cart buttons */
.buttons_cart_inner a,
.cart_totals .proceed_to_checkout a,
.wc-proceed-to-checkout a,
.update_cart button,
.coupon button {
    background: var(--jodpol-green) !important;
    border: 2px solid var(--jodpol-green) !important;
    color: #fff !important;
}

.buttons_cart_inner a:hover,
.cart_totals .proceed_to_checkout a:hover,
.wc-proceed-to-checkout a:hover,
.update_cart button:hover,
.coupon button:hover {
    background: var(--jodpol-green-dark) !important;
    border-color: var(--jodpol-green-dark) !important;
}

/* Checkout buttons */
.woocommerce-checkout .button,
#place_order,
.order_button,
.payment_method button {
    background: var(--jodpol-green) !important;
    border: 2px solid var(--jodpol-green) !important;
    color: #fff !important;
}

.woocommerce-checkout .button:hover,
#place_order:hover,
.order_button:hover,
.payment_method button:hover {
    background: var(--jodpol-green-dark) !important;
    border-color: var(--jodpol-green-dark) !important;
}

/* Product detail buttons */
.product_details .button,
.product_d_action a,
.single_product_action a,
.product_variant .button,
.quantity_button button {
    background: var(--jodpol-green) !important;
    border: 2px solid var(--jodpol-green) !important;
    color: #fff !important;
}

.product_details .button:hover,
.product_d_action a:hover,
.single_product_action a:hover,
.product_variant .button:hover,
.quantity_button button:hover {
    background: var(--jodpol-green-dark) !important;
    border-color: var(--jodpol-green-dark) !important;
}

/* Newsletter subscribe button */
.subscribe_form button,
.newsletter_form button,
.mc4wp-form button,
.newsletter_submit {
    background: var(--jodpol-green) !important;
    border: none !important;
    color: #fff !important;
}

.subscribe_form button:hover,
.newsletter_form button:hover,
.mc4wp-form button:hover,
.newsletter_submit:hover {
    background: var(--jodpol-green-dark) !important;
}

/* Login/Register buttons */
.login_btn,
.register_btn,
.login_form_container button,
.register_form_container button,
.lost_password button {
    background: var(--jodpol-green) !important;
    border: 2px solid var(--jodpol-green) !important;
    color: #fff !important;
    width: 100%;
    padding: 12px 20px !important;
}

.login_btn:hover,
.register_btn:hover,
.login_form_container button:hover,
.register_form_container button:hover,
.lost_password button:hover {
    background: var(--jodpol-green-dark) !important;
    border-color: var(--jodpol-green-dark) !important;
}

/* Contact form button */
.contact_form button,
.comment-form button,
#submit_contact,
.contact_btn {
    background: var(--jodpol-green) !important;
    border: 2px solid var(--jodpol-green) !important;
    color: #fff !important;
    padding: 12px 30px !important;
}

.contact_form button:hover,
.comment-form button:hover,
#submit_contact:hover,
.contact_btn:hover {
    background: var(--jodpol-green-dark) !important;
    border-color: var(--jodpol-green-dark) !important;
}

/* Focus states */
button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
a.button:focus {
    outline: 2px solid var(--jodpol-green-light);
    outline-offset: 2px;
}

/* Disabled state */
button:disabled,
button[disabled],
input[type="submit"]:disabled,
.button:disabled {
    background: #ccc !important;
    border-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
}

/* ==========================================
   BANNER SECTION - Full Width Images
   ========================================== */
.banner_section .single_banner {
    width: 100%;
    overflow: hidden;
}

.banner_section .banner_thumb {
    position: relative;
    width: 100%;
}

.banner_section .banner_thumb > a {
    display: block;
    width: 100%;
}

.banner_section .banner_thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.banner_section .banner_content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 25px;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.9), transparent);
}

.banner_section .banner_content h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner_section .banner_content p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
}

.banner_section .banner_content > a {
    color: var(--jodpol-green-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

.banner_section .banner_content > a:hover {
    color: #fff;
}

/* Section titles - no wrapping */
.section_title h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section_title h2 span {
    display: inline;
}

/* Product tab buttons - horizontal scrolling on mobile */
.product_tab_button {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product_tab_button::-webkit-scrollbar {
    display: none;
}

.product_tab_button li {
    flex-shrink: 0;
}

.product_tab_button li a {
    white-space: nowrap;
}

/* Three columns product area */
.product_column_area .product_column {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
}

.product_column_area .column_title h3 {
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--jodpol-green);
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product_column_area .column_product_item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.product_column_area .column_product_item:last-child {
    border-bottom: none;
}

.product_column_area .column_product_thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    margin-right: 12px;
    background: #f8f8f8;
    border-radius: 4px;
    overflow: hidden;
}

.product_column_area .column_product_thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product_column_area .column_product_info {
    flex: 1;
    min-width: 0;
}

.product_column_area .column_product_info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.3;
}

.product_column_area .column_product_info h4 a {
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product_column_area .column_product_info h4 a:hover {
    color: var(--jodpol-green);
}

.product_column_area .product_price .current_price {
    font-size: 15px;
    font-weight: 700;
    color: var(--jodpol-green);
}

.product_column_area .product_price .old_price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

@media (max-width: 991px) {
    .product_column_area .col-lg-4 {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .section_title h2 {
        font-size: 20px;
    }

    .banner_section .banner_content h2 {
        font-size: 18px;
    }
}

/* ==========================================
   SEARCH SUGGESTIONS DROPDOWN
   ========================================== */
.search-container {
    position: relative;
}

.search-suggestions {
    display: none;
    position: fixed;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 2147483647 !important; /* max z-index */
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions-loading {
    display: none;
    padding: 15px;
    text-align: center;
    color: #666;
}

.search-suggestions-results {
    display: none;
}

/* Single search result item - full width, jedna linia */
.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    width: 100%;
    border-bottom: 1px solid #eee;
    text-decoration: none !important;
    color: #222;
    transition: background 0.15s;
    box-sizing: border-box;
}

.search-suggestion-item:hover,
.search-suggestion-item.focused {
    background: #f5f5f5;
    text-decoration: none !important;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

/* Product image - max 30px */
.search-suggestion-item img.search-suggestion-image,
.search-suggestion-image {
    max-width: 30px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    object-fit: contain !important;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

/* Product info - w jednej linii */
.search-suggestion-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Product name */
.search-suggestion-name {
    font-weight: 600;
    font-size: 13px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.search-suggestion-item:hover .search-suggestion-name {
    color: var(--jodpol-green);
}

.search-suggestion-name mark {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 700;
    color: #222;
}

/* Product SKU */
.search-suggestion-sku {
    font-size: 11px;
    color: #555;
    font-family: monospace;
    white-space: nowrap;
}

/* Product price - right side */
.search-suggestion-price {
    font-weight: 700;
    color: #2a7d2e;
    font-size: 13px;
    white-space: nowrap;
    margin-left: auto;
    padding-left: 10px;
}

/* Footer with "see all results" */
.search-suggestions-footer {
    background: #f8f9fa;
    padding: 10px 12px;
    text-align: center;
    border-top: 1px solid #eee;
}

.search-suggestions-footer a {
    color: var(--jodpol-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}

.search-suggestions-footer a:hover {
    color: var(--jodpol-green-dark);
    text-decoration: underline;
}

/* No results message */
.search-no-results {
    padding: 20px 15px;
    text-align: center;
    color: #666;
}

.search-no-results i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    color: #ccc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-suggestion-info {
        flex-wrap: wrap;
    }
    .search-suggestion-name {
        max-width: 100%;
        flex-basis: 100%;
    }
    .search-suggestion-sku {
        font-size: 10px;
    }
}

/* ==========================================
   MEGA MENU SIMPLE - Dropdown z bazy danych
   ========================================== */
.mega_menu.mega_menu_simple {
    min-width: 200px;
    width: auto;
    padding: 0;
}

.mega_menu.mega_menu_simple .mega_menu_inner {
    display: block;
    padding: 0;
}

.mega_menu.mega_menu_simple .mega_menu_inner > li {
    width: 100%;
    padding: 0;
}

.mega_menu.mega_menu_simple .mega_menu_inner > li > ul {
    display: block;
    padding: 10px 0;
}

.mega_menu.mega_menu_simple .mega_menu_inner > li > ul > li {
    display: block;
    padding: 0;
}

.mega_menu.mega_menu_simple .mega_menu_inner > li > ul > li > a {
    display: block;
    padding: 8px 20px;
    color: #333 !important;
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.mega_menu.mega_menu_simple .mega_menu_inner > li > ul > li > a:hover {
    background: #f5f5f5;
    color: var(--jodpol-green) !important;
    padding-left: 25px;
}


@media (max-width: 767px) {
    .breadcrumb_content h1,
    .page_title h1,
    .shop_title h1,
    .category_title h1 {
        background: #8b9a5b !important;
        color: #fff !important;
        padding: 16px 18px !important;
        font-size: 24px !important;
        font-weight: 700 !important;
        margin-bottom: 18px !important;
    }
}

@media (max-width: 767px) {
    .product-badge-24h {
        display: inline-block !important;
        background: #8b9a5b !important;
        color: #fff !important;
        padding: 5px 9px !important;
        border-radius: 6px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        margin: 8px 0 6px 8px !important;
    }
}
@media (max-width: 767px) {
    .Offcanvas_menu {
        background: #fff !important;
    }

    .Offcanvas_menu .container,
    .Offcanvas_menu .row,
    .Offcanvas_menu .col-12 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .mobile_menu_buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 8px 12px !important;
        margin: 0 !important;
        background: #fff !important;
        min-height: 58px !important;
    }

    .mobile_menu_buttons .canvas_open,
    .mobile_menu_buttons .categories_open {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        height: 42px !important;
        border-radius: 14px !important;
        border: 1px solid #dfe5cf !important;
        box-shadow: 0 6px 18px rgba(0,0,0,.08) !important;
        background: #fff !important;
        overflow: hidden !important;
    }

    .mobile_menu_buttons .categories_open {
        background: #8a9b55 !important;
        color: #fff !important;
        border-color: #8a9b55 !important;
    }

    .mobile_menu_buttons span {
        font-weight: 800 !important;
        font-size: 11px !important;
        letter-spacing: .4px !important;
    }

    .mobile_menu_buttons a {
        color: inherit !important;
        font-size: 18px !important;
        line-height: 1 !important;
    }

    .Offcanvas_menu,
    .Offcanvas_menu *,
    .mobile_menu_buttons,
    .mobile_menu_buttons * {
        transition: none !important;
        animation: none !important;
    }
}
