#header {
    position: sticky;
    z-index: 99;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

#header.mobile-header {
    background: var(--color1);
    padding: 22px 0;
    pointer-events: auto;
}

.header-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-top {
    background: linear-gradient(to right, #e8e9ea 20%, #fff 20%);
    pointer-events: auto;
}

.header-bottom {
    background: linear-gradient(to right, #fff 20%, #e8e9ea 20%);
    position: relative;
    z-index: -1;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.header-bottom:not(.search-on) {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}

.header-bottom--hidden {
    transform: translateY(-80px);
    opacity: 0;
}

.header-bottom.search-on {
    transform: unset;
    position: unset;
    opacity: 1;
}

/* ======================
   TOP HEADER SECTION
====================== */
.header-top-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-logo {
    max-width: 117px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.header-logo .header-logo-inner {
    width: 100%;
}

.header-logo img {
    width: 100%;
    height: auto;
}

.header-menu-wrapper {
    display: none;
    flex: 1 1 auto;
    justify-content: flex-start;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-family: var(--main_font);
    transition: 0.4s;
    background: none;
    border: none;
    gap: 0.75rem;
    color: #383838;
    padding: 0.5rem;
}

.user-profile:hover {
    color: #8A6A45;
}

.user-profile i {
    font-size: 1.25rem;
    color: #8A6A45;
}

.user-profile em {
    color: #CAD4DE;
    font-weight: bold;
    font-size: 18px;
}




/* Categories Wrapper */
.header-categories-wrapper {
    display: flex;
    flex: 0 0 auto;
    max-width: 40%;
}

/* Search Box Wrapper */
.header-searchbox-wrapper {
    display: flex;
    flex: 1 1 auto;
}

/* ======================
   HEADER COMPONENTS
====================== */
/* Header Top Menu */
.header-top-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 28%;
    justify-content: flex-end;
    position: relative;
    padding: 1rem 2rem 1rem 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="460" height="87" viewBox="0 0 460 87" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0H371.593C388.359 0 403.346 10.4562 409.134 26.1918L415.5 43.5L421.866 60.8082C427.654 76.5438 442.641 87 459.407 87H0V0Z" fill="%23E9EAEB"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
}

/* 
ul>li.menu-item-has-children {
    position: relative;
} */

/* Top Menu Styling */
ul.header-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 2rem;
}

ul.header-menu>li>a {
    color: var(--gray);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-family: var(--main_font);
    transition: 0.3s;
    border: none;
    display: block;
}

ul.header-menu>li a:hover {
    color: var(--color1);
}

ul.header-menu>li>a::before {
    content: '';
    width: 40px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background-color: var(--color2);
    display: inline-block;
    transition: 0.4s;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

ul.header-menu>li>a:hover::before {
    top: -22px;
}



.header-search-wrap {
    flex: 0 0 28%;
    position: relative;
    padding: 5px 5rem 6px 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="460" height="80" viewBox="0 0 460 80" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 87H371.593C388.359 87 403.346 76.5438 409.134 60.8082L415.5 43.5L421.866 26.1918C427.654 10.4562 442.641 0 459.407 0H0V87Z" fill="white"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
    margin-right: auto;
}

/* ======================
   MOBILE ICONS
====================== */
.header-mobile-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 1rem;
}

.header-mobile-actions>* {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}



.header-actions .mini-cart span:hover,
.header-actions .mini-cart span:hover i {
    background-color: var(--color1);
    color: #FFFFFF;
}

#mini_cart_count {
    position: absolute;
    top: -3px;
    right: -3px;
    font-family: var(--main_font);
    background-color: var(--color1);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    border: 1px solid var(--color1);
    padding-top: 3px;
}


/* --------------------
    Menu Mobile
-------------------- */
#mask {
    position: fixed;
    z-index: 10;
    background: #1424384a;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    backdrop-filter: blur(3px);
    pointer-events: auto;
}

#menumobile {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -300px;
    width: 250px;
    background: #DDC8AF;
    z-index: 10;
    transition: all 0.5s;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .3) !important;
    overflow-y: auto;
    padding-top: 63px;
}

#nomenumobile {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--color1);
    color: #fff;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.come-menumobile {
    right: 0 !important;
}

.title-mm {
    color: var(--color1);
    padding: 32px 25px 32px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
}

.title-mm img {
    user-select: none;
    max-width: 100px;
}

.btn-mm {
    padding: 0 20px;
    margin-top: 20px;
}

.btn-mm a {
    display: flex;
}

.title-sub-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-flow: row-reverse;
}


.main-mm {
    padding: 0 24px;
}

.main-mm ul li a {
    color: var(--color1);
    display: block;
    padding: 8px 0;
    position: relative;
    font-family: var(--main_font);
}

.main-mm ul li a:hover {
    color: var(--color3);
}

.main-mm ul li>.sub-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 300px;
    background: #DDC8AF;
    right: -300px;
    transition: 0.3s;
    z-index: 9;
    padding: 20px;
    padding-top: 80px;
}

