.sticky-menu:not(.active) .search-wrapper .block-search input[type="text"] {
    border: none !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    font-style: normal !important;
    text-transform: none !important;
}
a.action.towishlist {
    display: none;
}
a.action.add {
    display: none;
}
div.stock.available {
    display: none;
}

.sticky-menu:not(.active) .logo-left {
    margin-top: 0px !important;
}
.cdz-cat-search {
    display: inline-block;
    width: auto;
    height: 100%;
    margin-left: 0 !important;
    border: none !important;
    margin-top: 0;
}

.cdz-cat-search .inner {
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
}

.cdz-cat-search,
.cdz-cat-search:before,
.cdz-cat-search:after {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.block-wishlist {
    display: none !important;
}

.minicart-wrapper .showcart .text {
    display: inline-block;
}

.widget.block.block-static-block {
    margin-left: -10px !important;
    margin-right: -10px !important;
}

.item.level0.level-top.parent .menu-link {
    margin-left: 10px;
}

/* Header left: keep logo block vertically centered */
.header-wrapper-left .logo-left {
    display: flex;
    align-items: center;
}

.product-image-container-4602 {
    width: 240px;
    height: 240px;
    /* Ensure the container has a fixed square size for centering */
    aspect-ratio: 1 / 1;
    display: flex;
    /* Use Flexbox for centering */
    justify-content: center;
    /* Horizontally center the image */
    align-items: center;
    /* Vertically center the image */
    overflow: hidden;
    /* Hide any overflow outside the container */
}

.product-image-container-4602 span.product-image-wrapper {
    height: auto;
    /* Allow the image to scale while maintaining aspect ratio */
    width: 100%;
}

.categories-banner-grid .cat-item a .thumb img {
    border-radius: 0 !important;
}

.categories-banner-grid .cat-item a .thumb {
    border-radius: 0 !important;
}

.product-addto-links {
    margin-left: -8px !important;
}

.header.content {
    border-radius: 3px !important;
}

/* Align header columns (logo, search, right area) vertically */
.header.content > .row {
    display: flex;
    align-items: center;
}

.deal-items {
    border-radius: 3px !important;
    padding: 0px !important;
    color: #2b2b2b;
}

.deal-item .value {
    color: #2b2b2b !important;
}
.deal-item .label {
    color: #2b2b2b !important;
}

#dodatna-oprema .block-title.title {
    color: #fff !important;
    background-color: #333 !important;
    font-weight: 900;
    font-size: 18px;
    text-align: center;
    padding: 15px 10px;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

#cistilna-sredstva .block-title.title {
    color: #fff !important;
    background-color: #333 !important;
    font-weight: 900;
    font-size: 18px;
    text-align: center;
    padding: 15px 10px;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

a.action.towishlist {
    display: none !important;
}

.block-title.bg-block-title {
    border-radius: 3px !important;
}

.megamenu-item {
    aspect-ratio: 4 / 3 !important;
    /* Set specific aspect ratio */
    overflow: hidden !important;
    /* Ensures no content spills out */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    /* Align content to the top */
    align-items: center !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 10px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: border-color 0.3s ease !important;
    margin: 3px !important;
    height: 200px !important;
    margin-top: 15px !important;
}

.megamenu-item img {
    width: 100% !important;
    /* Full width of the container */
    height: auto !important;
    /* Maintain aspect ratio of the image */
    object-fit: cover !important;
    /* Ensures the image fills the container */
    margin-bottom: 10px !important;
}

.megamenu-item-title {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #333 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    line-height: 1.4 !important;
    /* Consistent line spacing */
    margin: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    /* Align text to the top */
    justify-content: center !important;
    /* Center text horizontally */
}

.header-panel-left .widget.block.block-static-block {
    display: flex !important;
    /* Enable flexbox for alignment */
    justify-content: flex-end !important;
    /* Align content to the right */
    margin-left: auto !important;
    /* Push content to the right */
    margin-right: 0 !important;
    /* Ensure no extra margin is added */
    text-align: right !important;
    /* Align text to the right */
}

.panel.wrapper
    .panel.header
    .header-panel-left
    .widget.block.block-static-block {
    display: flex !important;
    /* Enable flexbox for alignment */
    justify-content: flex-end !important;
    /* Align content to the right */
    margin-left: auto !important;
    /* Push content to the right */
    margin-right: 0 !important;
    /* Ensure no extra margin is added */
    text-align: right !important;
    /* Align text to the right */
}

.panel.wrapper .panel.header .row > .col-sm-10.col-md-8 {
    display: flex !important;
    /* Enable flexbox for alignment */
    justify-content: flex-end !important;

    float: right !important;
    /* Push content to the right */
}

.panel.wrapper
    .panel.header
    .row
    > .col-sm-10.col-md-8
    .header-panel-left
    .widget.block.block-static-block {
    margin-right: 0 !important;
    /* Ensure no extra margin is added */
    text-align: left !important;
    /* Align text inside the container to the right */
}

/* Container styling for the contact info */
.contact-info {
    display: inline-flex;
    /* Vertically center the content */
    gap: 15px;
    /* Space between phone and email */
    font-size: 13px;
    /* Slightly larger font size */
    color: #2b2b2b;

    height: fit-content;
    /* Default color consistent with Karcher theme */
}
.contact-info p {
    margin-top: 12px !important;
}
/* Styling for the links (both phone and email) */
.contact-info a {
    color: #2b2b2b;
    /* Default color */
    text-decoration: none;
    /* Remove underline */
    font-weight: bold;
    /* Bold text for emphasis */
    transition:
        color 0.3s ease,
        background-color 0.3s ease;
    /* Smooth transitions */
    padding: 5px 10px;
    /* Add padding for better hover interaction */
    border-radius: 4px;
    /* Rounded corners for hover effect */
}

/* Hover effect for the links */
.contact-info a:hover {
    color: white;
    /* Change text color to white on hover */
    background-color: #2b2b2b;
    /* Dark gray background on hover */
}

/* Icon styling */
.contact-info i {
    margin-right: 8px;
    /* Add space between the icon and the text */
    color: #ffffff !important;
    /* White icons to match header */
    font-size: 1em;
    /* Same size as text */
    vertical-align: middle;
    /* Align icons with text */
}

/* Icon hover effect */
.contact-info a:hover i {
    color: #ffffff !important;
    /* Keep icons white on hover */
}

/* Mobile: header contact text in white on blue background */
@media (max-width: 767px) {
    .contact-info,
    .contact-info p,
    .contact-info a {
        color: #ffffff !important;
    }
}

/* Mobile: move whole middle header (search bar) 10px lower */
@media (max-width: 767px) {
    .header-wrapper-middle {
        margin-top: 10px !important;
    }
}

.control #search {
    border-radius: 0 5px 5px 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    height: 36px !important;
    line-height: 36px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* Mobile: fix search input - remove extreme off-screen positioning */
@media (max-width: 767px) {
    .control #search {
        margin-top: 0 !important;
        left: auto !important;
        right: auto !important;
        position: relative !important;
    }
}

