/* Aramis Desktop Mega Menu — site-specific desktop presentation. */
.adn-desktop-mega,
.adn-desktop-mega * {
    box-sizing: border-box;
}

.adn-desktop-mega {
    --adn-mega-accent: #8B0000;
    --adn-mega-accent-hover: #720000;
    --adn-mega-secondary: #102C57;
    --adn-mega-surface: #E6EEFA;
    --adn-mega-bg: #FFFFFF;
    --adn-mega-text: #102C57;
    --adn-mega-border: #D8E2F0;
    --adn-mega-muted: #60738E;
    width: min(1180px, calc(100vw - 64px));
    max-width: 1180px;
    margin: 12px auto 18px;
    color: var(--adn-mega-text);
    font: inherit;
    direction: rtl;
}

.adn-desktop-mega__shell {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 238px;
    min-height: 390px;
    background: var(--adn-mega-bg);
    border: 1px solid var(--adn-mega-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(16, 44, 87, 0.12);
}

.adn-desktop-mega__tabs {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    background: #F8FAFD;
    border-left: 1px solid var(--adn-mega-border);
}

html body .adn-desktop-mega button.adn-desktop-mega__tab,
html body .adn-desktop-mega button.adn-desktop-mega__tab:hover,
html body .adn-desktop-mega button.adn-desktop-mega__tab:focus,
html body .adn-desktop-mega button.adn-desktop-mega__tab:focus-visible,
html body .adn-desktop-mega button.adn-desktop-mega__tab:active {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 13px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    outline: none !important;
    background: transparent !important;
    color: var(--adn-mega-secondary) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    text-align: right !important;
    cursor: pointer !important;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease !important;
}

html body .adn-desktop-mega button.adn-desktop-mega__tab:hover,
html body .adn-desktop-mega button.adn-desktop-mega__tab:focus-visible {
    background: var(--adn-mega-surface) !important;
    color: var(--adn-mega-secondary) !important;
    border-color: rgba(16, 44, 87, 0.08) !important;
}

html body .adn-desktop-mega button.adn-desktop-mega__tab.is-active,
html body .adn-desktop-mega button.adn-desktop-mega__tab.is-active:hover,
html body .adn-desktop-mega button.adn-desktop-mega__tab.is-active:focus,
html body .adn-desktop-mega button.adn-desktop-mega__tab.is-active:focus-visible,
html body .adn-desktop-mega button.adn-desktop-mega__tab.is-active:active {
    background: var(--adn-mega-accent) !important;
    color: #FFFFFF !important;
    border-color: var(--adn-mega-accent) !important;
}

.adn-desktop-mega__tab svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    transition: transform 150ms ease;
}

.adn-desktop-mega__tab.is-active svg {
    transform: translateX(-2px);
}

.adn-desktop-mega__content {
    min-width: 0;
    padding: 22px 24px 24px;
    background: var(--adn-mega-bg);
}

.adn-desktop-mega__panel[hidden] {
    display: none !important;
}

.adn-desktop-mega__panel.is-active {
    animation: adnMegaPanelIn 160ms ease both;
}

.adn-desktop-mega__panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    min-height: 52px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--adn-mega-border);
}

.adn-desktop-mega__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--adn-mega-accent);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
}

.adn-desktop-mega__panel h3,
.adn-desktop-mega__promo h3,
.adn-desktop-mega__group h4 {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: inherit;
}

.adn-desktop-mega__panel h3 {
    color: var(--adn-mega-secondary);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.5;
}

.adn-desktop-mega__view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid var(--adn-mega-border);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--adn-mega-accent) !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.adn-desktop-mega__view-all:hover,
.adn-desktop-mega__view-all:focus-visible {
    background: var(--adn-mega-surface);
    border-color: var(--adn-mega-surface);
    color: var(--adn-mega-accent) !important;
}

.adn-desktop-mega__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.adn-desktop-mega__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 43px;
    padding: 9px 12px;
    border: 1px solid var(--adn-mega-border);
    border-radius: 11px;
    background: #FFFFFF;
    color: var(--adn-mega-secondary) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none !important;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.adn-desktop-mega__link > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adn-desktop-mega__link svg {
    flex: 0 0 auto;
    opacity: 0.62;
    transition: transform 150ms ease, opacity 150ms ease;
}

