/* /Pages/Shared/_Layout.cshtml.rz.scp.css */
:root[b-tvjkepjge6] {
    color-scheme: dark;
    --it-bg: #070c17;
    --it-bg-soft: #0c1423;
    --it-surface: #101a2b;
    --it-surface-hover: #142238;
    --it-border: rgba(190, 210, 235, 0.11);
    --it-accent: #00f2ff;
    --it-accent-soft: rgba(0, 242, 255, 0.12);
    --it-text: #eef5fb;
    --it-muted: #9aabc0;
    --it-danger: #ff6b7d;
    --it-header-height: 76px;
    --it-radius: 8px;
    --it-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

*[b-tvjkepjge6] {
    box-sizing: border-box;
}

html[b-tvjkepjge6] {
    min-width: 320px;
    scroll-behavior: smooth;
}

body[b-tvjkepjge6] {
    margin: 0;
    min-height: 100vh;
    background: var(--it-bg);
    color: var(--it-text);
    font-family: "Vazirmatn", sans-serif;
    text-align: right;
}

a[b-tvjkepjge6] {
    color: inherit;
    text-decoration: none;
}

button[b-tvjkepjge6],
input[b-tvjkepjge6] {
    font: inherit;
}

button[b-tvjkepjge6] {
    color: inherit;
}

.it-header[b-tvjkepjge6] {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    background: rgba(7, 12, 23, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.it-header__inner[b-tvjkepjge6] {
    width: min(1440px, calc(100% - 48px));
    min-height: var(--it-header-height);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.it-brand[b-tvjkepjge6] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.it-brand__mark[b-tvjkepjge6] {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 242, 255, 0.35);
    border-radius: 8px;
    background: rgba(0, 242, 255, 0.09);
    color: var(--it-accent);
    font-size: 20px;
    box-shadow: inset 0 0 18px rgba(0, 242, 255, 0.06);
}

.it-brand__name[b-tvjkepjge6] {
    color: var(--it-text);
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

    .it-brand__name[b-tvjkepjge6]::first-letter {
        color: var(--it-accent);
    }

.it-nav[b-tvjkepjge6] {
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 6px;
}

.it-nav__link[b-tvjkepjge6] {
    position: relative;
    min-height: 42px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--it-muted);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 160ms ease, background 160ms ease;
}

    .it-nav__link:hover[b-tvjkepjge6],
    .it-nav__link:focus-visible[b-tvjkepjge6],
    .it-menu.is-open > .it-nav__trigger[b-tvjkepjge6] {
        background: rgba(0, 242, 255, 0.07);
        color: var(--it-accent);
        outline: none;
    }

.it-nav__trigger[b-tvjkepjge6] {
    cursor: pointer;
}

    .it-nav__trigger > i[b-tvjkepjge6] {
        font-size: 11px;
        transition: transform 180ms ease;
    }

.it-menu.is-open > .it-nav__trigger > i[b-tvjkepjge6] {
    transform: rotate(180deg);
}

.it-menu[b-tvjkepjge6] {
    position: relative;
}

.it-mega-menu[b-tvjkepjge6],
.it-popover[b-tvjkepjge6] {
    position: absolute;
    top: calc(100% + 12px);
    z-index: 20;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    border: 1px solid var(--it-border);
    border-radius: var(--it-radius);
    background: rgba(12, 20, 35, 0.98);
    box-shadow: var(--it-shadow);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.it-menu.is-open > .it-mega-menu[b-tvjkepjge6],
.it-menu.is-open > .it-popover[b-tvjkepjge6] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.it-mega-menu[b-tvjkepjge6] {
    right: 0;
    width: min(520px, calc(100vw - 32px));
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.it-mega-menu__column + .it-mega-menu__column[b-tvjkepjge6] {
    padding-right: 20px;
    border-right: 1px solid var(--it-border);
}

.it-mega-menu__title[b-tvjkepjge6] {
    margin: 0 0 12px;
    color: var(--it-muted);
    font-size: 12px;
    font-weight: 600;
}

.it-mega-menu__item[b-tvjkepjge6] {
    min-height: 48px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 6px;
    color: var(--it-text);
    font-size: 14px;
    transition: color 150ms ease, background 150ms ease;
}

    .it-mega-menu__item:hover[b-tvjkepjge6],
    .it-mega-menu__item:focus-visible[b-tvjkepjge6] {
        outline: none;
        background: var(--it-accent-soft);
        color: var(--it-accent);
    }

.it-mega-menu__icon[b-tvjkepjge6] {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--it-border);
    border-radius: 6px;
    color: var(--it-accent);
    font-size: 17px;
}

.it-mega-menu__arrow[b-tvjkepjge6] {
    margin-right: auto;
    opacity: 0;
    transform: translateX(4px);
    transition: opacity 150ms ease, transform 150ms ease;
}

.it-mega-menu__item:hover .it-mega-menu__arrow[b-tvjkepjge6],
.it-mega-menu__item:focus-visible .it-mega-menu__arrow[b-tvjkepjge6] {
    opacity: 1;
    transform: translateX(0);
}

.it-tools[b-tvjkepjge6] {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.it-search[b-tvjkepjge6] {
    width: clamp(190px, 20vw, 280px);
    height: 42px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--it-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--it-muted);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

    .it-search:focus-within[b-tvjkepjge6] {
        border-color: rgba(0, 242, 255, 0.62);
        background: rgba(0, 242, 255, 0.04);
        box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.09);
    }

    .it-search > i[b-tvjkepjge6] {
        flex: 0 0 auto;
        color: var(--it-accent);
    }

    .it-search input[b-tvjkepjge6] {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--it-text);
        font-size: 12px;
    }

        .it-search input[b-tvjkepjge6]::placeholder {
            color: #8192a8;
        }

    .it-search button[b-tvjkepjge6] {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--it-muted);
        cursor: pointer;
    }

        .it-search button:hover[b-tvjkepjge6] {
            color: var(--it-accent);
        }

.it-icon-button[b-tvjkepjge6] {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--it-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    color: var(--it-text);
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

    .it-icon-button:hover[b-tvjkepjge6],
    .it-icon-button:focus-visible[b-tvjkepjge6] {
        outline: none;
        border-color: rgba(0, 242, 255, 0.55);
        background: var(--it-accent-soft);
        color: var(--it-accent);
    }

.it-cart__trigger > i[b-tvjkepjge6] {
    font-size: 17px;
}

.it-cart__count[b-tvjkepjge6],
.it-count-badge[b-tvjkepjge6] {
    min-width: 19px;
    height: 19px;
    padding-inline: 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--it-accent);
    color: #041118;
    font-size: 10px;
    font-weight: 800;
}

.it-cart__count[b-tvjkepjge6] {
    position: absolute;
    top: -5px;
    left: -5px;
}

.it-cart__trigger.is-active[b-tvjkepjge6]::after {
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(0, 242, 255, 0.5);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    animation: it-pulse-b-tvjkepjge6 2s ease-out infinite;
}

@keyframes it-pulse-b-tvjkepjge6 {
    0% {
        opacity: 0.7;
        transform: scale(0.82);
    }

    75%, 100% {
        opacity: 0;
        transform: scale(1.28);
    }
}

.it-popover[b-tvjkepjge6] {
    left: 0;
    width: 290px;
    padding: 16px;
}

.it-popover__heading[b-tvjkepjge6],
.it-cart__total[b-tvjkepjge6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.it-popover__heading[b-tvjkepjge6] {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--it-border);
    font-size: 14px;
}

.it-cart__summary[b-tvjkepjge6] {
    margin: 14px 0;
    color: var(--it-muted);
    font-size: 13px;
}

.it-cart__total[b-tvjkepjge6] {
    padding: 12px 0;
    border-top: 1px solid var(--it-border);
    color: var(--it-muted);
    font-size: 12px;
}

    .it-cart__total strong[b-tvjkepjge6] {
        color: var(--it-text);
        font-size: 13px;
    }

.it-action-button[b-tvjkepjge6] {
    min-height: 40px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 242, 255, 0.38);
    border-radius: 6px;
    background: var(--it-accent);
    color: #041118;
    font-size: 13px;
    font-weight: 700;
    transition: filter 150ms ease, background 150ms ease;
}

    .it-action-button:hover[b-tvjkepjge6] {
        filter: brightness(1.08);
        color: #041118;
    }

.it-action-button--quiet[b-tvjkepjge6] {
    background: transparent;
    color: var(--it-accent);
}

    .it-action-button--quiet:hover[b-tvjkepjge6] {
        background: var(--it-accent-soft);
        color: var(--it-accent);
    }

.it-account__trigger[b-tvjkepjge6] {
    min-height: 44px;
    padding: 3px 7px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    text-align: right;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

    .it-account__trigger:hover[b-tvjkepjge6],
    .it-menu.is-open > .it-account__trigger[b-tvjkepjge6] {
        border-color: var(--it-border);
        background: rgba(255, 255, 255, 0.035);
    }

.it-avatar[b-tvjkepjge6] {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: block;
    border: 1px solid rgba(0, 242, 255, 0.7);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.16);
}

.it-avatar--fallback[b-tvjkepjge6] {
    display: grid;
    place-items: center;
    background: var(--it-accent-soft);
    color: var(--it-accent);
    font-size: 16px;
}

.it-account__details[b-tvjkepjge6] {
    max-width: 125px;
    display: grid;
    gap: 1px;
}

    .it-account__details strong[b-tvjkepjge6] {
        overflow: hidden;
        color: var(--it-text);
        font-size: 12px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .it-account__details small[b-tvjkepjge6] {
        color: var(--it-muted);
        font-size: 10px;
        white-space: nowrap;
    }

.it-account__chevron[b-tvjkepjge6] {
    color: var(--it-muted);
    font-size: 10px;
    transition: transform 160ms ease;
}

.it-menu.is-open > .it-account__trigger .it-account__chevron[b-tvjkepjge6] {
    transform: rotate(180deg);
}

.it-account__popover[b-tvjkepjge6] {
    width: 260px;
}

.it-account__summary[b-tvjkepjge6] {
    padding: 3px 2px 13px;
    display: grid;
    gap: 7px;
    border-bottom: 1px solid var(--it-border);
}

.it-account__summary-name[b-tvjkepjge6] {
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.it-account__wallet[b-tvjkepjge6] {
    color: var(--it-muted);
    font-size: 11px;
}

    .it-account__wallet i[b-tvjkepjge6] {
        margin-left: 4px;
        color: var(--it-accent);
    }

.it-popover__link[b-tvjkepjge6] {
    width: 100%;
    min-height: 42px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--it-text);
    font-size: 12px;
    text-align: right;
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease;
}

.it-account__summary + .it-popover__link[b-tvjkepjge6] {
    margin-top: 7px;
}

.it-popover__link:hover[b-tvjkepjge6],
.it-popover__link:focus-visible[b-tvjkepjge6] {
    outline: none;
    background: rgba(255, 255, 255, 0.045);
    color: var(--it-accent);
}

.it-popover__link > i[b-tvjkepjge6] {
    width: 18px;
    color: var(--it-muted);
    font-size: 15px;
}

.it-popover__link--danger[b-tvjkepjge6] {
    color: var(--it-danger);
}

    .it-popover__link--danger:hover[b-tvjkepjge6] {
        background: rgba(255, 107, 125, 0.08);
        color: #ff8795;
    }

.it-account__popover form[b-tvjkepjge6] {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid var(--it-border);
}

.it-auth-button[b-tvjkepjge6] {
    min-height: 40px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(0, 242, 255, 0.38);
    border-radius: 6px;
    background: var(--it-accent-soft);
    color: var(--it-accent);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 150ms ease, color 150ms ease;
}

    .it-auth-button:hover[b-tvjkepjge6] {
        background: var(--it-accent);
        color: #041118;
    }

.it-mobile-toggle[b-tvjkepjge6] {
    display: none;
}

.it-main[b-tvjkepjge6] {
    min-height: calc(100vh - var(--it-header-height) - 70px);
}

.it-footer[b-tvjkepjge6] {
    border-top: 1px solid var(--it-border);
    background: #080e19;
}

.it-footer__inner[b-tvjkepjge6] {
    width: min(1440px, calc(100% - 48px));
    min-height: 70px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.it-brand--footer .it-brand__mark[b-tvjkepjge6] {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.it-brand--footer .it-brand__name[b-tvjkepjge6] {
    font-size: 15px;
}

.it-footer__copyright[b-tvjkepjge6] {
    color: var(--it-muted);
    font-size: 11px;
}

@media (max-width: 1100px) {
    .it-header__inner[b-tvjkepjge6] {
        width: min(100% - 32px, 1440px);
        gap: 18px;
    }

    .it-nav__link[b-tvjkepjge6] {
        padding-inline: 9px;
    }

    .it-search[b-tvjkepjge6] {
        width: 200px;
    }

    .it-account__details[b-tvjkepjge6] {
        max-width: 95px;
    }
}

@media (max-width: 850px) {
    :root[b-tvjkepjge6] {
        --it-header-height: 68px;
    }

    .it-header__inner[b-tvjkepjge6] {
        position: relative;
        flex-wrap: wrap;
        gap: 0;
    }

    .it-mobile-toggle[b-tvjkepjge6] {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        display: grid;
        place-items: center;
        order: 2;
        border: 1px solid var(--it-border);
        border-radius: 6px;
        background: transparent;
        color: var(--it-text);
        font-size: 22px;
        cursor: pointer;
    }

    .it-brand[b-tvjkepjge6] {
        order: 1;
    }

    .it-tools[b-tvjkepjge6] {
        margin-right: auto;
        order: 3;
        gap: 8px;
    }

    .it-search[b-tvjkepjge6] {
        width: min(38vw, 230px);
    }

        .it-search input[b-tvjkepjge6] {
            font-size: 11px;
        }

    .it-nav[b-tvjkepjge6] {
        position: absolute;
        top: calc(100% + 1px);
        right: -16px;
        left: -16px;
        display: none;
        padding: 10px 16px 14px;
        align-items: stretch;
        flex-direction: column;
        border-bottom: 1px solid var(--it-border);
        background: rgba(7, 12, 23, 0.98);
        box-shadow: 0 18px 28px rgba(0, 0, 0, 0.3);
    }

        .it-nav.is-mobile-open[b-tvjkepjge6] {
            display: flex;
        }

    .it-nav__link[b-tvjkepjge6] {
        width: 100%;
        justify-content: flex-start;
    }

    .it-menu[data-menu="categories"][b-tvjkepjge6] {
        width: 100%;
    }

    .it-mega-menu[b-tvjkepjge6] {
        position: static;
        width: 100%;
        margin-top: 6px;
        display: none;
        transform: none;
    }

    .it-menu.is-open > .it-mega-menu[b-tvjkepjge6] {
        display: grid;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .it-menu.is-open > .it-popover[b-tvjkepjge6] {
        transform: translateY(0);
    }
}

@media (max-width: 560px) {
    .it-header__inner[b-tvjkepjge6],
    .it-footer__inner[b-tvjkepjge6] {
        width: calc(100% - 24px);
    }

    .it-brand__name[b-tvjkepjge6] {
        font-size: 16px;
    }

    .it-brand__mark[b-tvjkepjge6] {
        width: 36px;
        height: 36px;
    }

    .it-mobile-toggle[b-tvjkepjge6] {
        margin-right: 8px;
    }

    .it-tools[b-tvjkepjge6] {
        gap: 6px;
    }

    .it-search[b-tvjkepjge6] {
        width: 40px;
        padding-inline: 11px;
        justify-content: center;
    }

        .it-search:focus-within[b-tvjkepjge6] {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            z-index: 30;
            width: min(100%, 340px);
            background: var(--it-bg-soft);
        }

        .it-search input[b-tvjkepjge6] {
            width: 0;
            padding: 0;
            opacity: 0;
        }

        .it-search:focus-within input[b-tvjkepjge6] {
            width: 100%;
            opacity: 1;
        }

        .it-search button[b-tvjkepjge6] {
            display: none;
        }

    .it-account__details[b-tvjkepjge6],
    .it-account__chevron[b-tvjkepjge6] {
        display: none;
    }

    .it-account__trigger[b-tvjkepjge6] {
        padding: 3px;
    }

    .it-popover[b-tvjkepjge6] {
        left: -3px;
        width: min(290px, calc(100vw - 24px));
    }

    .it-mega-menu[b-tvjkepjge6] {
        padding: 14px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .it-mega-menu__column + .it-mega-menu__column[b-tvjkepjge6] {
        padding: 12px 0 0;
        border-top: 1px solid var(--it-border);
        border-right: 0;
    }

    .it-footer__inner[b-tvjkepjge6] {
        min-height: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *[b-tvjkepjge6],
    *[b-tvjkepjge6]::before,
    *[b-tvjkepjge6]::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ==========================================================
   KaraMarket Modern Glassmorphism Header & Mega Menu
   ========================================================== */

.km-header-glass[b-tvjkepjge6] {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1100;
    background: rgba(8, 14, 26, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.km-header-container[b-tvjkepjge6] {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
}

/* Brand / Logo */
.km-header-brand .km-logo-wrap[b-tvjkepjge6] {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.km-logo-text[b-tvjkepjge6] {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 60%, #00d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.km-logo-icon[b-tvjkepjge6] {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.45));
}

/* Main Navigation */
.km-main-nav[b-tvjkepjge6] {
    display: flex;
    align-items: center;
}

.km-nav-list[b-tvjkepjge6] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.km-nav-item[b-tvjkepjge6] {
    position: relative;
}

.km-nav-link[b-tvjkepjge6] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #9ab0ce;
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.6rem 0.2rem;
    transition: color 0.25s ease;
    position: relative;
}

    .km-nav-link:hover[b-tvjkepjge6],
    .km-nav-link.active[b-tvjkepjge6] {
        color: #00d2ff;
    }

        .km-nav-link.active[b-tvjkepjge6]::after {
            content: '';
            position: absolute;
            bottom: -4px;
            right: 0;
            left: 0;
            height: 2px;
            background: #00d2ff;
            border-radius: 4px;
            box-shadow: 0 0 8px rgba(0, 210, 255, 0.8);
        }

.km-chevron[b-tvjkepjge6] {
    transition: transform 0.25s ease;
    opacity: 0.7;
}

.km-has-mega:hover .km-chevron[b-tvjkepjge6] {
    transform: rotate(180deg);
}

/* ================= Mega Menu Container (Exact Image UI) ================= */
.km-mega-panel[b-tvjkepjge6] {
    position: absolute;
    top: calc(100% + 14px);
    right: 50%;
    transform: translateX(50%) translateY(10px);
    width: 620px;
    background: rgba(6, 11, 22, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 18px;
    padding: 1.6rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 210, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1200;
}

.km-has-mega:hover .km-mega-panel[b-tvjkepjge6] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(50%) translateY(0);
}

.km-mega-grid[b-tvjkepjge6] {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.5rem;
}

.km-mega-col[b-tvjkepjge6] {
    flex: 1;
}

.km-mega-divider[b-tvjkepjge6] {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.km-mega-title[b-tvjkepjge6] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}

.km-title-icon[b-tvjkepjge6] {
    color: #00d2ff;
    display: flex;
}

.km-mega-links[b-tvjkepjge6] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.km-mega-item-card[b-tvjkepjge6] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    text-decoration: none;
    color: #c7d8ed;
    transition: all 0.25s ease;
}

    .km-mega-item-card:hover[b-tvjkepjge6] {
        color: #ffffff;
    }

.km-item-arrow[b-tvjkepjge6] {
    color: #486184;
    font-size: 0.95rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.km-mega-item-card:hover .km-item-arrow[b-tvjkepjge6] {
    color: #00d2ff;
    transform: translateX(-3px);
}

.km-item-name[b-tvjkepjge6] {
    font-size: 0.95rem;
    font-weight: 600;
}

.km-item-icon-box[b-tvjkepjge6] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d2ff;
    box-shadow: inset 0 0 12px rgba(0, 210, 255, 0.08);
    transition: all 0.25s ease;
}

.km-mega-item-card:hover .km-item-icon-box[b-tvjkepjge6] {
    background: rgba(0, 210, 255, 0.15);
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.35);
    color: #ffffff;
}

/* ================= Left Actions & Search ================= */
.km-header-actions[b-tvjkepjge6] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.km-icon-btn[b-tvjkepjge6] {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #a4b9d3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .km-icon-btn:hover[b-tvjkepjge6] {
        color: #00d2ff;
        background: rgba(255, 255, 255, 0.04);
    }

.km-cart-wrapper[b-tvjkepjge6] {
    position: relative;
}

.km-cart-badge[b-tvjkepjge6] {
    position: absolute;
    top: 0;
    right: 2px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #00d2ff;
    color: #040914;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.8);
}

/* Cart Dropdown */
.km-glass-dropdown[b-tvjkepjge6] {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 290px;
    background: rgba(7, 13, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 1200;
}

.km-cart-wrapper:hover .km-glass-dropdown[b-tvjkepjge6] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.km-dropdown-header[b-tvjkepjge6] {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.km-cart-empty-state[b-tvjkepjge6] {
    padding: 1.5rem 0.5rem;
    text-align: center;
    color: #687f9d;
    font-size: 0.85rem;
}

    .km-cart-empty-state p[b-tvjkepjge6] {
        margin-top: 0.5rem;
    }

.km-btn-checkout[b-tvjkepjge6] {
    display: block;
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #00d2ff, #0084ff);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

    .km-btn-checkout:hover[b-tvjkepjge6] {
        opacity: 0.9;
    }

/* Capsule Search Bar */
.km-header-search[b-tvjkepjge6] {
    position: relative;
    display: flex;
    align-items: center;
    width: 240px;
    background: rgba(14, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0.35rem 0.85rem;
    transition: all 0.3s ease;
}

    .km-header-search:focus-within[b-tvjkepjge6] {
        border-color: rgba(0, 210, 255, 0.6);
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
        background: rgba(16, 28, 52, 0.9);
    }

    .km-header-search input[b-tvjkepjge6] {
        background: transparent;
        border: none;
        outline: none;
        color: #ffffff;
        font-size: 0.85rem;
        width: 100%;
        padding: 0.2rem 0.4rem;
    }

        .km-header-search input[b-tvjkepjge6]::placeholder {
            color: #607592;
            font-size: 0.82rem;
        }

.km-search-btn[b-tvjkepjge6] {
    background: transparent;
    border: none;
    color: #607592;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.km-header-search:focus-within .km-search-btn[b-tvjkepjge6] {
    color: #00d2ff;
    /* پس‌زمینهٔ سراسری تیره با glow آبی */
    html {
        min-height: 100%;
        background: #030916;
    }

    body.it-site-shell[b-tvjkepjge6] {
        position: relative;
        isolation: isolate;
        min-height: 100vh;
        overflow-x: hidden;
        background: transparent;
        color: #eef5fb;
    }

        body.it-site-shell[b-tvjkepjge6]::before {
            content: "";
            position: fixed;
            z-index: -1;
            inset: -12%;
            pointer-events: none;
            background: radial-gradient(ellipse at 8% 42%, rgba(0, 126, 255, 0.30) 0, rgba(0, 126, 255, 0.12) 24%, transparent 48%), radial-gradient(ellipse at 92% 76%, rgba(0, 176, 255, 0.28) 0, rgba(0, 145, 255, 0.10) 25%, transparent 48%), radial-gradient(ellipse at 52% 110%, rgba(0, 72, 180, 0.20) 0, transparent 45%);
            filter: blur(30px);
            animation: itnika-background-drift 24s ease-in-out infinite alternate;
        }

    @@keyframes itnika-background-drift {
        from[b-tvjkepjge6] {
            transform: translate3d(-1%, -1%, 0) scale(1);
        }

        to[b-tvjkepjge6] {
            transform: translate3d(1%, 1%, 0) scale(1.06);
        }
    }
    /* هدر شناور و شیشه‌ای */
    .km-header-glass[b-tvjkepjge6] {
        position: sticky;
        top: 12px;
        z-index: 1100;
        width: min(1392px, calc(100% - 48px));
        margin: 12px auto 0;
        border: 1px solid rgba(0, 210, 255, 0.20);
        border-radius: 18px;
        background: rgba(3, 10, 20, 0.84);
        box-shadow: 0 14px 42px rgba(0, 0, 0, 0.30), inset 0 0 22px rgba(0, 210, 255, 0.025);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .km-header-container[b-tvjkepjge6] {
        width: 100%;
        max-width: none;
        min-height: 76px;
        margin: 0;
        padding: 0.7rem 1.4rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        direction: rtl;
    }

    .km-header-brand[b-tvjkepjge6] {
        order: 1;
        flex: 0 0 auto;
    }

    .km-main-nav[b-tvjkepjge6] {
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }

    .km-header-actions[b-tvjkepjge6] {
        order: 3;
        flex: 0 0 auto;
        gap: 0.75rem;
    }

    .km-nav-list[b-tvjkepjge6] {
        gap: clamp(0.8rem, 1.7vw, 1.6rem);
    }

    .km-nav-link[b-tvjkepjge6] {
        color: #e5edf8;
        white-space: nowrap;
    }

        .km-nav-link:hover[b-tvjkepjge6],
        .km-nav-link.active[b-tvjkepjge6] {
            color: #00d2ff;
        }

    .km-logo-wrap[b-tvjkepjge6] {
        direction: rtl;
    }

    .km-logo-text[b-tvjkepjge6] {
        color: #f3f8ff;
        background: none;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: #f3f8ff;
        letter-spacing: 0;
        white-space: nowrap;
    }
    /* ظاهر دکمهٔ دسته‌بندی‌ها مثل لینک‌های ناوبری */
    .km-mega-trigger[b-tvjkepjge6] {
        border: 0;
        padding: 0.6rem 0.2rem;
        background: transparent;
        color: inherit;
        font: inherit;
        cursor: pointer;
    }

        .km-mega-trigger:focus-visible[b-tvjkepjge6] {
            outline: 2px solid rgba(0, 210, 255, 0.7);
            outline-offset: 4px;
            border-radius: 6px;
        }
    /* حذف فاصلهٔ بین دکمه و پنل؛ عامل بسته‌شدن ناگهانی منو */
    .km-mega-panel[b-tvjkepjge6] {
        top: 100%;
        right: 50%;
        width: min(620px, calc(100vw - 24px));
        transform: translateX(50%) translateY(8px);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }

    .km-has-mega:hover > .km-mega-panel[b-tvjkepjge6],
    .km-has-mega:focus-within > .km-mega-panel[b-tvjkepjge6],
    .km-has-mega.is-open > .km-mega-panel[b-tvjkepjge6] {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(50%) translateY(0);
    }

    .km-has-mega.is-open > .km-mega-trigger .km-chevron[b-tvjkepjge6] {
        transform: rotate(180deg);
    }

    @media (max-width: 850px) {
        .km-header-container[b-tvjkepjge6] {
            flex-wrap: wrap;
            row-gap: 0.35rem;
        }

        .km-header-brand[b-tvjkepjge6] {
            order: 1;
        }

        .km-header-actions[b-tvjkepjge6] {
            order: 2;
            margin-inline-start: auto;
        }

        .km-main-nav[b-tvjkepjge6] {
            order: 3;
            flex: 0 0 100%;
            justify-content: center;
        }

        .km-nav-list[b-tvjkepjge6] {
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.25rem 1rem;
        }
    }

    @media (max-width: 560px) {
        .km-header-glass[b-tvjkepjge6] {
            top: 8px;
            width: calc(100% - 20px);
            margin-top: 8px;
        }

        .km-header-container[b-tvjkepjge6] {
            padding: 0.55rem 0.8rem;
        }

        .km-logo-text[b-tvjkepjge6] {
            font-size: 1.1rem;
        }

        .km-mega-panel[b-tvjkepjge6] {
            width: calc(100vw - 28px);
            padding: 1.2rem;
        }

        .km-mega-grid[b-tvjkepjge6] {
            gap: 1rem;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        body.it-site-shell[b-tvjkepjge6]::before {
            animation: none;
        }
    }
}