/* Mobile: samo višina gumba za iskanje naj se ujema z višino polja */
@media (max-width: 767px) {
    .page-header .mobile-search-wrapper .action.search {
        height: 36px !important;
        line-height: 36px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

.search-form-container .actions button {
    border-radius: 5px !important;
    border: none !important;
    height: 36px !important;
    line-height: 36px !important;
}

/* Celoten desktop iskalni bar – zaobljeni robovi kot pri košarici */
#search_mini_form.has-cat .field.search {
    /* unified pill-shaped search bar */
    display: block;
    border-radius: 5px !important;
    border: 1px solid #000000 !important;
    overflow: hidden;
    padding: 0 !important;
    height: 36px; /* fixed height for bar, matches search button */
}

#search_mini_form.has-cat .field.search .control {
    display: block;
    border-radius: 0 !important;
    border: none !important;
    height: 36px;
}

/* Label and actions – allow default layout again (no forced flex/height) */
#search_mini_form.has-cat .field.search > .label,
#search_mini_form.has-cat .field.search > .actions {
    display: block;
    height: auto;
    margin: 0 !important;
}

#search_mini_form.has-cat .field.search > .label span {
    line-height: normal;
}

/* Kategorije trigger & dropdown – blue background, white text, unified radius */
.cdz-cat-search .inner .current-cat {
    display: flex;
    align-items: center;
    height: 36px; /* match search bar & button height */
    background-color: #1357a3 !important;
    color: #ffffff !important;
    padding: 0 15px;
    border-radius: 5px 0 0 5px !important; /* match outer bar radius on left */
    margin-right: -1px; /* overlap with input to avoid visible gap */
    border: none !important; /* no inner border, only outer bar border */
    box-shadow: none !important;
}

.cdz-cat-search .inner .current-cat span {
    color: #ffffff !important;
    display: inline-block !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    text-indent: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
}

.cdz-cat-search .inner .current-cat:after {
    /* dropdown arrow, if present via pseudo-element */
    color: #ffffff !important;
}

/* Remove vertical separator/line after the dropdown arrow on category selector */
.cdz-cat-search .inner .current-cat,
.cdz-cat-search .inner .current-cat:before,
.cdz-cat-search .inner .current-cat:after {
    border-right: none !important;
    box-shadow: none !important;
}

