/* BestLinks storefront mega menus.
   Stage 2. Only .megaMenu.allCategories and .megaMenu.allProducts.
   Tokens stay on .bl-storefront in storefrontDesign.css. Do not add tokens on :root.
   Load this file after topMenu.css. */

.megaMenu.allCategories.bl-storefront,
.megaMenu.allProducts.bl-storefront,
.megaMenu.allCategories.bl-storefront *,
.megaMenu.allProducts.bl-storefront * {
    box-sizing: border-box;
}

.megaMenu.allCategories.bl-storefront,
.megaMenu.allProducts.bl-storefront {
    --smm-arrow-x: 132px;
    --smm-kicker: #A99DC6;
    --smm-line-soft: #EBE4F8;
    position: fixed;
    top: 82px;
    right: 24px;
    left: auto;
    z-index: 110;
    display: none;
    width: min(1040px, calc(100vw - 48px));
    margin: 0;
    padding: 8px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: right;
    line-height: 1.35;
}

.megaMenu.allProducts.bl-storefront {
    --smm-arrow-x: 318px;
}

.megaMenu.allCategories.bl-storefront.open,
.megaMenu.allProducts.bl-storefront.open {
    display: block;
}

.megaMenu.allCategories.bl-storefront::after,
.megaMenu.allProducts.bl-storefront::after {
    content: "";
    position: absolute;
    top: 2px;
    inset-inline-start: var(--smm-arrow-x);
    z-index: 2;
    width: 13px;
    height: 13px;
    background: #fff;
    border-top: 1.5px solid var(--sfd-line-purple);
    border-inline-start: 1.5px solid var(--sfd-line-purple);
    border-radius: 3px 0 0 0;
    transform: rotate(45deg);
}

.megaMenu.allCategories .smm-shell,
.megaMenu.allProducts .smm-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: min(78vh, 740px);
    overflow: hidden;
    background: #fff;
    border: 1.5px solid var(--sfd-line-purple);
    border-radius: 24px;
    box-shadow: 0 36px 80px -34px rgba(52, 26, 110, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.megaMenu.allCategories .smm-shell::before,
.megaMenu.allProducts .smm-shell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    height: 4px;
    background: linear-gradient(90deg, rgba(101, 53, 201, 0), #B62AE6 28%, #E5479A 56%, #FF7A18 84%, rgba(255, 122, 24, 0));
    pointer-events: none;
}

.megaMenu.allCategories .mobileMegamenuCloseButton,
.megaMenu.allProducts .mobileMegamenuCloseButton {
    display: none;
    margin: 0;
}

.megaMenu.allCategories .megaMenuContainer,
.megaMenu.allProducts .megaMenuContainer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 14px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    padding: 20px 18px 8px;
}

.megaMenu.allProducts .smm-span {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--sfd-line-purple);
}

.megaMenu.allCategories .smm-col,
.megaMenu.allProducts .smm-col {
    min-width: 0;
}

.megaMenu.allCategories .smm-col + .smm-col,
.megaMenu.allProducts .smm-col + .smm-col {
    position: relative;
}

.megaMenu.allCategories .smm-col + .smm-col::before,
.megaMenu.allProducts .smm-col + .smm-col::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    inset-inline-start: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(237, 231, 248, 0), var(--smm-line-soft) 18%, var(--smm-line-soft) 82%, rgba(237, 231, 248, 0));
}

.megaMenu.allCategories .smm-col-title,
.megaMenu.allProducts .smm-col-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 2px 10px 9px;
    color: var(--smm-kicker);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.megaMenu.allCategories .smm-col-dot,
.megaMenu.allProducts .smm-col-dot {
    flex: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B62AE6, #FF7A18);
}

.megaMenu.allCategories .smm-inject,
.megaMenu.allProducts .smm-inject {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.megaMenu.allCategories .smm-link,
.megaMenu.allProducts .smm-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 13px;
}

.megaMenu.allCategories .imageAndTextItem,
.megaMenu.allProducts .imageAndTextItem {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
    margin: 0;
    padding: 8px 9px;
    color: var(--sfd-ink);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.16s;
}

.megaMenu.allCategories .smm-ic,
.megaMenu.allProducts .smm-ic {
    --smm-g: linear-gradient(135deg, #6535C9, #2874FF);
    --smm-gl: rgba(101, 53, 201, 0.8);
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--smm-g);
    box-shadow: 0 12px 20px -11px var(--smm-gl), inset 0 2px 3px rgba(255, 255, 255, 0.5), inset 0 -5px 10px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s;
}

.megaMenu.allCategories .smm-ic::before,
.megaMenu.allProducts .smm-ic::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 52%, rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

