/* ============================================================
   HEADER — Spletnik Child
   Follows: Bootstrap 5 + mobile-first, BEM-ish naming
   ============================================================ */

/* ── Root / wrapper ── */
header#header {
    background: var(--white-color, #fff);
    position: relative;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
    border-bottom: 1px solid #e7e7e3;
}

/* ── MIDDLE ROW ── */
.header_middle_container {
    display: flex;
    margin: 0 auto;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 32px;
}



body.fixed-header .header_middle_container {
    padding-top: 10px;
    padding-bottom: 10px;
}



.fkcart-shortcode-container .fkcart-shortcode-count[data-item-count="0"],
.woosw-menu-item  .woosw-menu-item-inner[data-count="0"]:after  {
visibility: hidden !important;    
}


body.fixed-header .head-actions .head-btn--user .label,
body.fixed-header .head-actions .head-btn--wishlist  small {
    display: none;
}
body.fixed-header .head-actions .head-btn--wishlist  .woosw-menu-item-inner {
    font-size: 0 !important;
    width: 0;
    height:0 ;
}
body.fixed-header .head-actions .head-btn {

    padding: 10px;
}

/* ── Logo ── */
header a.logo,
header a.navbar-brand.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

header img.logo__mark {
    max-width: 160px;
    height: auto;
    display: block;
}
body.fixed-header header img.logo__mark {
  display: none !important;
}

@media (max-width: 767px) {
    header img.logo__mark {
        max-width: 95px;
    }
}

/* ── Inline nav menu ── */
.header__nav {
    flex-shrink: 0;
}

.header__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header__nav ul li a {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.header__nav ul li a:hover,
.header__nav ul li.current-menu-item>a {
    background: rgba(0, 0, 0, 0.06);
    color: var(--wp--preset--color--primary-color, #DB152E);
}

@media (max-width: 991px) {
    .header__nav {
        display: none;
    }

    /* handle mobile nav separately */
}
@media (min-width:992px) {
    .aws-search-result .aws_results .aws_result_item {
        padding: 10px !important;
    }
    
}


.mega-all-categories>.mega-menu-link {

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a807c' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' style='width: 18px; height: 18px;'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'%3E%3C/path%3E%3C/svg%3E") !important;

}


body.fixed-header .mega-all-categories>.mega-menu-link {

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' style='width: 18px; height: 18px;'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'%3E%3C/path%3E%3C/svg%3E") !important;

}

#mega-menu-wrap-main-menu-woo #mega-menu-main-menu-woo > li.mega-menu-megamenu > ul.mega-sub-menu .mega-description-group .mega-menu-description {
    margin:  0;
    color: #7a807c;
    font-size: 12px;
}


/* ── HEAD ACTIONS (account, wishlist, cart) ── */
.head-actions {
    display: flex;
    align-items: center;
}
body:not(.fixed-header) .head-actions {
    gap: 4px;
}

.head-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    position: relative;
    transition: background 0.2s;
}
.head-btn:not(.head-btn--cart),
body:not(.fixed-header) .head-btn.head-btn--cart #fkcart-mini-toggler {
    padding: 10px 14px;

}

.head-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
    text-decoration: none;
}
body.fixed-header .head-btn.head-btn--wishlist.wishlist_item {
    padding: 10px 2px 10px 10px;
}
.head-btn svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

/* Two-line label (small + strong) */
.head-btn .label {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.head-btn .label small {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.65;
}

.head-btn .label strong {
    font-size: 13px;
    font-weight: 700;
}

/* Badge (item count) */
.head-btn .badge,
#header span.yith-wcwl-items-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--wp--preset--color--primary-color, #DB152E);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 600;
    display: flex !important;
    justify-content: center;
    align-items: center;
    line-height: 1;
    pointer-events: none;
}

/* Hide labels on small screens — keep icons only */
@media (max-width: 1199px) {
    .head-btn .label {
        display: none;
    }
}

/* ── Wishlist ── */
.head-btn--wishlist {
    cursor: pointer;
}

