/* header.css */

:root {
    --header_bg: #ffffff;
}

.index .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
}

.site-header {
    padding: 20px 0;z-index: 9;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation{background: none;}

aside {
    width: 50%;
}

.header-left {
    display: flex;
    align-items: center;
    width: 25%;
}

.header-left .logo {
    display: block;
    margin: 0px;
}
li.view-ar.switcher-option a:visited{color: #fff;}

.header-left .logo img {
    max-width: 80px;
}

.header-middle ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.header-middle ul li a {
    color: var(--primary-color);
    font-size: 16px;
    line-height: 16px;
    font-weight: 500;
}

.index .header-middle ul li a {
    color: var(--secondary-color);
}

.header-middle ul li a:hover {
    opacity: 0.7;
}

/* Dropdown Icon Style */
.dropdown-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 8px;
    position: relative;
    top: -2px;
    transition: transform 0.3s ease;
}

.index .dropdown-icon svg {
    stroke: var(--secondary-color);
}

.dropdown-icon svg {
    stroke: var(--primary-color);
}

.menu-item-has-children {
    position: relative;
}

.menu-item-has-children:hover .dropdown-icon {
    transform: rotate(180deg);
    top: 2px;
}

/* Desktop Dropdown Menu */
.navbar .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-25%) translateY(10px);
    background: var(--secondary-color);
    min-width: 250px;
    padding: 15px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9991;
    display: block;
    /* Overrides column layout in index */
    flex-direction: column;
}

.navbar .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    /* transform: translateX(-50%) translateY(0); */
}

.navbar .sub-menu li {
    width: 100%;
    padding: 0;
    margin: 0;
}

.navbar .sub-menu li a {
    color: #404040 !important;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 25px;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    line-height: normal;
}

.navbar .sub-menu li a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 30px;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    width: 25%;
}