/* Hard-disable base pseudo-element that draws white separator line */
.cdz-cat-search .current-cat:after {
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.cdz-cat-search .inner:before,
.cdz-cat-search .inner:after {
    background: transparent !important;
    border: none !important;
}

.cdz-cat-search .inner .current-cat:hover,
.cdz-cat-search .inner .current-cat:focus,
.cdz-cat-search .inner .current-cat:active {
    background-color: #1357a3 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Keep Kategorije text white and remove black hover background on all devices */
.search-form-container .cdz-cat-search .current-cat span,
.search-form-container .cdz-cat-search .current-cat span:hover,
.search-form-container .cdz-cat-search .current-cat span:active {
    color: #ffffff !important;
    background-color: transparent !important;
}

/* Odstrani dodatne robove/obrobe iz iskalnega wrapperja – naj bo le en črn rob */
.search-wrapper,
.search-content.block-search,
.search-form-container {
    border: none !important;
    box-shadow: none !important;
}

/* Mobile: category dropdown visible, opens on click */
@media (max-width: 767px) {
    .search-wrapper,
    .search-content.block-search,
    .search-form-container {
        overflow: visible !important;
    }

    .search-form-container {
        position: relative !important;
    }

    .cdz-cat-search .category-chooser.dropdown {
        position: absolute !important;
        top: 100%;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        z-index: 9999;
        display: none;
    }
    .cdz-cat-search .category-chooser.dropdown.active {
        display: block;
    }
}

.cdz-cat-search .category-chooser.dropdown {
    border-radius: 0 0 5px 5px !important; /* malo zaobljen, ne preveč okrogel */
    overflow: hidden;
}

.cdz-cat-search .category-chooser .dropdown-inner {
    background-color: #1357a3 !important;
}

.cdz-cat-search .category-chooser .category-list li a {
    display: block;
    padding: 8px 12px;
    color: #ffffff !important;
    font-size: 14px;
}

.cdz-cat-search .category-chooser .category-list li a:hover {
    background-color: #0f447f !important;
    color: #ffffff !important;
}

/* Mobile: zagotovi, da dropdown ne izstopi iz ekrana in ostane berljiv */
@media (max-width: 767px) {
    .cdz-cat-search .category-chooser.dropdown {
        max-height: 280px;
        overflow-y: auto;
    }

    /* Dolga imena kategorij naj se na mobitelu ZAVIJEJO, ne odrežejo z "..." */
    .cdz-cat-search .category-chooser .category-list li a {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word;
    }
}

.product-info-price .price-box.price-final_price {
    text-align: left;
}

.price-box.price-final_price {
    text-align: center;
}

/* ===== CONSOLIDATED 3-BREAKPOINT SYSTEM ===== */
/* DESKTOP: >= 1025px - main-logo, full header */
/* TABLET: 768-1024px - small-logo, simplified header */
/* MOBILE: <= 767px - compact header with hamburger */

/* TABLET + MOBILE: small-logo visible, main-logo hidden */
@media only screen and (max-width: 1024px) {
    /* Fix double-logo at 840px: hide main-logo when showing small-logo */
    .page-header .logo .main-logo {
        display: none !important;
    }
    .page-header .logo .small-logo {
        display: inline-block;
        vertical-align: middle;
        max-height: 36px;
        width: auto;
        margin: 0;
        transform: none;
    }
    .page-header .logo {
        width: auto;
        min-height: 0;
        margin: 0;
    }
    /* Prijava + Cart: equal size on all screens, no white outline */
    #authorization-trigger:before,
    .page-header .minicart-wrapper .action.showcart:before {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        line-height: 36px !important;
        border: none !important;
        outline: none !important;
    }
}

.footer-link li {
    display: flex;
    /* Use flexbox for alignment */
    align-items: center;
    /* Vertically align text and icon */
    gap: 10px;
    /* Add spacing between icon and text */
    margin-bottom: 5px;
    /* Add spacing between list items */
}

.footer-link li i {
    font-size: 18px;
    /* Adjust icon size */
    width: 20px;
    /* Set a fixed width for alignment */
    text-align: center;
    /* Center the icon in its space */
}

.footer-link li a {
    color: #333;
    /* Match Karcher theme */
    text-decoration: none;
    /* Remove underline */
}

.footer-link li a:hover {
    color: #555;
    /* Change color on hover */
}

.footer-box p.h5 {
    margin-bottom: 15px;
    /* Add spacing below heading */
    font-weight: bold;
    /* Make heading bold */
}

.page-header .minicart-wrapper .action.showcart:before {
    font-size: 21px;
    font-weight: 600;
    border-radius: 5px;
}

.main-logo {
    margin-top: 0;
}

.deal-items {
    display: none;
}

.nav.nav-tabs.hidden-xs.abs-dropdown.cdz-mobiledropdown {
    display: none;
}

.block-title.bg-block-title {
    background-color: #1357a3 !important;
    color: #ffffff !important;
}

.home-hotdeal .box-product {
    border: 2px solid #d32f2f !important;
    display: inline-block;
    width: 100%;
    vertical-align: top;
}

.product.details.product-item-details {
    text-align: center !important;
}

.action.search:before {
    color: #ffffff !important; /* bela lupa na modrem ozadju */
}

/* Search button: always solid blue with white icon/text (no fade-in on hover) */
.search-form-container .actions .action.search,
.mobile-search-wrapper .action.search,
.action.search {
    background-color: #1357a3 !important;
    color: #ffffff !important;
    border: none !important;
}

.search-form-container .actions .action.search:hover,
.mobile-search-wrapper .action.search:hover,
.action.search:hover {
    background-color: #1357a3 !important;
    color: #ffffff !important;
}

#back-top a {
    color: #ffffff !important;
}

.action.toggle.switcher-trigger {
    font-size: 14px;
}

.page-header .minicart-wrapper .action.showcart .text {
    padding-top: 0;
    font-size: 14px;
}

/* Unify visual style for "Prijava" and "Kosarica" labels */
.page-header .minicart-wrapper .action.showcart .text,
#authorization-trigger {
    font-size: 14px !important;
    color: #1357a3 !important;
    text-transform: uppercase;
    font-weight: 600;
    padding-right: 10px;
}