/* ── Cart (Xoo WSC plugin) ── */
#custom_mc,
.head-btn--cart {
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

/* ── Phone ── */
.header-phone {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 2px 10px;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

.header-phone::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.0372 13.4459L14.3261 11.3349L14.3131 11.3289C14.0686 11.2243 13.8018 11.1823 13.5369 11.2068C13.272 11.2312 13.0174 11.3213 12.7961 11.4689C12.7701 11.4861 12.745 11.5048 12.7211 11.5249L10.2871 13.5999C8.74509 12.8509 7.15308 11.2709 6.40407 9.74889L8.48209 7.27787C8.50209 7.25287 8.52109 7.22787 8.53909 7.20087C8.68352 6.98017 8.77115 6.72718 8.79418 6.46443C8.81721 6.20168 8.77493 5.93731 8.67109 5.69485V5.68285L6.55407 0.963807C6.41681 0.647069 6.18079 0.383216 5.88125 0.211638C5.58171 0.0400599 5.23471 -0.0300417 4.89206 0.0117978C3.53701 0.190106 2.29321 0.855574 1.39296 1.88391C0.492701 2.91225 -0.00244095 4.23313 9.04873e-06 5.59985C9.04873e-06 13.5399 6.46007 20 14.4001 20C15.7669 20.0024 17.0878 19.5073 18.1161 18.607C19.1444 17.7068 19.8099 16.463 19.9882 15.1079C20.0301 14.7654 19.9602 14.4185 19.7888 14.119C19.6174 13.8194 19.3537 13.5834 19.0372 13.4459ZM14.4001 18.4C11.0065 18.3963 7.75287 17.0465 5.35319 14.6468C2.9535 12.2471 1.60373 8.99352 1.60002 5.59985C1.59626 4.62333 1.94808 3.67883 2.58977 2.94273C3.23146 2.20664 4.11915 1.72928 5.08706 1.59981C5.08666 1.6038 5.08666 1.60782 5.08706 1.61181L7.18708 6.31186L5.12006 8.78588C5.09908 8.81002 5.08002 8.83577 5.06306 8.86288C4.91257 9.0938 4.82429 9.35968 4.80677 9.63475C4.78925 9.90982 4.84308 10.1848 4.96306 10.4329C5.86907 12.2859 7.73608 14.1389 9.6091 15.0439C9.85907 15.1628 10.1356 15.2148 10.4117 15.1948C10.6877 15.1748 10.9539 15.0836 11.1841 14.9299C11.2098 14.9126 11.2345 14.894 11.2581 14.8739L13.6891 12.7999L18.3892 14.9049C18.3892 14.9049 18.3972 14.9049 18.4002 14.9049C18.2723 15.8742 17.7957 16.7637 17.0594 17.407C16.3232 18.0503 15.3778 18.4033 14.4001 18.4Z' fill='white'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    display: inline-flex;
    height: 20px;
    width: 20px;
    flex-shrink: 0;
}

.header-phone a {
    background-image: linear-gradient(to right, #E8ECF7, #E8ECF7 50%, #fffefe 50%);
    background-size: 200% 100%;
    background-position: -100%;
    display: inline-block;
    position: relative;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease-in-out;
    white-space: pre;
}

.header-phone a::before {
    content: '';
    background: #E8ECF7;
    display: block;
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    transition: all 0.3s ease-in-out;
}

.header-phone:hover a {
    background-position: 0;
}

.header-phone:hover a::before {
    width: 100%;
}




/* ── Sticky bar ── */
#header.header_stickybar {
    z-index: 60;
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line, #e8e8e8);
    background: #ffffffeb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    /* hidden — JS adds class first */
}

#header.header_stickybar--visible {
    transform: translateY(0);
    /* slide in */
}

/* aws search */


/*  new css search style*/



body.aws-scroll-lock:before {
    content: "";
    position: absolute;
    height: 500%;
    width: 100%;
    z-index: 999;
    background: #0000009e;
}
body.homepage.aws-scroll-lock:before {
    z-index: 999999;
}
body.aws-scroll-lock header {
    z-index: 1000;
}


div#aws-search-result-1.aws_no_result {
    border-bottom-left-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
}


.aws-search-result .aws_result_price {
    display: flex;
    /* flex-direction: column; */
    /* gap: 6px; */
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--wp--preset--color--primary-color);
    flex-shrink: 0;
}

.aws-search-result .aws_result_price del {
    font-weight: 400;
    color: #969696;
}

.aws-search-result .aws_result_price ins {
    text-decoration: none;
    
}

.aws-search-result .aws_result_image img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}



.aws-search-result .aws_result_labels span.awl-product-label {
    margin: 0 0 5px 0 !important;
}

.aws-search-result .aws_result_labels .awl-inner-text {
    font-size: 10px;
}

.aws-search-result .aws_result_labels span.awl-label-text {
    padding: 3px 8px !important;
}

