/* ==========================================
   RASPINA HEADER + HERO SECTION – MINIMAL GAP
   ========================================== */

:root {
    --color-primary: #C62828;
    --color-secondary: #E53935;
    --color-gold: #D4A13B;
    --color-gold-light: #C9A13B;
    --color-cream: #F5F0E6;
    --color-white: #ffffff;
    --color-dark: #2d2d2d;
    --color-bg: #121212;
    --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
    --shadow-lg: 0 5px 25px rgba(0,0,0,0.15);
    --shadow-gold: 0 0 0 5px var(--color-gold), 0 8px 25px rgba(212, 161, 59, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-cream);
    direction: rtl;
    padding-top: 0;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ── هدر اصلی و عناصر آن ── */
.main-header .raspina-header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}
.main-header .fas,
.main-header .far {
    font-family: "Font Awesome 6 Free" !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
}
.main-header .fas { font-weight: 900 !important; }
.main-header .far { font-weight: 400 !important; }
.main-header .fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
}

.header-tab-bar {
    --raspina-tab-banner: none;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(800px, 5vw, 6px);
    width: 100%;
    min-height: 22px;
    padding-block: clamp(3px, 0.325vw, 5px);
    padding-inline: clamp(12px, 2.2vw, 32px);
    background-color: #fe0000;
    background-image: var(--raspina-tab-banner);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: opacity 0.25s ease, height 0.3s ease, min-height 0.3s ease, padding 0.3s ease;
}

.tab-bar-right,
.tab-bar-left {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    max-width: none;
    width: auto;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.tab-bar-right::-webkit-scrollbar,
.tab-bar-left::-webkit-scrollbar { height: 3px; }
.tab-bar-right::-webkit-scrollbar-thumb,
.tab-bar-left::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 4px; }
.tab-bar-right { justify-content: flex-start; }
.tab-bar-left { justify-content: flex-end; }

nav.tab-nav { margin: 7.5px 0px 0px 0px; }

