/* =========================================================
   رادیک وب - استایل هدر
   فایل: assets/css/header.css
   نسخه: 2.0 - نهایی
   ========================================================= */

/* ═══════════════════════════════════════════════════════════
   ۱. توپ بار
   ═══════════════════════════════════════════════════════════ */
.rw-topbar {
    background: var(--rw-topbar-bg);
    color: var(--rw-topbar-text);
    padding: 2px 0;
    font-size: 13px;
    direction: rtl;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    position: relative;
    z-index: 100;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.rw-topbar-container {
    max-width: 1300px;
    margin: 0 auto;
   
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rw-topbar-left,
.rw-topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rw-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rw-topbar-text);
    text-decoration: none;
    transition: opacity 0.25s;
    font-size: 13px;
}

.rw-topbar-item:hover {
    opacity: 0.85;
}

.rw-topbar-item i {
    font-size: 14px;
    opacity: 0.9;
}

.rw-topbar-sep {
    opacity: 0.4;
    margin: 0 5px;
}



/* ═══════════════════════════════════════════════════════════
   ۱.   هدر توپ بار
   ═══════════════════════════════════════════════════════════ */
.rw-topbar1 {
    background: var(--rw-topbar-bg);
    color: var(--rw-topbar-text);
    padding: 2px 0;
    font-size: 13px;
    direction: rtl;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    position: relative;
    z-index: 100;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.rw-topbar-container1 {
    max-width: 1300px;
    margin: 0 auto;
   
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rw-topbar-left,
.rw-topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rw-topbar-item1 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rw-topbar-text);
    text-decoration: none;
    transition: opacity 0.25s;
    font-size: 13px;
}

.rw-topbar-item:hover {
    opacity: 0.85;
}

.rw-topbar-item1 i {
    font-size: 14px;
    opacity: 0.9;
}

.rw-topbar-sep1 {
    opacity: 0.4;
    margin: 0 5px;
    color: var(--rw-topbar-text);
}
.headtext  {

   color: var(--rw-topbar-text); 
}





/* ═══════════════════════════════════════════════════════════
   ۲. هدر اصلی - ارتفاع ۱۰۰ پیکسل
   ═══════════════════════════════════════════════════════════ */
.rw-header {
    background: var(--rw-header-bg);
    border-top: 4px solid var(--rw-primary);
    height: 100px;
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    direction: rtl;
}

.rw-header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   ۳. لوگو + نام شرکت
   ═══════════════════════════════════════════════════════════ */
.rw-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s;
}
.rw-logo-link:hover {
    transform: scale(1.02);
}

.rw-logo-img {
    height: 60px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.rw-logo-icon-css {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    color: #fff;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 32px;
    font-weight: 800;
    border-radius: var(--rw-radius);
    box-shadow: var(--rw-shadow-md);
    flex-shrink: 0;
    line-height: 1;
    padding-top: 4px;
}

.rw-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 60px;
    line-height: 1;
}

.rw-logo-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--rw-primary);
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    display: block;
}

.rw-logo-slogan {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 11px;
    color: var(--rw-muted);
    margin-top: 4px;
    padding: 0;
    line-height: 1;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   ۴. ظرف منو - دسکتاپ
   ═══════════════════════════════════════════════════════════ */
.rw-menu-inline {
    display: flex;
    align-items: center;
    margin-right: 10px;
    margin-left: 10px;
    flex: 1;
    justify-content: flex-start;
    height: 100%;
    min-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   ۵. منوی اصلی (rw-navbar)
   ═══════════════════════════════════════════════════════════ */
.rw-navbar {
    display: flex;
    align-items: center;
    height: 100%;
}

.rw-navbar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
}

.rw-navbar-list > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.rw-navbar-list > li > a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--rw-text);
    text-decoration: none;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--rw-radius-sm);
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
}

.rw-navbar-list > li > a::before {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--rw-primary);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.rw-navbar-list > li > a:hover {
    color: var(--rw-primary);
    background: rgba(0, 0, 0, 0.03);
}
.rw-navbar-list > li > a:hover::before {
    width: 60%;
}

