/* Hide default Astra header and others */
.site-header,
#masthead,
.ast-main-header-wrap,
.elementor-location-header {
    display: none !important;
}

/* Ensure our header is visible */
#adst-header-wrapper {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 999;
    direction: rtl;
    /* font-family: 'Tajawal', sans-serif; */
    box-shadow: var(--adst-glass-shadow);
    transition: 0.3s;
}

/* Hide Nav Bar on Scroll */
#adst-header-wrapper.nav-hidden .adst-nav-bar {
    max-height: 0;
    opacity: 0;
    padding: 0;
    border-bottom: none;
    overflow: hidden;
}

/* Center the menu in the nav bar */
.adst-nav-bar .adst-container {
    justify-content: center !important;
}

/* Top Bar */
.adst-top-bar {
    padding: 15px 0;
    border-bottom: 1px solid var(--adst-border);
}

.adst-logo .logo {
    max-width: 150px;
    max-height: 50px;
}

/* Icons */
.adst-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.adst-icons .icon-item {
    color: var(--adst-primary);
    font-size: 22px;
    text-decoration: none;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--adst-accent);
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Utility Links */
.adst-right-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.adst-utility-links {
    display: flex;
    gap: 15px;
}

.adst-utility-links a {
    text-decoration: none;
    color: var(--adst-accent);
    font-size: 17px !important;
    transition: 0.3s;
}

.adst-utility-links a:hover {
    color: var(--adst-secondary);
}

/* Navigation Bar */
.adst-nav-bar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--adst-border);
    box-shadow: var(--adst-glass-shadow);
    position: relative;
    transition: 0.3s;
    max-height: 100px;
    opacity: 1;
    overflow: visible;
}

.adst-main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.adst-main-menu ul li a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: var(--adst-primary);
    font-weight: 500;
    font-size: 16px;
    transition: 0.3s;
}

.adst-main-menu ul li a:hover {
    color: var(--adst-secondary);
}

/* Mega Menu */
.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--adst-glass-shadow);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 100;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.mega-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
}

.mega-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--adst-primary);
    font-weight: bold;
}

.mega-column a {
    display: block;
    padding: 5px 0 !important;
    font-size: 14px !important;
    color: var(--adst-primary) !important;
    font-weight: 400 !important;
    text-decoration: none;
}

.mega-column a:hover {
    color: var(--adst-accent) !important;
    text-decoration: underline;
}

.mega-image img {
    max-width: 200px;
    max-height: 280px;
    border-radius: 4px;
    box-shadow: 0 5px 20px 2px #0002;
    border: 2px dashed var(--adst-primary);
}

/* Mobile Header Elements */
.adst-mobile-toggle {
    display: none;
    cursor: pointer;
}

.adst-mobile-search {
    display: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--adst-primary);
}

.adst-mobile-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    min-height: 100vh;
    height: 100%;
    background-color: white;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: auto;
}

.adst-mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.close-menu {
    font-size: 20px;
    cursor: pointer;
}

.mobile-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-links li a {
    display: flex;
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    font-size: 16px;
    transition: 0.3s;
    align-items: center;
    gap: 10px;
}

.mobile-links li a:hover,
.mobile-links li a.active {
    color: var(--adst-accent);
}

.mobile-links .submenu {
    display: none;
    padding-right: 20px;
    list-style: none;
    margin: 0;
}

.mobile-links .submenu li a {
    font-size: 14px;
}

.adst-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.adst-overlay.active {
    display: block;
}

/* Search Popup */
.adst-search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.adst-search-popup.active {
    display: flex;
}

.search-popup-content {
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.close-search {
    display: block !important;
    position: absolute;
    top: 40px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
    background: transparent !important;
    border: none;

    &:hover {
        color: red;
    }
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 1000px;
    align-items: center;
    border: 1px solid white;
    border-radius: 10px;
    overflow: hidden;
}

.search-field {
    padding: 30px !important;
    width: 100%;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 25px !important;
    font-weight: 300;
    text-align: center;
    outline: none !important;
    box-shadow: none !important;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-submit {
    font-size: 30px !important;
    cursor: pointer;
    color: #fff !important;
    background: var(--adst-accent) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 18px 20px !important;
    display: flex;
    align-items: center;
}

/* ================================== */
/* ==========<Responsiveness>======== */
/* ================================== */

/* Mobile Screen */
@media (max-width: 576px) {
    .adst-logo .logo {
        max-width: 100px;
        max-height: 40px;
    }

    .adst-icons {
        gap: 15px;
    }

    .adst-icons .icon-item {
        font-size: 20px;
    }

    .cart-count {
        font-size: 8px;
        width: 14px;
        height: 14px;
        top: -6px;
        right: -8px;
    }

    .adst-right-section {
        gap: 15px;
    }

    .adst-mobile-toggle {
        font-size: 20px;
        display: block;
    }

    .adst-mobile-search {
        display: block;
    }

    .close-search {
        top: 20px;
        right: 20px;
        font-size: 24px;
    }

    .search-field::placeholder {
        font-size: 14px;
    }

    .search-field {
        font-size: 14px !important;
        padding: 10px !important;
    }

    .search-submit {
        font-size: 20px !important;
        padding: 10px !important;
    }

    .adst-icons .search-trigger {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }
}

/* Small Screens  */
@media (min-width: 576px) and (max-width: 768px) {
    .adst-logo .logo {
        max-width: 120px;
        max-height: 50px;
    }

    .adst-mobile-toggle {
        font-size: 22px;
        display: block;
    }

    .adst-mobile-search {
        display: block;
        font-size: 22px;
    }

    .close-search {
        top: 20px;
        right: 20px;
        font-size: 24px;
    }

    .search-field::placeholder {
        font-size: 16px;
    }

    .search-field {
        font-size: 16px !important;
        padding: 12px !important;
    }

    .search-submit {
        font-size: 22px !important;
        padding: 12px !important;
    }

    .adst-icons .search-trigger {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }
}

/* Tablet Screen */
@media (min-width: 768px) and (max-width: 920px) {
    .adst-mobile-toggle {
        display: none;
    }

    .adst-icons .search-trigger {
        display: block;
    }

    .desktop-only {
        display: block !important;
    }
}

/* Large Screens */
@media (min-width: 920px) and (max-width: 1280px) {
    
}

/* X Large Screens */
@media (min-width: 1280px) {
    
}