/* ==========================================================
   DOOMAS HEADER CSS
   ----------------------------------------------------------
   Project : Doomas Plus
   Module  : Header
   Version : 1.1
   Note    : CSS order preserved; only section comments added.
   ========================================================== */

/* ==========================================================
   01 - Layout
   ========================================================== */

:root {
    --dm-navy: #002855;
    --dm-sky: #00b2ff;
    --dm-light-blue: #eef9ff;
    --dm-white: #ffffff;
    --dm-glass-bg: rgba(253, 249, 230, 0.48);
    --dm-glass-border: rgba(255, 255, 255, 0.5);
    --dm-text-dark: #002855;
    --dm-text-muted: #5e7289;
    --dm-shadow-blue: 0 0 40px rgba(0, 178, 255, 0.14);
    --dm-shadow-soft: 0 20px 40px rgba(0, 40, 85, 0.05);
    --dm-shadow: var(--dm-shadow-blue), var(--dm-shadow-soft);
    --dm-font: Vazirmatn, Arial, sans-serif;
}

/* ==================================================
   تنظیم فاصله محتوای سایت از هدر ثابت
================================================== */

body {
    padding-top: 145px !important;
}

/* جلوگیری از جابه‌جایی صفحه هنگام اسکرول */
body.is-scrolled {
    padding-top: 145px !important;
}

/* ==================================================
   فاصله مناسب هدر در نمایش موبایل
================================================== */

@media (max-width: 767px) {

    body,
    body.is-scrolled {
        padding-top: 100px !important;
    }

}

        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--dm-light-blue);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--dm-sky);
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #009ce0;
        }

        /* ==========================================================
   02 - Header
   ========================================================== */

