.cmn-site-header {
    overflow: visible;
}

.cmn-products-trigger {
    gap: 7px;
}

.cmn-products-trigger svg {
    width: 14px;
    height: 14px;
    transition: transform .18s ease;
}

.cmn-products-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.cmn-header-menu .cmn-products-trigger[aria-expanded="true"] {
    background: #eff6ff;
    color: #0051bb;
    box-shadow: none;
}

.cmn-product-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    color: #172033;
    box-shadow: 0 20px 35px rgba(15, 23, 42, .09);
}

.cmn-product-menu[hidden],
.cmn-product-menu-backdrop[hidden] {
    display: none;
}

.cmn-product-menu:not([hidden]) {
    animation: productMenuReveal .18s ease-out;
    transform-origin: top;
}

@keyframes productMenuReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cmn-product-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(15, 23, 42, .16);
}

.cmn-product-menu-shell {
    width: min(1200px, calc(100% - 64px));
    margin: auto;
    padding: 30px 0 18px;
}

.cmn-product-menu-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
}

.cmn-product-menu-content.has-promo {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
}

.cmn-product-menu-columns {
    display: grid;
    grid-template-columns: repeat(var(--menu-columns), minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}

.cmn-product-menu-column {
    display: grid;
    gap: 28px;
    min-width: 0;
}

.cmn-product-menu-column:nth-child(4) {
    border-left: 1px solid #e5e7eb;
    padding-left: 22px;
}

.cmn-product-menu-group h3 {
    margin: 0 0 13px;
    color: #111827;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cmn-product-menu-group ul {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cmn-product-menu-group a {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 6px 0;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.cmn-product-menu-group a:hover {
    color: #0051bb;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cmn-product-menu-group small {
    padding: 2px 6px;
    border-radius: 6px;
    background: #d9f2ff;
    color: #075985;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
}

.cmn-product-menu-promo {
    display: block;
    color: #172033;
    text-decoration: none;
    min-width: 0;
}

.cmn-product-menu-promo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f1f5f9;
}

.cmn-product-menu-promo strong {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.cmn-product-menu-promo:hover strong {
    color: #0051bb;
}

.cmn-product-menu-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 24px;
    padding-top: 15px;
    border-top: 1px solid #edf0f5;
}

.cmn-product-menu-footer a {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: #0051bb;
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
}

.cmn-product-menu a:focus-visible,
.cmn-products-trigger:focus-visible,
.cmn-mobile-products a:focus-visible,
.cmn-mobile-products summary:focus-visible {
    outline: 2px solid #0051bb;
    outline-offset: 4px;
    border-radius: 3px;
}

.cmn-mobile-products {
    border-bottom: 1px solid #e5e7eb;
}

.cmn-mobile-products>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    color: #172033;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.cmn-mobile-products>summary::-webkit-details-marker {
    display: none;
}

.cmn-mobile-products[open]>summary .cmn-menu-indicator svg {
    transform: rotate(180deg);
}