/* ═══ زیرمنو (دسکتاپ) ═══ */
.rw-submenu-nav {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--rw-card-bg);
    border-radius: var(--rw-radius-sm);
    box-shadow: var(--rw-shadow-lg);
    border-top: 3px solid var(--rw-primary);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1500;
    overflow: hidden;
}

.rw-nav-normal:hover .rw-submenu-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rw-submenu-nav a {
    display: block;
    padding: 10px 20px;
    color: var(--rw-text);
    text-decoration: none;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.rw-submenu-nav a:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--rw-primary);
    border-right-color: var(--rw-primary);
    padding-right: 26px;
}

/* ═══ Mega Menu (دسکتاپ) ═══ */
.rw-mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 760px;
    max-width: calc(100vw - 40px);
    background: var(--rw-card-bg);
    border-radius: var(--rw-radius);
    box-shadow: var(--rw-shadow-lg);
    border-top: 3px solid var(--rw-primary);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.rw-nav-mega:hover .rw-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rw-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.rw-mega-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--rw-radius-sm);
    padding: 10px;
    transition: all 0.25s ease;
}
.rw-mega-item:hover {
    border-color: var(--rw-primary);
    transform: translateY(-3px);
    box-shadow: var(--rw-shadow-sm);
}

.rw-mega-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.rw-mega-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: var(--rw-radius-sm);
    display: block;
}

.rw-mega-title {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 8px 0 4px;
    color: var(--rw-primary);
}

.rw-mega-desc {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 12px;
    color: var(--rw-muted);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   ۶. دکمه همبرگر - مخفی در دسکتاپ
   ═══════════════════════════════════════════════════════════ */
.rw-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    padding: 0;
    width: 42px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 50%;
    transition: all 0.3s;
    margin-right: auto;
    flex-shrink: 0;
}

.rw-menu-toggle:hover {
    background: var(--rw-primary);
    border-color: var(--rw-primary);
}

.rw-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--rw-primary);
    border-radius: 2px;
    transition: 0.3s;
}

.rw-menu-toggle:hover span {
    background: #fff;
}

.rw-menu-toggle.rw-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.rw-menu-toggle.rw-active span:nth-child(2) {
    opacity: 0;
}
.rw-menu-toggle.rw-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ═══════════════════════════════════════════════════════════
   ۷. Overlay
   ═══════════════════════════════════════════════════════════ */
.rw-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 997;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.rw-menu-overlay.rw-show {
    display: block;
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   ۸. ریسپانسیو - تبلت بزرگ
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .rw-navbar-list > li > a {
        padding: 10px 10px;
        font-size: 13px;
    }
    .rw-logo-img {
        height: 52px;
        max-width: 140px;
    }
    .rw-logo-title {
        font-size: 22px;
    }
}