.childer {
    position: absolute;
    left: 0;
    cursor: pointer;
    top: 10px;
    width: 25px;
    height: 25px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color1);
}

.come-submenu {
    right: 0 !important;
}

.sub-closer {
    cursor: pointer;
    top: 10px;
    width: 25px;
    height: 25px;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.sub-closer i {
    cursor: pointer;
    top: -1px;
    display: inline-block;
    padding: 3px;
    transform: rotate(-180deg);
    -webkit-transform: rotate(-180deg);
    position: relative;
    left: -1px;

}

.title-subcome {
    color: var(--color1);
    font-weight: normal;
    position: relative;
    top: 2px;
    font-size: 18px;
}

.icon-menu {
    font-size: 1rem;
}

/* Search Popup Styling */
.popup-footer-search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.popup-footer-search.active {
    display: flex;
}

.popup-footer-search .container {
    position: relative;
}

/* Gap Utility - Fallback for older browsers */
.gap-2 {
    gap: 0.5rem;
}

@supports not (gap: 0.5rem) {
    .header-actions>*+* {
        margin-right: 0.5rem;
    }

    .icons-header-mobile>*+* {
        margin-right: 0.5rem;
    }
}

/* Additional Polish */
#header .container {
    position: relative;
}

/* Smooth transitions */
.header-menu li,
.header-menu-categories li {
    position: relative;
}

/* Better dropdown positioning */
.header-menu-categories li.menu-item-has-children {
    position: relative;
}

.header-actions .header-wishlist,
.header-actions .head_btn_cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: radial-gradient(circle at center, #8a6a45e1 0%, #DDC8AF 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    transition: 0.4s;
    cursor: pointer;
    position: relative;
}

.header-actions .header-wishlist:hover,
.header-actions .head_btn_cart:hover {
    background-color: var(--color1);
    color: #fff;
}

.head_btn_cart {
    cursor: pointer;
    position: relative;
}

.header-mobile-actions .head_btn_cart:hover {
    color: #fff;
}

/* Ensure proper z-index for dropdowns */
.header-menu li.menu-item-has-children:hover,
.header-menu-categories li.menu-item-has-children:hover {
    z-index: 1000;
}

/* --------------------
    mini cart
-------------------- */
.shopping_box_close:hover {
    background-color: var(--color2);
}

.shopping_box_close {
    cursor: pointer;
    color: #fff;
    background-color: var(--color1);
    font-size: 10px;
    display: flex;
    transition: 0.4s;
    transform-origin: center;
    line-height: 1;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
}

.woocommerce-mini-cart__empty-message {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--color1);
    font-size: 1.25rem;
}

.head_item_box_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    padding: 12px 32px 24px 16px;
    color: var(--color1);
}

.head_item_box {
    position: fixed;
    left: -100%;
    top: 0;
    bottom: 0;
    z-index: 11;
    padding-top: 80px;
    background: #DDC8AF;
    transition: 0.5s;
    max-width: calc(100% - 30px);
    width: 300px;
    overflow: auto;
    scrollbar-color: var(--color1) #fff;
    scrollbar-width: thin
}



.head_item_box.active {
    left: 0
}

.head_item_box::-webkit-scrollbar {
    width: 5px
}

.head_item_box::-webkit-scrollbar-track {
    background: #fff
}

.head_item_box::-webkit-scrollbar-thumb {
    background: var(--color1)
}

.woocommerce-mini-cart-total-btn {
    background-color: var(--color1);
    padding: 1rem;
}

.woocommerce-mini-cart__total.total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    color: #fff;
}

.widget_shopping_cart_content .woocommerce-mini-cart {
    overflow: auto;
    flex-direction: column;
    display: flex;
    height: calc((var(--vh, 1dvh) * 100) - 260px);
    padding: 0 14px;
    gap: 11px;
}



.widget_shopping_cart_content .buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.widget_shopping_cart_content .buttons .button {
    justify-content: center;
    background: #fff;
    color: var(--color1);
    border-radius: 0;
    flex-grow: 1;
    height: 30px;
}

.woocommerce_mini_cart_product {
    background: #fff;
    position: relative;
    padding: 10px 9px;
}

.woocommerce_mini_cart_product .variation {
    display: flex;
    gap: 5px;
    line-height: 1;
    padding-top: 0.5rem;
    color: var(--gray);
    font-size: 13px;
}

.woocommerce_mini_cart_product .variation dd:not(:last-child) {
    padding-left: 5px;
    border-left: 1px solid var(--color3);
}

.remove.remove_from_cart_button:hover {
    border: 2px solid transparent;
    background-color: var(--color1);
    color: #fff;
}

.remove.remove_from_cart_button {
    cursor: pointer;
    color: #fff;
    background-color: #B71532;
    font-size: 10px;
    display: flex;
    transition: 0.4s;
    transform-origin: center;
    line-height: 1;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    align-self: end;
    position: absolute;
    left: 6px;
    bottom: 6px;
}