.vb-custom-header-wrapper {
            position: fixed !important;
            top: 15px !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            z-index: 999999 !important; 
            width: calc(100% - 40px) !important;
            max-width: 1500px !important;
            direction: rtl;
            font-family: var(--dm-font) !important;
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .vb-custom-header-top {
            position: relative !important;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 24px; 
            background: var(--dm-glass-bg) !important;
            backdrop-filter: blur(25px) !important;
            -webkit-backdrop-filter: blur(25px) !important;
            border: 1px solid var(--dm-glass-border) !important;
            border-radius: 50px !important;
            box-shadow: var(--dm-shadow) !important;
            transition: all 0.4s ease;
        }

        .vb-custom-header-top:hover {
            box-shadow: 0 0 50px rgba(0, 178, 255, 0.32), 0 25px 50px rgba(0, 40, 85, 0.1) !important;
            border-color: rgba(0, 178, 255, 0.4) !important;
        }

        .vb-custom-header-wrapper.is-scrolled .vb-custom-header-top {
            background: rgba(253, 249, 230, 0.82) !important; 
            box-shadow: 0 15px 35px rgba(0, 40, 85, 0.12) !important;
            border-color: rgba(255, 255, 255, 0.6) !important;
        }

        /* ==========================================================
   04 - Search
   ========================================================== */

.vb-custom-header-wrapper .header-search-col {
            display: flex;
            align-items: center;
            gap: 0;
            flex: 1.5;
            max-width: 420px;
            transition: all 0.5s ease;
            position: relative;
            z-index: 10 !important;
        }

        .vb-custom-header-wrapper .search-box {
            position: relative;
            width: 100%;
            transition: all 0.5s ease;
        }

        .vb-custom-header-wrapper .search-input {
            width: 100%;
            padding: 12px 48px 12px 16px !important;
            border-radius: 50px !important;
            border: 1px solid rgba(0, 178, 255, 0.15) !important;
            background: rgba(255, 255, 255, 0.8) !important;
            font-size: 13.5px !important;
            color: var(--dm-text-dark) !important;
            outline: none !important;
            transition: all 0.3s ease;
        }

        .vb-custom-header-wrapper .search-input:focus {
            border-color: var(--dm-sky) !important;
            box-shadow: 0 0 15px rgba(0, 178, 255, 0.15) !important;
            background: #ffffff !important;
        }

        .vb-custom-header-wrapper .search-icon-btn {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: var(--dm-sky);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            transition: transform 0.2s ease;
        }
        .vb-custom-header-wrapper .search-icon-btn:hover {
            transform: translateY(-50%) scale(1.1);
        }

        .scrolled-menu-trigger {
            width: 0;
            opacity: 0;
            visibility: hidden;
            transform: scale(0.3) rotate(-180deg) translateY(-20px) !important; 
            transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
            margin-left: 0;
            display: flex;
            align-items: center;
            position: relative; 
        }

        .is-scrolled .scrolled-menu-trigger {
            width: 44px !important;
            opacity: 1 !important;
            visibility: visible !important;
            transform: scale(1) rotate(0deg) translateY(0) !important;
            margin-left: 14px;
        }

        /* ==========================================================
   02 - Header — Logo & Account
   ========================================================== */

.vb-custom-header-wrapper .header-logo-col {
            position: absolute !important;
            left: 50% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            margin: 0 !important;
            padding: 0 !important;
            z-index: 15 !important;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .vb-custom-header-wrapper .logo-wrapper {
            display: flex;
            align-items: center;
            height: 45px; 
            text-decoration: none;
        }

        .vb-custom-header-wrapper .logo-wrapper img {
            height: 100%;
            width: auto;
            object-fit: contain;
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .vb-custom-header-wrapper .logo-wrapper:hover img {
            transform: scale(1.08) rotate(1deg);
        }

        .vb-custom-header-wrapper .header-left-col {
            display: flex;
            align-items: center;
            gap: 16px;
            flex: 1;
            justify-content: flex-end;
            position: relative;
            z-index: 10 !important;
        }

        .vb-custom-header-wrapper .account-container {
            position: relative;
        }

        .vb-custom-header-wrapper .account-link {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--dm-text-dark);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            padding: 8px 14px;
            border-radius: 50px;
            transition: background 0.2s, color 0.2s;
        }

        .vb-custom-header-wrapper .account-link:hover {
            color: var(--dm-sky);
            background: rgba(0, 178, 255, 0.05);
        }

        .vb-custom-header-wrapper .account-icon {
            color: var(--dm-sky);
            display: flex;
            align-items: center;
            transition: transform 0.3s ease;
        }
        .vb-custom-header-wrapper .account-link:hover .account-icon {
            transform: rotate(-12deg) scale(1.1);
        }

        .vb-custom-header-wrapper .account-dropdown {
            position: absolute;
            top: calc(100% + 8px) !important;
            bottom: auto !important;
            left: 0; 
            right: auto;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 178, 255, 0.12);
            border-radius: 14px;
            box-shadow: var(--dm-shadow);
            min-width: 170px;
            padding: 8px 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
            transition-delay: 0.2s !important; 
            z-index: 100000;
        }

        .vb-custom-header-wrapper .account-dropdown::before {
            content: '' !important;
            position: absolute !important;
            top: -12px !important;
            left: 0 !important;
            right: 0 !important;
            height: 12px !important;
            background: transparent !important;
        }

        .vb-custom-header-wrapper .account-container:hover .account-dropdown,
        .vb-custom-header-wrapper .account-container.is-open .account-dropdown {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) !important;
            transition-delay: 0s !important;
        }

        .vb-custom-header-wrapper .account-dropdown a {
            display: block;
            padding: 10px 20px;
            color: var(--dm-text-dark);
            text-decoration: none;
            font-size: 13.5px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .vb-custom-header-wrapper .account-dropdown a:hover {
            background-color: var(--dm-light-blue);
            color: var(--dm-sky);
            padding-right: 25px;
        }

        /* ==========================================================
   05 - Cart
   ========================================================== */

.vb-custom-header-wrapper .cart-container {
            position: relative;
        }

        .vb-custom-header-wrapper .cart-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: #e53e3e;
            color: white;
            font-size: 10px;
            font-weight: 700;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1.5px solid #ffffff;
            z-index: 10;
            transition: all 0.2s ease;
        }

        .vb-custom-header-wrapper .cart-btn {
            display: flex;
            align-items: center;
            background-color: #e0f2fe !important;
            border-radius: 30px !important;
            padding: 4px 4px 4px 14px !important; 
            text-decoration: none !important;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 4px 15px rgba(0, 178, 255, 0.1) !important; 
        }

        .vb-custom-header-wrapper .cart-btn:hover {
            background-color: #bae6fd !important;
            transform: translateY(-1px);
        }

        .vb-custom-header-wrapper .cart-price {
            background-color: #ffffff !important;
            color: var(--dm-navy) !important;
            padding: 6px 12px !important;
            border-radius: 20px !important; 
            font-size: 11.5px !important;
            font-weight: 700 !important;
            margin-left: 10px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(0, 40, 85, 0.05) !important;
        }

        .vb-custom-header-wrapper .cart-content {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--dm-navy) !important;
            padding-left: 8px;
            font-size: 12.5px; 
            font-weight: 700;
        }

        .vb-custom-header-wrapper .cart-icon svg {
            stroke: var(--dm-navy) !important;
        }

        /* ==========================================================
   03 - Navigation
   ========================================================== */