/* ═══════════════════════════════════════════════════════════
   ۹. ریسپانسیو - موبایل و تبلت
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    
    /* هدر کوتاه‌تر */
    .rw-header {
        height: 80px;
    }
    
    .rw-header-container {
        padding: 0 12px;
    }
    
    /* نمایش دکمه همبرگر */
    .rw-menu-toggle {
        display: flex;
    }
    
    /* لوگو کوچک‌تر */
    .rw-logo-img {
        height: 48px;
        max-width: 130px;
    }
    .rw-logo-icon-css {
        width: 48px;
        height: 48px;
        font-size: 26px;
    }
    .rw-logo-text {
        height: 48px;
    }
    .rw-logo-title {
        font-size: 20px;
    }
    
    /* ═══ منوی موبایل: Sidebar از راست ═══ */
    .rw-menu-inline {
        display: block;
        position: fixed;
        top: 80px;
        right: -320px;
        width: 300px;
        height: calc(100vh - 80px);
        margin: 0;
        padding: 0;
        background: var(--rw-card-bg);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        border-top: 3px solid var(--rw-primary);
        border-left: 1px solid rgba(0, 0, 0, 0.06);
        z-index: 998;
        overflow-y: auto;
        overflow-x: hidden;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        flex: none;
        justify-content: flex-start;
        align-items: stretch;
        min-width: 0;
        scrollbar-width: thin;
        scrollbar-color: var(--rw-primary) transparent;
    }
    
    .rw-menu-inline::-webkit-scrollbar {
        width: 5px;
    }
    .rw-menu-inline::-webkit-scrollbar-track {
        background: transparent;
    }
    .rw-menu-inline::-webkit-scrollbar-thumb {
        background: var(--rw-primary);
        border-radius: 10px;
    }
    
    .rw-menu-inline.rw-nav-open {
        right: 0;
    }
    
    /* منوی عمودی */
    .rw-navbar {
        display: block;
        width: 100%;
        height: auto;
        padding: 8px 0;
    }
    
    .rw-navbar-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        height: auto;
        width: 100%;
    }
    
    .rw-navbar-list > li {
        width: 100%;
        height: auto;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .rw-navbar-list > li:last-child {
        border-bottom: none;
    }
    
    .rw-navbar-list > li > a {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: var(--rw-radius-sm);
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        font-weight: 700;
    }
    
    .rw-navbar-list > li > a::before {
        display: none;
    }
    
    /* فلش برای آیتم‌های دارای زیرمنو */
    .rw-nav-normal > a::after,
    .rw-nav-mega > a::after {
        content: "▼";
        font-size: 10px;
        opacity: 0.5;
        transition: transform 0.3s;
    }
    
    .rw-nav-normal.rw-sub-open > a::after,
    .rw-nav-mega.rw-sub-open > a::after {
        transform: rotate(180deg);
    }
    
    /* زیرمنوها در موبایل */
    .rw-submenu-nav,
    .rw-mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        max-width: 100%;
        background: rgba(0, 0, 0, 0.03);
        box-shadow: none;
        border-top: none;
        border-radius: var(--rw-radius-sm);
        padding: 0;
        margin: 0;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    
    .rw-nav-normal.rw-sub-open .rw-submenu-nav,
    .rw-nav-mega.rw-sub-open .rw-mega-menu {
        display: block;
        max-height: 1200px;
        padding: 8px 0;
        margin: 4px 0;
    }
    
    .rw-submenu-nav a {
        padding: 10px 24px;
        font-size: 13px;
        border-right: 2px solid var(--rw-primary);
        margin-right: 8px;
        margin-left: 8px;
        border-radius: var(--rw-radius-sm);
    }
    
    .rw-submenu-nav a:hover {
        background: rgba(0, 0, 0, 0.05);
        padding-right: 28px;
    }
    
    .rw-mega-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 8px;
    }
    
    .rw-mega-item {
        padding: 8px;
    }
    
    .rw-mega-item img {
        height: 90px;
    }
}

/* ═══════════════════════════════════════════════════════════
   ۱۰. ریسپانسیو - موبایل کوچک
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .rw-topbar {
        padding: 8px 0;
    }
    .rw-topbar-container {
        justify-content: center;
        text-align: center;
        padding: 0 12px;
    }
    .rw-topbar-item {
        font-size: 11px;
    }
    
    .rw-header {
        height: 70px;
    }
    
    .rw-header-container {
        padding: 0 10px;
        gap: 8px;
    }
    
    .rw-logo-img {
        height: 42px;
        max-width: 110px;
    }
    .rw-logo-icon-css {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }
    .rw-logo-text {
        height: 42px;
    }
    .rw-logo-title {
        font-size: 18px;
    }
    .rw-logo-slogan {
        display: none;
    }
    
    .rw-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    /* منوی موبایل */
    .rw-menu-inline {
        top: 70px;
        height: calc(100vh - 70px);
        width: 280px;
        right: -300px;
    }
}

@media (max-width: 380px) {
    .rw-logo-text {
        display: none;
    }
}





/* ═══════════════════════════════════════════════════════════
   🎨 سبک ۲ — کارتی شناور با گوشه گرد
   ═══════════════════════════════════════════════════════════ */