.aws-search-result .aws_result_price {
    text-align: left !important;
}

.aws-search-result .aws_result_sku,
.aws-search-result .aws_result_term {
    display: inline-block !important;
}

.aws-search-result .aws_result_term {
    padding-top: 0 !important;
    font-size: 12px !important;
}

.aws-search-result .aws_result_term strong,
.aws-search-result .aws_result_head strong {
    color: var(--wp--preset--color--tertiary-color);
}

.aws-search-result .aws_onsale {
    background: #9dd3af none repeat scroll 0 0 !important;
}

.aws-search-result .aws_result_tax .aws_result_head img {
    background: var(--wp--preset--color--light-primary-color);
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
.aws-search-result .aws_result_tax.aws_result_tax_berocket_brand .aws_result_head img {
    border: 1px solid var(--wp--preset--color--light-primary-color);
    padding: 2px;
    object-fit: contain;
    background-color: #ffffff !important;
}
.aws-search-result .aws_result_tax:not(.aws_result_tax_berocket_brand) .aws_result_head img {
    padding: 10px;
}
/* .aws-search-result .aws_result_tax.aws_result_tax_product_cat .aws_result_head img {
    margin-right: 10px !important;
} */
.aws-search-result .aws_result_tax .aws_result_head .aws_result_tax_image {
    margin: 2px 3px 0 0;
}
.aws-search-result .custom-text-1 {
    display: block;
    font-weight: 300;
    font-size: 11px;
    line-height: 129%;
    color: #7C7C7C;
    margin-bottom: 4px;
    text-transform: lowercase !important;
}

.aws-search-result .custom-text-2 {
    margin-top: 10px;
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--wp--preset--color--primary-color);
    text-transform: uppercase;
}




.aws_result_tax .aws_result_head {
    flex-wrap: initial !important;
    align-items: center !important;

}

