/* Header Topbar Styles */
.header-topbar {
    background-color: var(--blue);
    padding:5px 0;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 50px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    will-change: max-height, padding, opacity, transform;
}

/* Hide topbar when scrolled */
.main-header-wrapper.sticky .header-topbar {
    max-height: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(-100%);
    margin: 0;
    visibility: hidden;
}
.main-header-login-button a{
    color:var(--dark);
}
.header-topbar-left-content p {
    color: var(--white);
    font-size: var(--font-xxxs);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Main Header Styles */

.main-header-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    transition: all 0.3s ease;
}

/* Sticky header styles */
.main-header-wrapper.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
    will-change: transform;
}

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    z-index: 1000;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: padding;
}

.main-header-wrapper.sticky .main-header {
    padding: 12px 0;
    box-shadow: none;
}

 

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo Section */
 

.logo {
    display: inline-block;
    text-decoration: none;
}

.logo {
    max-width:200px; 
    display: block;
}

/* Search Section */
.header-search {
    flex: 1;
    max-width: 500px;
    margin-left: auto;
    margin-right: 30px;
    display: flex;
    justify-content: flex-end;
}

.header-search-form {
    width: 100%;
    max-width: 400px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #E8EFF5;
    border-radius: 8px;
    padding: 0;
    border: 1px solid #E8EFF5;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(24, 95, 158, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    left: 15px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.search-input {
    flex: 1;
    border: none!important;
    background: transparent!important;
    padding: 6px 20px 8px 40px!important;
    font-size: var(--font-xxxs)!important;
    color: var(--dark)!important;
    outline: none!important;
    font-family: 'Aeonik-Regular', sans-serif!important;
    box-shadow: none!important;
    margin-bottom:0!important;
    height:auto!important;
    outline: none!important;
    border: none!important;
}

.search-input::placeholder {
    color: #333536;
    opacity: 0.7;
}
.search-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.search-input:focus,
.search-input:focus-visible,
.search-input:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}


.search-input:focus,
.search-input:focus-visible,
.search-input:active {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.search-button {
    background: transparent;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    display: none;
}

/* Navigation Items */
.header-nav {
    flex-shrink: 0;
}

.header-nav-items {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav-item {
    position: relative;
}

.header-nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    font-size: var(--font-xxxs);
    transition: all 0.3s ease;
    position: relative;
}

.header-nav-link:hover {
    color: var(--blue);
    opacity: 0.8;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.3s ease;
}

.header-nav-link:hover .nav-icon {
    transform: scale(1.1);
}

/* User Account Dropdown */
.user-account-dropdown {
    position: relative;
}

.account-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.user-account-dropdown:hover .account-dropdown-menu,
.user-account-dropdown.active .account-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--dark);
    font-size: var(--font-xxxs);
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #F5F5F5;
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* Cart Icon with Count */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background-color: var(--orange);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Minicart dropdown adjustments to keep popup compact and anchored to icon */
.minicart-wrapper {
    position: relative;
    display: inline-block;
}
        .minicart-wrapper  {
            margin-left: 0!important;
        }
.block-minicart {
    position: absolute !important;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: 90vw;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1002;
    padding: 0;
}

#minicart-content-wrapper {
    padding: 12px;
    max-height: 60vh;
    overflow-y: auto;
    min-width: 280px;
}

.minicart-wrapper .action.showcart {
    padding: 6px;
}

.cart-icon-wrapper svg.nav-icon {
    width: 24px;
    height: 24px;
    margin-top: 5px;
}

.cart-count {
    bottom: 15px;
    right: -10px;
    min-width: 18px!important;
    height: 18px!important;
    font-size: 10px!important;
    background:transparent !important;
    color: #000!important;
    height: 20px;
    line-height: 20px;
    border-radius: 2px;
    display: inline-block;
    margin: 3px 0 0;
    min-width: 20px;
    overflow: hidden;
    padding: 0 3px;
    text-align: center;
    white-space: normal;
    box-shadow:none!important;
    text-shadow:none!important;
    line-height: 18px!important;
}
.minicart-wrapper .action.showcart .counter-number {
    text-shadow: none!important;
}
.block-minicart .empty, .block-minicart .empty-cart {
    font-size: 14px;
    color: var(--dark);
    margin: 0;
}
.minicart-wrapper .action.showcart{
    padding: 0;
}
.minicart-wrapper .action.showcart:before, .minicart-wrapper .action.showcart.active:before {
    content: none;
}

/* Wishlist link styling */
.link.wishlist {
    display: inline-flex;
    align-items: center;
    margin-right: 0;
}

.link.wishlist a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
    font-size: var(--font-xxxs);
}

.link.wishlist .counter.qty {
    background: transparent;
    color: #000;
    border-radius: 10px;
    padding: 0 6px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-left: 6px;
    position: absolute;
    top: -10px;
    right: -10px;
}
.link.wishlist .counter:after {
    content: '';
}
.link.wishlist .counter:before {
    content: '';
}
.navbar-item {
    position: relative;
    margin-bottom: 0;
}