/* ═══ Topbar — محتوایی + گوشه گرد پایین ═══ */
[data-header-style="2"] .rw-topbar1 {
    max-width: 1300px;
    margin: 0 auto;
    padding: 5px 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

[data-header-style="2"] .rw-topbar-container1 {
    max-width: none;
    margin: 0;
    padding: 0 24px;
}

/* ═══ هدر — محتوایی + گوشه گرد کامل + فاصله از بالا ═══ */
[data-header-style="2"] .rw-header {
    max-width: 1300px;
    margin: 8px auto 20px;
    height: 85px;
    border-top: none;
    border-radius: 10px;
    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-header-style="2"] .rw-header-container {
    max-width: none;
    margin: 0;
    padding: 0 24px;
}

/* ═══ لوگو — حفظ نسبت با هدر ═══ */
[data-header-style="2"] .rw-logo-img { height: 52px; max-width: 150px; }
[data-header-style="2"] .rw-logo-icon-css { width: 52px; height: 52px; font-size: 28px; }
[data-header-style="2"] .rw-logo-text { height: 52px; }
[data-header-style="2"] .rw-logo-title { font-size: 24px; }

/* ═══ زیرمنوها — تنظیم با گوشه گرد هدر ═══ */
[data-header-style="2"] .rw-submenu-nav {
    border-radius: 12px;
    margin-top: 4px;
}

[data-header-style="2"] .rw-mega-menu {
    border-radius: 16px;
    margin-top: 4px;
}


/* ═══════════════════════════════════════════════════════════
   📱 ریسپانسیو سبک ۲
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1320px) {
    [data-header-style="2"] .rw-topbar1 {
        max-width: calc(100% - 32px);
        margin: 0 16px;
    }
    [data-header-style="2"] .rw-header {
        max-width: calc(100% - 32px);
        margin: 8px 16px 16px;
    }
}

@media (max-width: 992px) {
    /* در موبایل: هدر کوچک‌تر و فاصله کمتر */
    [data-header-style="2"] .rw-topbar1 {
        max-width: calc(100% - 16px);
        margin: 0 8px;
        padding: 4px 0;
        border-radius: 0 0 12px 12px;
    }
    [data-header-style="2"] .rw-topbar-container1 {
        padding: 0 16px;
    }
    
    [data-header-style="2"] .rw-header {
        max-width: calc(100% - 16px);
        margin: 6px 8px 12px;
        height: 70px;
        border-radius: 12px;
    }
    [data-header-style="2"] .rw-header-container {
        padding: 0 16px;
    }
    
    /* منوی موبایل با تنظیم موقعیت */
    [data-header-style="2"] .rw-menu-inline {
        top: 82px;
        height: calc(100vh - 90px);
        border-radius: 16px 0 0 16px;
    }
}

@media (max-width: 600px) {
    [data-header-style="2"] .rw-topbar1 {
        max-width: calc(100% - 12px);
        margin: 0 6px;
        padding: 3px 0;
        border-radius: 0 0 10px 10px;
    }
    [data-header-style="2"] .rw-topbar-container1 {
        padding: 0 10px;
    }
    
    [data-header-style="2"] .rw-header {
        max-width: calc(100% - 12px);
        margin: 4px 6px 10px;
        height: 65px;
        border-radius: 10px;
    }
    [data-header-style="2"] .rw-header-container {
        padding: 0 12px;
    }
    
    [data-header-style="2"] .rw-menu-inline {
        top: 75px;
        height: calc(100vh - 85px);
    }
}


/* ═══════════════════════════════════════════════════════════
   🎨 سبک ۳ — کارت لوگوی برجسته
   ═══════════════════════════════════════════════════════════ */

/* ═══ هدر پایه (مثل سبک ۱ + اجازه سرریز لوگو) ═══ */
[data-header-style="3"] .rw-header {
    background: var(--rw-header-bg);
    border-top: 4px solid var(--rw-primary);
    height: 100px;
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    overflow: visible; /* مهم: اجازه دادن به کارت که از هدر بیرون بزند */
}

[data-header-style="3"] .rw-header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: visible;
}

/* ═══ کارت لوگو — برجسته از بالا و پایین ═══ */
[data-header-style="3"] .rw-logo-link {
    /* تبدیل به کارت */
    background: #fff;
    padding: 10px 20px;
    border-radius: 16px;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);

    /* خروج 5 پیکسلی از بالا و پایین */
    margin-top: -5px;
    margin-bottom: -5px;
    height: calc(100% + 10px);
    min-height: 60px;

    /* چیدمان داخلی */
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;

    /* انیمیشن */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-header-style="3"] .rw-logo-link:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.22),
        0 6px 15px rgba(0, 0, 0, 0.1);
}