/* Vector arrows share one optical size; only the chevron rotates. */
.cmn-menu-indicator svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}
@media (max-width: 900px) {
    .cmn-mobile-products > summary > .cmn-menu-indicator,
    .cmn-mobile-products .cmn-mobile-category > summary > .cmn-menu-indicator,
    .cmn-mobile-products .cmn-product-menu-footer .cmn-menu-indicator {
        display: inline-grid;
        place-items: center;
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        box-sizing: border-box;
        border: 1px solid #dfe7f5;
        border-radius: 10px;
        background: #fff;
        color: #6b7f9f;
        transform: none;
        transition: background .18s ease, border-color .18s ease, color .18s ease;
        pointer-events: none;
    }
    .cmn-mobile-products > summary > .cmn-menu-indicator svg,
    .cmn-mobile-products .cmn-mobile-category > summary > .cmn-menu-indicator svg {
        width: 18px;
        height: 18px;
        color: inherit;
        transition: transform .18s ease;
    }
    .cmn-mobile-products[open] > summary > .cmn-menu-indicator,
    .cmn-mobile-products .cmn-mobile-category[open] > summary > .cmn-menu-indicator,
    .cmn-mobile-products .cmn-product-menu-footer .cmn-menu-indicator {
        border-color: #d7e3ff;
        background: #eaf1ff;
        color: #3156c5;
    }
    .cmn-mobile-products[open] > summary > .cmn-menu-indicator svg,
    .cmn-mobile-products .cmn-mobile-category[open] > summary > .cmn-menu-indicator svg {
        transform: rotate(180deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .cmn-mobile-products .cmn-menu-indicator,
    .cmn-mobile-products .cmn-menu-indicator svg {
        transition: none !important;
    }
}

.cmn-mobile-products .cmn-product-menu-content,
.cmn-mobile-products .cmn-product-menu-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.cmn-mobile-products .cmn-product-menu-column {
    gap: 22px;
    padding: 0;
    border: 0;
}

.cmn-mobile-products .cmn-product-menu-group a {
    min-height: 40px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
}

.cmn-mobile-products .cmn-product-menu-promo {
    max-width: 240px;
}

.cmn-mobile-products a.cmn-product-menu-promo {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}

.cmn-mobile-products .cmn-product-menu-footer a {
    min-height: 40px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    font-size: 12px;
}

.cmn-mobile-products .cmn-product-menu-footer {
    margin-bottom: 16px;
}

@media (max-width: 1100px) {
    .cmn-product-menu-shell {
        width: calc(100% - 40px);
    }
    .cmn-product-menu-content {
        gap: 22px;
    }
    .cmn-product-menu-content.has-promo {
        grid-template-columns: minmax(0, 1fr) 180px;
    }
    .cmn-product-menu-columns {
        gap: 16px;
    }
    .cmn-product-menu-column:nth-child(4) {
        padding-left: 14px;
    }
}

@media (max-width: 900px) {
    .cmn-product-menu,
    .cmn-product-menu-backdrop {
        display: none;
    }
    .cmn-mobile-menu {
        width: min(390px, calc(100vw - 16px));
    }
    .cmn-mobile-menu-head {
        padding: 20px;
        border-bottom: 1px solid #edf1f7;
    }
    .cmn-mobile-links {
        padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    }
    .cmn-mobile-products {
        margin: 4px 0 8px;
        border: 1px solid #dfe7f3;
        border-radius: 16px;
        background: #f8faff;
    }
    .cmn-mobile-products>summary {
        min-height: 52px;
        padding: 14px;
        gap: 12px;
        color: #1e40af;
    }
    .cmn-mobile-products>summary>span {
        display: grid;
        place-items: center;
        width: 24px;
        height: 24px;
        border-radius: 8px;
        background: #eaf0ff;
        transition: transform .18s ease;
    }
    .cmn-mobile-products>.cmn-product-menu-content {
        padding: 0 10px;
    }
    .cmn-mobile-products .cmn-product-menu-columns,
    .cmn-mobile-products .cmn-product-menu-column {
        gap: 6px;
        padding: 0;
    }
    .cmn-mobile-category {
        min-width: 0;
        border: 1px solid #e5ebf4;
        border-radius: 12px;
        background: #fff;
    }
    .cmn-mobile-category>summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 48px;
        padding: 12px;
        color: #26354e;
        font-size: 13px;
        font-weight: 600;
        list-style: none;
        cursor: pointer;
    }
    .cmn-mobile-category>summary::-webkit-details-marker {
        display: none;
    }
    .cmn-mobile-category>summary span {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .cmn-mobile-category>summary svg {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        color: #8694ab;
        transition: transform .18s ease;
    }
    .cmn-mobile-category[open]>summary {
        color: #0051bb;
    }
    .cmn-mobile-category[open]>summary svg {
        transform: rotate(180deg);
        color: #0051bb;
    }
    .cmn-mobile-category>ul {
        margin: 0 10px 10px;
        padding-top: 5px;
        border-top: 1px solid #edf1f7;
        gap: 2px;
    }
    .cmn-mobile-products .cmn-mobile-category a {
        width: 100%;
        min-height: 44px;
        padding: 10px 8px;
        border-radius: 8px;
        color: #53617a;
    }
    .cmn-mobile-products .cmn-mobile-category a:hover {
        background: #f1f5ff;
        color: #0051bb;
        text-decoration: none;
    }
    .cmn-mobile-products .cmn-product-menu-content a.cmn-product-menu-promo {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        max-width: none;
        padding: 8px;
        border: 1px solid #e5ebf4;
        border-radius: 12px;
        background: #fff;
    }
    .cmn-mobile-products .cmn-product-menu-promo img {
        border-radius: 8px;
    }
    .cmn-mobile-products .cmn-product-menu-promo strong {
        margin: 0;
        font-size: 12px;
    }
    .cmn-mobile-products .cmn-product-menu-footer {
        margin: 12px 10px 10px;
        padding: 0;
        border: 0;
    }
    .cmn-mobile-products .cmn-product-menu-footer a {
        display: flex;
        justify-content: space-between;
        min-height: 46px;
        padding: 12px;
        border-radius: 10px;
        background: #eaf0ff;
        color: #1e40af;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cmn-products-trigger svg,
    .cmn-mobile-category>summary svg,
    .cmn-mobile-products>summary>span {
        transition: none;
    }
    .cmn-product-menu:not([hidden]) {
        animation: none;
    }
}


/* A single, compact navigation hierarchy for touch screens. */

@media (max-width: 900px) {
    .cmn-mobile-menu {
        width: min(380px, calc(100vw - 20px));
        background: #fff;
    }
    .cmn-mobile-menu-head {
        min-height: 76px;
        padding: 16px 18px;
        background: #fff;
    }
    .cmn-mobile-links {
        flex: 1;
        min-height: 0;
        padding: 16px 14px calc(20px + env(safe-area-inset-bottom, 0px));
        scrollbar-width: thin;
        scrollbar-color: #cbd7eb transparent;
    }
    .cmn-mobile-section-label {
        margin: 0 10px 10px;
        color: #8190a7;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .04em;
    }
    .cmn-mobile-primary-links {
        gap: 6px;
    }
    .cmn-mobile-links .cmn-mobile-nav-link,
    .cmn-mobile-links .cmn-mobile-nav-link:hover {
        min-height: 46px;
        gap: 10px;
        padding: 11px 12px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 600;
    }
    .cmn-mobile-links .cmn-mobile-nav-link i {
        width: 22px;
        color: #637da6;
        text-align: center;
        font-size: 19px;
    }
    .cmn-mobile-links .cmn-mobile-nav-link[aria-current="page"] {
        background: #edf3ff;
        color: #254fc0;
    }
    .cmn-mobile-products {
        margin: 0;
        border: 0;
        border-radius: 14px;
        background: #f7f9fd;
        overflow: hidden;
    }
    .cmn-mobile-products>summary {
        min-height: 48px;
        padding: 12px 18px 12px 12px;
        font-size: 13px;
        background: #edf3ff;
    }
    .cmn-mobile-products>summary>span {
        width: 22px;
        height: 22px;
        background: #fff;
        font-size: 16px;
    }
    .cmn-mobile-products>.cmn-product-menu-content {
        padding: 4px 10px 0;
    }
    .cmn-mobile-products .cmn-product-menu-columns,
    .cmn-mobile-products .cmn-product-menu-column {
        gap: 0;
    }
    .cmn-mobile-category {
        border: 0;
        border-bottom: 1px solid #e5ebf5;
        border-radius: 0;
        background: transparent;
    }
    .cmn-mobile-category:last-child {
        border-bottom: 0;
    }
    .cmn-mobile-category>summary {
        min-height: 48px;
        padding: 12px 8px;
        border-radius: 9px;
        font-size: 12px;
        line-height: 1.5;
    }
    .cmn-mobile-category[open]>summary {
        background: #fff;
        color: #254fc0;
    }
    .cmn-mobile-category>summary:focus:not(:focus-visible) {
        outline: none;
        box-shadow: none;
    }
    .cmn-mobile-category>summary:focus-visible {
        outline: 2px solid #7397f3;
        outline-offset: -2px;
        box-shadow: none;
    }
    .cmn-mobile-category>ul {
        margin: 2px 8px 12px 16px;
        padding: 2px 0 2px 10px;
        border-top: 0;
        border-left: 2px solid #dce6fb;
        gap: 2px;
    }
    .cmn-mobile-products .cmn-mobile-category a {
        min-height: 44px;
        padding: 9px 10px;
        background: transparent;
        color: #566881;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.5;
    }
    .cmn-mobile-products .cmn-mobile-category li:first-child a {
        color: #3158be;
        font-weight: 600;
    }
    .cmn-mobile-products .cmn-product-menu-footer {
        margin: 10px;
    }
    .cmn-mobile-products .cmn-product-menu-footer a {
        width: 100%;
        min-height: 44px;
        /* 10px outer margin + 1px border + 7px padding = 18px arrow inset. */
        box-sizing: border-box;
        padding: 11px 7px 11px 14px;
        border: 1px solid #d9e4fb;
        border-radius: 10px;
        background: #fff;
        color: #254fc0;
        font-size: 12px;
        font-weight: 600;
    }
    .cmn-mobile-divider {
        margin: 18px 2px;
    }
    .cmn-mobile-links .cmn-mobile-auth-btn,
    .cmn-mobile-logout-form .cmn-mobile-auth-btn {
        min-height: 46px;
        border-radius: 12px;
        font-size: 13px;
    }
}