.vb-custom-header-wrapper .vb-custom-header-bottom {
            display: flex;
            justify-content: flex-start;
            width: 100%;
            margin-top: 8px;
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            transform-origin: top;
            padding-right: 40px;
            position: relative;
            z-index: 10 !important;
        }

        .vb-custom-header-wrapper .bottom-bar-content {
            display: flex;
            align-items: center;
            gap: 24px;
            padding: 8px 24px;
            background: var(--dm-glass-bg) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
            border: 1px solid var(--dm-glass-border) !important;
            border-radius: 50px !important;
            box-shadow: var(--dm-shadow) !important;
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .vb-custom-header-wrapper .menu-container {
            position: relative;
        }

        .vb-custom-header-wrapper .bottom-links {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .vb-custom-header-wrapper .bottom-links a {
            color: var(--dm-text-dark) !important;
            text-decoration: none;
            font-size: 13.5px;
            font-weight: 500;
            position: relative;
            padding: 4px 0;
            transition: color 0.2s ease;
        }

        .vb-custom-header-wrapper .bottom-links a:hover {
            color: var(--dm-sky) !important;
        }

        .vb-custom-header-wrapper .bottom-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 2px;
            
            background-color: #0f172a !important;
            
            transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .vb-custom-header-wrapper .bottom-links a:hover::after {
            width: 100%;
        }

        .vb-custom-header-wrapper .bottom-menu-btn,
        .vb-custom-header-wrapper .menu-btn {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            background-color: var(--dm-light-blue) !important;
            border: 1px solid rgba(0, 178, 255, 0.15) !important;
            width: 38px !important;
            height: 38px !important;
            border-radius: 50% !important;
            color: var(--dm-sky) !important;
            cursor: pointer !important;
            padding: 0 !important;
            margin: 0 !important;
            transition: all 0.3s ease !important;
        }

        .vb-custom-header-wrapper .bottom-menu-btn:hover,
        .vb-custom-header-wrapper .menu-btn:hover {
            background-color: rgba(0, 178, 255, 0.1) !important;
            transform: scale(1.05) !important;
        }

        .dm-custom-hamburger-icon {
            display: flex !important;
            flex-direction: column !important;
            justify-content: space-between !important;
            width: 20px !important;
            height: 14px !important;
            padding: 0 !important;
            margin: 0 !important;
            background: none !important;
            border: none !important;
            box-sizing: border-box !important;
        }

        .dm-custom-hamburger-icon .dm-hamburger-line {
            display: block !important;
            width: 100% !important;
            height: 2px !important;
            
            background-color: #0f172a !important;
            
            border-radius: 2px !important;
            padding: 0 !important;
            margin: 0 !important;
            transition: all 0.2s ease !important;
        }

        .vb-custom-header-wrapper .menu-btn:hover .dm-custom-hamburger-icon .dm-hamburger-line:nth-child(1),
        .vb-custom-header-wrapper .bottom-menu-btn:hover .dm-custom-hamburger-icon .dm-hamburger-line:nth-child(1) {
            transform: translateY(-1.5px);
        }
        .vb-custom-header-wrapper .menu-btn:hover .dm-custom-hamburger-icon .dm-hamburger-line:nth-child(3),
        .vb-custom-header-wrapper .bottom-menu-btn:hover .dm-custom-hamburger-icon .dm-hamburger-line:nth-child(3) {
            transform: translateY(1.5px);
        }

        .menu-dropdown {
            position: absolute;
            top: calc(100% + 8px) !important;
            bottom: auto !important;
            right: 0 !important;
            left: auto !important;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 178, 255, 0.12);
            border-radius: 16px;
            box-shadow: 0 15px 35px rgba(0, 40, 85, 0.12);
            width: 230px; 
            padding: 12px 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(15px) scale(0.95);
            transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
            transition-delay: 0.2s !important; 
            z-index: 100000 !important;
        }

        .menu-container:hover .menu-dropdown,
        .scrolled-menu-trigger:hover .menu-dropdown,
        .menu-container.is-open .menu-dropdown,
        .scrolled-menu-trigger.is-open .menu-dropdown {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) scale(1) !important;
            transition-delay: 0s !important;
        }

        .menu-dropdown a {
            display: flex;
            align-items: center;
            padding: 10px 20px;
            color: var(--dm-text-dark);
            text-decoration: none;
            font-size: 13.5px;
            font-weight: 500;
            border-right: 3px solid transparent;
            transition: all 0.25s ease;
        }

        .menu-dropdown a:hover {
            background-color: var(--dm-light-blue);
            color: var(--dm-sky);
            border-right-color: var(--dm-sky);
            padding-right: 25px; 
        }

        /* ==========================================================
   07 - Animation
   ========================================================== */