/* ═══ تنظیم اندازه لوگو داخل کارت ═══ */
[data-header-style="3"] .rw-logo-img {
    height: 55px;
    max-width: 160px;
    display: block;
    object-fit: contain;
}

[data-header-style="3"] .rw-logo-icon-css {
    width: 55px;
    height: 55px;
    font-size: 30px;
    border-radius: 12px;
    padding-top: 3px;
}

[data-header-style="3"] .rw-logo-text {
    height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

[data-header-style="3"] .rw-logo-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--rw-primary);
    letter-spacing: 0.4px;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    display: block;
}

[data-header-style="3"] .rw-logo-slogan {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 10px;
    color: var(--rw-muted);
    margin-top: 4px;
    padding: 0;
    line-height: 1;
    display: block;
}

/* ═══ منو — حفظ فاصله از کارت لوگو ═══ */
[data-header-style="3"] .rw-menu-inline {
    margin-right: 24px;
    margin-left: 10px;
    flex: 1;
    justify-content: flex-start;
    height: 100%;
    min-width: 0;
}

/* ═══ زیرمنوها — تنظیم هم‌ترازی با کارت ═══ */
[data-header-style="3"] .rw-submenu-nav {
    margin-top: 8px;
    border-radius: 12px;
}

[data-header-style="3"] .rw-mega-menu {
    margin-top: 8px;
    border-radius: 14px;
}


/* ═══════════════════════════════════════════════════════════
   📱 ریسپانسیو سبک ۳
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    [data-header-style="3"] .rw-logo-img { height: 48px; max-width: 140px; }
    [data-header-style="3"] .rw-logo-icon-css { width: 48px; height: 48px; font-size: 26px; }
    [data-header-style="3"] .rw-logo-text { height: 48px; }
    [data-header-style="3"] .rw-logo-title { font-size: 22px; }
    [data-header-style="3"] .rw-logo-link { padding: 8px 16px; }
}

@media (max-width: 992px) {
    /* هدر کوتاه‌تر می‌شود — کارت متناسب کوچک می‌شود */
    [data-header-style="3"] .rw-header {
        height: 80px;
    }
    [data-header-style="3"] .rw-logo-link {
        padding: 6px 14px;
        border-radius: 12px;
        gap: 8px;
        margin-top: -4px;
        margin-bottom: -4px;
        height: calc(100% + 8px);
        min-height: 45px;
    }
    [data-header-style="3"] .rw-logo-img { height: 42px; max-width: 120px; }
    [data-header-style="3"] .rw-logo-icon-css { width: 42px; height: 42px; font-size: 22px; border-radius: 10px; }
    [data-header-style="3"] .rw-logo-text { height: 42px; }
    [data-header-style="3"] .rw-logo-title { font-size: 19px; }
    [data-header-style="3"] .rw-logo-slogan { font-size: 9px; }
    [data-header-style="3"] .rw-menu-inline { margin-right: 14px; }
}

@media (max-width: 600px) {
    [data-header-style="3"] .rw-header {
        height: 65px;
    }
    [data-header-style="3"] .rw-header-container {
        padding: 0 12px;
    }
    [data-header-style="3"] .rw-logo-link {
        padding: 5px 10px;
        border-radius: 10px;
        gap: 6px;
        margin-top: -3px;
        margin-bottom: -3px;
        height: calc(100% + 6px);
        min-height: 38px;
    }
    [data-header-style="3"] .rw-logo-img { height: 34px; max-width: 100px; }
    [data-header-style="3"] .rw-logo-icon-css { width: 34px; height: 34px; font-size: 18px; border-radius: 8px; }
    [data-header-style="3"] .rw-logo-text { height: 34px; }
    [data-header-style="3"] .rw-logo-title { font-size: 16px; }
    [data-header-style="3"] .rw-logo-slogan { display: none; }
    [data-header-style="3"] .rw-menu-inline { margin-right: 8px; }
}

