/* ==========================================
   DUNE THEME: HEADER STYLES
========================================== */

/* --- ১. স্টিকি প্রিমিয়াম হেডার লেআউট --- */
.site-header.custom-dune-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.dune-solid-header { 
    background-color: #ffffff !important;
}

.dune-transparent-header { 
    background: transparent !important; 
    position: absolute !important; 
}

.custom-dune-header .dune-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 80px !important;
    position: relative !important;
}

/* লোগো ও ব্র্যান্ডিং */
.custom-dune-header .site-branding {
    flex: 0 0 auto !important;
    padding: 5px 0 !important;
    display: flex !important;
    align-items: center !important;
}

.custom-dune-header .site-branding img {
    max-height: 56px !important;
    width: auto !important;
    display: block !important;
}

.custom-dune-header .site-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #100d0d !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
}

/* ডেস্কটপ মেইন মেনু */
.custom-dune-header .site-navigation.dune-nav {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.custom-dune-header .main-navigation ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 30px !important;
}

.custom-dune-header .main-navigation ul li a {
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #100d0d !important;
    text-decoration: none !important;
    padding: 10px 0 !important;
    position: relative !important;
    transition: color 0.2s ease !important;
}

.custom-dune-header .main-navigation ul li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 5px !important;
    left: 0 !important;
    width: 0 !important;
    height: 1.5px !important;
    background-color: #100d0d !important;
    transition: width 0.3s ease !important;
}

.custom-dune-header .main-navigation ul li a:hover::after,
.custom-dune-header .main-navigation ul li.current-menu-item a::after {
    width: 100% !important;
}

/* ডানপাশের আইকন টুলস */
.header-right-items {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-user{
    width:62px !important;
}
.custom-dune-header .site-tools.dune-tools {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    
}
.custom-dune-header .dune-tools .site-tools{
    max-width: 40px !important;
}

.custom-dune-header .site-tools a,
.custom-dune-header .site-tools button,
.dune-menu-trigger, .dune-mobile-search-trigger {
    color: #100d0d !important;
    font-size: 16px !important;
    background: transparent !important;
    border: none !important;
    padding:  0px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    transition: transform 0.3s ease !important;
}

.dune-mobile-search-trigger svg {
    stroke: #100d0d !important;
    transition: stroke 0.3s ease !important;
}

.dune-mobile-search-trigger:hover {
    transform: scale(1.1) !important;
}

/* --- ২. মোবাইল ড্রয়ার মেনু --- */
.dune-mobile-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    z-index: 9998 !important;
}

.dune-mobile-drawer {
    position: fixed !important;
    top: 0 !important;
    left: -300px !important;
    width: 280px !important;
    height: 100% !important;
    background: #ffffff !important;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1) !important;
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1) !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    transform: translateX(0) !important;
}

body.dune-drawer-active .dune-mobile-drawer-overlay, 
.dune-mobile-drawer-overlay.active {
    visibility: visible !important;
    opacity: 1 !important;
}

body.dune-drawer-active .dune-mobile-drawer, 
.dune-mobile-drawer.active {
    transform: translateX(300px) !important;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    text-transform: uppercase;
}

.dune-drawer-close {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.drawer-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

.dune-mobile-drawer ul, .drawer-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dune-mobile-drawer ul li, .drawer-content li {
    border-bottom: 1px solid #f2f2f2 !important;
}

.dune-mobile-drawer ul li a, .drawer-content a {
    display: block !important;
    padding: 12px 20px !important;
    color: #100d0d !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

/* --- ৩. AJAX SEARCH OVERLAY --- */
.dune-ajax-search-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease !important;
}

.dune-ajax-search-container.active {
    visibility: visible !important;
    opacity: 1 !important;
}

.search-container-inner {
    width: 100% !important;
    max-width: 700px !important;
    padding: 20px !important;
    position: relative !important;
    transform: translateY(30px);
    transition: transform 0.4s ease !important;
    text-align: center !important;
}

.dune-ajax-search-container.active .search-container-inner {
    transform: translateY(0);
}

.dune-search-close {
    position: absolute !important;
    top: -60px !important;
    right: 10px !important;
    background: none !important;
    border: none !important;
    font-size: 50px !important;
    line-height: 1 !important;
    color: #100d0d !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
}

.dune-search-close:hover {
    transform: rotate(90deg) !important;
}

.search-heading {
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #666 !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
}

.search-form-wrapper form {
    width: 100% !important;
    position: relative !important;
}

.search-form-wrapper input[type="search"],
.search-form-wrapper input.search-field {
    width: 100% !important;
    border: none !important;
    border-bottom: 2px solid #100d0d !important;
    background: transparent !important;
    font-size: 24px !important;
    padding: 15px 0 !important;
    color: #100d0d !important;
    outline: none !important;
    text-align: center !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.search-form-wrapper input[type="search"]::placeholder,
.search-form-wrapper input.search-field::placeholder {
    color: #ccc !important;
    font-weight: 300 !important;
}

.search-form-wrapper button[type="submit"] { 
    display: none !important; 
}

/* --- হেডার রেস্পন্সিভ কোড --- */
@media (min-width: 992px) {
    .hide-on-desktop { display: none !important; }
}

@media (max-width: 991px) {
    .hide-on-mobile, .custom-dune-header .site-navigation.dune-nav { 
        display: none !important; 
    }
    
    .custom-dune-header .dune-header-inner {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        height: 60px !important; 
    }
    
    .header-left-items {
        justify-self: start !important;
        display: flex !important;
        gap: 15px !important;
    }
    
    .custom-dune-header .site-branding {
        justify-self: center !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }
    
    .header-right-items, .custom-dune-header .site-tools.dune-tools {
        justify-self: end !important;
        gap: 15px !important;
    }
    
    .custom-dune-header .site-tools .header-search-icon { 
        display: none !important; 
    }
}

/* --- হেডার কন্টেইনার ফিক্স --- */
.site-header .page-width,
.site-header .woostify-container,
.site-header .site-header-inner,
.custom-dune-header .page-width,
.custom-dune-header .woostify-container,
.woocommerce-shop .site-header .site-header-inner,
.archive.woocommerce .site-header .site-header-inner,
.tax-product_cat .site-header .site-header-inner,
.woocommerce-shop .page-width,
.archive.woocommerce .page-width,
.tax-product_cat .page-width {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.site-header, 
.custom-dune-header,
.woocommerce-shop .custom-dune-header,
.archive.woocommerce .custom-dune-header,
.tax-product_cat .custom-dune-header {
    width: 100% !important;
    display: block !important;
}