.vb-custom-header-wrapper.is-scrolled .vb-custom-header-bottom {
            animation: slideDownAndCollapse 1.3s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
        }

        @keyframes slideDownAndCollapse {
            0% {
                transform: translateY(0) scale(1) rotateX(0deg);
                opacity: 1;
                margin-top: 8px;
            }
            35% {
                transform: translateY(35px) scale(1.03) rotateX(0deg);
                opacity: 1;
                margin-top: 8px;
            }
            100% {
                transform: translateY(-30px) scale(0.8) rotateX(-50deg);
                opacity: 0;
                margin-top: -45px;
            }
        }

        .dm-milk-splash-container {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            pointer-events: none !important;
            overflow: visible !important;
            z-index: 5 !important;
        }

        .milk-particle {
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            box-shadow: 0 2px 10px rgba(0, 229, 255, 0.25) !important;
            animation: splashFly 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
            transform-origin: center;
        }

        @keyframes splashFly {
            0% {
                transform: translate(0, 0) scale(1);
                opacity: 1;
            }
            100% {
                transform: translate(var(--tx), var(--ty)) scale(var(--s));
                opacity: 0;
            }
        }

        /* ==========================================================
   06 - Mobile
   ========================================================== */

.dm-mobile-bottom-nav {
            display: none;
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            height: 65px !important;
            background: rgba(255, 255, 255, 0.88) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
            border-top: 1px solid rgba(255, 255, 255, 0.4) !important;
            box-shadow: 0 -5px 25px rgba(0, 40, 85, 0.08) !important;
            z-index: 9999999 !important;
            justify-content: space-around;
            align-items: center;
            direction: rtl;
            padding: 0 10px;
        }

        .dm-mobile-bottom-nav .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none !important;
            color: var(--dm-navy) !important;
            gap: 4px;
            font-family: var(--dm-font) !important;
            font-size: 10px !important;
            font-weight: 700;
            flex: 1;
            transition: all 0.2s ease;
        }

        .dm-mobile-bottom-nav .nav-item:hover,
        .dm-mobile-bottom-nav .nav-item:active {
            color: var(--dm-sky) !important;
        }

        .dm-mobile-bottom-nav .nav-icon {
            width: 22px;
            height: 22px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            transition: stroke 0.2s ease;
        }

        .dm-mobile-bottom-nav .nav-cart-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .dm-mobile-bottom-nav .cart-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background-color: #e53e3e;
            color: white;
            font-size: 9px;
            font-weight: 700;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1.5px solid #ffffff;
        }

        .dm-drawer-overlay {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            background: rgba(0, 27, 58, 0.4) !important;
            z-index: 9999998 !important;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        .dm-drawer-overlay.is-active {
            opacity: 1;
            visibility: visible;
        }

        .dm-side-drawer {
            position: fixed !important;
            top: 0 !important;
            right: -300px !important;
            width: 300px !important;
            height: 100% !important;
            background: #ffffff !important;
            z-index: 9999999 !important;
            box-shadow: -5px 0 25px rgba(0, 40, 85, 0.15) !important;
            transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
            display: flex;
            flex-direction: column;
            direction: rtl;
        }
        .dm-side-drawer.is-active {
            transform: translateX(-300px) !important;
        }

        .dm-side-drawer .drawer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 20px;
            border-bottom: 1px solid #f0f4f8;
        }
        .dm-side-drawer .drawer-title {
            font-family: var(--dm-font);
            font-size: 15px;
            font-weight: 800;
            color: var(--dm-navy);
        }
        .dm-side-drawer .drawer-close-btn {
            background: none !important;
            border: none !important;
            cursor: pointer;
            color: var(--dm-text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4px;
            transition: color 0.2s;
        }
        .dm-side-drawer .drawer-close-btn:hover {
            color: #e53e3e;
        }

        .dm-side-drawer .drawer-content {
            flex: 1;
            overflow-y: auto;
            padding: 15px 0;
        }
        .dm-side-drawer .drawer-content a {
            display: block;
            padding: 14px 24px;
            color: var(--dm-text-dark);
            text-decoration: none;
            font-family: var(--dm-font);
            font-size: 14px;
            font-weight: 500;
            border-bottom: 1px solid #fafbfe;
            transition: all 0.25s ease;
        }
        .dm-side-drawer .drawer-content a:hover {
            background-color: var(--dm-light-blue);
            color: var(--dm-sky);
            padding-right: 32px;
        }

        .dm-bottom-sheet-overlay {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            background: rgba(0, 27, 58, 0.4) !important;
            z-index: 9999998 !important;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        .dm-bottom-sheet-overlay.is-active {
            opacity: 1;
            visibility: visible;
        }

        .dm-bottom-sheet {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            height: 70vh !important;
            transform: translateY(100%) !important;
            background: #ffffff !important;
            z-index: 9999999 !important;
            border-radius: 24px 24px 0 0 !important;
            box-shadow: 0 -10px 30px rgba(0, 40, 85, 0.15) !important;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
            display: flex;
            flex-direction: column;
            direction: rtl;
        }
        .dm-bottom-sheet.is-active {
            transform: translateY(0) !important;
        }

        .dm-bottom-sheet .sheet-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            padding: 10px 20px 15px 20px;
            border-bottom: 1px solid #f0f4f8;
        }
        .dm-bottom-sheet .sheet-drag-handle {
            width: 40px;
            height: 4px;
            background: #e2e8f0;
            border-radius: 2px;
            margin-bottom: 10px;
        }
        .dm-bottom-sheet .sheet-header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }
        .dm-bottom-sheet .sheet-title {
            font-family: var(--dm-font);
            font-size: 15px;
            font-weight: 800;
            color: var(--dm-navy);
        }
        .dm-bottom-sheet .sheet-close-btn {
            background: none !important;
            border: none !important;
            cursor: pointer;
            color: var(--dm-text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4px;
            transition: color 0.2s;
        }
        .dm-bottom-sheet .sheet-close-btn:hover {
            color: #e53e3e;
        }

        .dm-bottom-sheet .sheet-content {
            flex: 1;
            overflow-y: auto;
            padding: 10px 0;
        }
        .dm-bottom-sheet .sheet-content a {
            display: block;
            padding: 14px 24px;
            color: var(--dm-text-dark);
            text-decoration: none;
            font-family: var(--dm-font);
            font-size: 14px;
            font-weight: 500;
            border-bottom: 1px solid #fafbfe;
            transition: all 0.2s ease;
        }
        .dm-bottom-sheet .sheet-content a:hover {
            background-color: var(--dm-light-blue);
            color: var(--dm-sky);
            padding-right: 32px;
        }

        /* ==========================================================
   08 - Utilities
   ========================================================== */

.dm-popup-overlay {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            background: rgba(0, 27, 58, 0.6) !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
            z-index: 100000000 !important;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
        }
        .dm-popup-overlay.is-active {
            opacity: 1;
            visibility: visible;
        }
        .dm-popup-content {
            position: relative;
            max-width: 90%;
            width: 420px;
            background: var(--dm-white);
            border-radius: 24px;
            box-shadow: 0 20px 50px rgba(0, 40, 85, 0.25);
            overflow: hidden;
            transform: scale(0.85);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(255, 255, 255, 0.5);
        }
        .dm-popup-overlay.is-active .dm-popup-content {
            transform: scale(1);
        }
        .dm-popup-close-btn {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(255, 255, 255, 0.8) !important;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(0, 0, 0, 0.05) !important;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.2s ease;
            padding: 0 !important;
            margin: 0 !important;
        }
        .dm-popup-close-btn:hover {
            background: #ffffff !important;
            transform: scale(1.05);
        }
        .dm-popup-body {
            width: 100%;
            display: flex;
        }
        .dm-popup-body img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        /* ==========================================================
   03 - Navigation — Submenus
   ========================================================== */

.bottom-submenu-wrapper {
            position: relative;
            display: inline-block;
        }
        .bottom-submenu {
            position: absolute;
            top: 100%;
            right: 0;
            background: #ffffff;
            border: 1px solid rgba(0, 178, 255, 0.12);
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.06);
            min-width: 140px;
            padding: 6px 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(15px) scale(0.95);
            transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
            z-index: 100000;
            display: flex;
            flex-direction: column;
        }
        .bottom-submenu::before {
            content: '' !important;
            position: absolute !important;
            top: -12px !important;
            left: 0 !important;
            right: 0 !important;
            height: 12px !important;
            background: transparent !important;
        }
        .bottom-submenu-wrapper:hover .bottom-submenu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }
        .bottom-submenu a {
            padding: 8px 16px !important;
            font-size: 13px !important;
            font-weight: 500 !important;
            text-decoration: none !important;
            display: block !important;
        }
        .bottom-submenu .item-doomas {
            color: var(--dm-text-dark) !important;
            transition: all 0.2s ease;
        }
        .bottom-submenu .item-doomas:hover {
            color: #00b2ff !important;
            background-color: #eef9ff !important;
        }
        .bottom-submenu .item-dr-doomas {
            color: var(--dm-text-dark) !important;
            transition: all 0.2s ease;
        }
        .bottom-submenu .item-dr-doomas:hover {
            color: #00cc44 !important;
            background-color: #e6fced !important;
        }

        .menu-arrow {
            font-size: 10px;
            margin-right: 4px;
            display: inline-block;
            transition: transform 0.2s ease;
        }
        .bottom-submenu-wrapper:hover .menu-arrow {
            transform: rotate(180deg);
        }

        .mobile-submenu-wrapper {
            display: flex;
            flex-direction: column;
            width: 100%;
        }
        .mobile-submenu-trigger {
            padding: 14px 24px;
            color: var(--dm-text-dark);
            font-family: var(--dm-font);
            font-size: 14px;
            font-weight: 800;
            cursor: pointer;
            border-bottom: 1px solid #fafbfe;
            position: relative;
        }
        .mobile-submenu-trigger::after {
            content: '▾';
            position: absolute;
            left: 24px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            color: var(--dm-text-muted);
        }
        .mobile-submenu {
            display: none;
            background-color: #fafbfe;
            padding: 5px 0;
        }
        .mobile-submenu-wrapper.is-open .mobile-submenu {
            display: block;
        }
        .mobile-submenu a {
            padding: 10px 40px !important;
            font-size: 13px !important;
            font-weight: 500;
            border-bottom: none !important;
        }
        .mobile-submenu .item-doomas:hover {
            color: #00b2ff !important;
            background-color: #eef9ff !important;
        }
        .mobile-submenu .item-dr-doomas:hover {
            color: #00cc44 !important;
            background-color: #e6fced !important;
        }

        /* ==========================================================
   08 - Utilities — Toast
   ========================================================== */

