/**
 * Persian Navigation Widget Styles
 * Optimized for mobile-first responsive design
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

.hep-persian-navigation {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1000;
    direction: rtl;
}

/* Navigation Rows */
.hep-nav-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
}

.hep-nav-mobile-row {
    justify-content: space-between;
    gap: 1rem;
}

.hep-nav-desktop-row {
    display: none;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 0;
}

/* ==========================================================================
   Logo Styles
   ========================================================================== */

.hep-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.hep-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.hep-logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.hep-logo-desktop {
    display: none;
}

.hep-logo-mobile {
    display: block;
}

.hep-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

/* Hide desktop logo in mobile nav */
.hep-logo-desktop-nav {
    display: none;
}

/* ==========================================================================
   Mobile Menu Button
   ========================================================================== */

.hep-mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hep-mobile-menu-btn:hover {
    background: #e9ecef;
    border-color: #6f42c1;
}

.hep-mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Hamburger Icon */
.hep-hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hep-hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #495057;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hep-mobile-menu-btn:hover .hep-hamburger-icon span {
    background: #6f42c1;
}

/* Hamburger Animation when active */
.hep-mobile-menu-open .hep-hamburger-icon span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hep-mobile-menu-open .hep-hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hep-mobile-menu-open .hep-hamburger-icon span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Actions (Cart & Profile - Visible on Mobile)
   ========================================================================== */

.hep-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hep-desktop-actions {
    display: none;
}

/* ==========================================================================
   Cart Styles
   ========================================================================== */

.hep-cart {
    position: relative;
}

.hep-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #6f42c1;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hep-cart-icon:hover {
    background: #5a32a3;
    transform: scale(1.05);
}

.hep-cart-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.hep-cart-icon i {
    font-size: 1rem;
}

.hep-cart-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    border: 2px solid #fff;
    animation: cartPulse 2s infinite;
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Cart Popup */
.hep-cart-popup {
    position: fixed;
    top: auto;
    left: auto;
    right: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 300px;
    max-width: calc(100vw - 2rem);
    max-height: 500px;
    z-index: 1002;
    display: none;
    overflow: hidden;
}

.hep-cart-popup.active {
    display: block;
}

.hep-cart-popup-content {
    padding: 1rem;
}

.hep-cart-items {
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.hep-cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.hep-cart-item:last-child {
    border-bottom: none;
}

.hep-cart-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.hep-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hep-cart-item-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.hep-cart-item-details {
    flex: 1;
    min-width: 0;
}

.hep-cart-item-name {
    font-size: 0.875rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.hep-cart-item-name a {
    color: inherit;
    text-decoration: none;
}

.hep-cart-item-name a:hover {
    color: #6f42c1;
}

.hep-cart-item-price {
    font-size: 0.75rem;
    color: #6b7280;
}

.hep-cart-item-quantity {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

.hep-cart-total {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.hep-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.hep-cart-total-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.hep-cart-total-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #6f42c1;
}

.hep-cart-view-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #6f42c1;
    color: #fff;
    text-decoration: none;
    text-align: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.hep-cart-view-btn:hover {
    background: #5a32a3;
    color: #fff;
}

.hep-cart-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #6c757d;
}

.hep-cart-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    color: #dee2e6;
}

.hep-cart-empty p {
    margin: 0;
    font-size: 0.875rem;
}

/* ==========================================================================
   Profile Styles
   ========================================================================== */

.hep-profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.hep-profile-icon:hover {
    background: #e9ecef;
    border-color: #6f42c1;
    color: #6f42c1;
    transform: scale(1.05);
}

/* ==========================================================================
   Mobile Drawer & Overlay
   ========================================================================== */

body.hep-mobile-menu-open {
    overflow: hidden;
}

.hep-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hep-mobile-overlay.active {
    display: block;
    opacity: 1;
}

.hep-mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
}

.hep-mobile-drawer.active {
    right: 0;
}

.hep-mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.hep-mobile-drawer-logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.hep-mobile-drawer-logo img {
    max-height: 40px;
    width: auto;
}

.hep-mobile-drawer-logo .hep-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

