/* Header Styles for Novoshop Theme */

/* Fix italic style for all Font Awesome icons */
.site-header .fa,
.site-header [class*="fa-"],
.site-header i.fa,
.site-header i[class*="fa-"] {
    font-style: normal !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "FontAwesome", sans-serif !important;
}

/* Global Icon Styles - Use Header Text Color */
.site-header i,
.site-header .icon,
.site-header [class*="icon-"],
.site-header .fa,
.site-header [class*="fa-"],
.header-user i,
.header-cart i,
.header-actions i,
.header-actions-icons i,
.action-icon i,
.mobile-menu-toggle i {
    color: var(--header-text-color, #1a1a1a) !important;
    background: transparent !important;
    font-weight: normal !important;
    font-style: normal !important;
    opacity: 1 !important;
    transition: color 0.3s ease;
}

/* Header Icons Hover - Use Header Text Color */
.site-header a:hover i,
.site-header a:hover .icon,
.site-header a:hover [class*="icon-"],
.site-header a:hover .fa,
.site-header a:hover [class*="fa-"],
.site-header i:hover,
.site-header .fa:hover,
.site-header [class*="fa-"]:hover,
.header-user a:hover i,
.header-user i:hover,
.header-cart a:hover i,
.header-cart i:hover,
.header-actions a:hover i,
.header-actions i:hover,
.header-actions button:hover i,
.header-actions button i:hover,
.header-actions-icons a:hover i,
.header-actions-icons i:hover,
.action-icon a:hover i,
.action-icon i:hover,
.action-icon a:hover .icon,
.action-icon .icon:hover,
.mobile-menu-toggle:hover i,
.mobile-menu-toggle i:hover {
    color: var(--header-text-color, #1a1a1a) !important;
    transition: color 0.3s ease;
}


/* Header Container */
.site-header {
    background: #fff;
    box-shadow: none;
    position: relative;
    z-index: 99999; /* z-index بسیار بالا برای نمایش زیرمنو روی همه محتوا */
    transition: background-color 0.3s ease;
    border-bottom: none;
}


/* Top Bar */
.header-top-bar {
    background: var(--header-top-background, #2e7d32);
    color: var(--header-text-color, #fff);
    padding: 8px 0;
    font-size: 13px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Desktop Top Bar - Show on desktop, hide on mobile */
.header-top-bar-desktop {
    display: block;
}

/* Mobile Top Bar - Hide on desktop, show on mobile */
.header-top-bar-mobile {
    display: none;
}

/* Ensure mobile top bar is hidden on desktop */
@media (min-width: 769px) {
    .header-top-bar-mobile {
        display: none !important;
    }
    
    .header-top-bar-desktop {
        display: block !important;
    }
}

.header-top-mobile-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.header-top-mobile-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.header-top-mobile-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 20px;
}



.header-top-right {
    display: flex;
    align-items: center;
}

.header-top-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-top-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.header-top-menu a:hover {
    opacity: 0.8;
}

.separator {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

/* Main Header */
.header-main {
    padding: 15px 0;
    background: #fff;
    transition: background-color 0.3s ease;
    border-bottom: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo Section */
.header-logo {
    flex-shrink: 0;
}

.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color, #ff6600);
}

.header-logo img {
    max-height: var(--header-logo-max-height-desktop, 50px);
    width: auto;
}

.header-logo .site-title {
    font-size: 24px;
    font-weight: normal;
    margin: 0;
    color: var(--primary-color, #ff6600);
}

/* Search Section */
.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-wrapper {
    display: flex;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: border-color 0.3s ease;
}

.search-wrapper:focus-within {
    border-bottom-color: var(--primary-color, #ff6600);
}

.search-category {
    background: transparent;
    border: none;
    padding: 12px 15px;
    border-radius: 0;
    font-size: 14px;
    color: var(--primary-color, #ff6600);
    min-width: 120px;
    cursor: pointer;
    font-family: var(--novoshop-body-font, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial);
}

.search-category option {
    color: #333;
    background: #fff;
}

.search-field {
    flex: 1;
    border: none;
    padding: 12px 15px;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: var(--primary-color, #ff6600);
    font-family: var(--novoshop-body-font, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial);
}

.search-field::placeholder,
#header-search-input::placeholder,
#header-search-input-modern::placeholder {
    color: #ccc;
}

.search-submit {
    background: transparent !important;
    border: 1px solid var(--primary-color, #ff6600);
    padding: 12px 20px;
    border-radius: 0;
    color: var(--primary-color, #ff6600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: var(--primary-color, #ff6600) !important;
    color: #fff !important;
}

.search-submit i {
    font-size: 16px;
    color: inherit !important;
}

.search-submit:hover i {
    color: var(--header-text-color, #fff) !important;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-user {
    display: flex;
    align-items: center;
    position: relative;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: transparent;
    color: var(--primary-color, #ff6600);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color, #ff6600);
}

.user-link:hover,
.site-header .header-user .user-link:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}

.user-link i,
.site-header .header-user .user-link i {
    font-size: 20px;
    color: inherit !important;
    transition: color 0.3s ease;
}

.user-link:hover i,
.site-header .header-user .user-link:hover i {
    color: inherit !important;
}

/* دکمه ورود | ثبت نام: نمایش متن در هاور، مثل هاور بقیه آیکن‌های هدر، بدون تغییر پس‌زمینه */
.header-layout-center .header-user .user-link .user-text,
.header-layout-modern .header-user .user-link .user-text {
    display: none;
}
.header-layout-center .header-user .user-link:hover .user-text,
.header-layout-modern .header-user .user-link:hover .user-text {
    display: inline-block;
}

/* حرکت اندک متن به چپ در هاور */
.user-link .user-text,
.cart-link .cart-text {
    display: inline-block;
    transition: transform 0.25s ease;
}
.user-link:hover .user-text,
.cart-link:hover .cart-text {
    transform: translateX(-4px);
}
html[dir="rtl"] .user-link:hover .user-text,
html[dir="rtl"] .cart-link:hover .cart-text {
    transform: translateX(4px);
}

/* User Menu Wrapper (Logged In State) */
.user-menu-wrapper {
    position: relative;
    background-color: transparent !important;
    color: var(--primary-color, #ff6600) !important;
}

/* Force outline style for user menu toggle - override all other styles */
button.user-menu-toggle,
.user-menu-toggle,
.header-user button.user-menu-toggle,
.header-actions button.user-menu-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 15px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid var(--primary-color, #ff6600) !important;
    border-radius: 0 !important;
    color: var(--primary-color, #ff6600) !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

button.user-menu-toggle:not(:hover),
.user-menu-toggle:not(:hover),
.header-user button.user-menu-toggle:not(:hover),
.header-actions button.user-menu-toggle:not(:hover) {
    background: transparent !important;
    background-color: transparent !important;
}

button.user-menu-toggle:hover,
.user-menu-toggle:hover,
.header-user button.user-menu-toggle:hover,
.header-actions button.user-menu-toggle:hover {
    background: var(--primary-color, #ff6600) !important;
    background-color: var(--primary-color, #ff6600) !important;
    color: #fff !important;
}

.user-menu-toggle i.icon-user {
    font-size: 18px;
    color: inherit !important;
}

button.user-menu-toggle:hover i,
.user-menu-toggle:hover i,
.header-user button.user-menu-toggle:hover i,
.header-actions button.user-menu-toggle:hover i {
    color: var(--header-text-color, #fff) !important;
}

.user-menu-toggle .user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-toggle .user-menu-arrow {
    transition: transform 0.3s ease;
    color: inherit !important;
    flex-shrink: 0;
}

.user-menu-toggle[aria-expanded="true"] .user-menu-arrow,
.user-menu-wrapper.open .user-menu-arrow {
    transform: rotate(180deg);
}

/* User Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    min-width: 220px;
    max-width: 280px;
    background: var(--header-main-background, #fff) !important;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

.user-menu-wrapper.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10000;
}

.user-dropdown-header {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color, #2e7d32), var(--primary-dark, #1b5e20));
    color: #fff;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
}

.user-dropdown-header i {
    font-size: 20px;
    color: #fff !important;
    display: flex;
    align-items: center;
}

.user-dropdown-links {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.user-dropdown-links li {
    margin: 0;
}

.user-dropdown-links li a {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.user-dropdown-links li a:hover {
    background: transparent !important;
    color: var(--primary-color, #2e7d32);
}

.user-dropdown-links li a i {
    font-size: 16px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666 !important;
    font-style: normal !important;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.user-dropdown-links li a span {
    flex: 1;
    text-align: right;
}

.user-dropdown-links li a:hover i {
    color: var(--primary-color, #2e7d32) !important;
}

.user-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

.user-dropdown-links .logout-link {
    color: #e53935;
}

.user-dropdown-links .logout-link:hover {
    background: transparent !important;
    color: #c62828;
}

.user-dropdown-links .logout-link i {
    color: #e53935 !important;
    font-style: normal !important;
}

.user-dropdown-links .logout-link:hover i {
    color: #c62828 !important;
    font-style: normal !important;
}

/* RTL Support for dropdown */
html[dir="rtl"] .user-dropdown-menu {
    left: auto;
    right: 0;
}

/* Ensure dropdown stays within viewport */
.user-menu-wrapper {
    position: relative;
}

.user-dropdown-menu {
    /* Prevent overflow on small screens */
    max-width: calc(100vw - 40px);
}

/* Center layout specific adjustments - always align to right */
.header-layout-center .user-dropdown-menu {
    right: 0 !important;
    left: auto !important;
    transform-origin: top right;
}

/* For RTL sites, ensure dropdown aligns to right edge */
html[dir="rtl"] .header-layout-center .user-dropdown-menu {
    right: 0 !important;
    left: auto !important;
}

/* Ensure header-user container doesn't cause overflow */
.header-layout-center .header-user {
    position: relative;
}

.header-layout-center .header-actions-right {
    position: relative;
}

.header-cart {
    display: flex;
    align-items: center;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: transparent;
    color: var(--primary-color, #ff6600);
    text-decoration: none;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color, #ff6600);
}

.cart-link:hover,
.site-header .header-cart .cart-link:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}

.cart-link i {
    font-size: 20px;
    color: inherit !important;
    transition: color 0.3s ease;
}

.cart-link:hover i,
.site-header .header-cart .cart-link:hover i {
    color: inherit !important;
}

/* سبد خرید: نمایش متن در هاور مثل ورود | ثبت نام، بدون تغییر پس‌زمینه */
.header-layout-center .header-cart .cart-link .cart-text,
.header-layout-modern .header-cart .cart-link .cart-text {
    display: none;
}
.header-layout-center .header-cart .cart-link:hover .cart-text,
.header-layout-modern .header-cart .cart-link:hover .cart-text {
    display: inline-block;
}

.cart-count {
    background: var(--primary-color, #ff6600);
    color: #fff;
    border-radius: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: normal;
}

/* Bottom Navigation */
.header-bottom {
    background: #fff;
    padding: 2px 0;
    border-top: none;
    position: unset;
    z-index: 9999; /* z-index بالا برای نمایش زیرمنوها */
    border-top: 1px solid #cccccc59
}

.header-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Action Icons */
.header-actions-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-icon {
    position: relative;
}

.action-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border-radius: 0;
    color: var(--primary-color, #ff6600);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: none;
    border: 1px solid var(--primary-color, #ff6600);
}

.action-icon a:hover {
    background: var(--primary-color, #ff6600);
    color: #fff;
}

.action-icon i {
    font-size: 20px;
    color: inherit !important;
}

.action-icon a:hover i {
    color: var(--header-text-color, #fff) !important;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color, #ff6600);
    color: #fff;
    border-radius: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: normal;
}

.track-orders {
    margin-left: 20px;
}

.track-orders-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--primary-color, #ff6600);
    text-decoration: none;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color, #ff6600);
}

.track-orders-btn:hover {
    background: var(--primary-color, #ff6600);
    color: #fff;
}

.track-orders-btn i {
    font-size: 16px;
}

.track-orders-btn:hover i {
    color: var(--header-text-color, #fff) !important;
}

/* ========================================
   Navigation Menu - Digikala Style
   Professional Mega Menu Implementation
   ======================================== */

.header-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    position: relative;
    z-index: 1000;
}

.header-navigation .main-navigation {
    position: relative;
    z-index: 1000;
    width: 100%;
}

/* Ensure header-bottom is positioned relative for mega menu */
.header-bottom {
    position: initial;
}

/* Main Menu Container */
.novoshop-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.novoshop-menu > li {
    position: static;
}

/* Critical: Hide all mega menus by default */
.novoshop-menu > li .mega-menu-wrapper {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
}


/* Top Level Menu Items */
.novoshop-menu > li > a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 15px 18px;
    display: block;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    line-height: 1.5;
}

.novoshop-menu > li > a:hover {
    color: var(--primary-color, #ef4056);
}

/* Remove bottom border indicator - user doesn't want it */

/* Menu icon styles */
.novoshop-menu > li > a .menu-icon,
.novoshop-menu > li > a .menu-icon-image {
    margin-left: 6px;
    vertical-align: middle;
}

/* ========================================
   Mega Menu Wrapper - Digikala Style
   Complete redesign to match Digikala
   ======================================== */

.mega-menu-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-top: 2px solid var(--primary-color, #ef4056);
    z-index: 99999;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px);
    pointer-events: none !important;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    max-height: 0 !important;
    overflow: hidden !important;
    display: none !important;
}

/* Only show mega menu on hover */
.novoshop-menu > li:hover > .mega-menu-wrapper,
.novoshop-menu > li.menu-item-has-children:hover > .mega-menu-wrapper {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    pointer-events: auto !important;
    max-height: 900px !important;
    overflow: visible !important;
}

.mega-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 25px;
}

/* Mega Menu Header */
.mega-menu-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.mega-menu-all-link {
    color: var(--primary-color, #ef4056);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.mega-menu-all-link:hover {
    color: var(--primary-color, #ef4056);
    opacity: 0.8;
}

.mega-menu-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.mega-menu-all-link:hover .mega-menu-arrow {
    transform: translateX(-3px);
}

/* Mega Menu Content - Grid Layout like Digikala */
.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: start;
}

/* Ensure columns don't break */
.mega-menu-content > * {
    min-width: 0;
}

/* Mega Menu Column */
.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

/* Mega Menu Section Title (Column Header) */
.mega-menu-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    padding: 0 0 8px 0;
    border-bottom: 1px solid #e8e8e8;
    line-height: 1.5;
}

.mega-menu-section-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.mega-menu-section-title a:hover {
    color: var(--primary-color, #ef4056);
}

/* Mega Menu Section List (Items inside columns) */
.mega-menu-section-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-menu-section-list li {
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.mega-menu-section-list > li > a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 0;
    display: block;
    transition: all 0.2s ease;
    line-height: 1.6;
    position: relative;
}

.mega-menu-section-list > li > a:hover {
    color: var(--primary-color, #ef4056);
    padding-right: 8px;
}

/* Nested submenu items (depth 2+) inside mega menu columns */
.mega-menu-section-list .sub-menu {
    list-style: none !important;
    margin: 4px 0 0 0 !important;
    padding: 0 0 0 12px !important;
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    min-width: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.mega-menu-section-list .sub-menu li {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.mega-menu-section-list .sub-menu a {
    color: #666 !important;
    text-decoration: none;
    font-size: 12.5px;
    padding: 5px 0;
    display: block;
    transition: all 0.2s ease;
    line-height: 1.5;
    background: transparent !important;
}

.mega-menu-section-list .sub-menu a:hover {
    color: var(--primary-color, #ef4056) !important;
    padding-right: 6px;
    background: transparent !important;
}

/* Nested submenu level 3+ */
.mega-menu-section-list .sub-menu .sub-menu {
    margin-top: 2px !important;
    padding-right: 12px !important;
    padding-left: 0 !important;
}

.mega-menu-section-list .sub-menu .sub-menu a {
    font-size: 12px;
    padding: 4px 0;
}

/* ========================================
   Regular Submenu (for nested items depth 2+)
   ======================================== */

.novoshop-menu .sub-menu {
    position: absolute;
    top: 0;
    right: calc(100% + 8px);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    min-width: 200px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.novoshop-menu .sub-menu li {
    margin: 0;
    padding: 0;
}

.novoshop-menu .sub-menu a {
    padding: 10px 18px;
    display: block;
    font-size: 13.5px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.novoshop-menu .sub-menu a:hover {
    background: transparent !important;
    color: var(--primary-color, #ef4056);
    padding-right: 22px;
}

/* Show nested submenu on hover */
.novoshop-menu .sub-menu li.menu-item-has-children:hover > .sub-menu,
.novoshop-menu .sub-menu li.has-submenu:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Arrow indicator for items with submenu */
.novoshop-menu .sub-menu .menu-item-has-children > a::after,
.novoshop-menu .sub-menu .has-submenu > a::after {
    content: '←';
    float: left;
    font-size: 11px;
    color: #999;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.novoshop-menu .sub-menu .menu-item-has-children:hover > a::after,
.novoshop-menu .sub-menu .has-submenu:hover > a::after {
    color: var(--primary-color, #ef4056);
    transform: translateX(-3px);
}

/* ========================================
   Responsive Mega Menu Styles
   ======================================== */

@media screen and (max-width: 1200px) {
    .mega-menu-container {
        padding: 22px 18px 28px;
    }
    
    .mega-menu-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px 22px;
    }
}

@media screen and (max-width: 1024px) {
    /* Hide mega menu on tablet and mobile */
    .mega-menu-wrapper {
        display: none !important;
    }
    
    /* Show regular dropdown on smaller screens */
    .novoshop-menu > li {
        position: relative;
    }
    
    .novoshop-menu .sub-menu {
        position: absolute;
        top: 100%;
        right: 0;
    left: auto;
        min-width: 200px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        transform: translateY(-8px);
    }
    
    .novoshop-menu > li:hover > .sub-menu,
    .novoshop-menu > li.menu-item-has-children:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .novoshop-menu > li > a {
        padding: 12px 16px;
        font-size: 13.5px;
    }
}

@media screen and (max-width: 768px) {
    .novoshop-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: stretch;
    }
    
    .novoshop-menu > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }
    
    .novoshop-menu > li:last-child {
        border-bottom: none;
    }
    
    .novoshop-menu > li > a {
        padding: 14px 18px;
        font-size: 14.5px;
    }
    
    .novoshop-menu > li > a::after {
        display: none;
    }
    
    .novoshop-menu .sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #f8f9fa;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        visibility: hidden;
        transform: none;
        min-width: auto;
        width: 100%;
    }
    
    .novoshop-menu > li.active > .sub-menu,
    .novoshop-menu > li.menu-item-has-children.active > .sub-menu {
        max-height: 2000px;
        opacity: 1;
        visibility: visible;
    }
    
    .novoshop-menu .sub-menu a {
        padding: 12px 18px 12px 30px;
        font-size: 13.5px;
        border-bottom: 1px solid #eee;
    }
    
    .novoshop-menu .sub-menu li:last-child a {
        border-bottom: none;
    }
}

/* Header Links */
.header-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-links a {
    color: var(--primary-color, #ff6600);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.header-links a:hover {
    opacity: 0.7;
}

/* Mobile Menu Toggle - ظاهر لایت، استاندارد و شیک */
.mobile-menu-toggle {
    display: none;
}

.menu-toggle {
    color: var(--header-text-color, #1a1a1a);
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    background: #fff;
    border: 1px solid var(--header-text-color, #1a1a1a);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.menu-toggle:hover {
    background: #f8fafc;
    color: var(--header-text-color, #1a1a1a);
    border-color: var(--header-text-color, #1a1a1a);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    opacity: 0.9;
}

.menu-toggle:active {
    background: #f1f5f9;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle-icon span {
    width: 20px;
    height: 2px;
    background: var(--header-text-color, #1a1a1a);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.menu-toggle:hover .menu-toggle-icon span {
    background: var(--header-text-color, #1a1a1a);
}

.menu-toggle.active .menu-toggle-icon span {
    background: var(--header-text-color, #1a1a1a);
}

/* ============================================
   MOBILE RESPONSIVE HEADER SYSTEM
   ============================================ */

/* Mobile Header Layout */
@media screen and (max-width: 1024px) {
    /* Sticky header disabled on mobile */
    
    /* Hide desktop elements */
    .header-search,
    .header-cart,
    .header-user,
    .header-bottom,
    .header-actions-icons {
        display: none !important;
    }
    
    /* Show top bar on mobile with contact info */
    .header-top-bar {
        display: block !important;
        background: var(--header-top-background, #2e7d32);
        color: var(--header-text-color, #fff);
        padding: 8px 0;
        /* border-bottom: 1px solid #eee; */
        font-size: 12px;
    }
    
    .header-top-bar .container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    
    .header-top-left {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-top-right {
        display: none;
    }
    
    .header-contact-item {
        color: var(--header-text-color, #fff);
        font-size: 11px;
    }
    
    .header-contact-item i,
    .header-top-bar i,
    .header-top-bar .fa,
    .header-top-bar [class*="icon-"],
    .header-top-bar [class*="fa-"],
    .header-top-bar .icon {
        color: var(--header-text-color, #fff) !important;
        font-size: 12px;
    }
    
    /* Main header structure - بک‌گراند لایت در موبایل */
    .site-header,
    .header-main {
        background: #fff !important;
    }
    
    .header-main {
        padding: 15px 0;
    }
    
    /* Ensure all icons in mobile header use header text color */
    .header-main i,
    .header-main .fa,
    .header-main [class*="icon-"],
    .header-main [class*="fa-"],
    .header-main .icon {
        color: var(--header-text-color, #1a1a1a) !important;
    }
    
    /* سه ستون: منو راست، لوگو وسط، فضای چپ — لوگو دقیقاً وسط */
    .header-content {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 15px;
        padding: 0 15px;
    }
    
    /* Mobile menu toggle - ستون راست (در RTL) */
    .mobile-menu-toggle {
        display: block !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        grid-column: 1;
        grid-row: 1;
    }
    
    /* Logo - ستون وسط */
    .header-logo {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        justify-content: center;
    }
    
    .header-search,
    .header-actions {
        grid-column: 3;
        grid-row: 1;
    }
    
    .header-logo img {
        max-height: var(--header-logo-max-height-mobile, 45px);
        width: auto;
    }
    
    /* Hide actions container */
    .header-actions {
        display: none !important;
    }
    
    .menu-toggle {
        padding: 10px 14px;
        background: #fff;
        border: 1px solid var(--header-text-color, #1a1a1a);
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.25s ease;
        color: var(--header-text-color, #1a1a1a);
    }

    .menu-toggle:hover {
        background: #f8fafc;
        color: var(--header-text-color, #1a1a1a);
        border-color: var(--header-text-color, #1a1a1a);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        opacity: 0.9;
    }
    
    .menu-toggle-icon {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 20px;
    }
    
    .menu-toggle-icon span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--header-text-color, #1a1a1a);
        border-radius: 2px;
        transition: all 0.25s ease;
    }

    .menu-toggle:hover .menu-toggle-icon span {
        background: var(--header-text-color, #1a1a1a);
    }
    
    .menu-toggle-text {
        display: none;
    }
    
    /* RTL: ستون ۱ = راست (منو)، ستون ۲ = وسط (لوگو)، ستون ۳ = چپ */
    html[dir="rtl"] .header-content {
        direction: rtl;
    }
    html[dir="rtl"] .header-content .mobile-menu-toggle {
        grid-column: 1;
        justify-self: start;
    }
    html[dir="rtl"] .header-content .header-logo {
        grid-column: 2;
        justify-content: center;
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .site-header {
        padding: 6px 0;
    }
    
    .header-main {
        padding: 0px 0;
    }
    
    /* سه ستون: منو راست، لوگو وسط */
    .header-content {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        flex-direction: unset !important;
        gap: 10px;
        align-items: center;
    }
    
    .header-content .mobile-menu-toggle {
        grid-column: 1;
        grid-row: 1;
        order: 0;
    }
    
    .header-content .header-logo {
        grid-column: 2;
        grid-row: 1;
        order: 1;
        text-align: center;
        justify-content: center;
    }
    
    .header-content .header-search,
    .header-content .header-actions {
        grid-column: 3;
        grid-row: 1;
    }
    
    html[dir="rtl"] .header-content {
        direction: rtl;
    }
    html[dir="rtl"] .header-content .mobile-menu-toggle {
        grid-column: 1;
        justify-self: start;
    }
    html[dir="rtl"] .header-content .header-logo {
        grid-column: 2;
        justify-content: center;
    }
    
    .header-logo {
        text-align: center;
    }
    
    .header-logo img {
        max-height: var(--header-logo-max-height-small-mobile, 30px);
    }
    
    .header-search {
        order: 2;
        width: 100%;
        margin: 0;
    }
    
    .search-wrapper {
        border-radius: 0;
        padding: 5px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .search-wrapper:focus-within {
        border-bottom-color: var(--primary-color, #ff6600);
    }
    
    .search-category {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 80px;
        border-radius: 0;
    }
    
    .search-field {
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 0;
    }
    
    .search-submit {
        padding: 8px 12px;
        border-radius: 0;
        border: 1px solid var(--primary-color, #ff6600) !important;
        background: transparent !important;
        color: var(--primary-color, #ff6600) !important;
    }
    
    .search-submit:hover {
        background: var(--primary-color, #ff6600) !important;
        color: #fff !important;
    }
    
    .header-actions {
        order: 3;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .user-link,
    .cart-link {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 36px;
        border-radius: 0;
        border: 1px solid var(--primary-color, #ff6600) !important;
        background: transparent !important;
        color: var(--primary-color, #ff6600) !important;
        flex: 1;
        justify-content: center;
    }
    
    .user-link:hover,
    .cart-link:hover {
        background: var(--primary-color, #ff6600) !important;
        color: #fff !important;
    }
    
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .header-bottom {
        padding: 6px 0;
    }
    
    .header-bottom-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .header-actions-icons {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .action-icon a {
        width: 36px;
        height: 36px;
        border-radius: 6px;
    }
    
    .track-orders-btn {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 8px;
        width: 100%;
        text-align: center;
    }
    
    .header-navigation {
        display: none;
    }
    
    .header-links {
        display: none;
    }
}

/* Large Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .site-header {
        padding: 0px 0;
    }
    
    .header-main {
        padding: 0px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .header-logo {
        order: 1;
        text-align: center;
    }
    
    .header-logo img {
        max-height: var(--header-logo-max-height-mobile, 45px);
    }
    
    .header-search {
        order: 2;
        width: 100%;
        margin: 0;
    }
    
    .search-wrapper {
        border-radius: 0;
        padding: 6px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .search-wrapper:focus-within {
        border-bottom-color: var(--primary-color, #ff6600);
    }
    
    .search-category {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .search-field {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .search-submit {
        padding: 10px 15px;
    }
    
    .header-actions {
        order: 3;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .user-link,
    .cart-link {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 40px;
        border-radius: 0;
        border: 1px solid var(--primary-color, #ff6600) !important;
        background: transparent !important;
        color: var(--primary-color, #ff6600) !important;
    }
    
    .user-link:hover,
    .cart-link:hover {
        background: var(--primary-color, #ff6600) !important;
        color: #fff !important;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .header-bottom {
        padding: 8px 0;
    }
    
    .header-bottom-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-actions-icons {
        justify-content: center;
        gap: 10px;
    }
    
    .action-icon a {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
    
    .track-orders-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .header-navigation {
        display: none;
    }
    
    .header-links {
        display: none;
    }
}

/* Tablet (768px - 1023px) - Use Mobile Style */
@media (min-width: 768px) and (max-width: 1023px) {
    .site-header {
        padding: 10px 0;
    }
    
    .header-main {
        padding: 0px 0;
    }
    
    .header-content {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: space-between;
    }
    
    .header-logo {
        flex: 0 0 auto;
    }
    
    .header-logo img {
        max-height: var(--header-logo-max-height-mobile, 45px);
    }
    
    /* Hide desktop elements */
    .header-search,
    .header-cart,
    .header-user,
    .header-actions,
    .header-bottom,
    .header-actions-icons,
    .header-navigation,
    .header-links,
    .main-navigation {
        display: none !important;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block !important;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .header-content {
        gap: 30px;
    }
    
    .header-search {
        max-width: 500px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .header-bottom-content {
        gap: 30px;
    }
    
    .header-actions-icons {
        gap: 15px;
    }
}

/* Mobile Navigation Enhancements */
@media (max-width: 767px) {
    /* Removed fixed positioning - menu toggle is now static in header */
    
    .menu-toggle-icon {
        display: flex;
        flex-direction: column;
        gap: 3px;
        width: 20px;
        height: 16px;
    }
    
    .menu-toggle-icon span {
        width: 100%;
        height: 2px;
        background: var(--header-text-color, #1a1a1a);
        border-radius: 1px;
        transition: all 0.3s ease;
    }
    
    .menu-toggle-icon.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle-icon.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle-icon.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    /* Ensure all icons in mobile use header text color */
    .site-header i,
    .site-header .fa,
    .site-header [class*="icon-"],
    .site-header [class*="fa-"],
    .site-header .icon,
    .header-main i,
    .header-main .fa,
    .header-main [class*="icon-"],
    .header-main [class*="fa-"],
    .header-main .icon {
        color: var(--header-text-color, #1a1a1a) !important;
    }
    
    /* Top bar icons in mobile should use header text color */
    .header-top-bar i,
    .header-top-bar .fa,
    .header-top-bar [class*="icon-"],
    .header-top-bar [class*="fa-"],
    .header-top-bar .icon {
        color: var(--header-text-color, #fff) !important;
    }
    
    .header-links {
        order: 3;
        justify-content: center;
        gap: 12px;
    }
    
    .header-links a {
        font-size: 13px;
    }
    
    /* Mobile Menu Overlay */
    .novoshop-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 10000;
        transition: right 0.3s ease;
        padding: 60px 20px 20px;
        overflow-y: auto;
        display: block !important;
    }
    
    .novoshop-menu.mobile-menu-open {
        right: 0;
    }
    
    /* Ensure menu is visible when open */
    .novoshop-menu.mobile-menu-open {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .novoshop-menu ul {
        flex-direction: column;
        gap: 0;
    }
    
    .novoshop-menu li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .novoshop-menu a {
        padding: 15px 0;
        font-size: 16px;
        display: block;
        width: 100%;
        color: #333;
    }
    
    .novoshop-menu .sub-menu {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        margin: 10px 0;
        border-radius: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: flex;
        flex-direction: column;
    }
    
    .novoshop-menu .sub-menu a {
        padding: 12px 20px;
        font-size: 14px;
        color: #333;
    }
    
    /* Mobile submenu toggle state */
    .novoshop-menu li.submenu-open > a::after {
        transform: rotate(180deg);
    }
    
    .novoshop-menu .sub-menu {
        display: none;
    }
    
    .novoshop-menu li.submenu-open > .sub-menu {
        display: flex;
    }
    
    /* Mobile Menu Toggle - لایت و شیک */
    
    .menu-toggle {
        background: #fff;
        color: var(--header-text-color, #1a1a1a);
        border: 1px solid var(--header-text-color, #1a1a1a);
        padding: 10px 14px;
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.25s ease;
    }

    .menu-toggle:hover {
        background: #f8fafc;
        color: var(--header-text-color, #1a1a1a);
        border-color: var(--header-text-color, #1a1a1a);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        opacity: 0.9;
    }
    
    .menu-toggle-icon {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .menu-toggle-icon span {
        width: 20px;
        height: 2px;
        background: var(--header-text-color, #1a1a1a);
        border-radius: 2px;
        transition: all 0.25s ease;
    }

    
    
    .menu-toggle.active .menu-toggle-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active .menu-toggle-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .menu-toggle-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Mobile Body Lock */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Mobile Touch Enhancements */
    .action-icon a,
    .user-link,
    .cart-link,
    .search-submit {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile Focus States */
    .search-field:focus,
    .search-category:focus {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile Animations */
    .novoshop-menu {
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .novoshop-menu.mobile-menu-open {
        transform: translateX(0);
    }
    
    /* Mobile sticky header disabled */
}

/* Tablet Adjustments - Mobile Style */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Use mobile style for tablet */
    .site-header {
        padding: 10px 0;
    }
    
    /* Hide desktop elements */
    .header-search,
    .header-cart,
    .header-user,
    .header-bottom,
    .header-actions-icons,
    .header-actions {
        display: none !important;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Hide desktop navigation */
    .main-navigation {
        display: none !important;
    }
    
    .header-main {
        padding: 8px 0;
        min-height: auto;
    }
    
    .header-content {
        min-height: auto;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .header-logo img {
        max-height: var(--header-logo-max-height-mobile, 45px);
    }
}

/* Desktop Adjustments */
@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-navigation {
        display: block;
    }
    
    .header-bottom {
        display: block;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-content {
        gap: 20px;
    }
    
    .header-search {
        max-width: 400px;
    }
    
    .header-actions {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* Hide desktop top bar on mobile */
    .header-top-bar-desktop {
        display: none !important;
    }
    
    /* Show mobile top bar on mobile - only if enabled */
    .no-top-bar-mobile .header-top-bar-mobile {
        display: none !important;
    }
    
    .has-top-bar-mobile .header-top-bar-mobile {
        display: block;
        background: var(--header-top-background, #2e7d32);
        color: var(--header-text-color, #fff);
        padding: 6px 0;
        font-size: 12px;
    }
    
    .header-top-mobile-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-top-mobile-left {
        order: 2;
        justify-content: flex-end;
    }
    
    .header-top-mobile-right {
        order: 1;
        justify-content: flex-start;
    }
    
    .header-top-bar-mobile .header-contact-item {
        font-size: 12px;
        color: var(--header-text-color, #fff);
    }
    
    .header-top-bar-mobile .header-contact-item i {
        font-size: 14px;
        color: var(--header-text-color, #fff) !important;
    }
    
    .header-top-bar-mobile .header-gold-price {
        font-size: 12px;
        white-space: nowrap;
    }
    
    /* سه ستون موبایل: منو راست، لوگو وسط */
    .header-content {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        flex-direction: unset !important;
        gap: 15px;
        align-items: center;
    }
    
    .header-content .mobile-menu-toggle {
        grid-column: 1;
        grid-row: 1;
        order: 0;
    }
    
    .header-content .header-logo {
        grid-column: 2;
        grid-row: 1;
        order: 1;
        justify-content: center;
    }
    
    .header-content .header-search,
    .header-content .header-actions {
        grid-column: 3;
        grid-row: 1;
    }
    
    html[dir="rtl"] .header-content {
        direction: rtl;
    }
    html[dir="rtl"] .header-content .mobile-menu-toggle {
        grid-column: 1;
        justify-self: start;
    }
    html[dir="rtl"] .header-content .header-logo {
        grid-column: 2;
        justify-content: center;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .header-actions {
        order: 2;
        justify-content: center;
    }
    
    .header-logo {
        order: 1;
    }
    
    .header-bottom {
        display: none;
    }
    
    /* Mobile menu toggle handled in mobile-specific media query */
    
    .header-actions-icons {
        gap: 10px;
    }
    
    .action-icon a {
        width: 35px;
        height: 35px;
        border-radius: 6px;
    }
    
    .track-orders-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-main {
        padding: 10px 0;
    }
    
    .header-logo img {
        max-height: var(--header-logo-max-height-small-mobile, 30px);
    }
    
    .search-wrapper {
        border-radius: 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .search-wrapper:focus-within {
        border-bottom-color: var(--primary-color, #ff6600);
    }
    
    .search-category {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .search-field {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .search-submit {
        padding: 10px 15px;
    }
    
    .user-link,
    .cart-link {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 0;
        border: 1px solid var(--primary-color, #ff6600) !important;
        background: transparent !important;
        color: var(--primary-color, #ff6600) !important;
    }
    
    .user-link:hover,
    .cart-link:hover {
        background: var(--primary-color, #ff6600) !important;
        color: #fff !important;
    }
    
    .header-actions-icons {
        gap: 8px;
    }
    
    .action-icon a {
        width: 30px;
        height: 30px;
        border-radius: 5px;
    }
    
    .action-icon i {
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .site-header {
        display: none;
    }
}
.header-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    /* color: var(--header-text-color, #fff) !important; */
    font-weight: bold;
}

.header-contact-item i {
    font-size: 14px;
    /* color: var(--header-text-color, #fff) !important; */
}
/* .header-contact-item .icon-phone color is handled by global icon styles */

/* Critical: منوی همبرگری — استفاده از رنگ متن هدر از Redux */
.site-header button.menu-toggle,
.site-header .mobile-menu-toggle .menu-toggle,
.site-header .menu-toggle {
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid var(--header-text-color, #1a1a1a) !important;
    border-color: var(--header-text-color, #1a1a1a) !important;
    color: var(--header-text-color, #1a1a1a) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}
.site-header button.menu-toggle:hover,
.site-header .mobile-menu-toggle .menu-toggle:hover,
.site-header .menu-toggle:hover {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    border-color: var(--header-text-color, #1a1a1a) !important;
    color: var(--header-text-color, #1a1a1a) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    opacity: 0.9;
}
.site-header button.menu-toggle:active,
.site-header .mobile-menu-toggle .menu-toggle:active,
.site-header .menu-toggle:active {
    background: #f1f5f9 !important;
    background-color: #f1f5f9 !important;
}
.site-header .menu-toggle .menu-toggle-icon span {
    background: var(--header-text-color, #1a1a1a) !important;
    background-color: var(--header-text-color, #1a1a1a) !important;
}
.site-header .menu-toggle:hover .menu-toggle-icon span {
    background: var(--header-text-color, #1a1a1a) !important;
    background-color: var(--header-text-color, #1a1a1a) !important;
}
.site-header .menu-toggle.active .menu-toggle-icon span {
    background: var(--header-text-color, #1a1a1a) !important;
    background-color: var(--header-text-color, #1a1a1a) !important;
}

/* Critical: Force user-menu-toggle to be icon style - Highest Priority */
.site-header button.user-menu-toggle,
.site-header .user-menu-toggle,
.header-user button.user-menu-toggle,
.header-actions button.user-menu-toggle,
.header-actions .user-menu-toggle {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: var(--primary-color, #ff6600) !important;
    box-shadow: none !important;
}

.site-header button.user-menu-toggle:not(:hover),
.site-header .user-menu-toggle:not(:hover),
.header-user button.user-menu-toggle:not(:hover),
.header-actions button.user-menu-toggle:not(:hover),
.header-actions .user-menu-toggle:not(:hover) {
    background: transparent !important;
    background-color: transparent !important;
}

.site-header button.user-menu-toggle:hover,
.site-header .user-menu-toggle:hover,
.header-user button.user-menu-toggle:hover,
.header-actions button.user-menu-toggle:hover,
.header-actions .user-menu-toggle:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--primary-color, #ff6600) !important;
    opacity: 0.8;
}

/* ============================================
   Header Layout Styles
   ============================================
   
   Note: Layout-specific styles are now in separate files:
   - assets/css/header-layouts/header-default.css
   - assets/css/header-layouts/header-center.css
   - assets/css/header-layouts/header-modern.css
*/
/* Force all links inside mega menu to be #333 */
.novoshop-menu .mega-menu-wrapper a,
.novoshop-menu .mega-menu-container a,
.novoshop-menu .mega-menu-content a,
.novoshop-menu .mega-menu-section-title a,
.novoshop-menu .mega-menu-section-list > li > a,
.novoshop-menu .mega-menu-section-list .sub-menu a,
.novoshop-menu .mega-menu-section-list .sub-menu .sub-menu a,
.novoshop-menu .mega-menu-column a,
.mega-menu-wrapper a,
.mega-menu-container a,
.mega-menu-content a,
.mega-menu-section-title a,
.mega-menu-section-list > li > a,
.mega-menu-section-list .sub-menu a,
.mega-menu-section-list .sub-menu .sub-menu a,
.mega-menu-column a {
    color: #333 !important;
}