/* Toast notification styles */
        .dm-toast-notification {
            position: fixed !important;
            bottom: 85px !important;
            left: 50% !important;
            transform: translate(-50%, 100px) !important;
            background-color: var(--dm-navy) !important;
            color: #ffffff !important;
            padding: 12px 24px !important;
            border-radius: 50px !important;
            font-family: var(--dm-font) !important;
            font-size: 13.5px !important;
            font-weight: 500 !important;
            box-shadow: 0 10px 30px rgba(0, 40, 85, 0.25) !important;
            z-index: 100000001 !important;
            opacity: 0 !important;
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease !important;
            pointer-events: none !important;
            direction: rtl !important;
            border: 1px solid rgba(0, 178, 255, 0.25) !important;
            text-align: center !important;
            white-space: nowrap !important;
        }
        .dm-toast-notification.is-visible {
            transform: translate(-50%, 0) !important;
            opacity: 1 !important;
        }

        /* ==========================================================
   06 - Mobile & Responsive
   ========================================================== */

@media (max-width: 1024px) and (min-width: 769px) {
            body {
                padding-top: 130px !important;
            }
            .vb-custom-header-top {
                padding: 8px 16px !important;
            }
            .vb-custom-header-wrapper .logo-wrapper {
                height: 60px !important;
            }
            .vb-custom-header-wrapper .header-search-col {
                margin: 0 15px !important;
                max-width: 400px;
            }
            .vb-custom-header-wrapper .desktop-menu-links {
                gap: 15px !important;
            }
        }

        @media (max-width: 768px) {
            body {
                padding-top: 100px !important;
                padding-bottom: 75px !important;
            }

            .dm-mobile-bottom-nav {
                display: flex !important;
            }

            .vb-custom-header-wrapper {
                top: 0 !important;
                width: 100% !important;
                border-radius: 0 0 16px 16px !important;
            }

            .vb-custom-header-top {
                padding: 6px 16px !important;
                border-radius: 0 0 16px 16px !important;
                flex-wrap: nowrap !important;
                gap: 5px !important;
                position: relative !important;
            }

            .scrolled-menu-trigger,
            .is-scrolled .scrolled-menu-trigger,
            .vb-custom-header-wrapper.is-scrolled .scrolled-menu-trigger {
                width: 36px !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: none !important;
                transition: none !important;
                margin-left: 6px !important;
                display: flex !important;
                position: relative !important;
            }

            .vb-custom-header-wrapper .menu-btn,
            .vb-custom-header-wrapper.is-scrolled .menu-btn {
                width: 30px !important;
                height: 30px !important;
                border-radius: 8px !important;
                transition: none !important;
            }

            .vb-custom-header-wrapper .header-logo-col {
                position: static !important;
                transform: none !important;
                order: 2 !important;
                display: flex !important;
                align-items: center !important;
            }

            .vb-custom-header-wrapper .logo-wrapper {
                height: 30px !important;
            }

            .vb-custom-header-wrapper .header-search-col {
                order: 1 !important;
                margin: 0 !important;
                max-width: calc(100% - 100px) !important;
                flex: 1 !important;
            }

            .vb-custom-header-wrapper .search-input {
                padding: 8px 30px 8px 8px !important;
                font-size: 11px !important;
                border-radius: 30px !important;
            }

            .vb-custom-header-wrapper .search-icon-btn {
                right: 10px !important;
            }

            .vb-custom-header-wrapper .search-icon-btn svg {
                width: 12px !important;
                height: 12px !important;
            }

            .vb-custom-header-wrapper .header-left-col {
                display: none !important;
            }

            .vb-custom-header-wrapper .vb-custom-header-bottom {
                display: none !important;
            }

            .dm-popup-content {
                width: 90% !important;
                border-radius: 18px !important;
            }
            .dm-popup-close-btn {
                width: 32px !important;
                height: 32px !important;
                top: 10px !important;
                left: 10px !important;
            }
        }

        @media (max-width: 380px) {
            body {
                padding-top: 95px !important;
            }
            .vb-custom-header-top {
                padding: 5px 8px !important;
                gap: 4px !important;
            }
            .vb-custom-header-wrapper .logo-wrapper {
                height: 32px !important;
            }
            .vb-custom-header-wrapper .header-search-col {
                max-width: calc(100% - 85px) !important;
            }
            .vb-custom-header-wrapper .search-input {
                padding: 6px 26px 6px 6px !important;
                font-size: 9.5px !important;
            }
            .vb-custom-header-wrapper .search-icon-btn {
                right: 8px !important;
            }
        }
        /* ==========================================================
   03 - Navigation — WordPress Menus
   ========================================================== */