.detail-mini.product-item {
    all: unset;
    width: 100%;
    display: block;
    margin-right: 10px;
}

.quantity-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-mini .quantity {
    display: flex;
    gap: 8px;
}

.woocommerce_mini_cart_product img {
    max-width: 88px;
    aspect-ratio: 2 / 2.5;
    object-fit: cover;
}

.product-mini-title {
    font-size: 14px;
    line-height: 1.3;
}

.woocommerce_mini_cart_product .price>.woocommerce-Price-amount bdi,
.woocommerce_mini_cart_product .price ins {
    font-size: 16px;
}

.woocommerce_mini_cart_product .price del {
    font-size: 12px;
}

.woocommerce_mini_cart_product .on-sale {
    display: none;
}

.woocommerce_mini_cart_product .price {
    margin-top: 10px;
}
/* Logo wrapper: column layout, logo on top and shoar text below */
.header-logo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
}

/* Phase 2: logo moves up after roll-in, then shoar appears below */
.header-logo.active .header-logo-inner {
    transform: translateY(-14px);
}

/* Main logo SVG: elements start off-screen right, then roll into place */
.header-logo-svg {
    display: block;
    overflow: visible;
}

.header-logo-svg .svg-elem-1,
.header-logo-svg .svg-elem-2,
.header-logo-svg .svg-elem-3,
.header-logo-svg .svg-elem-4,
.header-logo-svg .svg-elem-5 {
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1),
                opacity 0.35s ease-out;
}

.header-logo-svg .svg-elem-1 { transition-delay: 0s; }
.header-logo-svg .svg-elem-2 { transition-delay: 0.08s; }
.header-logo-svg .svg-elem-3 { transition-delay: 0.16s; }
.header-logo-svg .svg-elem-4 { transition-delay: 0.24s; }
.header-logo-svg .svg-elem-5 { transition-delay: 0.32s; }

/* Active: elements in place */
.header-logo-svg.active .svg-elem-1,
.header-logo-svg.active .svg-elem-2,
.header-logo-svg.active .svg-elem-3,
.header-logo-svg.active .svg-elem-4,
.header-logo-svg.active .svg-elem-5 {
    transform: translateX(0);
    opacity: 1;
}

/* Shoar text SVG: hidden until phase 2, fades in as logo moves up */
.header-logo-shoar {
    display: block;
    width: 110px;
    height: auto;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease-out 0.85s, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.85s;
    pointer-events: none;
}

.header-logo.active .header-logo-shoar {
    opacity: 1;
    transform: translateY(0);
}

/* ======================
   DESKTOP STYLES (992px+)

====================== */
@media (min-width: 768px) {
    .header-menu-wrapper {
        display: flex;
        padding-right: 0;
    }

    .header-menu {
        display: flex;
    }

    .header-bottom-section {
        display: flex;
        min-height: 3rem;
    }

    svg.header-logo-svg {
        width: 90px;
    }
}

@media (min-width: 992px) {

    /* Logo */
    .header-logo {
        max-width: 140px;
        padding-top: 36px;
    }

    svg.header-logo-svg {
        width: 140px;
    }

    /* Show Desktop Elements */
    .header-menu-wrapper {
        padding-right: 2.5rem;
    }

    .header-actions-wrapper {
        display: flex;
    }



    /* Hide Mobile Elements */
    .header-mobile-actions {
        display: none;
    }

    /* Top Menu */
    .header-top-menu nav {
        width: 100%;
    }


}

@media screen and (min-width: 2400px) {
    .header-top {
        background: linear-gradient(to right, #e8e9ea 30%, #fff 20%);
    }

    .header-bottom {
        background: linear-gradient(to right, #fff 30%, #e8e9ea 20%);
    }
}

/* ======================
   MOBILE STYLES (< 992px)
====================== */
@media (max-width: 1399.9px) {
    .header-actions {
        flex: 0 0 32%;
    }

    .header-search-wrap {
        flex: 0 0 32%;
    }
}

@media (max-width: 1199.9px) {
    .header-actions {
        flex: 0 0 38%;
    }

    .header-search-wrap {
        flex: 0 0 38%;
    }
}

@media (max-width: 991.99px) {
    span.user-name {
        display: none;
    }

    .header-logo {
        max-width: 90px;
    }

    .icons-header-mobile .head_btn_cart #mini_cart_count {
        top: -8px;
        right: -8px;
        background: #fff;
        color: var(--color1);
    }

    .header-search-wrap {
        padding: 13px 50px 13px 0;
        flex: 0 0 27%;
    }
}

@media (max-width: 450px) {}

@media (min-width: 992px) {
    .head_item_box {
        width: 400px;
        padding-top: 100px;
    }

    .widget_shopping_cart_content .woocommerce-mini-cart {

        height: calc((var(--vh, 1dvh) * 100) - 280px);

    }
}

#header .header-inner .user-profile {
    appearance: none;
    border: none;
    background-color: transparent;
}