.rs-products-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.rs-products-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

#main-header.menu-sticky .rs-products-count {
    background: rgba(255, 255, 255, .22);
}

#main-header .rs-mega-menu {
    padding: 0;
    overflow: hidden;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 35, 70, .2);
}

#main-header .rs-mega-menu a::before {
    display: none !important;
}

.rs-mega-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
}

.rs-mega-catalog {
    padding: 28px 30px 30px;
}

.rs-mega-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f7;
}

.rs-mega-eyebrow,
.rs-mega-featured-label {
    display: block;
    margin-bottom: 5px;
    color: #00a8ff;
    font: 700 10px/1.3 "Open Sans", sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.rs-mega-header h2 {
    margin: 0 0 4px;
    color: #18223b;
    font-size: 22px;
    line-height: 1.25;
}

.rs-mega-header p {
    margin: 0;
    color: #73809a;
    font-size: 12px;
    line-height: 1.5;
}

#main-header .rs-mega-all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 10px;
    background: #eef8ff;
    color: #008bd6;
    font-size: 12px;
    font-weight: 700;
}

.rs-mega-all i,
.rs-mega-featured > a i {
    font-size: 18px;
    line-height: 1;
}

.rs-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 18px;
}

.rs-mega-group {
    min-width: 0;
}

.rs-mega-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    margin-bottom: 7px;
    color: #5f6d87;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.3;
    text-transform: uppercase;
}

.rs-mega-group-title small {
    margin-left: auto;
    color: #a3aec1;
    font-size: 10px;
}

.rs-mega-group-icon,
.rs-mega-product-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eef8ff;
    color: #00a8ff;
}

.rs-mega-group-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
}

.rs-mega-links {
    display: grid;
    gap: 3px;
}

#main-header .rs-mega-product {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #26334f;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

#main-header .rs-mega-product:hover,
#main-header .rs-mega-product:focus {
    border-color: #dceefe;
    background: #f7fbff;
    color: #008bd6;
    transform: translateY(-1px);
}

.rs-mega-product-icon {
    width: 31px;
    height: 31px;
    background: #f2f5fa;
    color: #697997;
    font-size: 15px;
}

.rs-mega-product:hover .rs-mega-product-icon,
.rs-mega-product:focus .rs-mega-product-icon {
    background: #e6f5ff;
    color: #00a8ff;
}

.rs-mega-product-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.rs-mega-product-copy strong,
.rs-mega-product-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-mega-product-copy strong {
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.rs-mega-product-copy small {
    margin-top: 2px;
    color: #8b96aa;
    font-size: 10px;
    line-height: 1.3;
}

.rs-mega-arrow {
    flex: 0 0 auto;
    color: #00a8ff;
    font-size: 17px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease;
}

.rs-mega-product:hover .rs-mega-arrow,
.rs-mega-product:focus .rs-mega-arrow {
    opacity: 1;
    transform: translateX(0);
}

.rs-mega-featured {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 30px 26px 24px;
    overflow: hidden;
    background: linear-gradient(155deg, #101b3e 0%, #152b59 58%, #064b77 100%);
    color: #fff;
}

.rs-mega-featured::after {
    content: "";
    width: 190px;
    height: 190px;
    position: absolute;
    right: -90px;
    top: -70px;
    border-radius: 50%;
    background: rgba(0, 168, 255, .15);
    pointer-events: none;
}

.rs-mega-featured-label {
    position: relative;
    z-index: 1;
    color: #68caff;
}

.rs-mega-featured-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 22px 0 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    color: #78d1ff;
    font-size: 24px;
}

.rs-mega-featured-category {
    color: #8eaad0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.rs-mega-featured h3 {
    margin: 5px 0 9px;
    color: #fff;
    font-size: 21px;
    line-height: 1.25;
}

.rs-mega-featured p {
    display: -webkit-box;
    margin: 0 0 20px;
    overflow: hidden;
    color: #b9c8df;
    font-size: 12px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

#main-header .rs-mega-featured > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: #6cd0ff;
    font-size: 12px;
    font-weight: 700;
}

.rs-mega-featured-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.rs-mega-featured-footer span {
    display: block;
    color: #7f96ba;
    font-size: 10px;
}

#main-header .rs-mega-featured-footer a {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.rs-mega-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 110px;
    padding: 20px;
    border-radius: 12px;
    background: #f7f9fc;
    color: #687792;
    font-size: 13px;
}

.rs-mega-empty i {
    color: #00a8ff;
    font-size: 24px;
}

#main-header .rs-mega-empty a {
    margin-left: auto;
    color: #008bd6;
    font-weight: 700;
}

@media (min-width: 992px) {
    #main-header .navbar {
        position: relative;
    }

    #main-header .rs-products-nav {
        position: static;
    }

    #main-header .rs-products-nav > .rs-mega-menu {
        width: min(1080px, calc(100vw - 48px));
        max-height: calc(100vh - 122px);
        position: absolute !important;
        top: calc(100% + 10px) !important;
        right: auto !important;
        left: 50% !important;
        overflow-y: auto;
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .rs-mega-shell {
        grid-template-columns: minmax(0, 1fr) 250px;
    }

    .rs-mega-catalog {
        padding: 24px;
    }

    .rs-mega-grid {
        gap: 16px 10px;
    }
}

@media (max-width: 991px) {
    #main-header .rs-products-toggle {
        justify-content: flex-start;
    }

    #main-header .rs-products-count {
        background: #e7f5ff;
        color: #008bd6;
    }

    #main-header .rs-products-nav > .rs-mega-menu {
        width: calc(100% - 24px);
        max-height: 62vh;
        position: static !important;
        margin: 0 12px 12px;
        overflow-y: auto;
        border-radius: 13px;
        box-shadow: 0 12px 30px rgba(20, 35, 70, .12);
        transform: none !important;
    }

    .rs-mega-shell {
        display: block;
    }

    .rs-mega-catalog {
        padding: 20px;
    }

    .rs-mega-header {
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .rs-mega-header h2 {
        font-size: 18px;
    }

    .rs-mega-header p,
    .rs-mega-featured {
        display: none;
    }

    .rs-mega-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .rs-mega-group-title {
        margin-bottom: 3px;
    }

    #main-header .rs-mega-product {
        padding: 7px;
    }
}

@media (max-width: 575px) {
    .rs-mega-catalog {
        padding: 17px 14px;
    }

    .rs-mega-header {
        gap: 10px;
    }

    .rs-mega-header h2 {
        font-size: 16px;
    }

    #main-header .rs-mega-all {
        padding: 8px 10px;
        font-size: 10px;
    }

    .rs-mega-product-copy small {
        display: none;
    }
}