/* Center middle header column (search + categories) under the blue bar on desktop */
@media (min-width: 768px) {
    .header-wrapper-center {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: -20px !important; /* dvigni search polje za 18px v navadnem desktop headerju */
        display: flex;
        justify-content: center;
    }
}

/* Ensure precise alignment for .filter-checkbox items */
ul.filter-checkbox li {
    list-style: none !important;
    /* Remove default bullets */
    display: flex !important;
    /* Flexbox for alignment */
    align-items: flex-start !important;
    /* Align items at the top */
    margin-bottom: 10px !important;
    /* Add spacing between items */
}

ul.filter-checkbox li input[type="checkbox"] {
    margin-right: 10px !important;
    /* Space between checkbox and text */
    flex-shrink: 0 !important;
    /* Prevent checkbox resizing */
    margin-top: 1px !important;
    /* Fine-tune checkbox alignment with the first line */
    vertical-align: top !important;
    /* Align checkbox with the top of the first line */
}

ul.filter-checkbox li label {
    display: inline-block !important;
    /* Ensure label spans properly */
    line-height: 1.5 !important;
    /* Consistent line height for text */
    word-break: break-word !important;
    /* Allow text wrapping */
    margin: 0 !important;
    /* Reset margins for precise alignment */
}

ul.filter-checkbox li label .count {
    font-size: 0.9em !important;
    /* Optional smaller font for count */
    color: gray !important;
    /* Optional color for count */
    margin-left: 5px !important;
    /* Space between text and count */
    vertical-align: baseline !important;
    /* Align count with text baseline */
}

.message.info {
    background-color: #ffa50057;
}

@media (min-width: 769px) {
    .header-wrapper-content.sticky-menu.active .search-wrapper {
        position: absolute;
        right: 120px !important;
        top: -10px !important; /* premaknjeno ~18px višje na desktopu */
        z-index: 4;
        border-radius: 30px;
    }
}

/* Remove extra top margin on header right in sticky/non-sticky desktop header */
@media (min-width: 768px) {
    .sticky-menu:not(.active) .header-wrapper-right {
        margin-top: 0 !important;
    }
}

.header-wrapper-content.sticky-menu.active .minicart-wrapper {
    margin-top: 2px !important;
}

/* Poravnava Prijava in košarice v isti višini v desnem delu headerja */
.header-wrapper-right {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* keep items tight to the right edge */
    gap: 30px; /* consistent spacing between Prijava and cart */
}

.header-wrapper-right .authorization-link {
    margin-top: 0 !important; /* override earlier 16px offset */
    margin-left: 30px; /* space between search section and Prijava */
}

/* Order elements inside header right: Prijava first, cart last */
.header-wrapper-right .authorization-link {
    order: 1;
}

.header-wrapper-right .minicart-wrapper {
    order: 2;
}

button.action.action-apply[type="submit"][value="Apply Discount"] {
    background-image: none;
    background: #1357a3;
    border: 1px solid #1357a3;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-family: "FF Clan Pro", Arial, sans-serif;
    font-weight: 700;
    padding: 7px 15px;
    font-size: 1.4rem;
    box-sizing: border-box;
    vertical-align: middle;
    font:
        500 14px / 1.35 Roboto,
        Helvetica Neue,
        Verdana,
        Arial,
        sans-serif;
    vertical-align: top;
    margin-bottom: 5px;
}

.product-info-price .price {
    color: #282828;
    font-size: 20px;
    font-weight: 7px;
}

.block-actions {
    display: none;
}

.cart.main.actions .action.continue {
    color: #282828;
}

.cart.main.actions .action.update {
    color: #282828;
}

.opc-block-summary .table-totals tbody .mark {
    font-size: 100%;
    text-transform: none !important;
}

div.field[name="shippingAddress.region"] input#DI3SCVA {
    display: none;
}

.page-header .minicart-wrapper .action.showcart:before {
    width: 36px !important; /* same box width as height */
    height: 36px !important; /* match search/prijava button height */
    margin-top: 0 !important;
    line-height: 36px !important;
    min-height: 36px !important; /* override theme's 41px min-height */
    border-radius: 5px !important; /* same pill radius as search button */
    padding: 0 !important; /* remove theme padding */
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: #1357a3 !important; /* ensure solid blue square */
}

.page-header .minicart-wrapper .action.showcart {
    padding-left: 65px;
    margin-left: 0;
    height: 36px !important; /* same height as search button */
    line-height: 36px !important;
    display: inline-flex;
    align-items: center; /* vertically center text and icon */
    position: relative; /* anchor for counter circle */
}
.page-header .minicart-wrapper {
    margin-left: 0px;
    border: none !important;
    outline: none !important;
}

/* (premaknjeno na dno datoteke – tam se uporablja zadnja verzija) */