.vb-custom-header-wrapper .bottom-links .doomas-main-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vb-custom-header-wrapper .bottom-links .doomas-main-menu li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vb-custom-header-wrapper .bottom-links .doomas-main-menu a {
    color: var(--dm-text-dark) !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.vb-custom-header-wrapper .bottom-links .doomas-main-menu a:hover {
    color: var(--dm-sky) !important;
}

.vb-custom-header-wrapper .bottom-links .doomas-main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--dm-sky);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vb-custom-header-wrapper .bottom-links .doomas-main-menu a:hover::after {
    width: 100%;
}

.vb-custom-header-wrapper .bottom-links .doomas-main-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 178, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    min-width: 160px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 100000;
    list-style: none;
    margin: 0;
}

.vb-custom-header-wrapper .bottom-links .doomas-main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.vb-custom-header-wrapper .bottom-links .doomas-main-menu .sub-menu a {
    display: block;
    padding: 9px 16px !important;
    font-size: 13px;
    white-space: nowrap;
}

.vb-custom-header-wrapper .bottom-links .doomas-main-menu .sub-menu a:hover {
    background-color: var(--dm-light-blue);
}
.doomas-dropdown-menu,
.doomas-dropdown-menu ul{
    list-style:none;
    margin:0;
    padding:0;
}

