/* Define Variables */
:root {
    --adst-primary: #000000;
    --adst-secondary: #30b787;
    --adst-accent: #30b787;
    --adst-border: #e5e7eb;
}

body {
    padding-top: 100px;
}

/* Hide default Astra header and others */
.site-header, 
#masthead, 
.ast-main-header-wrap,
.elementor-location-header {
    display: none !important;
}

/* Add padding to body to prevent content from being hidden behind fixed header */
body {
    padding-top: 140px; /* Adjust based on header height */
}

/* Ensure our header is visible */
#adst-header-wrapper {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.85); /* Glassy Background */
    backdrop-filter: blur(10px); /* Glassy Blur */
    -webkit-backdrop-filter: blur(10px);
    position: fixed; /* Fixed to stay at top */
    top: 0;
    left: 0;
    z-index: 999;
    direction: rtl; /* Arabic default */
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Container for alignment */
.adst-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* 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;
}

.adst-logo a {
    text-decoration: none;
    color: var(--adst-primary);
    text-align: center;
    display: block;
}

/* Icons */
.adst-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.adst-icons .icon-item {
    color: var(--adst-primary);
    font-size: 20px;
    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-utility-links {
    display: flex;
    gap: 15px;
}

.adst-utility-links a {
    text-decoration: none;
    color: var(--adst-secondary);
    font-size: 18px !important;
}

/* Navigation Bar */
.adst-nav-bar {
    background: transparent; /* Transparent to inherit glassy effect */
    border-bottom: 1px solid var(--adst-border);
    position: relative; /* Anchor for Mega Menu */
    transition: all 0.3s ease;
    max-height: 100px; /* Arbitrary max-height for transition */
    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: color 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%; /* Full width of adst-nav-bar */
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    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: 700;
}

.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: 100%;
    height: auto;
    border-radius: 4px;
}

/* Mobile Header Elements */
.adst-mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.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;
    background-color: white !important;
}

.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: block;
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.mobile-links li a {
    transition: .3s;
}

.mobile-links li a:hover {
    color: var(--adst-accent) !important;
    transform: translateX(-3px);
}

.mobile-links .submenu {
    display: none;
    padding-right: 15px;
    background: #f9f9f9;
}

.mobile-links .submenu li a {
    font-size: 14px;
    border-bottom: none;
}

.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;
}

/* ================================== */
/* ==========<Responsiveness>======== */
/* ================================== */

/* Mobile Screen */
@media (max-width: 576px) {
    .adst-mobile-toggle {
        font-size: 20px;
        display: block;
    }
    
    .adst-logo .logo {
        max-width: 100px;
        max-height: 40px;
    }

    .desktop-only {
        display: none !important;
    }

    .adst-container {
        padding: 0 15px;
    }

    .mobile-links li a {
        font-size: 15px;
        padding: 15px 0;
    }

    .mobile-links li a i {
        margin-left: 10px;
        color: var(--adst-secondary);
        width: 20px;
        text-align: center;
    }

    .mobile-divider {
        height: 1px;
        background: #aaa;
        margin: 10px 0;
    }
}

/* Small Screens  */
@media (min-width: 577px ) and (max-width: 768px){
    
    .adst-logo .logo {
        max-width: 120px;
        max-height: 50px;
    }

    .adst-mobile-toggle {
        font-size: 22px;
        display: block;
    }

    .desktop-only {
        display: none !important;
    }

    .adst-container {
        padding: 0 15px;
    }

    .mobile-links li a {
        font-size: 15px;
        padding: 15px 0;
    }

    .mobile-links li a i {
        margin-left: 10px;
        color: var(--adst-secondary);
        width: 20px;
        text-align: center;
    }

    .mobile-divider {
        height: 1px;
        background: #aaa;
        margin: 10px 0;
    }
}

/* Tablet Screen */
@media (min-width: 768px) and (max-width: 920px) {
   
}

/* Large Screens */
@media (min-width: 920px) and (max-width: 1280px) {
    
}