.tab-nav { display: flex; align-items: center; min-width: 0; }
.tab-nav ul { display: flex; flex-wrap: nowrap; justify-content: center; gap: clamp(2px, 0.35vw, 8px); min-width: 0; }
.tab-nav ul li { flex-shrink: 1; min-width: 0; }
.tab-nav ul li a {
    display: inline-flex; align-items: center; gap: 4px;
    padding: clamp(2px, 0.225vw, 3.5px) clamp(6px, 0.7vw, 12px);
    border-radius: 999px; white-space: nowrap; color: #111;
    font-size: clamp(11px, 0.95vw, 13px); font-weight: 600; line-height: 1;
    text-shadow: 0 0 8px rgba(255,255,255,0.85), 0 1px 1px rgba(255,255,255,0.6);
}
.tab-nav ul li a i { display: inline-block; line-height: 1; color: #111 !important; }
.tab-nav ul li a:hover { background-color: rgba(255,255,255,0.45); color: #000; }
.tab-nav ul li a:hover i { color: #000 !important; }

.main-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: var(--transition);
}
.main-header.scrolled {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.main-header.scrolled .header-tab-bar {
    opacity: 0; display: none; margin: 0; padding: 0; height: 0; min-height: 0; overflow: hidden; pointer-events: none;
}

.header-content {
    display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(10px, 1.2vw, 22px);
    padding-block: clamp(6px, 0.75vw, 10px); padding-inline: 0; box-shadow: 0 6px 16px #d0a35e;
}

.logo { flex: 0 0 auto; }
.logo img { height: clamp(42px, 4vw, 54px); width: auto; display: block; }

.header-nav { flex: 0 1 auto; min-width: 0; }
@media (min-width: 1025px) {
    .header-nav.desktop-nav { margin-top: auto; }
    .header-nav.desktop-nav .nav-list { margin-top: 10px; }
}
.nav-list { display: flex; flex-wrap: nowrap; gap: clamp(2px, 0.4vw, 8px); }
.nav-list > li > a {
    display: flex; align-items: center; gap: 5px;
    padding: clamp(8px, 0.9vw, 12px) clamp(12px, 1.2vw, 20px);
    font-size: clamp(13px, 1.05vw, 15px); font-weight: 500; color: var(--color-dark);
    border-radius: 25px; white-space: nowrap;
}
.header-nav .nav-list > li > a i { color: #111 !important; }
.nav-list > li > a:hover, .nav-list > li.active > a {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff;
}
.nav-list > li > a:hover i,
.nav-list > li.active > a i { color: #fff !important; }

.search-box { flex: 1 1 160px; min-width: min(140px, 22vw); max-width: none; }
.search-box form.raspina-search-form,
.search-box form {
    display: flex; align-items: stretch; width: 100%; min-height: 40px;
    background: var(--color-cream); border-radius: 999px; overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-box form:focus-within {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212,161,59,0.2), inset 0 1px 0 rgba(255,255,255,0.6); outline: none;
}
.search-box input[type="search"],
.search-box input[type="text"] {
    flex: 1 1 auto; min-width: 0; border: none; background: transparent;
    padding: 10px clamp(14px, 1.5vw, 22px); font-size: clamp(13px, 1vw, 15px);
    outline: none; color: var(--color-dark);
}
.search-box input::placeholder { color: rgba(45,45,45,0.45); }
.search-box button[type="submit"] {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    align-self: stretch; width: 48px; margin-block: 4px; margin-inline-end: 4px; margin-inline-start: 0;
    padding: 0; border: none; border-inline-start: 1px solid rgba(0,0,0,0.1); border-radius: 0;
    background: transparent; cursor: pointer; color: #111; font-size: 17px; line-height: 1;
    transition: color 0.2s ease, background 0.2s ease; -webkit-appearance: none; appearance: none;
}
.search-box button[type="submit"] i { color: inherit !important; pointer-events: none; }
.search-box button[type="submit"]:hover { color: var(--color-primary); background: rgba(0,0,0,0.04); }
.search-box button[type="submit"]:focus-visible { outline: none; color: var(--color-primary); background: rgba(198,40,40,0.06); }

/* دسکتاپ: بدون تغییر چیدمان؛ موبایل: جستجو + آیکن‌ها در یک خوشه */
.header-mobile-actions {
    display: contents;
}

.header-icons { display: flex; align-items: center; flex-shrink: 0; gap: clamp(6px, 0.75vw, 12px); }
.header-icon-item { position: relative; }
.header-icon-item > a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; min-height: 38px; padding: 8px; background: transparent;
    border: none; border-radius: 50%; font-size: 16px; color: #111; transition: all 0.25s ease;
}
.header-icon-item > button.header-icon-item__btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; min-height: 38px; padding: 8px; background: transparent;
    border: none; border-radius: 50%; font-size: 16px; color: #111; transition: all 0.25s ease;
    cursor: pointer;
}
.header-icon-item > a i,
.header-icon-item > button.header-icon-item__btn i { color: inherit !important; }
.header-icon-item > a:hover,
.header-icon-item > button.header-icon-item__btn:hover { background: rgba(198,40,40,0.1); color: #D4A13B; transform: scale(1.1); }
.header-icon-item > a:hover i,
.header-icon-item > button.header-icon-item__btn:hover i { color: #D4A13B !important; }
.header-icon-item .badge {
    position: absolute; top: 2px; inset-inline-end: 2px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light)); color: #fff;
    font-size: 9px; font-weight: bold; width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; pointer-events: none; transition: all 0.2s ease;
}
.header-icon-item:hover .badge { background: #C62828; transform: scale(1.2); }
.header-icon-item.cart > a:hover { background: rgba(198,40,40,0.15); }

.mobile-menu-toggle, .mobile-search-toggle { display: none; background: transparent; border: none; border-radius: 0; box-shadow: none; }
.mobile-menu-toggle i { color: #111 !important; }

/* دسکتاپ: خوشه همبرگر+فروشگاه در جریان فلکس نادیده (فقط کنترل‌های موبایل) */
.header-mobile-leading {
    display: contents;
}
.raspina-mobile-shop-toggle {
    display: none !important;
}

/* ── مگامنو ── */
.mega-menu { position: relative; }
.mega-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-70%);
    background: white; border-radius: 0 0 20px 20px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 150; border-top: 3px solid var(--color-gold);
    pointer-events: none;
}
.mega-menu > a::after {
    content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 25px; background: transparent; z-index: 160;
}
@media (pointer: fine) {
    .mega-menu:not(:hover) .mega-dropdown { transition-delay: 0.15s; }
    .mega-menu:hover .mega-dropdown { transition-delay: 0.3s; opacity: 1; visibility: visible; pointer-events: auto; }
}
.mega-menu-content { display: flex; gap: 30px; padding: 30px 40px; flex-wrap: wrap; }
.mega-column { flex: 1; min-width: 160px; }
.guide-mega { position: relative; }
.guide-mega .mega-dropdown.guide-mega-dropdown { width: auto; min-width: 260px; max-width: min(380px, 94vw); }
.guide-mega .guide-mega-content { padding: 22px 28px; flex-wrap: nowrap; }
.guide-mega-column { flex: 1; min-width: 0; }
.guide-mega-list { display: flex; flex-direction: column; gap: 0; }
.guide-mega-list li a { display: block; padding: 10px 6px; font-size: 14px; border-bottom: 1px dashed #e0e0e0; }
.guide-mega-list li:last-child a { border-bottom: none; }
.guide-mega-list li a:hover { color: var(--color-primary); padding-right: 10px; }
.mega-column h4 { font-size: 15px; font-weight: 700; color: var(--color-primary); margin-bottom: 12px; border-bottom: 3px solid var(--color-gold); display: inline-block; padding-bottom: 5px; }
.mega-column ul li a { display: block; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed #e0e0e0; }
.mega-column ul li a:hover { color: var(--color-primary); padding-right: 8px; }

.mega-vertical-layout {
    display: flex !important;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 20px;
    padding: 25px 30px;
    max-width: 1350px;                 /* افزایش عرض کل */
    width: max-content;               /* اجازه بزرگ‌تر شدن در صورت نیاز */
    margin: 0 auto;
}
.mega-main-cats {
    flex: 0 0 18%;                    /* کاهش عرض برای آزادسازی فضا */
    min-width: 180px;
    border-left: 1px solid #e0e0e0;
    padding-left: 20px;
}
.main-cat-list { list-style: none; padding: 0; margin: 0; }
.main-cat-list li { margin-bottom: 4px; }
.main-cat-list li a {
    display: flex; align-items: center; justify-content: space-between; padding: 12px 15px;
    color: #2d2d2d; font-size: 14px; font-weight: 600; border-radius: 8px; transition: all 0.25s ease;
    background: #f9f9f9; margin: 2px 0;
}
.main-cat-list li a i { font-size: 12px; transition: transform 0.3s; color: #C62828; opacity: 0.7; }
.main-cat-list li.active a,
.main-cat-list li a:hover { background: #C62828; color: #fff; box-shadow: 0 4px 12px rgba(198,40,40,0.2); transform: translateX(-4px); }
.main-cat-list li.active a i,
.main-cat-list li a:hover i { color: #fff; opacity: 1; transform: translateX(-3px); }
.mega-subcats-panels {
    flex: 1;                          /* تمام فضای باقی‌مانده */
    min-width: 0;
    min-height: 300px;
    position: relative;
}
.subcat-panel {
    position: static; width: 100%; opacity: 0; visibility: hidden; height: 0; overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease; display: grid;
    grid-template-columns: repeat(4, 1fr);   /* ۴ ستون برای فضای بیشتر */
    gap: 20px 30px;                          /* gap کمی بزرگ‌تر */
    align-content: start;
}
.subcat-panel.active { opacity: 1; visibility: visible; height: auto; overflow: visible; }
.subcat-panel h4 {
    font-size: 15px; font-weight: 700; color: #C62828; margin-bottom: 10px;
    grid-column: 1 / -1; border-bottom: 2px solid #D4A13B; padding-bottom: 6px;
}
.subcat-panel ul { list-style: none; padding: 0; margin: 0; }
.subcat-panel ul li { margin-bottom: 6px; }
.subcat-panel ul li a {
    color: #666; font-size: 13px; display: block; padding: 4px 0;
    transition: color 0.2s, padding-right 0.2s; white-space: nowrap;
}
.subcat-panel ul li a:hover { color: #C62828; padding-right: 6px; }

.raspina-shop-menu .raspina-shop-dropdown,
.raspina-exhibition-menu .raspina-exhibition-dropdown {
    width: min(680px, 94vw);
    left: 0%;
    transform: translateX(-60%);
}
.raspina-shop-layout,
.raspina-exhibition-layout {
    width: 100%;
    max-width: none;
    padding: 22px;
    gap: 18px;
}
.raspina-shop-layout .mega-main-cats,
.raspina-exhibition-layout .mega-main-cats {
    flex: 0 0 220px;
    min-width: 220px;
}
.raspina-shop-layout .mega-subcats-panels,
.raspina-exhibition-layout .mega-subcats-panels {
    min-height: 180px;
}
.raspina-shop-layout .subcat-panel,
.raspina-exhibition-layout .subcat-panel {
    grid-template-columns: 1fr;
    gap: 8px;
}
.raspina-shop-layout .subcat-panel ul,
.raspina-exhibition-layout .subcat-panel ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
}
.raspina-about-menu .guide-mega-dropdown {
    min-width: 240px;
}

/* ── منوی موبایل ── */
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 999; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu { position: fixed; top: 0; right: -320px; width: 320px; height: 100%; background: white; z-index: 1000; transition: 0.3s; overflow-y: auto; }
.mobile-menu.active { right: 0; }
.mobile-menu-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 52px;
    min-height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}
.mobile-menu-header .logo,
.mobile-menu-header .logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.mobile-menu-header .logo img {
    height: clamp(38px, 10vw, 44px);
    width: auto;
    max-width: min(220px, 72vw);
    display: block;
    object-fit: contain;
}
.mobile-menu-header .close-btn {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2); border: none; width: 36px; height: 36px; border-radius: 50%;
    color: white; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mobile-menu-header .close-btn:hover { background: rgba(255,215,0,0.3); transform: translateY(-50%) scale(1.05); }
.mobile-menu-header .close-btn:hover .close-btn__icon { color: #FFD700; }
.mobile-menu-header .close-btn__icon {
    display: block;
    flex-shrink: 0;
    color: #fff;
}
.mobile-menu .fas,
.mobile-menu .far {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
}
.mobile-menu .fas { font-weight: 900 !important; }
.mobile-menu .far { font-weight: 400 !important; }
.mobile-menu-body li a { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid #e0e0e0; color: var(--color-dark); }
.mobile-menu-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #e0e0e0;
}
.mobile-menu-body .mobile-menu-row > a {
    flex: 1 1 auto;
    min-width: 0;
    border-bottom: 0;
}
.mobile-submenu-toggle {
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-inline-start: 1px solid #e0e0e0;
    background: #fff;
    color: rgba(45,45,45,0.62);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}
.mobile-submenu-toggle:hover {
    background: rgba(198,40,40,0.08);
    color: var(--color-gold);
}
.mobile-submenu-toggle .raspina-mob-chevron {
    display: inline-flex;
    transition: transform 0.3s ease, color 0.25s ease;
}
.mobile-menu-body .has-submenu > a .raspina-mob-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-inline-start: 10px;
    color: rgba(45,45,45,0.55);
    transition: transform 0.3s ease, color 0.25s ease;
}
.mobile-menu-body .has-submenu > a:hover { background: rgba(198,40,40,0.1); color: #C62828; }
.mobile-menu-body .has-submenu > a:hover .raspina-mob-chevron { color: #D4A13B; }
.mobile-menu-body .has-submenu.active > a .raspina-mob-chevron { transform: rotate(180deg); color: #D4A13B; }
.mobile-menu-body .has-submenu.active > .mobile-menu-row .mobile-submenu-toggle {
    background: rgba(212,161,59,0.12);
    color: #D4A13B;
}
.mobile-menu-body .has-submenu.active > .mobile-menu-row .raspina-mob-chevron {
    transform: rotate(180deg);
}
.mobile-menu-body .submenu { display: none; background: var(--color-cream); }
/* فقط زیرمجموعهٔ مستقیم باز شود؛ سطح بعد با کلیک جداگانه (مخصوص شاخه دسته‌بندی موبایل) */
.mobile-menu-body .has-submenu.active > .submenu { display: block; }
.mobile-menu-body .submenu li a { padding-right: clamp(36px, 9vw, 48px); }
.mobile-menu-body .submenu .submenu li > a { padding-right: clamp(48px, 12vw, 60px); }
.mobile-menu-body .submenu .submenu .submenu li > a { padding-right: clamp(56px, 14vw, 72px); }

/* ── هیروسکشن (کرمی شیشه‌ای) ── */
.raspina-hero-wrapper {
    padding: 0 0 20px 0;
    margin-top: 0;
}
.hero-section {
    position: relative; width: 100%; max-width: 1400px; margin: 0 auto;
    background: linear-gradient(145deg, rgba(245,240,230,0.95) 0%, rgba(235,225,210,0.92) 50%, rgba(225,215,200,0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 40px; overflow: hidden; display: flex; flex-direction: row;
    box-shadow: 0 20px 50px rgba(139,90,43,0.15), 0 0 0 1px rgba(212,161,59,0.25), inset 0 1px 0 rgba(255,255,255,0.8);
    min-height: 700px; isolation: isolate;
}
.hero-bg-pattern { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-logo-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 280px; height: 280px;
    background: url('https://raspinashop.com/wp-content/uploads/2023/04/0.png') center/contain no-repeat;
    opacity: 0; z-index: 0;
    filter: sepia(95%) saturate(250%) hue-rotate(-8deg) brightness(0.9) contrast(1.15) drop-shadow(0 0 14px rgba(176, 123, 35, 0.85));
    animation: logoIntro 5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes logoIntro {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.75); }
    8% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.1); }
    18% { opacity: 0.88; transform: translate(-50%, -50%) scale(0.9); }
    30% { opacity: 0.92; transform: translate(-50%, -50%) scale(1.12); }
    42% { opacity: 0.86; transform: translate(-50%, -50%) scale(0.92); }
    55% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
    68% { opacity: 0.82; transform: translate(-50%, -50%) scale(0.95); }
    82% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.02); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.86); visibility: hidden; }
}
.hero-logo-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,161,59,0.2) 0%, transparent 70%);
    z-index: 0; animation: glowPulse 5s ease-in-out forwards;
    box-shadow: 0 0 80px rgba(212,161,59,0.25), 0 0 150px rgba(212,161,59,0.12);
}
@keyframes glowPulse {
    0% { opacity: 0; box-shadow: 0 0 40px rgba(212,161,59,0.18), 0 0 80px rgba(212,161,59,0.08); }
    15% { opacity: 0.85; box-shadow: 0 0 90px rgba(212,161,59,0.35), 0 0 170px rgba(212,161,59,0.22); }
    35% { opacity: 0.75; box-shadow: 0 0 70px rgba(212,161,59,0.3), 0 0 130px rgba(212,161,59,0.16); }
    55% { opacity: 0.8; box-shadow: 0 0 95px rgba(212,161,59,0.38), 0 0 180px rgba(212,161,59,0.24); }
    80% { opacity: 0.45; box-shadow: 0 0 55px rgba(212,161,59,0.22), 0 0 100px rgba(212,161,59,0.12); }
    100% { opacity: 0; box-shadow: 0 0 30px rgba(212,161,59,0.1), 0 0 60px rgba(212,161,59,0.06); visibility: hidden; }
}
.hero-leaf-orbit {
    position: absolute;
    top: 0;
    right: 0;
    width: 200%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.autumn-leaf {
    position: absolute;
    width: clamp(30px, 4.2vw, 58px);
    height: auto;
    opacity: 0.78;
    pointer-events: none;
    transform-origin: center;
    filter: saturate(1.15) brightness(0.96) drop-shadow(0 10px 14px rgba(87, 54, 19, 0.24));
    animation: floatLeaf 7.5s infinite alternate ease-in-out;
}
.leaf1 { top: 6%; left: 9%; --leaf-rotate: -31deg; --leaf-scale: 0.62; animation-delay: 0s; animation-duration: 8.6s; }
.leaf2 { top: 18%; left: 31%; --leaf-rotate: 24deg; --leaf-scale: 0.78; animation-delay: -2.2s; animation-duration: 7.4s; }
.leaf3 { top: 8%; left: 53%; --leaf-rotate: 71deg; --leaf-scale: 0.54; animation-delay: -4.1s; animation-duration: 9.2s; }
.leaf4 { top: 24%; left: 74%; --leaf-rotate: 118deg; --leaf-scale: 0.88; animation-delay: -1.1s; animation-duration: 6.9s; }
.leaf5 { top: 42%; left: 16%; --leaf-rotate: 203deg; --leaf-scale: 0.72; animation-delay: -3.6s; animation-duration: 8.1s; }
.leaf6 { top: 57%; left: 39%; --leaf-rotate: 144deg; --leaf-scale: 0.95; animation-delay: -0.8s; animation-duration: 7.7s; }
.leaf7 { top: 47%; left: 68%; --leaf-rotate: 262deg; --leaf-scale: 0.66; animation-delay: -5.3s; animation-duration: 9.6s; }
.leaf8 { top: 70%; left: 84%; --leaf-rotate: 318deg; --leaf-scale: 0.82; animation-delay: -2.9s; animation-duration: 8.8s; }
.leaf9 { top: 81%; left: 22%; --leaf-rotate: 37deg; --leaf-scale: 0.56; animation-delay: -6.2s; animation-duration: 7.2s; }
.leaf10 { top: 76%; left: 52%; --leaf-rotate: 176deg; --leaf-scale: 0.9; animation-delay: -1.7s; animation-duration: 10s; }
.leaf11 { top: 34%; left: 91%; --leaf-rotate: 291deg; --leaf-scale: 0.58; animation-delay: -4.7s; animation-duration: 7.9s; }
.leaf12 { top: 14%; left: 86%; --leaf-rotate: -12deg; --leaf-scale: 0.7; animation-delay: -3.3s; animation-duration: 8.4s; }
.leaf13 { top: 63%; left: 6%; --leaf-rotate: 228deg; --leaf-scale: 0.48; opacity: 0.5; animation-delay: -5.9s; animation-duration: 9.4s; }
.leaf14 { top: 88%; left: 72%; --leaf-rotate: 98deg; --leaf-scale: 0.52; opacity: 0.44; animation-delay: -2.5s; animation-duration: 8.2s; }
@keyframes floatLeaf {
    0% { transform: translate3d(0, 0, 0) rotate(var(--leaf-rotate, 0deg)) scale(var(--leaf-scale, 1)); }
    35% { transform: translate3d(10px, -18px, 0) rotate(calc(var(--leaf-rotate, 0deg) + 12deg)) scale(calc(var(--leaf-scale, 1) + 0.06)); }
    70% { transform: translate3d(-9px, 8px, 0) rotate(calc(var(--leaf-rotate, 0deg) - 9deg)) scale(calc(var(--leaf-scale, 1) - 0.03)); }
    100% { transform: translate3d(7px, -10px, 0) rotate(calc(var(--leaf-rotate, 0deg) + 5deg)) scale(var(--leaf-scale, 1)); }
}
.golden-particle {
    position: absolute; z-index: 0; pointer-events: none; width: 5px; height: 5px;
    background: var(--color-gold); border-radius: 50%; animation: particleFlow 10s infinite linear; opacity: 0;
    box-shadow: 0 0 8px rgba(212,161,59,0.6);
}
.p1 { top: 10%; left: 30%; animation-delay: 0s; } .p2 { top: 25%; left: 60%; animation-delay: 2s; }
.p3 { top: 40%; left: 40%; animation-delay: 4s; } .p4 { top: 55%; left: 65%; animation-delay: 6s; }
.p5 { top: 70%; left: 35%; animation-delay: 8s; } .p6 { top: 15%; left: 55%; animation-delay: 1s; }
.p7 { top: 50%; left: 20%; animation-delay: 3s; } .p8 { top: 35%; left: 70%; animation-delay: 5s; }
.p9 { top: 65%; left: 50%; animation-delay: 7s; } .p10 { top: 20%; left: 45%; animation-delay: 9s; }
@keyframes particleFlow {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    20% { opacity: 0.8; transform: translateY(-30px) scale(1); }
    40% { opacity: 0.4; transform: translateY(-60px) scale(0.8); }
    60% { opacity: 0.8; transform: translateY(-30px) scale(1); }
    80% { opacity: 0.2; transform: translateY(-10px) scale(0.5); }
    100%{ opacity: 0; transform: translateY(0) scale(0); }
}
.hero-image-col { flex: 1 1 50%; position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 40px; order: 1; overflow: visible; }
.hero-image-slider { position: relative; z-index: 2; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-slide {
    position: absolute; width: 100%; height: auto; object-fit: contain;
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
    opacity: 0; transform: scale(0.9) translateY(10px); pointer-events: none;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}
.hero-slide.active { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.hero-cats-col { flex: 1 1 50%; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 40px 50px 40px 30px; order: 2; }
.hero-cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 18px; }
.hero-cat-item {
    background: linear-gradient(145deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.08) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-radius: 20px; padding: 22px 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1); cursor: pointer;
    border: 1px solid rgba(255,255,255,0.35); position: relative; text-align: center; z-index: 2;
    font-weight: 600; color: rgba(255,255,255,0.95); font-size: 0.9rem; gap: 10px; overflow: hidden; text-decoration: none;
    box-shadow: 0 10px 26px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.35);
}
.hero-cat-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02)); border-radius: 20px; z-index: 0; }
.hero-cat-item > * { position: relative; z-index: 1; }
.hero-cat-item:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.6); box-shadow: 0 16px 34px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.35); }
.hero-cat-item:hover::before { background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.05)); }
.hero-cat-item.highlight { border-color: rgba(212,161,59,0.7); color: #ffe7b2; box-shadow: 0 0 0 1px rgba(212,161,59,0.6), 0 12px 30px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.45); transform: translateY(-4px); }
.hero-cat-item.highlight::before { background: linear-gradient(180deg, rgba(212,161,59,0.18), rgba(255,255,255,0.04)); }
.hero-cat-icon { width: 48px; height: 48px; transition: all 0.4s ease; filter: drop-shadow(0 0 8px rgba(255,255,255,0.3)); }
.hero-cat-icon path,
.hero-cat-icon circle,
.hero-cat-icon rect,
.hero-cat-icon line,
.hero-cat-icon polyline,
.hero-cat-icon polygon {
    stroke: var(--color-primary) !important;
}
.hero-cat-item.highlight .hero-cat-icon { transform: scale(1.2); filter: drop-shadow(0 0 14px rgba(212,161,59,0.8)); }
.hero-cat-label { font-size: 0.85rem; font-weight: 700; line-height: 1.4; transition: color 0.3s ease; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.golden-line { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, transparent, var(--color-gold), transparent); opacity: 0.8; z-index: 3; }

/* ── ریسپانسیو ── */
@media (max-width: 1024px) {
    body { padding-top: 66px; }
    .header-nav, .desktop-search { display: none; }
    .mega-dropdown { display: none; }
    .mobile-menu-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; background: #c62828; border: none; border-radius: 25px;
        color: #ffffff; font-size: 1.2rem; cursor: pointer;
    }
    .mobile-menu-toggle:hover { background: #a01e1e; }
    .mobile-menu-toggle i { color: #ffffff !important; }

    /* جستجو موبایل: همان ظاهر دایره‌ای شفاف سبد / حساب (نه دکمهٔ قرمز همبرگر) */
    .header-mobile-actions .mobile-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        min-height: 34px;
        width: auto;
        height: auto;
        padding: 8px;
        margin: 0;
        background: transparent;
        border: none;
        border-radius: 50%;
        color: #111;
        font-size: 14px;
        line-height: 1;
        cursor: pointer;
        box-shadow: none;
        transition: all 0.25s ease;
        -webkit-appearance: none;
        appearance: none;
    }
    .header-mobile-actions .mobile-search-toggle:hover {
        background: rgba(198, 40, 40, 0.1);
        color: #D4A13B;
    }
    .header-mobile-actions .mobile-search-toggle i {
        color: #111 !important;
    }
    .header-mobile-actions .mobile-search-toggle:hover i {
        color: #D4A13B !important;
    }

    /* فقط بزرگ‌نمایی آیکن داخل باکس ثابت (بدون تغییر min-width/min-height والد) */
    .header-mobile-actions .header-icon-item > a > i {
        display: inline-block;
        line-height: 1;
        transform: scale(1.14);
        transform-origin: center center;
    }
    .header-mobile-actions .mobile-search-toggle > i {
        display: inline-block;
        line-height: 1;
        transform: scale(1.14);
        transform-origin: center center;
    }
    .main-header .header-mobile-leading .raspina-mobile-shop-toggle > a .raspina-toolbar-shop-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transform: scale(1.14);
        transform-origin: center center;
    }
    .header-tab-bar { min-height: 18px; padding-block: 2px; padding-inline: 0; }
    .header-tab-bar .tab-bar-right, .header-tab-bar .tab-bar-left { display: none !important; }
    .header-content {
        position: relative;
        padding-block: clamp(5px, 1.1vw, 8px);
        padding-inline: clamp(6px, 2vw, 14px);
        justify-content: space-between;
    }
    /* لوگو دقیقاً وسط هدر موبایل (خارج از جریان فلکس کنترل‌ها) */
    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        order: 2;
        flex: none;
        z-index: 1;
        max-width: min(200px, 46vw);
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none;
    }
    .logo a { pointer-events: auto; }
    .logo img { max-height: clamp(36px, 10.5vw, 46px); margin: 0 auto; }
    /* همبرگر لبهٔ راست (RTL)، آیکن فروشگاه (مثل تولبار وودمارت) بلافاصله در سمت چپ همبرگر */
    .header-mobile-leading {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: clamp(6px, 2vw, 12px);
        order: 1;
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
    }
    .header-mobile-leading .mobile-menu-toggle {
        order: 1;
        flex: 0 0 auto;
    }
    .raspina-mobile-shop-toggle {
        display: block !important;
        order: 2;
        flex: 0 0 auto;
    }
    /* همان گلیف wd-toolbar-shop (woodmart-font)؛ ظاهر مثل آیکن حساب کاربری (دایره/سایز) */
    .main-header .header-mobile-leading .raspina-toolbar-shop-icon::before {
        content: "\f146";
        font-family: "woodmart-font", sans-serif;
        font-weight: normal;
        font-style: normal;
        font-variant: normal;
        text-transform: none;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        line-height: 1;
        display: block;
        color: inherit;
        font-size: clamp(15px, 4.2vw, 17px);
    }
    .header-icon-item.shop.raspina-mobile-shop-toggle > a:hover .raspina-toolbar-shop-icon::before {
        color: #D4A13B !important;
    }
    .header-mobile-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: clamp(4px, 1.2vw, 10px);
        order: 2;
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
    }
    .header-mobile-actions .mobile-search-toggle { flex-shrink: 0; }
    .header-mobile-actions .header-icons { flex-shrink: 0; }
    .header-icon-item.wishlist, .header-icon-item.compare { display: none !important; }
    .header-icon-item > a { min-width: 34px; min-height: 34px; font-size: 14px; }

    /* هیرو چسبیده به انتهای هدر (بدون فاصله و گوشه بالا) */
    .raspina-hero-wrapper {
        margin-top: 0 !important;
        padding-top: 0;
        padding-inline: 0;
    }

    .hero-section {
        flex-direction: column;
        min-height: auto;
        border-radius: 0 0 24px 24px;
        margin-top: 0;
        max-width: none;
        width: 100%;
        box-shadow: 0 12px 36px rgba(139,90,43,0.12), 0 0 0 1px rgba(212,161,59,0.2), inset 0 1px 0 rgba(255,255,255,0.8);
    }

    .hero-image-col {
        flex: none;
        width: 100%;
        aspect-ratio: 3/4;
        padding: 0;
        margin: 0;
        position: relative;
        overflow: hidden;
    }
    .hero-image-slider { position: absolute; inset: 0; }
    .hero-slide { object-fit: contain; }

    /* کشیدن گرید دسته‌ها روی تصویر هیرو: در عرض ۱۰۲۴px دقیقاً ‎margin-top: -۹۰px؛ با عرض viewport به‌صورت خطی تناسب دارد */
    .hero-cats-col {
        margin-top: calc(-100vw * 90 / 1024);
        padding-top: 0;
        padding-bottom: 15px;
        padding-inline: 8px;
        position: relative;
        z-index: 4;
    }
    .hero-cats-grid { gap: 6px; }
    .hero-cat-item { padding: 10px 4px; font-size: 0.7rem; border-radius: 12px; gap: 4px; }
    .hero-cat-icon { width: 28px; height: 28px; }
    .hero-cat-label { font-size: 0.62rem; }
    .hero-logo-center { width: 140px; height: 140px; }
    .hero-logo-glow { width: 180px; height: 180px; }
    .hero-leaf-orbit {
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    .autumn-leaf { width: clamp(22px, 7vw, 36px); height: auto; opacity: 0.62; }
    .leaf13,
    .leaf14 { display: none; }

    .mega-vertical-layout { flex-direction: column; padding: 15px; }
    .mega-main-cats { border-left: none; padding-left: 0; }
    .main-cat-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .main-cat-list li { flex: 1 1 auto; }
    .subcat-panel { grid-template-columns: 1fr 1fr; }
}