.hep-mobile-drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hep-mobile-drawer-close:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Mobile Drawer Content */
.hep-mobile-mega-menu,
.hep-mobile-nav-menu {
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1rem;
}

.hep-mobile-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.hep-mobile-section-header i {
    font-size: 1.125rem;
    color: #6f42c1;
    width: 24px;
    text-align: center;
}

.hep-mobile-section-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    flex: 1;
}

.hep-mobile-mega-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hep-mobile-mega-menu-column {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.875rem;
    border: 1px solid #e9ecef;
}

.hep-mobile-mega-menu-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f3f4;
}

.hep-mobile-mega-menu-header a {
    font-weight: 700;
    color: #333;
    text-decoration: none;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hep-mobile-mega-menu-header a::after {
    content: '←';
    font-size: 0.875rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.hep-mobile-mega-menu-header a:hover {
    color: #6f42c1;
}

.hep-mobile-mega-menu-header a:hover::after {
    color: #6f42c1;
    transform: translateX(-3px);
}

.hep-mobile-mega-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hep-mobile-mega-menu-list li {
    margin: 0;
}

.hep-mobile-mega-menu-list a {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.5rem;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border-radius: 0.375rem;
    background: transparent;
}

.hep-mobile-mega-menu-list a::before {
    content: '◀';
    font-size: 0.625rem;
    margin-left: 0.5rem;
    color: #adb5bd;
    transition: all 0.3s ease;
}

.hep-mobile-mega-menu-list a:hover {
    color: #333;
    background: #f8f9fa;
}

.hep-mobile-mega-menu-list a:hover::before {
    color: #6f42c1;
    margin-left: 0.75rem;
}

.hep-mobile-main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hep-mobile-main-menu li {
    margin: 0;
}

.hep-mobile-main-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    background: #fff;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.hep-mobile-main-menu a::after {
    content: '←';
    font-size: 0.875rem;
    color: #adb5bd;
    transition: all 0.3s ease;
}

.hep-mobile-main-menu a:hover {
    color: #6f42c1;
    background: #fff;
    border-color: #6f42c1;
    transform: translateX(-3px);
}

.hep-mobile-main-menu a:hover::after {
    color: #6f42c1;
}

.hep-mobile-main-menu li:last-child a {
    margin-bottom: 0;
}

/* ==========================================================================
   Quick Links Row (Mobile Only)
   ========================================================================== */

.hep-quick-links-row {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.hep-quick-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.hep-quick-links::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.hep-quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: #fff;
    color: #495057;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid #dee2e6;
}

.hep-quick-link:hover {
    color: #6f42c1;
    background: #fff;
    border-color: #6f42c1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.15);
}

.hep-quick-link i {
    font-size: 0.9375rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Desktop Styles (Hidden on Mobile by Default)
   ========================================================================== */

.hep-mega-menu,
.hep-quick-links-desktop,
.hep-nav-menu,
.hep-search {
    display: none;
}

/* ==========================================================================
   Tablet & Desktop Responsive Styles
   ========================================================================== */

@media (min-width: 769px) {
    /* Show logo desktop version */
    .hep-logo-desktop {
        display: block;
    }
    
    .hep-logo-mobile {
        display: none;
    }
    
    .hep-logo-img {
        max-height: 50px;
    }
    
    /* Hide mobile row logo in desktop */
    .hep-nav-mobile-row .hep-logo {
        display: none;
    }
    
    /* Show desktop nav logo */
    .hep-logo-desktop-nav {
        display: flex;
        margin-left: 1.5rem;
    }
    
    /* Hide mobile elements */
    .hep-mobile-menu-btn,
    .hep-mobile-actions {
        display: none;
    }
    
    /* Hide entire mobile row */
    .hep-nav-mobile-row {
        display: none;
    }
    
    /* Show desktop navigation row */
    .hep-nav-desktop-row {
        display: flex;
    }
    
    /* Show desktop navigation elements */
    .hep-mega-menu,
    .hep-quick-links-desktop,
    .hep-nav-menu,
    .hep-search {
        display: flex;
    }
    
    /* Hide mobile quick links row in desktop */
    .hep-quick-links-row {
        display: none;
    }
    
    /* Quick Links desktop styling */
    .hep-quick-links-desktop {
        align-items: center;
        gap: 0.75rem;
        overflow-x: visible;
    }
    
    .hep-quick-links-desktop .hep-quick-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        border: none;
        background: transparent;
    }
    
    .hep-quick-links-desktop .hep-quick-link:hover {
        background: #f8f9fa;
        border: none;
        transform: none;
        box-shadow: none;
    }
    
    .hep-desktop-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    /* Mega Menu */
    .hep-mega-menu {
        position: relative;
    }
    
    .hep-mega-menu-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.875rem;
        font-weight: 500;
        color: #495057;
        white-space: nowrap;
    }
    
    .hep-mega-menu-btn:hover {
        background: #e9ecef;
        color: #6f42c1;
    }
    
    .hep-mega-menu-btn i {
        font-size: 1rem;
    }
    
    .hep-mega-menu-dropdown {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid #e9ecef;
        border-radius: 1rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        min-width: 800px;
        max-width: 1000px;
        padding: 1.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1002;
        pointer-events: none;
    }
    
    .hep-mega-menu:hover .hep-mega-menu-dropdown,
    .hep-mega-menu-dropdown.active,
    .hep-mega-menu-dropdown.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .hep-mega-menu-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
    
    .hep-mega-menu-column {
        min-width: 0;
    }
    
    .hep-mega-menu-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .hep-mega-menu-header a {
        font-weight: 600;
        color: #333;
        text-decoration: none;
        font-size: 0.9375rem;
        transition: color 0.3s ease;
    }
    
    .hep-mega-menu-header a:hover {
        color: #6f42c1;
    }
    
    .hep-mega-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .hep-mega-menu-list li {
        margin: 0;
    }
    
    .hep-mega-menu-list a {
        display: block;
        padding: 0.5rem 0;
        color: #6c757d;
        text-decoration: none;
        font-size: 0.875rem;
        transition: all 0.3s ease;
    }
    
    .hep-mega-menu-list a:hover {
        color: #495057;
        transform: translateX(-4px);
    }
    
    .hep-mega-menu-footer {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
        text-align: center;
    }
    
    .hep-mega-menu-footer-link {
        display: inline-block;
        padding: 0.75rem 1.5rem;
        background: #6f42c1;
        color: #fff;
        text-decoration: none;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .hep-mega-menu-footer-link:hover {
        background: #5a32a3;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
    }
    
    /* Main Navigation */
    .hep-nav-menu {
        flex: 1;
        justify-content: center;
    }
    
    .hep-main-menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 1.5rem;
        align-items: center;
    }
    
    .hep-main-menu li {
        margin: 0;
        position: relative;
    }
    
    .hep-main-menu > li > a {
        color: #495057;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9375rem;
        transition: color 0.3s ease;
        position: relative;
        padding: 0.5rem 0;
    }
    
    .hep-main-menu > li > a:hover {
        color: #6f42c1;
    }
    
    .hep-main-menu > li > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 2px;
        background: #6f42c1;
        transition: width 0.3s ease;
    }
    
    .hep-main-menu > li > a:hover::after {
        width: 100%;
    }
    
    /* Submenu Styles */
    .hep-main-menu .sub-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 0.5rem;
        min-width: 220px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1002;
        padding: 0.5rem 0;
        list-style: none;
        margin: 0;
    }
    
    .hep-main-menu li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .hep-main-menu .sub-menu li {
        position: relative;
        margin: 0;
    }
    
    .hep-main-menu .sub-menu a {
        display: block;
        padding: 0.625rem 1rem;
        color: #495057;
        text-decoration: none;
        font-size: 0.875rem;
        transition: all 0.3s ease;
    }
    
    .hep-main-menu .sub-menu a:hover {
        background: #f8f9fa;
        color: #6f42c1;
    }
    
    /* Third level submenu */
    .hep-main-menu .sub-menu .sub-menu {
        top: 0;
        right: 100%;
        margin-right: 0.5rem;
    }
    
    /* Search */
    .hep-search {
        position: relative;
        flex: 1;
        max-width: 300px;
    }
    
    .hep-search-form {
        display: flex;
        align-items: center;
        position: relative;
    }
    
    .hep-search-input {
        width: 100%;
        padding: 0.625rem 2.5rem 0.625rem 1rem;
        border: 1px solid #dee2e6;
        border-radius: 2rem;
        font-size: 0.875rem;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }
    
    .hep-search-input:focus {
        outline: none;
        border-color: #6f42c1;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
    }
    
    .hep-search-btn {
        position: absolute;
        left: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #6c757d;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .hep-search-btn:hover {
        background: rgba(111, 66, 193, 0.1);
        color: #6f42c1;
    }
    
    .hep-search-icon {
        font-size: 1rem;
    }
    
    .hep-search-suggestions {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 0.75rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 1001;
        max-height: 400px;
        overflow-y: auto;
        display: none;
    }
    
    .hep-search-suggestions.active {
        display: block;
    }
    
    .hep-search-suggestion-item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f1f3f4;
        cursor: pointer;
        transition: background 0.3s ease;
    }
    
    .hep-search-suggestion-item:hover {
        background: #f8f9fa;
    }
    
    .hep-search-suggestion-item:last-child {
        border-bottom: none;
    }
    
    /* Desktop Cart & Profile */
    .hep-desktop-actions .hep-cart-icon,
    .hep-desktop-actions .hep-profile-icon {
        width: 45px;
        height: 45px;
    }
    
    .hep-desktop-actions .hep-cart-icon svg,
    .hep-desktop-actions .hep-cart-icon i {
        font-size: 1.125rem;
    }
    
    .hep-cart-popup {
        /* Position will be set dynamically by JavaScript */
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .hep-nav-row {
        padding: 1rem 1.5rem;
    }
    
    .hep-nav-desktop-row {
        gap: 2rem;
    }
    
    .hep-main-menu {
        gap: 2rem;
    }
    
    .hep-search {
        max-width: 400px;
    }
    
    .hep-mega-menu-dropdown {
        min-width: 900px;
        padding: 2rem;
    }
    
    .hep-mega-menu-content {
        gap: 2rem;
    }
}