/* Sticky desktop header – login as blue square button; keep search working, icon always visible */
@media (min-width: 768px) {
    .header-wrapper-content.sticky-menu.active #authorization-trigger {
        font-size: 0 !important; /* hide text "Prijava" only in sticky header */
        padding: 0 !important;
    }

    .header-wrapper-content.sticky-menu.active #authorization-trigger:before {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 5px;
        background-color: #1357a3 !important;
        color: #ffffff !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 36px !important;
    }

    /* Sticky search: always show expanded field, layout/colour from theme */
    .header-wrapper-content.sticky-menu.active .search-wrapper .block-search {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .header-wrapper-content.sticky-menu.active
        .search-wrapper
        .block-search
        input[type="text"] {
        /* copy theme's hover state so field is always visible as black bar */
        width: 250px !important;
        padding: 0 40px 0 10px !important;
        height: 36px !important;
        line-height: 36px !important;
        background-color: #000000 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
    }

    /* search icon v sticky headerju: vedno moder kvadrat z belo ikono (normal + hover) */
    .header-wrapper-content.sticky-menu.active
        .search-wrapper
        .block-search
        .search-icon,
    .header-wrapper-content.sticky-menu.active
        .search-wrapper
        .block-search:hover
        .search-icon {
        background-color: #1357a3 !important;
        color: #ffffff !important;
        border-radius: 5px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Sticky minicart: na hover naj ikona ostane bela (ne rdeča) */
    .header-wrapper-content.sticky-menu.active
        .minicart-wrapper
        .action.showcart:hover {
        color: #ffffff !important;
    }

    .header-wrapper-content.sticky-menu.active
        .minicart-wrapper
        .action.showcart:hover:before {
        color: #ffffff !important;
    }
}
/* Prijava as regular blue text link (no pill button) – mobile only */
@media (max-width: 767px) {
    #authorization-trigger {
        background-color: transparent !important;
        color: #1357a3 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        height: auto !important;
        line-height: normal !important;
        display: inline-flex;
        align-items: center;
    }
}

#authorization-trigger:before {
    color: #1357a3 !important; /* blue user icon */
}

.authorization-link.switcher {
    display: flex;
    align-items: center;
}

/* Mobile layout: poravnava logotipa, Prijave in košarice v eni vrstici */
@media (max-width: 767px) {
    /* Logo blok – poravnaj ELESPROM logo vertikalno na sredino */
    .header-wrapper-left,
    .header-wrapper-left .logo-left {
        display: flex;
        align-items: center;
    }

    /* Remove small white line from mobile menu toggle (span::before) */
    .header-wrapper-left .action.nav-toggle span::before {
        content: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    /* Desni blok (Prijava + košarica) poravnan desno v isti višini kot logo */
    .header-wrapper-right {
        display: flex;
        align-items: center !important;
        justify-content: flex-end !important; /* košarica naj bo v desnem kotu */
        gap: 35px; /* razmik med Prijavo in košarico */
        margin-right: -8px !important; /* rahlo manj negativno: košarica malo v levo za poravnavo s search gumbom */
        margin-top: 0 !important; /* ne dviguj celotnega bloka, košarico urejamo posebej */
    }

    /* Zaporedje: [Prijava] [Košarica] */
    .header-wrapper-right .authorization-link {
        order: 1;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .header-wrapper-right .minicart-wrapper {
        order: 2;
        margin-left: 0 !important;
        margin-top: -35px !important; /* dvigni košarico višje nad search vrstico, ne premikaj Prijave */
    }
}

/* Mobile STICKY header: enaka višina v vseh sticky stanjih, brez skakanja */
@media (max-width: 767px) {
    /* Povečaj višino celotnega sticky headerja na mobilu
     tako za .sticky-menu kot za .sticky-menu.active */
    .header-wrapper-content.sticky-menu,
    .header-wrapper-content.sticky-menu.active {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        min-height: 60px !important;
    }

    .header-wrapper-content.sticky-menu.active
        .header-wrapper-right
        .minicart-wrapper {
        margin-top: -35px !important; /* dovolj visoko, da ne visi nad vsebino, brez vpliva na navaden header */
    }
}

/* Login button: icon-only blue square with white icon, no text */
#authorization-trigger {
    font-size: 0 !important; /* skrij tekst "Prijava" */
    background-color: transparent !important;
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#authorization-trigger:before {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 5px !important;
    background-color: #1357a3 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 36px !important;
}

/* Non-sticky desktop header: show full search bar, hide standalone magnifier */
@media (min-width: 768px) {
    .sticky-menu:not(.active) .search-wrapper .search-icon {
        display: none !important;
    }

    .sticky-menu:not(.active) .search-wrapper .search-form-container,
    .sticky-menu:not(.active)
        .search-wrapper
        .search-form-container
        .block-search {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

/* Always show search icon (no hiding on non-sticky header, no hover dependency) */
.search-wrapper .block-search .search-icon {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Desktop: even when header is non-sticky, keep icon visible */
@media (min-width: 768px) {
    .sticky-menu:not(.active) .search-wrapper .search-icon {
        display: inline-block !important;
    }
}

/* Sticky header (on scroll): hide "Prijava" text, keep original icon */
@media (min-width: 768px) {
    .header-wrapper-content.sticky-menu.active #authorization-trigger {
        font-size: 0 !important; /* hide "Prijava" only in sticky state */
        padding: 0 6px !important;
    }
}

/* Bottom header (menu row) – layout for search, login icon, cart on desktop */
@media (min-width: 768px) {
    .header-bottom-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 16px;
    }

    /* Keep search bar visible in bottom header and place it left of icons */
    .header-bottom-right .search-wrapper {
        margin-right: 8px;
    }

    .header-bottom-right .search-wrapper .block-search {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        width: 260px !important; /* constant width for bottom search */
    }

    /* Login as icon-only in bottom header */
    .header-bottom-right #authorization-trigger {
        font-size: 0 !important; /* hide text "Prijava" */
        padding: 0 !important;
    }

    .header-bottom-right #authorization-trigger:before {
        font-size: 18px !important; /* visible icon size */
    }

    /* Push cart as far right as possible inside bottom header */
    .header-bottom-right .minicart-wrapper {
        margin-left: 8px;
        margin-right: 0;
    }
}