/* ── Laptop (1025px – 1279px) ── */
@media (min-width: 1025px) and (max-width: 1279px) {
    .raspina-hero-wrapper { margin-top: 0; }
}

/* ── Laptop L (1440px – 2559px) ── */
@media (min-width: 1440px) and (max-width: 2559px) {
    :root { --footer-max-w: 1400px; }
    nav.header-nav.desktop-nav { padding: 12px 0 0 0; }
    .raspina-hero-wrapper { margin-top: 0; }
}

/* ── سایر برک‌پوینت‌های هدر (دسکتاپ) ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo img { max-height: clamp(40px, 8vw, 50px); }
    .mobile-menu-toggle { width: 40px; height: 40px; }
    .header-mobile-actions .mobile-search-toggle {
        min-width: 36px;
        min-height: 36px;
        font-size: 15px;
    }
    .header-icon-item > a { min-width: 36px; min-height: 36px; font-size: 15px; }
}
@media (max-width: 768px) {
    body { padding-top: 64px; }
    .header-content { gap: 8px; }
    .logo img { max-height: clamp(34px, 9.5vw, 42px); }
    .mobile-menu-toggle { width: 38px; height: 38px; }
    .header-mobile-actions .mobile-search-toggle {
        min-width: 32px;
        min-height: 32px;
        font-size: 13px;
    }
    .header-icon-item > a { min-width: 32px; min-height: 32px; font-size: 13px; }
}
@media (max-width: 425px) {
    body { padding-top: 66px; }
    .raspina-hero-wrapper { margin-top: 0; }
    .logo img { max-height: clamp(31px, 11vw, 40px); }
    .header-content { padding-block: 5px; padding-inline: 0; gap: 6px; }
    .mobile-menu-toggle { width: 36px; height: 36px; }
    .header-mobile-actions .mobile-search-toggle {
        min-width: 30px;
        min-height: 30px;
        font-size: 12px;
    }
    .header-icon-item > a { min-width: 30px; min-height: 30px; font-size: 12px; }
    .header-icon-item .badge { width: 14px; height: 14px; font-size: 8px; top: 0; inset-inline-end: 0; }
    .hero-cats-col {
        margin-top: calc(-100vw * 90 / 1024);
        padding-top: 0;
        padding-bottom: 12px;
        padding-inline: 6px;
    }
    .hero-cats-grid { gap: 5px; }
    .hero-cat-item { padding: 8px 3px; gap: 3px; }
    .hero-cat-icon { width: 26px; height: 26px; }
    .hero-cat-label { font-size: 0.58rem; }
}
@media (max-width: 375px) {
    body { padding-top: 68px; }
    .raspina-hero-wrapper { margin-top: 0; }
    .logo img { max-height: clamp(29px, 10vw, 36px); }
    .mobile-menu-toggle { width: 34px; height: 34px; }
    .header-mobile-actions .mobile-search-toggle {
        min-width: 28px;
        min-height: 28px;
        font-size: 11px;
    }
    .header-icon-item > a { min-width: 28px; min-height: 28px; font-size: 11px; }
    .hero-cats-col {
        margin-top: calc(-100vw * 90 / 1024);
        padding-top: 0;
        padding-bottom: 10px;
        padding-inline: 5px;
    }
    .hero-cats-grid { gap: 4px; }
    .hero-cat-item { padding: 7px 2px; gap: 2px; border-radius: 10px; }
    .hero-cat-icon { width: 24px; height: 24px; }
    .hero-cat-label { font-size: 0.55rem; }
}
@media (max-width: 320px) {
    body { padding-top: 70px; }
    .raspina-hero-wrapper { margin-top: 0; }
    .logo img { max-height: clamp(27px, 9vw, 34px); }
    .mobile-menu-toggle { width: 32px; height: 32px; }
    .header-mobile-actions .mobile-search-toggle {
        min-width: 26px;
        min-height: 26px;
        font-size: 10px;
    }
    .header-icon-item > a { min-width: 26px; min-height: 26px; font-size: 10px; }
    .hero-cats-col {
        margin-top: calc(-100vw * 90 / 1024);
        padding-top: 0;
        padding-bottom: 8px;
        padding-inline: 4px;
    }
    .hero-cats-grid { gap: 3px; }
    .hero-cat-item { padding: 6px 2px; gap: 2px; border-radius: 8px; }
    .hero-cat-icon { width: 22px; height: 22px; }
    .hero-cat-label { font-size: 0.5rem; }
}

.mobile-search-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); z-index: 2000; align-items: flex-start; justify-content: center; padding-top: 80px; }
.mobile-search-overlay.active { display: flex; }

body.admin-bar .main-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .main-header { top: 46px; } }

/* تولبار چسبندهٔ پایین WoodMart (‎.wd-toolbar) — مخفی در همهٔ viewportها */
.wd-toolbar {
    display: none !important;
}
/* بدون نوار ابزار دیگر نیازی به فاصلهٔ پایین بدنه نیست */
body.sticky-toolbar-on {
    padding-bottom: 0 !important;
}
.sticky-toolbar-on .scrollToTop {
    bottom: 12px !important;
}
.sticky-toolbar-on .wd-sticky-btn {
    bottom: 12px !important;
}