.navbar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 32px;
    color: var(--white)!important;
    text-decoration: none!important;
    font-size: var(--font-xxxs);
    font-weight: 500;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.navbar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #F5F5F5;
}

.dropdown-arrow {
    width: 12px;
    height: 8px;
    transition: transform 0.3s ease;
}

.navbar-item.dropdown:hover .dropdown-arrow,
.navbar-item.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Products Dropdown Menu */
.products-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 150%;
    transform: translateX(-50%) translateY(-10px);
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: calc(100vw - 80px);
    max-width: 1200px;
    min-width: 800px;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
    margin-left: 0;
}

.navbar-item.dropdown:hover .products-dropdown-menu,
.navbar-item.dropdown.active .products-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    
    gap: 12px;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dropdown-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
    text-decoration: none;
    color: var(--dark)!important;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    background-color: #E8EFF6;
}

.dropdown-category-item:hover {
    background-color: var(--blue);
    color: var(--white)!important;
}

.dropdown-category-item:hover .category-icon img {
    filter: brightness(0) invert(1);
}

.dropdown-category-item:hover .category-arrow {
    opacity: 1;
    color: var(--white);
}

.dropdown-category-item.active {
    background-color: var(--blue);
    color: var(--white);
}

.dropdown-category-item.active .category-icon img {
    filter: brightness(0) invert(1);
}

.dropdown-category-item.active .category-arrow {
    opacity: 1;
    color: var(--white);
}

.category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-name {
    font-size: var(--font-xxxs);
    font-weight: 400;
    flex: 1;
    text-align: left;
}

.category-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    color: var(--dark);
}

.dropdown-category-item:hover .category-arrow {
    opacity: 1;
}

.navbar-item.mobilescreen{
    display: none;
}







