/* Desktop Header Specific Styles */
#mobile-header {
    display: none; /* Hide mobile header on desktop */
}

.header-desktop {
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--dark-color);
}

.nav-desktop ul {
    display: flex;
    gap: 30px;
}

.nav-desktop a {
    font-weight: 500;
    font-size: 1.1em;
    position: relative; /* Needed for absolute positioning of the underline */
    padding-bottom: 5px; /* Space between text and underline */
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    width: 0; /* Start with no width */
    height: 2px; /* Underline thickness */
    bottom: 0; /* Position at the bottom */
    /* Adjust left/right based on RTL/LTR, assuming RTL */
    right: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-out; /* Animation for width change */
}

.nav-desktop a:hover::after {
    width: 100%; /* Expand width on hover */
}

.header-icons-desktop {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icons-desktop i {
    font-size: 1.3em;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.header-icons-desktop i:hover {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
}

/* Add any cart item count styling here if needed */
/* .cart-icon::after {
    content: '0'; 
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
} */

.user-menu-container {
    position: relative;
    display: inline-block; /* Allows dropdown to position relative to it */
}

.user-menu-container i {
    /* Style for the user icon */
    font-size: 1.3em;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.user-menu-container i:hover {
    color: var(--primary-color);
}

.user-dropdown {
    position: absolute;
    top: 150%; /* Position below the icon */
    /* Adjust left/right based on RTL/LTR if needed, assuming RTL for now */
    right: 0; 
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, top 0.3s ease;
    z-index: 1001;
}

.user-menu-container:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    top: 100%; /* Slide up to just below the icon */
}

.user-dropdown ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.user-dropdown li {
    margin: 0;
}

.user-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 1em;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.2s ease;
    text-align: right; /* Ensure text is aligned right for RTL */
}

.user-dropdown a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Styles for dropdown menu */
.has-dropdown {
    position: relative; /* Needed for absolute positioning of dropdown */
}

.dropdown-menu {
    position: absolute;
    top: 100%; /* Position below the main list item */
    /* Adjust left/right based on RTL/LTR, assuming RTL */
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, top 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    
    /* Ensure vertical layout */
    display: flex;
    flex-direction: column;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 100%; /* Changed from calc(100% + 10px) to remove gap */
}

.dropdown-menu li {
    display: block; /* Ensure list items are displayed as blocks for vertical layout */
    margin: 0;
}

.dropdown-menu a {
    padding: -6px 20px; /* Reduced top/bottom padding */
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: -10px;
    color: var(--text-color);
    font-weight: 400;
    display: block; /* Make the link fill the list item */
    text-align: right; /* Align text right for RTL */
    white-space: nowrap; /* Prevent text wrapping in dropdown items */
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Rotate dropdown icon */
.has-dropdown > a i.fa-chevron-down {
    margin-right: 5px; /* Add space between text and icon for RTL */
    transition: transform 0.3s ease;
}

.has-dropdown:hover > a i.fa-chevron-down {
    transform: rotate(180deg); /* Rotate icon on hover */
}
.site-logo-desktop {
    max-height: 50px;
    max-width: auto;
    width: auto;
    object-fit: contain;
    margin-top: -6px;
    margin-bottom: -6px;

}