/* Styling for the Entire Section */
.newsletter-social-modern {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: #000;
    /* Black text for contrast */
    border-top: 2px solid #ffffff;
    /* Black borders */
    border-bottom: 2px solid #ffffff;
}

/* Section Title */
.newsletter-title {
    flex: 1 1 100%;
    text-align: left;
    /* Align title to the left */
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Newsletter Section */
.newsletter-modern {
    flex: 1 1 60%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-modern input[type="email"] {
    flex: 1;
    padding: 13px;
    border: 2px solid #282828;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    background-color: #1357a3;
    /* Blue background instead of yellow */
    color: #ffffff;
    /* Light text for contrast on blue */
    width: 100%;
    /* Full width within the container */
    height: 100%;
    max-width: 500px;
    /* Limit maximum width */
    margin-bottom: 5px;
}

.newsletter-modern input::placeholder {
    color: #ffffff;
    /* Placeholder text kept light for contrast */
    opacity: 0.7;
}

.newsletter-modern button {
    background-color: #1357a3;
    margin-top: 0;
    color: #ffffff;
    padding: 8px 20px;
    border: 2px solid #1357a3;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    height: 42px;
    line-height: 22px;
    transition: none;
}

.newsletter-modern button:hover {
    background-color: #1357a3;
    color: #ffffff;
    border: 2px solid #1357a3;
    padding: 8px 20px;
    height: 42px;
    line-height: 22px;
    font-size: 16px;
    font-weight: bold;
}

/* Social Icons Section */
.social-modern {
    flex: 1 1 30%;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.social-modern a {
    color: #ffffff !important;
}

.social-modern a:hover {
    color: #ffffff !important;
}

.social-modern a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #1357a3;
    color: #ffffff;
    border: 2px solid #1357a3;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: none;
}

.social-modern a:hover {
    background-color: #1357a3;
    color: #ffffff;
    border: 2px solid #1357a3;
    outline: none;
}

/* Responsiveness - mobile: email row 1, button + facebook row 2 */
@media (max-width: 768px) {
    .newsletter-social-modern {
        display: grid !important;
        grid-template-columns: 1fr auto;
        gap: 8px;
        text-align: left;
        align-items: stretch;
    }
    .newsletter-title {
        grid-column: 1 / -1;
    }
    /* Flatten intermediate containers so input, button, social become grid children */
    .newsletter-modern {
        display: contents;
    }
    .newsletter-modern form {
        display: contents !important;
    }
    /* Row 1: email input full width */
    .newsletter-modern input[type="email"] {
        grid-column: 1 / -1;
        width: 100%;
        height: 42px;
        box-sizing: border-box;
    }
    /* Row 2: button on left */
    .newsletter-modern button {
        grid-column: 1;
        max-width: 125px;
        white-space: nowrap;
        padding: 8px 20px;
        font-size: 16px;
        height: 42px;
        line-height: 22px;
        border-radius: 5px;
        box-sizing: border-box;
    }
    .newsletter-modern button:hover {
        background-color: #1357a3;
        color: #ffffff;
        border: 2px solid #ffffff;
        padding: 8px 20px;
        height: 42px;
        font-size: 16px;
    }
    /* Row 2: social icon on right */
    .social-modern {
        grid-column: 2;
        display: flex;
        align-items: stretch;
    }
    .social-modern a {
        width: 42px;
        height: 42px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box;
    }
}

.newsletter-title {
    text-align: left;
    /* Keep left-aligned on smaller screens */
    color: ffffff;
    font-size: 20px;
}

#back-top {
    color: #ffffff !important;
}

/* Keep Prijava vertically centered in header (no extra offset when not sticky) */
.sticky-menu:not(.active) .header-wrapper-right .authorization-link {
    margin-top: 0 !important;
}

.header-wrapper-content.sticky-menu.active .minicart-wrapper {
    top: 4px !important;
}

.price-label .price {
    color: #282828 !important;
}

.field.choice.related {
    display: none;
}

.block-title.title strong {
    color: #fff !important;
    background-color: #333 !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    text-align: center;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    text-transform: uppercase;
    text-shadow:
        0px 1px,
        1px 0px,
        1px 1px;
}

.owl-carousel .owl-nav [class*="owl-"] {
    background-color: #1357a3 !important;
    color: #fff !important;
}

.home-product-style02.home-hotdeal .owl-carousel .owl-nav [class*="owl-"] {
    background-color: #d32f2f !important;
    color: #ffffff !important;
    border-color: #d32f2f !important;
    outline: none !important;
    box-shadow: none !important;
}

div.field[name="shippingAddress.region"] {
    display: none;
}

body {
    font-family: Arial, sans-serif !important;
}
.megamenu-item-title {
    font-weight: bolder !important;
    font-weight: bold !important;
    text-transform: uppercase;
}

.title.block-collapsible-nav-title strong {
    color: #282828 !important;
}

.title.block-collapsible-nav-title.active strong {
    color: #282828 !important;
}

.cdz-brand-slider-wrap {
    border-top: none !important;
}

.page-header .minicart-wrapper .action.showcart:before {
    font-family: FontAwesome !important;
    content: "\f07a";
}

.page-header .minicart-wrapper .action.showcart {
    position: relative; /* allow absolute positioning of counter badge */
}

/* Bela okrogla značka s številom izdelkov kot na dizajnu */
.page-header .minicart-wrapper .action.showcart .counter.qty {
    position: absolute;
    top: -7px !important; /* prisili pozicijo nad temeljnimi stili */
    left: 28px !important; /* prisili vodoravni položaj */
    height: 20px;
    min-width: 20px;
    line-height: 20px;
    padding: 0 6px;
    background: #f8f8f8;
    border: 1px solid #ebebeb;
    color: #000;
    font-size: 13px;
    border-radius: 50%;
    text-align: center;
    box-sizing: border-box;
}

/* Sticky header: poravnaj značko enako v zgornji desni kot vozička */
@media (min-width: 769px), print {
    .header-wrapper-content.sticky-menu.active
        .minicart-wrapper
        .action.showcart {
        position: relative;
    }

    .header-wrapper-content.sticky-menu.active
        .minicart-wrapper
        .action.showcart
        .counter.qty {
        top: -7px !important;
        left: 28px !important;
        right: auto;
        height: 20px;
        min-width: 20px;
        line-height: 20px;
        padding: 0 6px;
        background: #f8f8f8;
        border: 1px solid #ebebeb;
        color: #000;
        font-size: 13px;
        border-radius: 50%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Vsi teksti v popup košarice naj bodo beli */
.block-minicart,
.block-minicart * {
    color: #ffffff !important;
}

.header-wrapper-content.sticky-menu.active
    .minicart-wrapper
    .action.showcart:before {
    line-height: 26px !important;
}

@media (max-width: 767px) {
    .page-header .minicart-wrapper .action.showcart {
        padding-left: 0px !important;
    }

    .page-header .minicart-wrapper .action.showcart:before {
        width: 36px !important; /* keep perfect square on mobile */
        height: 36px !important;
        margin-top: 0px !important;
    }
}

/* Osnovni stil za vse naprave */
button.action.action-apply {
    border: none;
    font-family: "FF Clan Pro", Arial, sans-serif;
    line-height: 1.4;
    cursor: pointer;
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
    padding: 10px 20px !important;
    font-weight: bold;
    margin: 20px; /* 20px okoli gumba na večjih zaslonih */
}

/* Stil prilagojen telefonom (npr. do 600px širine) */
@media only screen and (max-width: 600px) {
    button.action.action-apply {
        display: block; /* gumb v svoji vrstici */
        width: 100%; /* naj zavzame vso širino */
        margin: 10px auto; /* centriran in z manjšim zunanjim robom */
        font-size: 18px; /* večja pisava za lažji klik na telefonih */
        padding: 15px 20px; /* nekoliko več paddinga, da je gumb bolj izrazit */
    }
}

/* Newsletter bar v #topfooter - prisilno modro/bela shema */
#topfooter {
    background-color: #1357a3 !important;
    color: #ffffff !important;
}

#topfooter .newsletter-title {
    color: #ffffff !important;
}

#topfooter .newsletter-modern input[type="email"] {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    height: 42px !important;
    padding: 8px 13px !important;
    box-sizing: border-box !important;
}