/* ═══════════════════════════════════════════════════════════
   🔧 رفع تداخل کارت لوگو با Topbar در سبک ۳
   ═══════════════════════════════════════════════════════════ */

/* فضای اضافی پایین Topbar تا کارت لوگو روی متن‌ها نیفتد */
[data-header-style="3"] .rw-topbar1 {
    padding-top: 2px;
    padding-bottom: 10px; /* فضای خالی برای کارت لوگو */
}

/* محتوای Topbar در بالای خودش بماند */
[data-header-style="3"] .rw-topbar-container1 {
    align-items: flex-start;
    padding-top: 2px;
}

/* اطمینان از اینکه متن‌های Topbar بالای کارت لوگو باقی می‌مانند */
[data-header-style="3"] .rw-topbar-left,
[data-header-style="3"] .rw-topbar-right {
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

/* موبایل — فضای کمتر */
@media (max-width: 992px) {
    [data-header-style="3"] .rw-topbar1 {
        padding-bottom: 8px;
    }
}

@media (max-width: 600px) {
    [data-header-style="3"] .rw-topbar1 {
        padding-bottom: 6px;
    }
}


/* ═══════════════════════════════════════════════════════════
   🎨 سبک ۴ — عیناً سبک ۳ + کارت با بوردر ۳ پیکسلی
   ═══════════════════════════════════════════════════════════ */

/* ═══ هدر پایه (عیناً مثل سبک ۳) ═══ */
[data-header-style="4"] .rw-header {
    background: var(--rw-header-bg);
    border-top: 4px solid var(--rw-primary);
    height: 100px;
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    overflow: visible;
}

[data-header-style="4"] .rw-header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: visible;
}

/* ═══ کارت لوگو — عیناً سبک ۳ + بوردر ۳ پیکسلی ═══ */
[data-header-style="4"] .rw-logo-link {
    /* کارت سفید (مثل سبک ۳) */
    background: #fff;
    padding: 10px 20px;
    border-radius: 0px 0px 10px 10px;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.08);

    /* 🔧 فقط این خط اضافه شده — بوردر ۳ پیکسلی با رنگ تم */
    border: 3px solid var(--rw-primary);

    /* خروج 5 پیکسلی از بالا و پایین (مثل سبک ۳) */
    margin-top: -5px;
    margin-bottom: -5px;
    height: calc(100% + 10px);
    min-height: 60px;

    /* چیدمان داخلی */
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    box-sizing: border-box;

    /* انیمیشن */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* هاور کارت */
[data-header-style="4"] .rw-logo-link:hover {
    transform: translateY(-3px);
    border-color: var(--rw-secondary);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.22),
        0 6px 15px rgba(0, 0, 0, 0.1);
}

/* ═══ تنظیم اندازه لوگو داخل کارت (عیناً سبک ۳) ═══ */
[data-header-style="4"] .rw-logo-img {
    height: 55px;
    max-width: 160px;
    display: block;
    object-fit: contain;
}

[data-header-style="4"] .rw-logo-icon-css {
    width: 55px;
    height: 55px;
    font-size: 30px;
    border-radius: 12px;
    padding-top: 3px;
}

[data-header-style="4"] .rw-logo-text {
    height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

[data-header-style="4"] .rw-logo-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--rw-primary);
    letter-spacing: 0.4px;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    display: block;
}

[data-header-style="4"] .rw-logo-slogan {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 10px;
    color: var(--rw-muted);
    margin-top: 4px;
    padding: 0;
    line-height: 1;
    display: block;
}

/* ═══ منو — عیناً سبک ۳ ═══ */
[data-header-style="4"] .rw-menu-inline {
    margin-right: 24px;
    margin-left: 10px;
    flex: 1;
    justify-content: flex-start;
    height: 100%;
    min-width: 0;
}

/* ═══ زیرمنوها — عیناً سبک ۳ ═══ */
[data-header-style="4"] .rw-submenu-nav {
    margin-top: 8px;
    border-radius: 12px;
}

[data-header-style="4"] .rw-mega-menu {
    margin-top: 8px;
    border-radius: 14px;
}