.megaMenu.allCategories .smm-ic .smm-icn,
.megaMenu.allProducts .smm-ic .smm-icn {
    position: relative;
    z-index: 2;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.megaMenu.allCategories .smm-tone-star,
.megaMenu.allProducts .smm-tone-star {
    --smm-g: linear-gradient(135deg, #FF7A18, #F5487A);
    --smm-gl: rgba(255, 122, 24, 0.8);
}

.megaMenu.allCategories .smm-tone-fire,
.megaMenu.allProducts .smm-tone-fire {
    --smm-g: linear-gradient(135deg, #E5479A, #FF7A18);
    --smm-gl: rgba(229, 71, 154, 0.8);
}

.megaMenu.allCategories .smm-tone-coins,
.megaMenu.allProducts .smm-tone-coins {
    --smm-g: linear-gradient(135deg, #F5A623, #FF7A18);
    --smm-gl: rgba(245, 166, 35, 0.8);
}

.megaMenu.allCategories .smm-tone-box,
.megaMenu.allProducts .smm-tone-box {
    --smm-g: linear-gradient(135deg, #FF7A18, #B62AE6);
    --smm-gl: rgba(182, 42, 230, 0.8);
}

.megaMenu.allCategories .smm-tone-globe,
.megaMenu.allProducts .smm-tone-globe,
.megaMenu.allCategories .smm-tone-card,
.megaMenu.allProducts .smm-tone-card {
    --smm-g: linear-gradient(135deg, #6535C9, #2874FF);
    --smm-gl: rgba(101, 53, 201, 0.8);
}

.megaMenu.allCategories .smm-tone-link,
.megaMenu.allProducts .smm-tone-link,
.megaMenu.allCategories .smm-tone-web,
.megaMenu.allProducts .smm-tone-web {
    --smm-g: linear-gradient(135deg, #2874FF, #9948F5);
    --smm-gl: rgba(40, 116, 255, 0.8);
}

.megaMenu.allCategories .smm-tone-diamond,
.megaMenu.allProducts .smm-tone-diamond,
.megaMenu.allCategories .smm-tone-rise,
.megaMenu.allProducts .smm-tone-rise {
    --smm-g: linear-gradient(135deg, #B62AE6, #6535C9);
    --smm-gl: rgba(182, 42, 230, 0.8);
}

.megaMenu.allCategories .smm-tone-news,
.megaMenu.allProducts .smm-tone-news {
    --smm-g: linear-gradient(135deg, #5B34AC, #2874FF);
    --smm-gl: rgba(91, 52, 172, 0.8);
}

.megaMenu.allCategories .smm-tone-book,
.megaMenu.allProducts .smm-tone-book,
.megaMenu.allCategories .smm-tone-bot,
.megaMenu.allProducts .smm-tone-bot {
    --smm-g: linear-gradient(135deg, #9948F5, #E5479A);
    --smm-gl: rgba(153, 72, 245, 0.8);
}

.megaMenu.allCategories .smm-tone-pin,
.megaMenu.allProducts .smm-tone-pin {
    --smm-g: linear-gradient(135deg, #3ACB88, #2874FF);
    --smm-gl: rgba(58, 203, 136, 0.8);
}

.megaMenu.allCategories .smm-tone-plane,
.megaMenu.allProducts .smm-tone-plane,
.megaMenu.allCategories .smm-tone-google,
.megaMenu.allProducts .smm-tone-google {
    --smm-g: linear-gradient(135deg, #2874FF, #3ACB88);
    --smm-gl: rgba(40, 116, 255, 0.8);
}

.megaMenu.allCategories .smm-tone-shield,
.megaMenu.allProducts .smm-tone-shield {
    --smm-g: linear-gradient(135deg, #5B34AC, #B62AE6);
    --smm-gl: rgba(91, 52, 172, 0.8);
}

.megaMenu.allCategories .smm-tone-quill,
.megaMenu.allProducts .smm-tone-quill {
    --smm-g: linear-gradient(135deg, #6535C9, #E5479A);
    --smm-gl: rgba(101, 53, 201, 0.8);
}

.megaMenu.allCategories .smm-tone-fb,
.megaMenu.allProducts .smm-tone-fb {
    --smm-g: linear-gradient(135deg, #1877F2, #2874FF);
    --smm-gl: rgba(24, 119, 242, 0.8);
}

.megaMenu.allProducts .smm-tone-fb .smm-ic .smm-icn,
.megaMenu.allProducts .smm-tone-fb .smm-ic .smm-icn path {
    fill: #fff;
    stroke: none;
}

.megaMenu.allCategories .smm-tone-ig,
.megaMenu.allProducts .smm-tone-ig {
    --smm-g: linear-gradient(45deg, #FA7E1E, #D62976 55%, #962FBF);
    --smm-gl: rgba(214, 41, 118, 0.8);
}

.megaMenu.allCategories .smm-tone-tt,
.megaMenu.allProducts .smm-tone-tt {
    --smm-g: linear-gradient(135deg, #25F4EE, #1B1630 45%, #FE2C55);
    --smm-gl: rgba(254, 44, 85, 0.7);
}

.megaMenu.allCategories .smm-tone-hub,
.megaMenu.allProducts .smm-tone-hub {
    --smm-g: linear-gradient(135deg, #B62AE6, #FF7A18);
    --smm-gl: rgba(182, 42, 230, 0.8);
}

.megaMenu.allCategories .smm-tx,
.megaMenu.allProducts .smm-tx {
    min-width: 0;
    flex: 1 1 auto;
}

.megaMenu.allCategories .smm-tx .title,
.megaMenu.allProducts .smm-tx .title,
.megaMenu.allCategories .title.accent,
.megaMenu.allCategories .title.primary,
.megaMenu.allCategories .title.secondary,
.megaMenu.allProducts .title.accent,
.megaMenu.allProducts .title.primary,
.megaMenu.allProducts .title.secondary {
    display: block;
    margin: 0;
    color: var(--sfd-ink);
    font-size: 0.845rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: right;
    overflow-wrap: anywhere;
}

.megaMenu.allCategories .smm-sub,
.megaMenu.allProducts .smm-sub {
    display: block;
    margin-top: 1px;
    color: var(--sfd-muted);
    font-size: 0.705rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.4;
}

.megaMenu.allCategories .smm-arw,
.megaMenu.allProducts .smm-arw {
    flex: none;
    width: 14px;
    height: 14px;
    fill: currentColor;
    color: #CFC6E2;
    opacity: 0;
    transform: scaleX(-1) translateX(-5px);
    transition: opacity 0.18s, transform 0.22s;
}

.megaMenu.allCategories .smm-link:hover .imageAndTextItem,
.megaMenu.allProducts .smm-link:hover .imageAndTextItem {
    background: linear-gradient(135deg, rgba(101, 53, 201, 0.055), rgba(255, 122, 24, 0.055));
}

.megaMenu.allCategories .smm-link:hover .smm-tx .title,
.megaMenu.allProducts .smm-link:hover .smm-tx .title {
    background: var(--sfd-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.megaMenu.allCategories .smm-link:hover .smm-ic,
.megaMenu.allProducts .smm-link:hover .smm-ic {
    transform: translateY(-2px) scale(1.04);
}

.megaMenu.allCategories .smm-link:hover .smm-arw,
.megaMenu.allProducts .smm-link:hover .smm-arw {
    opacity: 1;
    transform: scaleX(-1) translateX(0);
}

.megaMenu.allProducts .smm-promo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    margin: 6px 18px 8px;
    padding: 13px 15px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(135deg, #FAF7FE 0%, #FDF4F8 55%, #FFF8F0 100%);
    border: 1px solid var(--sfd-line-purple);
    border-radius: 16px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.megaMenu.allProducts .smm-promo:hover {
    border-color: #DCCFF7;
    box-shadow: 0 18px 34px -26px rgba(64, 42, 120, 0.75);
    transform: translateY(-2px);
}

.megaMenu.allProducts .smm-promo-badge {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #fff;
    line-height: 1;
    background: linear-gradient(135deg, #2874FF, #9948F5);
    border-radius: 15px;
    box-shadow: 0 12px 20px -11px rgba(40, 116, 255, 0.75), inset 0 2px 3px rgba(255, 255, 255, 0.5);
}

.megaMenu.allProducts .smm-promo-badge b {
    font-size: 0.92rem;
    font-weight: 800;
    direction: ltr;
}

.megaMenu.allProducts .smm-promo-go {
    flex: none;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    color: var(--sfd-purple-deep);
    font-size: 0.79rem;
    font-weight: 800;
    white-space: nowrap;
}

.megaMenu.allProducts .smm-promo-icn {
    width: 13px;
    height: 13px;
    fill: currentColor;
    transform: scaleX(-1);
    transition: transform 0.2s;
}

.megaMenu.allProducts .smm-promo:hover .smm-promo-icn {
    transform: scaleX(-1) translateX(4px);
}

.megaMenu.allCategories .smm-foot,
.megaMenu.allProducts .smm-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    padding: 12px 20px 16px;
    background: linear-gradient(180deg, #FBF9FE, #F7F2FD);
    border-top: 1px solid var(--sfd-line-purple);
}

.megaMenu.allCategories .sfd-btn .icn,
.megaMenu.allProducts .sfd-btn .icn {
    fill: currentColor;
}

.megaMenu.allCategories .smm-close,
.megaMenu.allProducts .smm-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    color: var(--sfd-muted);
    background: #fff;
    border: 1.5px solid var(--sfd-line-purple);
    border-radius: 50%;
    transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}

.megaMenu.allCategories .smm-close .smm-icn,
.megaMenu.allProducts .smm-close .smm-icn {
    width: 14px;
    height: 14px;
    fill: currentColor;
    stroke: none;
}

.megaMenu.allCategories .smm-close:hover,
.megaMenu.allProducts .smm-close:hover {
    color: #D93A5C;
    background: rgba(217, 58, 92, 0.06);
    border-color: rgba(217, 58, 92, 0.4);
    transform: rotate(90deg);
}

.megaMenu.allCategories .pleaseWait,
.megaMenu.allProducts .pleaseWait {
    margin: 6px 8px;
    background: transparent;
}

.megaMenu.allCategories .pleaseWait h2,
.megaMenu.allProducts .pleaseWait h2 {
    margin: 0;
    color: var(--sfd-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.megaMenu.allCategories .smm-empty,
.megaMenu.allProducts .smm-empty {
    margin: 0;
    padding: 8px 10px;
    color: var(--sfd-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.megaMenu.allCategories .smm-link:focus-visible,
.megaMenu.allProducts .smm-link:focus-visible,
.megaMenu.allProducts .smm-promo:focus-visible,
.megaMenu.allCategories .smm-foot-link:focus-visible,
.megaMenu.allProducts .smm-foot-link:focus-visible,
.megaMenu.allCategories .smm-close:focus-visible,
.megaMenu.allProducts .smm-close:focus-visible {
    outline: 3px solid rgba(101, 53, 201, 0.4);
    outline-offset: 1px;
}

@media (max-width: 1279px) {
    .megaMenu.allCategories.bl-storefront,
    .megaMenu.allProducts.bl-storefront {
        top: 84px;
        right: 8px;
        left: 8px;
        width: auto;
        padding-top: 0;
    }

    .megaMenu.allCategories.bl-storefront::after,
    .megaMenu.allProducts.bl-storefront::after {
        display: none;
    }

    .megaMenu.allCategories .smm-shell,
    .megaMenu.allProducts .smm-shell {
        max-height: calc(100vh - 96px);
        border-radius: 16px;
    }

    .megaMenu.allCategories .mobileMegamenuCloseButton,
    .megaMenu.allProducts .mobileMegamenuCloseButton {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        padding: 10px 12px 0;
    }

    .megaMenu.allCategories .megaMenuContainer,
    .megaMenu.allProducts .megaMenuContainer {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 10px 12px 8px;
    }

    .megaMenu.allCategories .smm-col + .smm-col,
    .megaMenu.allProducts .smm-col + .smm-col {
        margin-top: 10px;
        padding-top: 10px;
    }

    .megaMenu.allCategories .smm-col + .smm-col::before,
    .megaMenu.allProducts .smm-col + .smm-col::before {
        top: 0;
        bottom: auto;
        width: 100%;
        height: 1px;
        background: var(--sfd-line-purple);
    }

    .megaMenu.allCategories .smm-foot,
    .megaMenu.allProducts .smm-foot {
        padding: 12px;
    }

    .megaMenu.allCategories .smm-foot-link,
    .megaMenu.allProducts .smm-foot-link {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .megaMenu.allProducts .smm-promo {
        flex-wrap: wrap;
    }

    .megaMenu.allProducts .smm-promo-go {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .megaMenu.allCategories .smm-ic,
    .megaMenu.allProducts .smm-ic,
    .megaMenu.allCategories .smm-arw,
    .megaMenu.allProducts .smm-arw,
    .megaMenu.allProducts .smm-promo,
    .megaMenu.allProducts .smm-promo-icn,
    .megaMenu.allCategories .smm-close,
    .megaMenu.allProducts .smm-close {
        transition: none;
    }

    .megaMenu.allCategories .smm-link:hover .smm-ic,
    .megaMenu.allProducts .smm-link:hover .smm-ic,
    .megaMenu.allProducts .smm-promo:hover,
    .megaMenu.allCategories .smm-close:hover,
    .megaMenu.allProducts .smm-close:hover {
        transform: none;
    }

    .megaMenu.allCategories .smm-link:hover .smm-arw,
    .megaMenu.allProducts .smm-link:hover .smm-arw,
    .megaMenu.allProducts .smm-promo:hover .smm-promo-icn {
        transform: scaleX(-1);
    }
}