.header-right .lang {
    color: var(--primary-color);
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    position: relative;
    /*top: -2px;*/
}
.cms-index-index .header-right .lang{color: #fff;}

.index .header-right .lang {
    color: var(--secondary-color);
}

.header-right .icon-link {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
    margin: 0px;
}

.index .header-right .icon-link {
    color: var(--secondary-color);
}

.header-right .icon-link:hover {
    opacity: 0.7;
}
.header-right .icon-link.minicart-wrapper:hover {opacity: 1}
.header-right .icon-link svg g rect,
.header-right .icon-link svg path {
    fill: var(--primary-color);
}

.index .header-right .icon-link svg g rect,
.index .header-right .icon-link svg path {
    fill: var(--secondary-color);
}


.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.hamburger-btn svg {
    stroke: var(--secondary-color);
}

.navigation_header .close_side_bar,
.navigation_header .logo {
    display: none;
}

.navigation-footer,
.search {
    display: none;
}

/* Desktop Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.search-overlay.is-open {
    display: block;
}

.search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.search-overlay__panel {
    position: relative;
    width: 100%;
    padding: 22px 0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

#desktopSearchInput {
    flex: 1;
    height: 52px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
}


#search_mini_form {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    float: unset;
}


#desktopSearchInput:focus {
    border-color: #cfcfcf;
}

.minicart-wrapper .action.showcart{line-height: 13px;}
.search-overlay__close {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    border-radius: 14px;
    cursor: pointer;
}

.search-overlay__close img {
    width: 18px;
    height: 18px;
}

body.search-open {
    overflow: hidden;
}
#minicart-content-wrapper{color: #000;}

/* Responsive Utilities */
@media (max-width: 1023px) {
.cms-index-index .header-right .lang{color: #000;}
.minicart-wrapper.active .block-minicart{left: 0px;}
.minicart-wrapper .block-minicart:after{left: 4px;}
.minicart-wrapper .block-minicart:before{left: 5px;}
    li.view-ar.switcher-option a:visited{color: #000;}

    .search {
        display: block;
    }

    .search {
        padding: 18px 25px 10px;
        background: var(--header_bg);
        border-bottom: 1px solid #eee;
    }

    .drawer-search {
        position: relative;
        width: 100%;
    }

    .drawer-search__icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #9a9a9a;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }

    .drawer-search__input {
        width: 100%;
        height: 54px;
        border: 2px solid #dadada;
        border-radius: 14px;
        padding: 0 16px 0 48px;
        font-size: 16px;
        background: #fff;
        outline: none;
    }

    .drawer-search__input::placeholder {
        color: #9a9a9a;
    }

    .drawer-search__input:focus {
        border-color: #c9c9c9;
    }

    .d-none-lg {
        display: none !important;
    }

    .index .header-right .icon-link svg g rect,
    .index .header-right .icon-link svg path {
        fill: var(--primary-color);
    }
    .index .header-right .icon-link{color: #000;}

    .index .site-header {
        background: var(--secondary-color);
        position: fixed;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .site-header {
        padding: 15px 0;
        position: relative;
    }

    /* Keep the cart left aligned, logo middle, hamburger right */
    .header-mobile-left,
    .header-right {
        flex: 1;
        min-width: 0;
    }

    .header-mobile-left {
        display: flex;
        justify-content: flex-start;
    }

    .header-right {
        display: flex;
        justify-content: flex-end;
    }

    /* Absolutely position the single unified cart icon on the left for mobile */
    .header-right .cart-desktop,
    .header-right .account-desktop {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-color);
        margin: 0;
    }


    .header-right .account-desktop {
        left: 60px;
    }

    .index .header-right .lang {
        color: var(--primary-color);
    }

    .header-left {
        flex: 2;
        display: flex;
        justify-content: center;
        min-width: 0;
    }

    .header-mobile-left .icon-link svg {
        stroke: var(--primary-color);
    }

    .hamburger-btn svg {
        stroke: var(--primary-color);
    }


    /* Pushbar Offcanvas Styles */

    [data-pushbar-direction="right"][data-pushbar-id],
    [data-pushbar-direction="left"][data-pushbar-id] {
        /* position: absolute; */
        top: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    [data-pushbar-direction="right"][data-pushbar-id], [data-pushbar-direction="left"][data-pushbar-id]{max-width: 60%;}

    .navigation-footer {
        display: block;
        padding: 35px 25px;
        margin-top: auto;
    }

    .connect-title {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .social-icons {
        display: flex;
        gap: 15px;
        margin-bottom: 40px;
    }

    .social-icon {
        width: 55px;
        height: 55px;
        background-color: #0C1017;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .social-icon:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    .social-icon svg {
        max-width: 24px;
        max-height: 24px;
    }

    .footer-bottom-links {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .footer-bottom-links a {
        font-size: 13px;
        color: #888;
        font-weight: 400;
        text-decoration: none;
    }

    .footer-bottom-links .divider {
        color: #999;
        font-size: 16px;
    }

    .navigation_header {
        position: relative;
        display: inline-block;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .navigation_header .logo {
        display: block;
        background-color: var(--header_bg);
        padding: 50px 30px 20px;
        /*border-bottom: 1px solid #eee;*/
    }

    .navigation_header .close_side_bar {
        position: absolute;
        right: 28px;
        top: 50px;
    }

    .navigation_header .close_side_bar {
        display: block;
    }

    aside .navigation_header .mob_icon-link {
        position: absolute;
        right: 60px;
        top: 50px;
        display: block;
    }


    aside .navigation_header .mob_icon-link svg {
        fill: var(--primary-color);
    }

    .navigation-outer {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: calc(100vh - 230px);
    }

    header .navigation {
        padding-inline: 25px;
        position: relative;
        height: auto;
        background-color: #ffffff;
        width: 100%;
    }

    .header-middle {
        width: 100%;
    }

    .header-middle ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 0;
    }

    .navbar li {
        width: 100%;
    }

    header .header-middle ul li a,
    .index header .header-middle ul li a,
    header .navbar li a,
    .index header .navbar li a {
        color: #000000;
        padding-block: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px;
        font-weight: 500;
        text-transform: uppercase;
    }

    header .header-middle ul li:last-child a,
    header .navbar li:last-child a {
        border-bottom: none;
    }

     /*Mobile Dropdown */
    .menu-item-has-children .dropdown-icon {
        border: none;
        top: 0;
        margin-left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 20px;
        transition: none;
        display: none;
        /*/* Toggle with JS */
        width: 100%;
        background: transparent;
    }

    .menu-item-has-children.active .sub-menu {
        display: block;
        padding-bottom: 20px;
        padding-left: 0;
    }

    .menu-item-has-children.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .navbar .sub-menu li a,
    .index .navbar .sub-menu li a {
        padding-block: 10px;
        font-size: 15px;
        color: #666;
        border-bottom: none;
        padding-left: 0;
    }

    .index .dropdown-icon svg {
        stroke: var(--primary-color);
    }
}



@media (min-width: 1024px) {
    .d-lg-none {
        display: none !important;
    }


    aside .navigation_header .mob_icon-link {
        display: none !important;
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    .header-middle ul {
        gap: 15px;
    }

    .header-middle ul li a {
        font-size: 15px;
    }
}

@media (min-width: 1281px) and (max-width: 1440px) {
    .header-middle ul li a {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    [data-pushbar-direction="right"][data-pushbar-id], [data-pushbar-direction="left"][data-pushbar-id]{max-width: 85%;}

}