/* ==========================================================================
   RTL Support
   ========================================================================== */

[dir="ltr"] .hep-persian-navigation {
    direction: ltr;
}

[dir="ltr"] .hep-mobile-drawer {
    right: auto;
    left: -100%;
}

[dir="ltr"] .hep-mobile-drawer.active {
    right: auto;
    left: 0;
}

[dir="ltr"] .hep-search-btn {
    left: auto;
    right: 0.5rem;
}

[dir="ltr"] .hep-cart-badge {
    left: auto;
    right: -5px;
}

[dir="ltr"] .hep-cart-popup {
    left: 0;
    right: auto;
}

@media (min-width: 769px) {
    [dir="ltr"] .hep-mega-menu-dropdown {
        right: auto;
        left: 0;
    }
    
    [dir="ltr"] .hep-main-menu .sub-menu {
        right: auto;
        left: 0;
    }
    
    [dir="ltr"] .hep-main-menu .sub-menu .sub-menu {
        right: auto;
        left: 100%;
        margin-right: 0;
        margin-left: 0.5rem;
    }
    
    [dir="ltr"] .hep-main-menu > li > a::after {
        right: auto;
        left: 0;
    }
    
    [dir="ltr"] .hep-cart-popup {
        left: auto;
        right: 0;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.hep-search-input:focus,
.hep-categories-btn:focus,
.hep-cart-icon:focus,
.hep-profile-icon:focus,
.hep-mobile-menu-btn:focus {
    outline: 2px solid #6f42c1;
    outline-offset: 2px;
}

/* Focus visible for better keyboard navigation */
.hep-main-menu a:focus-visible,
.hep-mega-menu-list a:focus-visible,
.hep-quick-link:focus-visible {
    outline: 2px solid #6f42c1;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .hep-mobile-menu-btn,
    .hep-cart,
    .hep-profile,
    .hep-search,
    .hep-mobile-drawer,
    .hep-mobile-overlay {
        display: none !important;
    }
}
}