/* ═══════════════════════════════════════════════════════════
   📱 ریسپانسیو سبک ۴ (عیناً سبک ۳)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    [data-header-style="4"] .rw-logo-img { height: 48px; max-width: 140px; }
    [data-header-style="4"] .rw-logo-icon-css { width: 48px; height: 48px; font-size: 26px; }
    [data-header-style="4"] .rw-logo-text { height: 48px; }
    [data-header-style="4"] .rw-logo-title { font-size: 22px; }
    [data-header-style="4"] .rw-logo-link {
        padding: 8px 16px;
        border-width: 3px;
    }
}

@media (max-width: 992px) {
    [data-header-style="4"] .rw-header {
        height: 80px;
    }
    [data-header-style="4"] .rw-logo-link {
        padding: 6px 14px;
        border-radius: 12px;
        border-width: 3px;
        gap: 8px;
        margin-top: -4px;
        margin-bottom: -4px;
        height: calc(100% + 8px);
        min-height: 45px;
    }
    [data-header-style="4"] .rw-logo-img { height: 42px; max-width: 120px; }
    [data-header-style="4"] .rw-logo-icon-css { width: 42px; height: 42px; font-size: 22px; border-radius: 10px; }
    [data-header-style="4"] .rw-logo-text { height: 42px; }
    [data-header-style="4"] .rw-logo-title { font-size: 19px; }
    [data-header-style="4"] .rw-logo-slogan { font-size: 9px; }
    [data-header-style="4"] .rw-menu-inline { margin-right: 14px; }
}

@media (max-width: 600px) {
    [data-header-style="4"] .rw-header {
        height: 65px;
    }
    [data-header-style="4"] .rw-header-container {
        padding: 0 12px;
    }
    [data-header-style="4"] .rw-logo-link {
        padding: 5px 10px;
        border-radius: 10px;
        border-width: 3px;
        gap: 6px;
        margin-top: -3px;
        margin-bottom: -3px;
        height: calc(100% + 6px);
        min-height: 38px;
    }
    [data-header-style="4"] .rw-logo-img { height: 34px; max-width: 100px; }
    [data-header-style="4"] .rw-logo-icon-css { width: 34px; height: 34px; font-size: 18px; border-radius: 8px; }
    [data-header-style="4"] .rw-logo-text { height: 34px; }
    [data-header-style="4"] .rw-logo-title { font-size: 16px; }
    [data-header-style="4"] .rw-logo-slogan { display: none; }
    [data-header-style="4"] .rw-menu-inline { margin-right: 8px; }
}

/* ═══════════════════════════════════════════════════════════
   🎨 سبک ۵ — کارت فقط برای عکس لوگو (متن بیرون)
   ═══════════════════════════════════════════════════════════ */

/* ═══ هدر پایه (مثل سبک ۳ و ۴) ═══ */
[data-header-style="5"] .rw-header {
    background: var(--rw-header-bg);
    border-top: 4px solid var(--rw-primary);
    height: 100px;
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    overflow: visible;
}

[data-header-style="5"] .rw-header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: visible;
}

/* ═══ لینک لوگو — بدون کارت (شفاف) ═══ */
[data-header-style="5"] .rw-logo-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    height: 100%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* ═══ 🎯 کارت فقط برای عکس لوگو (با بوردر 3 پیکسل) ═══ */
[data-header-style="5"] .rw-logo-img {
    /* تبدیل عکس به کارت */
    height: 84px;
    width: 84px;
    max-width: 84px;
    padding: 8px;
    background: #fff;
    border-radius: 16px;
    box-sizing: border-box;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;

    /* 🔧 بوردر 3 پیکسل با رنگ تم */
    border: 3px solid var(--rw-primary);

    /* سایه */
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.08);

    /* خروج 5 پیکسل از بالا و پایین */
    margin-top: -5px;
    margin-bottom: -5px;

    /* انیمیشن */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* هاور کارت */
[data-header-style="5"] .rw-logo-link:hover .rw-logo-img {
    transform: translateY(-3px);
    border-color: var(--rw-secondary);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.22),
        0 6px 15px rgba(0, 0, 0, 0.1);
}