#topfooter .newsletter-modern input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

#topfooter .newsletter-modern button {
    background-color: #ffffff !important;
    color: #1357a3 !important;
    border: 2px solid #ffffff !important;
    height: 42px !important;
    line-height: 22px !important;
    padding: 8px 20px !important;
    font-size: 16px !important;
    border-radius: 5px !important;
}

#topfooter .newsletter-modern button:hover {
    background-color: #ffffff !important;
    color: #1357a3 !important;
    border: 2px solid #ffffff !important;
    height: 42px !important;
    padding: 8px 20px !important;
    font-size: 16px !important;
}

#topfooter .social-modern a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    background-color: #ffffff !important;
    color: #1357a3 !important;
    border: 2px solid #ffffff !important;
    border-radius: 5px !important;
    font-size: 18px !important;
    box-sizing: border-box !important;
}

#topfooter .social-modern a:hover {
    background-color: #ffffff !important;
    color: #1357a3 !important;
    border: 2px solid #ffffff !important;
}

/* "Vroče ponudbe" blok - rdeče ozadje, bel tekst */
.home-product-style02.home-hotdeal .block-title.bg-block-title {
    background-color: #d32f2f !important; /* primary red */
    color: #ffffff !important;
}

.home-product-style02.home-hotdeal .block-title.bg-block-title .b-title,
.home-product-style02.home-hotdeal .block-title.bg-block-title .b-title.h2,
.home-product-style02.home-hotdeal .block-title.bg-block-title .view-all {
    color: #ffffff !important;
}