.doomas-dropdown-menu li{
    position:relative;
}

.doomas-dropdown-menu a{
    display:block;
    padding:10px 20px;
    color:var(--dm-text-dark);
    text-decoration:none;
    font-size:13.5px;
    font-weight:500;
    transition:.25s;
}

.doomas-dropdown-menu a:hover{
    background:var(--dm-light-blue);
    color:var(--dm-sky);
}

.doomas-dropdown-menu .sub-menu{
    padding-right:15px;
}
.doomas-mobile-menu,
.doomas-mobile-menu ul{
    list-style:none;
    margin:0;
    padding:0;
}

.doomas-mobile-menu li{
    border-bottom:1px solid #f3f5f7;
    position:relative;
}

.doomas-mobile-menu a{
    display:block;
    padding:14px 24px;
    color:var(--dm-text-dark);
    text-decoration:none;
    font-size:14px;
    font-weight:500;
    transition:.25s;
}

.doomas-mobile-menu a:hover{
    background:var(--dm-light-blue);
    color:var(--dm-sky);
}

.doomas-mobile-menu .sub-menu{
    padding-right:18px;
    background:#fafcff;
}
.doomas-sheet-menu,
.doomas-sheet-menu ul{
    list-style:none;
    margin:0;
    padding:0;
}