.aws-search-result .aws_result_term {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.aws-search-result .aws_result_price del,
.aws-search-result .aws_result_price ins {
    padding: 0 0 0 0px;
}

.aws-search-result .aws_result_sku {
    overflow: hidden;
    display: inline-flex !important;
}

.aws_results.style-inline {
    padding: 18px;
}

.aws-search-result .aws_results .aws_result_item {
    border-bottom: 0;
    border-radius: 12px;
}

.aws-search-result .aws_result_title {
    color: #464646;
    font-weight: 400;
    font-size: 14px;
}

.aws-search-result .aws_result_head {
    margin-bottom: 3px;
    }

    .aws-search-result .aws_result_term {
        color: #7a807c;
    
    }

    .aws-search-result .aws_result_inner .aws_top_text {
        padding: 10px 25px;
    }
    .aws-search-result   a.aws_result_item.aws_search_more {
        background-image: url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='36' height='36' rx='8' fill='rgb(211, 255, 223)' /%3E%3Csvg x='10' y='10' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7' /%3E%3C/svg%3E%3C/svg%3E%0A") !important;
        background-repeat: no-repeat no-repeat !important;
        background-position: 10px 50% !important;
        background-size: 36px !important;
        color: #1f6b3a;
        font-weight: 600;  
        font-size: 14px;
        text-align: left;
        padding-left: 56px !important;
        }
   header li.menu-item.woosw-menu-item.menu-item-type-woosw {
        list-style:none;
        font-size: 13px;

    }
    header   li.menu-item.woosw-menu-item.menu-item-type-woosw a {    
        color:var(--wp--preset--color--primary-text-color);
        font-size: 13px;
        font-weight: 700;}
    
        .fkcart-shortcode-container .fkcart-shortcode-count,
        .woosw-menu-item .woosw-menu-item-inner:after{
                background:#ff7043;
            color: #fff;
            border: 2px solid #fff;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            font-size: 10px;
            font-weight: 700;
            position: absolute;
        
        }
        .woosw-menu-item .woosw-menu-item-inner:after {
            left: 26px;
            top: 5px;
        }
        .fkcart-shortcode-container .fkcart-shortcode-count {
            top: -8px;
            left: 12px;
            z-index: 0;
        }
        body.fixed-header .head-actions .woosw-menu-item .woosw-menu-item-inner:after {
            left: 18px;
            top: 2px;
        }

        header .fkcart-shortcode-price {
            font-size: 13px;
            font-weight: 600;
        }
        body:not(.fixed-header) header .fkcart-shortcode-price:before {
            content:"Košarica";
            font-size: 10px;
            font-weight: 400;
            opacity: 0.65;
            line-height:12px;
        
        }
        
        body:not(.fixed-header) header .fkcart-shortcode-container .fkcart-shortcode-price {
            display: flex;
            flex-direction: column;
        }
        body.fixed-header   .fkcart-shortcode-price {
            display: none !important;
        }
    
    header  .woosw-menu-item .woosw-menu-item-inner {
        position: static;
    }

    /* header {
        z-index: 9999;
    } */
    body.mega-menu-main-menu-woo-mobile-open header,
    body.mmm-is-open header   {
        z-index: 9999;
    }
    /* Zabrana skrolovanja kada je mega meni otvoren */
    body.mmm-is-open {
        overflow: hidden !important;
    }
    
    /* Kreiranje overlay-a */
    .mmm-desktop-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.6); /* Zatamnjenje (60% crna) */
        z-index: 999; /* Z-index mora biti neznatno manji od menija */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* Prikaz overlaya kada je aktivna klasa na body-ju */
    body.mmm-is-open .mmm-desktop-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; 
    }
    
    @media (min-width:992px) {
        body.fixed-header li.main_menu_dd > a.mega-menu-link {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' class='chev'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E") !important;
            background-repeat: no-repeat no-repeat !important;
            background-position: calc(100% - 16px) calc(50% + 1px) !important;
            background-size: 12px !important;
                }
            
            body.fixed-header li.main_menu_dd > a.mega-menu-link {
                padding-right: 38px !important;
            }
            
        
    }
   
    .aws-search-result .aws_result_item .aws_result_head {
        display: flex !important;
        gap: 12px;
    }

    .aws_result_tax_berocket_brand:not(:has(.aws_result_tax_image))::before {
        content: attr(data-title);
        display: inline-block;
        align-items: center;
        width: 36px;
        height: 36px;
        line-height: 36px;
        min-width: 36px;
        background: #1f6b3a;
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 100px;
        padding-left: 12px;
        overflow: hidden;
        border-radius: 6px;
        text-transform: uppercase;
        flex-shrink: 0;
        margin-right:14px;
    }
    .aws_result_tax_berocket_brand:not(:has(.aws_result_tax_image)) {
        display:flex !important;
        align-items:center;
    }
    @media (max-width:991px) {

    .aws-container.aws-mobile-fixed {
        display: flex;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
    
    .aws-container.aws-mobile-fixed form.aws-search-form.aws-show-clear {
        border: 0 !important;
        height:55px;
    }
    
    .aws-container.aws-mobile-fixed .aws-search-btn.aws-form-btn {
        display:  none !important;
    }
    
    .aws-search-result a.aws_term_suggestion {
        font-size: 12px;
    
    }
    .aws-search-result{
        border-bottom: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    
    }
    
    .aws-search-result .aws_results .aws_result_item {
        padding: 12px 0;
            border-bottom: 1px solid #e7e7e3;
        border-radius:0 !important
    }
    .aws-search-result .aws_results .aws_result_item:last-child {
        border-bottom: 0 !important;
        margin-top: 12px !important;
    }
    .aws-search-result .aws_result_item.hovered, .aws-search-result .aws_result_item:hover, .aws-search-result .aws_search_more a:hover {
        background: #fff !important;
    }


.aws-search-result .aws_result_title {
    font-size: 12px !important;
    line-height: 1.2 !important;
}
.aws-mobile-fixed-close::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' width='22' height='22' fill='none' stroke='%23121613' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 12H5M12 5l-7 7 7 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.aws-mobile-fixed-close svg {
    display: none;
}
    }

    li.mega-menu-item-top_level_link a {
        color: #1f6b3a !important;
    }
    
    a.mega-mobile-back-link-text {
        padding-right: 40px;
    }

    body  .mega-menu-wrap .mega-menu-toggle ~ button.mega-close:before {
        content: "\00a0" !important;
        background-repeat: no-repeat no-repeat !important; 
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='22' height='22' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'%3E%3C/path%3E%3C/svg%3E");
        background-position: center center !important;
        background-size: 22px !important;
        width: 22px !important;
       }
       
     button.mega-close {
        top: 13px !important;
      }

     /*   #mega-menu-wrap-main-menu-woo .mega-menu-toggle.mega-menu-open ~ button.mega-close {
        left: calc(min(100vw - 40px, 270px)) !important;
    } */