.home-product-style02.home-hotdeal .block-title.bg-block-title .view-all:hover {
    color: #ffecec !important; /* slightly lighter on hover */
}

.home-product-style02.home-hotdeal .box-product {
    border: 1px solid #d32f2f !important;
}

/* Center search block in the middle header column */
.header-wrapper-content .row .col .search-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Pseudo-element puščice pri "Poglej vse" – belo ozadje */
.block-title .view-all:before {
    background-color: #ffffff !important;
}

/* Glavni vodoravni meni – modre povezave, siv background */
.cdz-main-menu {
    background-color: #f5f5f5 !important;
}

.cdz-main-menu .groupmenu > .item.level0 > a.menu-link span {
    color: #1357a3 !important;
}

.cdz-main-menu .groupmenu > .item.level0 > a.menu-link:hover span,
.cdz-main-menu .groupmenu > .item.level0.active > a.menu-link span,
.cdz-main-menu .groupmenu > .item.level0.current > a.menu-link span {
    color: #ffffff !important;
}

.cdz-main-menu .groupmenu > .item.level0 > a.menu-link:hover,
.cdz-main-menu .groupmenu > .item.level0.active > a.menu-link,
.cdz-main-menu .groupmenu > .item.level0.current > a.menu-link {
    background-color: #1357a3 !important;
}

/* Mobile: fine-tune Prijava button position (slightly up and left) */
@media (max-width: 767px) {
    #authorization-trigger {
        position: relative;
        top: -2px;
        left: 10px;
    }
}

/* MOBILE SEARCH FIX: rounded left Kategorije, rounded right button */
@media (max-width: 767px) {
    /* Container */
    #mobile-search-form-container {
        width: 100%;
        height: 36px;
        border: none !important;
        box-shadow: none !important;
    }
    /* Category trigger on left - rounded left corners */
    .cdz-cat-search {
        position: relative !important;
        float: left !important;
        width: auto !important;
        display: block !important;
        z-index: 99;
    }
    .cdz-cat-search .inner .current-cat {
        height: 36px;
        line-height: 36px;
        padding: 0 10px;
        white-space: nowrap;
        border-radius: 5px 0 0 5px !important;
    }
    /* Search form - no border radius */
    #search_mini_form.has-cat {
        overflow: visible !important;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        height: 36px;
    }
    #search_mini_form.has-cat .field.search {
        display: flex;
        flex-direction: row;
        flex: 1;
        height: 36px;
        margin: 0;
        z-index: 2;
        border-radius: 0 !important;
        border: 1px solid #1357a3 !important;
        border-left: none !important;
    }
    /* Search input - no radius */
    #search_mini_form.has-cat .field.search input[type="text"] {
        flex: 1;
        height: 36px;
        margin: 0 !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        pointer-events: auto;
        z-index: 3;
        border-radius: 0 !important;
        border: none !important;
    }
    /* Search button - rounded right corners */
    #search_mini_form.has-cat .actions {
        display: flex;
        align-items: center;
        height: 36px;
        margin: 0;
    }
    #search_mini_form.has-cat .actions .action.search {
        position: relative !important;
        height: 36px;
        width: 40px;
        line-height: 36px;
        pointer-events: auto;
        z-index: 3;
        border-radius: 0 5px 5px 0 !important;
    }
    /* Category dropdown */
    .cdz-cat-search .category-chooser.dropdown {
        display: none;
        position: absolute !important;
        top: 100%;
        left: 0 !important;
        right: auto !important;
        width: 280px !important;
        max-width: 280px !important;
        transform: none !important;
        z-index: 9999;
    }
    .cdz-cat-search .category-chooser.dropdown.active {
        display: block;
    }
    /* Hide label and nested */
    #search_mini_form.has-cat .field.search > .label {
        display: none;
    }
    #search_mini_form.has-cat .field.search .nested {
        display: none;
    }
    #search_mini_form.has-cat .field.search .control {
        flex: 1;
        height: 36px;
    }
    /* No outer borders */
    .search-wrapper,
    .search-content.block-search,
    .search-form-container {
        border: none !important;
        box-shadow: none !important;
    }
    /* Mobile search wrapper: z-index for dropdown */
    .mobile-search-wrapper {
        position: relative;
        z-index: auto;
    }
}
/* Cart item quantity input text color */
.item-qty.cart-item-qty {
    color: #000000 !important;
}

/* ===== FIX Z-INDEX: User/Cart dropdowns above search bar ===== */
.cdz-login-form-dropdown,
.block-minicart {
    z-index: 999 !important;
}

/* ===== HAMBURGER MENU: styled like Prijava/Cart buttons (mobile only) ===== */
@media (max-width: 767px) {
    .action.nav-toggle {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        background-color: #1357a3 !important;
        border-radius: 5px !important;
        margin-right: 8px !important;
        flex-shrink: 0;
        z-index: 14;
    }
    .action.nav-toggle:before {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 18px !important;
        height: 2px !important;
        background: #ffffff !important;
        content: '' !important;
        box-shadow: 0 -6px 0 #ffffff, 0 6px 0 #ffffff !important;
    }
    .action.nav-toggle span {
        display: none !important;
    }
    .action.nav-toggle span:before,
    .action.nav-toggle span:after {
        display: none !important;
    }
}