.adn-desktop-mega__link:hover,
.adn-desktop-mega__link:focus-visible {
    background: var(--adn-mega-surface);
    color: var(--adn-mega-accent) !important;
    border-color: var(--adn-mega-surface);
    transform: translateY(-1px);
}

.adn-desktop-mega__link:hover svg,
.adn-desktop-mega__link:focus-visible svg {
    opacity: 1;
    transform: translateX(-2px);
}

.adn-desktop-mega__groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.adn-desktop-mega__group {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--adn-mega-border);
    border-radius: 13px;
    background: #FBFCFE;
}

.adn-desktop-mega__group h4 {
    margin-bottom: 9px;
    color: var(--adn-mega-secondary);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.adn-desktop-mega__group h4::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-radius: 50%;
    background: var(--adn-mega-accent);
    vertical-align: 1px;
}

.adn-desktop-mega__group-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.adn-desktop-mega__link.is-compact {
    display: inline-flex;
    width: auto;
    min-height: 31px;
    padding: 5px 8px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
}

.adn-desktop-mega__link.is-compact svg {
    display: none;
}

.adn-desktop-mega__promo {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 22px 20px;
    overflow: hidden;
    background: var(--adn-mega-secondary);
    color: #FFFFFF;
}

.adn-desktop-mega__promo::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--adn-mega-accent);
}

.adn-desktop-mega__promo-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--adn-mega-surface);
    color: var(--adn-mega-secondary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.adn-desktop-mega__promo-art {
    position: relative;
    width: 100%;
    height: 96px;
    margin: 14px 0 10px;
}

.adn-desktop-mega__promo-art span {
    position: absolute;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
}

.adn-desktop-mega__promo-art span:nth-child(1) {
    right: 28px;
    bottom: 7px;
    width: 54px;
    height: 64px;
    border-radius: 13px 13px 10px 10px;
    box-shadow: 7px 7px 0 var(--adn-mega-accent);
}

.adn-desktop-mega__promo-art span:nth-child(1)::before {
    content: '';
    position: absolute;
    top: -13px;
    right: 15px;
    width: 20px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
}

.adn-desktop-mega__promo-art span:nth-child(2) {
    left: 21px;
    top: 13px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-color: rgba(230, 238, 250, 0.74);
}

.adn-desktop-mega__promo-art span:nth-child(3) {
    left: 63px;
    bottom: 6px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border-color: rgba(230, 238, 250, 0.55);
    transform: rotate(12deg);
}

.adn-desktop-mega__promo h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 7px;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.5;
}

.adn-desktop-mega__promo p {
    position: relative;
    z-index: 2;
    margin: 0 0 17px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.85;
}

.adn-desktop-mega__promo-button {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    margin-top: auto;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 11px;
    background: #FFFFFF;
    color: var(--adn-mega-secondary) !important;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
    transition: transform 150ms ease, background-color 150ms ease;
}

.adn-desktop-mega__promo-button:hover,
.adn-desktop-mega__promo-button:focus-visible {
    background: var(--adn-mega-surface);
    color: var(--adn-mega-secondary) !important;
    transform: translateY(-1px);
}

.adn-desktop-mega__notice {
    padding: 14px 16px;
    border: 1px solid var(--adn-mega-border, #D8E2F0);
    border-radius: 12px;
    background: #FFFFFF;
    color: #102C57;
    font-size: 13px;
    line-height: 1.7;
}

@keyframes adnMegaPanelIn {
    from { opacity: 0; transform: translateX(5px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1180px) and (min-width: 1025px) {
    .adn-desktop-mega {
        width: calc(100vw - 36px);
    }
    .adn-desktop-mega__shell {
        grid-template-columns: 190px minmax(0, 1fr) 210px;
    }
    .adn-desktop-mega__content {
        padding-right: 18px;
        padding-left: 18px;
    }
    .adn-desktop-mega__links,
    .adn-desktop-mega__groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .adn-desktop-mega {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adn-desktop-mega *,
    .adn-desktop-mega *::before,
    .adn-desktop-mega *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