.doomas-sheet-menu li{
    border-bottom:1px solid #f3f5f7;
}

.doomas-sheet-menu a{
    display:block;
    padding:14px 24px;
    color:var(--dm-text-dark);
    text-decoration:none;
    font-size:14px;
    font-weight:500;
    transition:.25s;
}

.doomas-sheet-menu a:hover{
    background:var(--dm-light-blue);
    color:var(--dm-sky);
}

.doomas-sheet-menu .sub-menu{
    padding-right:18px;
    background:#fafcff;
}

/* ==========================================================
   06 - Mobile — Final Overrides
   ========================================================== */

/* ==================================================
   تنظیم نهایی فاصله هدر ثابت و محتوای صفحه در موبایل
================================================== */
@media only screen and (max-width: 767px) {

    html body,
    html body.is-scrolled {
        padding-top: 65px !important;
        margin-top: 0 !important;
    }

}

/* ==================================================
   پیام اطلاع‌رسانی زیر هدر چسبان موبایل
================================================== */

.dm-mobile-header-message {
    display: none;
}

@media (max-width: 768px) {

    .dm-mobile-header-message {
        display: flex;
        align-items: center;
        justify-content: center;
        width: calc(100% - 24px);
        min-height: 30px;
        margin: 5px auto 0;
        padding: 5px 12px;
        direction: rtl;
        text-align: center;
        font-size: 11.5px;
        font-weight: 700;
        line-height: 1.6;
        color: #ffffff;
        background: linear-gradient(135deg, #008bc7, #00a8df);
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 0 0 14px 14px;
        box-shadow: 0 8px 18px rgba(0, 105, 160, 0.18);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    /* افزایش فاصله محتوا برای جلوگیری از رفتن زیر پیام */
    body,
    body.is-scrolled {
        padding-top: 135px !important;
    }
}

@media (max-width: 380px) {

    .dm-mobile-header-message {
        width: calc(100% - 16px);
        min-height: 28px;
        margin-top: 4px;
        padding: 4px 8px;
        font-size: 10.5px;
    }

    body,
    body.is-scrolled {
        padding-top: 128px !important;
    }
}
@media only screen and (max-width: 768px) {
    html body {
        padding-top: 80px !important;
    }

    .vb-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .elementor-location-header + *,
    .vb-wrapper > *:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}