/* Responsive Styles */
@media screen and (max-width: 991px) {
    .navbar-item.mobilescreen{
        display: block;
    }
    .nav-wrapper {
        gap: 20px;
    }

    .header-search {
        max-width: 400px;
    }

    .logo {
        max-width: 150px;
    }

    .header-nav-items {
        gap: 16px;
    }

    .login-link span {
        display: none;
    }

    .login-link::before {
        content: "Login";
        font-size: var(--font-xxxs);
    }
}
.main-header-login-button.webscreen{
    display: block;
}
.main-header-login-button.mobilescreen{
    display: none;  
}
@media screen and (max-width: 991px) {
    .main-header-login-button.mobilescreen{
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        width: 100%;
        color: #060606 !important;
        text-decoration: none;
        font-size: var(--font-xxxs);
    }
    .main-header-login-button.webscreen{
        display: none;
    }
    .navbar-mobile-controls{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 5px;
    }
    .navbar-hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        margin: 5px 0;
        background: #060606;
        border-radius: 2px;
        transition: all 0.4s ease;
    }
    .navbar-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .navbar-hamburger.active span:nth-child(2) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .navbar-mobile-controls button{
        border: none;
        background: transparent;
        padding: 0;
        margin: 0;
        cursor: pointer;
        outline: none;
        box-shadow: none;
        border-radius: 0;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;
        -o-appearance: none;
    }

    .header-navbar {
        display: block;
        position: sticky;
        top: 0;
        z-index: 999;
        background-color: var(--white)!important;

    }

    .header-navbar .container {
        flex-direction: column;
        padding: 0;
        position: relative;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: transparent!important;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-menu.active {
        display: flex;
        max-height: 1000px;
        padding: 10px 0;
        justify-content: flex-start;
        justify-content: flex-start;
        height: calc(100svh - 100px);
        background-color: var(--white)!important;
        overflow: scroll;
    }

    .navbar-item {
        width: 100%;
        border-bottom: 1px solid rgb(0 0 0 / 20%);
    }

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

    .navbar-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        width: 100%;
        color: #060606!important;
        text-decoration: none;
        font-size: var(--font-xxxs);
    }

    .dropdown-arrow {
        transition: transform 0.3s ease;
        margin-left: 5px;
    }

    .navbar-item.dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Show products dropdown menu in mobile - override desktop styles */
    .header-navbar .products-dropdown-menu {
        display: none !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        background-color: transparent !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 1 !important;
        border-radius: 0 !important;
    }

    .header-navbar .navbar-item.dropdown.active .products-dropdown-menu,
    .header-navbar .navbar-item.dropdown.active > .products-dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: scroll;
        max-height: 35vh;
    }

    .products-dropdown-menu .dropdown-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .products-dropdown-menu .dropdown-grid > * {
        display: block !important;
        width: 100% !important;
    }

    .products-dropdown-menu .dropdown-category-item {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 15px 20px 15px 20px !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgb(0 0 0 / 10%) !important;
        background-color: transparent !important;
        color: var(--white) !important;
        text-decoration: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
 

   

    .products-dropdown-menu .dropdown-category-item .category-icon {
        width: 32px !important;
        height: 32px !important; 
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .products-dropdown-menu .dropdown-category-item .category-icon img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        filter: brightness(0) invert(1) !important;
    }

    .products-dropdown-menu .dropdown-category-item:hover .category-icon img {
        filter: brightness(0) invert(1) !important;
    }

    .products-dropdown-menu .dropdown-category-item .category-name {
        flex: 1 !important;
        font-size: var(--font-xxxs) !important;
        font-weight: 400 !important;
        text-align: left !important;
        color: #060606;
    }
    .products-dropdown-menu .dropdown-category-item .category-name:hover {
        flex: 1 !important;
        font-size: var(--font-xxxs) !important;
        font-weight: 400 !important;
        text-align: left !important;
        color: #fff;
    }
    .products-dropdown-menu .dropdown-category-item:hover {
        background-color: var(--blue) !important;
        color: var(--white) !important;
    }
    .category-icon{
        display: none!important;
    }

    .products-dropdown-menu .dropdown-category-item .category-arrow {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
        opacity: 0.6 !important;
        filter: brightness(0) invert(1) !important;
        color: var(--white) !important;
    }

    .products-dropdown-menu .dropdown-category-item:hover .category-arrow {
        opacity: 1 !important;
    }

    .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
.abs-toggling-title-mobile:after, .block-wishlist-management .wishlist-select .wishlist-name:after, .block-collapsible-nav .title:after {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-size: 12px;
        line-height: inherit;
        color: inherit;
        content: '\e622';
        font-family: 'luma-icons';
        /* margin: 30px 0 0 0; */
        vertical-align: middle;
        display: inline-block;
        font-weight: normal;
        overflow: hidden;
        speak: none;
        text-align: center;
        position: absolute;
        margin: auto;
        height: 100%;
        display: flex;
        align-items: center;
    }
    .cart-icon-wrapper svg.nav-icon {
    width: 24px;
    height: 24px;
    margin-top: 0;
}
    .main-header {
        padding: 15px 0;
    }

    .nav-wrapper {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-logo {
        order: 1;
        flex: 0 0 auto;
    }

    .header-nav {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0;
        margin-top: 10px;
    }

    

    .header-nav-items {
        gap: 12px;
    }

    .nav-icon {
        width: 20px;
        height: 20px;
    }

    .search-input {
        padding: 10px 15px 10px 45px;
        font-size: 14px;
    }

    .search-icon {
        width: 18px;
        height: 18px;
        left: 12px;
    }

    .cart-count {
        font-size: 10px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
    }


    .account-dropdown-menu {
        right: -20px;
    }

    /* Ensure hamburger button is visible on mobile */

    .products-dropdown-menu {
        max-width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        padding: 20px;
    }

    .navbar-item.dropdown:hover .products-dropdown-menu,
    .navbar-item.dropdown.active .products-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dropdown-category-item {
        padding: 14px 10px;
    }

    .category-icon {
        width: 28px;
        height: 28px;
    }

    .category-name {
        font-size: 14px;
    }
}

@media screen and (max-width: 479px) {
    .header-topbar-left-content p {
        font-size: 12px;
    }

    .logo {
        max-width: 150px;
    }

    .header-nav-items {
        gap: 10px;
    }

    .login-link {
        padding: 6px 12px;
        font-size: 12px;
    }

    .search-input {
        font-size: 14px; 
    }
.search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 4px 20px 8px 35px !important;
}
        .search-icon {
        width: 14px;
        height: 14px;
        left: 12px;
    }
    .search-input::placeholder {
        font-size: 12px;
    }
}

/* Homepage specific header styles */
/* .cms-index-index .main-header {
    background-color: transparent;
}

.cms-index-index .header-topbar {
    background-color: rgba(244, 111, 50, 0.9);
}

.cms-index-index .nav-wrapper {
    color: var(--white);
}

.cms-index-index .header-nav-link {
    color: var(--white);
}

.cms-index-index .search-input-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
}

.cms-index-index .search-input {
    color: var(--dark);
}

.cms-index-index .logo {
    filter: brightness(0) invert(1);
} */

/* Orange Navigation Bar */
.header-navbar {
    background-color: var(--orange);
    padding: 0; 
    z-index: 999;
    width: 100%;
    transition: all 0.3s ease;
}

.main-header-wrapper.sticky .header-navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

 
.header-navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Navigation Hamburger Button - Moved to responsive.css */

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Desktop - Always show menu */
@media screen and (min-width: 992px) {
    .navbar-menu {
        display: flex !important;
        max-height: none !important;
    }
    
    .navbar-mobile-controls {
        display: none !important;
    }
}

@media screen and (max-width: 350px) {
 
    .logo {
        max-width: 100px;
    }
}