/* ═══ آیکون جایگزین (وقتی لوگو نیست) — کارت گرادیان ═══ */
[data-header-style="5"] .rw-logo-icon-css {
    width: 84px;
    height: 84px;
    font-size: 30px;
    border-radius: 16px;
    padding: 0;
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    border: 3px solid #fff;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    margin-top: -5px;
    margin-bottom: -5px;
    transition: all 0.3s ease;
}

[data-header-style="5"] .rw-logo-link:hover .rw-logo-icon-css {
    transform: translateY(-3px);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.22),
        0 6px 15px rgba(0, 0, 0, 0.1);
}

/* ═══ متن لوگو — بیرون از کارت ═══ */
[data-header-style="5"] .rw-logo-text {
    height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

[data-header-style="5"] .rw-logo-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--rw-primary);
    letter-spacing: 0.4px;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    display: block;
}

[data-header-style="5"] .rw-logo-slogan {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 10px;
    color: var(--rw-muted);
    margin-top: 4px;
    padding: 0;
    line-height: 1;
    display: block;
}

/* ═══ منو ═══ */
[data-header-style="5"] .rw-menu-inline {
    margin-right: 24px;
    margin-left: 10px;
    flex: 1;
    justify-content: flex-start;
    height: 100%;
    min-width: 0;
}

/* ═══ زیرمنوها ═══ */
[data-header-style="5"] .rw-submenu-nav {
    margin-top: 8px;
    border-radius: 12px;
}

[data-header-style="5"] .rw-mega-menu {
    margin-top: 8px;
    border-radius: 14px;
}


/* ═══════════════════════════════════════════════════════════
   📱 ریسپانسیو سبک ۵
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    [data-header-style="5"] .rw-logo-img {
        height: 56px;
        width: 56px;
        max-width: 56px;
        padding: 6px;
        border-radius: 14px;
        border-width: 3px;
    }
    [data-header-style="5"] .rw-logo-icon-css {
        width: 56px;
        height: 56px;
        font-size: 26px;
        border-radius: 14px;
    }
    [data-header-style="5"] .rw-logo-text { height: 56px; }
    [data-header-style="5"] .rw-logo-title { font-size: 22px; }
}

@media (max-width: 992px) {
    [data-header-style="5"] .rw-header { height: 80px; }
    [data-header-style="5"] .rw-logo-img {
        height: 50px;
        width: 50px;
        max-width: 50px;
        padding: 5px;
        border-radius: 12px;
        border-width: 3px;
        margin-top: -4px;
        margin-bottom: -4px;
    }
    [data-header-style="5"] .rw-logo-icon-css {
        width: 50px;
        height: 50px;
        font-size: 24px;
        border-radius: 12px;
        margin-top: -4px;
        margin-bottom: -4px;
    }
    [data-header-style="5"] .rw-logo-text { height: 50px; }
    [data-header-style="5"] .rw-logo-title { font-size: 19px; }
    [data-header-style="5"] .rw-logo-slogan { font-size: 9px; }
    [data-header-style="5"] .rw-menu-inline { margin-right: 14px; }
}

@media (max-width: 600px) {
    [data-header-style="5"] .rw-header { height: 65px; }
    [data-header-style="5"] .rw-header-container { padding: 0 12px; }
    [data-header-style="5"] .rw-logo-img {
        height: 42px;
        width: 42px;
        max-width: 42px;
        padding: 4px;
        border-radius: 10px;
        border-width: 2px;
        margin-top: -3px;
        margin-bottom: -3px;
    }
    [data-header-style="5"] .rw-logo-icon-css {
        width: 42px;
        height: 42px;
        font-size: 20px;
        border-radius: 10px;
        border-width: 2px;
        margin-top: -3px;
        margin-bottom: -3px;
    }
    [data-header-style="5"] .rw-logo-text { height: 42px; }
    [data-header-style="5"] .rw-logo-title { font-size: 16px; }
    [data-header-style="5"] .rw-logo-slogan { display: none; }
    [data-header-style="5"] .rw-menu-inline { margin-right: 10px; }
}