:root {
    --primary: #0f3fa7;
    --primary-dark: #08286f;
    --accent: #1f73e8;
    --ink: #102039;
    --muted: #667085;
    --soft: #eef4ff;
    --border: #dfe7f3;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(15, 63, 167, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button, input, textarea, select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.topbar {
    background: var(--primary-dark);
    color: #dce7ff;
    font-size: 13px;
}

.topbar-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
}

    .topbar-inner p {
        display: flex;
        align-items: center;
        gap: 7px;
    }

.top-social {
    margin-left: auto;
    display: flex;
    gap: 12px;
}

    .top-social a {
        font-size: 17px;
    }

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15,63,167,.08);
}

.nav-wrap {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .brand img {
        width: 72px;
        height: 52px;
        object-fit: contain;
    }

    .brand strong {
        display: block;
        font-size: 24px;
        letter-spacing: 2px;
        color: var(--primary);
        line-height: 1;
    }

    .brand span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        margin-top: 5px;
    }

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .nav a {
        font-weight: 700;
        font-size: 14px;
        position: relative;
    }

        .nav a:not(.nav-cta)::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: .3s;
        }

        .nav a:hover::after, .nav a.active::after {
            width: 100%;
        }

.nav-cta {
    color: white;
    background: var(--primary);
    padding: 12px 18px;
    border-radius: 10px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: var(--primary);
}

.hero {
    position: relative;
    background: var(--soft);
}

.hero-slider {
    min-height: 650px;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity .8s ease, transform 1.2s ease;
    display: flex;
    align-items: center;
}

    .slide.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .slide::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(5,25,67,.94) 0%, rgba(10,52,135,.88) 48%, rgba(16,80,180,.25) 100%);
    }

.slide-one {
    background: radial-gradient(circle at 80% 30%, rgba(107,170,255,.65), transparent 30%), linear-gradient(135deg,#0b2b78,#1458c8);
    background-image:url(../images/Slide1.png);
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
}

.slide-two {
    background: radial-gradient(circle at 82% 40%, rgba(116,214,255,.45), transparent 28%), linear-gradient(135deg,#082763,#0d4ca7);
     background-image:url(../images/Slide2.png);
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
}

.slide-three {
    background: radial-gradient(circle at 80% 35%, rgba(255,255,255,.18), transparent 28%), linear-gradient(135deg,#071f52,#164ab1);
     background-image:url(../images/Slide3.png);
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
}


.slide-Four {
    background: radial-gradient(circle at 80% 35%, rgba(255,255,255,.18), transparent 28%), linear-gradient(135deg,#071f52,#164ab1);
     background-image:url(../images/Slide4.png);
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding-bottom: 70px;
}

    .hero-content > * {
        max-width: 720px;
    }

.eyebrow, .section-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    font-weight: 800;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero .eyebrow {
    color: #9fc4ff;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.08;
    margin-bottom: 22px;
}

.hero p {
    color: #d7e5ff;
    font-size: 18px;
    max-width: 670px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    min-height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    transition: .25s;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 24px rgba(15,63,167,.28);
}

.hero .btn-primary {
    background: white;
    color: var(--primary);
}

.btn-light {
    border: 1px solid rgba(255,255,255,.45);
    color: white;
    background: rgba(255,255,255,.08);
}

.slider-controls {
    position: absolute;
    z-index: 5;
    right: max(30px, calc((100vw - 1180px)/2));
    bottom: 120px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .slider-controls a {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.45);
        background: rgba(255,255,255,.1);
        color: white;
        cursor: pointer;
    }

.dots {
    display: flex;
    gap: 7px;
}

    .dots a {
        width: 9px;
        height: 9px;
        border: 0;
        background: rgba(255,255,255,.45);
    }

        .dots a.active {
            width: 28px;
            border-radius: 99px;
            background: white;
        }

.hero-stats {
    position: absolute;
    z-index: 6;
    bottom: -54px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-height: 108px;
    box-shadow: var(--shadow);
    border-radius: 18px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
}

    .hero-stats div {
        padding: 24px 32px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-right: 1px solid var(--border);
    }

        .hero-stats div:last-child {
            border-right: 0;
        }

    .hero-stats strong {
        color: var(--primary);
        font-size: 24px;
    }

    .hero-stats span {
        color: var(--muted);
        font-size: 13px;
    }

.section {
    padding: 110px 0;
}

.about {
    padding-top: 160px;
}

.about-grid, .feedback-grid, .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
}

.about-visual {
    position: relative;
    min-height: 430px;
    background: linear-gradient(135deg,#f2f7ff,#dfeaff);
    border-radius: 28px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

    .about-visual::after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        background: rgba(15,63,167,.08);
        border-radius: 50%;
        right: -80px;
        bottom: -80px;
    }

.logo-card {
    background: white;
    width: 76%;
    padding: 48px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    transform: rotate(-2deg);
}

.about-badge {
    position: absolute;
    right: 20px;
    bottom: 22px;
    z-index: 2;
    background: var(--primary);
    color: white;
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 14px 35px rgba(15,63,167,.25);
}

    .about-badge i {
        font-size: 34px;
    }

.section-copy h2, .section-heading h2, .why-grid h2, .feedback h2, .contact h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 4.5vw, 52px);
    line-height: 1.16;
    margin-bottom: 20px;
}

.section-copy p, .section-heading p, .feedback p {
    color: var(--muted);
}

.feature-list {
    display: grid;
    gap: 12px;
    margin: 25px 0;
}

    .feature-list div {
        display: flex;
        gap: 10px;
        align-items: center;
        font-weight: 700;
    }

    .feature-list i {
        color: var(--accent);
        font-size: 19px;
    }

.text-link {
    color: var(--primary);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.products {
    background: #f8faff;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 48px;
}

    .section-heading.center {
        margin-inline: auto;
        text-align: center;
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: .3s;
    min-height: 310px;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow);
        border-color: transparent;
    }

.product-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--soft);
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 22px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.product-card p {
    color: var(--muted);
    font-size: 14px;
}

.product-card a {
    margin-top: auto;
    padding-top: 22px;
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
}

.featured-product {
    background: var(--primary);
    color: white;
}

    .featured-product .product-icon {
        background: rgba(255,255,255,.15);
        color: white;
    }

    .featured-product p, .featured-product a {
        color: #dbe7ff;
    }

.why-us {
    background: linear-gradient(135deg,var(--primary-dark),var(--primary));
    color: white;
}

.why-grid {
    display: grid;
    grid-template-columns: .85fr 1.4fr;
    gap: 70px;
    align-items: center;
}

.section-kicker.light {
    color: #9fc4ff;
}

.why-grid > div:first-child p {
    color: #c9dafb;
}

.why-cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

    .why-cards > div {
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.16);
        padding: 28px;
        border-radius: 18px;
    }

    .why-cards i {
        font-size: 32px;
        color: #a7ccff;
    }

    .why-cards h3 {
        margin: 14px 0 8px;
    }

    .why-cards p {
        color: #cbdcff;
        font-size: 13px;
    }

.client-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

    .client-grid div {
        min-height: 130px;
        border: 1px solid var(--border);
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        background: white;
        transition: .3s;
    }

        .client-grid div:hover {
            box-shadow: var(--shadow);
            transform: translateY(-4px);
        }

    .client-grid i {
        font-size: 34px;
        color: var(--primary);
    }

    .client-grid span {
        font-weight: 800;
    }

.feedback {
    background: #f4f8ff;
}

.contact-mini {
    display: grid;
    gap: 15px;
    margin-top: 28px;
}

    .contact-mini div {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .contact-mini i {
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        background: white;
        color: var(--primary);
        border-radius: 12px;
        font-size: 22px;
        box-shadow: 0 8px 20px rgba(15,63,167,.08);
    }

    .contact-mini small {
        display: block;
        color: var(--muted);
    }

.feedback-form {
    background: white;
    padding: 34px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 17px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feedback-form label {
    font-weight: 800;
    font-size: 13px;
}

.feedback-form input, .feedback-form select, .feedback-form textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 14px;
    outline: none;
    background: #fbfcff;
    font-weight: 500;
}

    .feedback-form input:focus, .feedback-form select:focus, .feedback-form textarea:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 4px rgba(31,115,232,.1);
    }

.full {
    width: 100%;
}

.form-status {
    min-height: 22px;
    font-size: 13px;
    color: var(--primary) !important;
    font-weight: 700;
    text-align: center;
}

.contact {
    padding-bottom: 90px;
}

.contact-panel {
    background: linear-gradient(145deg,var(--primary-dark),var(--primary));
    color: white;
    border-radius: 24px;
    padding: 46px;
}

    .contact-panel p {
        color: #cbdcff;
    }

.contact-list {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

    .contact-list div {
        display: flex;
        gap: 14px;
    }

    .contact-list i {
        font-size: 23px;
        color: #a8cbff;
    }

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

    .contact-social a {
        border: 1px solid rgba(255,255,255,.2);
        padding: 9px 14px;
        border-radius: 10px;
        font-size: 13px;
    }

.map-placeholder {
    min-height: 500px;
    border-radius: 24px;
    display: grid;
    place-content: center;
    text-align: center;
    background: repeating-linear-gradient(45deg,#eef3fb,#eef3fb 18px,#e7edf7 18px,#e7edf7 36px);
    color: var(--muted);
}

    .map-placeholder i {
        font-size: 62px;
        color: var(--primary);
    }

    .map-placeholder h3 {
        color: var(--ink);
        font-size: 24px;
    }

.footer {
    background: #071a42;
    color: #dce7ff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3,1fr);
    gap: 50px;
}

.footer-brand img {
    width: 110px;
    background: white;
    padding: 6px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 320px;
    color: #aebfde;
    font-size: 14px;
}

.footer h4 {
    color: white;
    margin-bottom: 15px;
}

.footer a {
    display: block;
    color: #b9cae7;
    font-size: 14px;
    margin: 8px 0;
}

.footer-social {
    display: flex;
    gap: 10px;
}

    .footer-social a {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 1px solid #304775;
        border-radius: 50%;
    }

.footer-bottom {
    margin-top: 46px;
    padding-top: 18px;
    border-top: 1px solid #253b67;
    display: flex;
    justify-content: space-between;
    color: #91a4c9;
    font-size: 12px;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px rgba(15,63,167,.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s;
    cursor: pointer;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

        .footer-grid > div:last-child {
            grid-column: span 3;
        }
}

@media (max-width: 840px) {
    .topbar {
        display: none;
    }

    .nav-wrap {
        min-height: 76px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 76px;
        right: -100%;
        width: min(330px, 86vw);
        height: calc(100vh - 76px);
        background: white;
        box-shadow: -12px 18px 40px rgba(0,0,0,.12);
        padding: 30px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        transition: .35s;
    }

        .nav.open {
            right: 0;
        }

        .nav a {
            padding: 12px;
        }

            .nav a::after {
                display: none;
            }

    .nav-cta {
        text-align: center;
        margin-top: 8px;
    }

    .hero-slider {
        min-height: 620px;
    }

    .slider-controls {
        bottom: 118px;
        right: 24px;
    }

    .hero-stats {
        width: calc(100% - 40px);
    }

    .about-grid, .feedback-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .about-visual {
        min-height: 360px;
    }

    .why-cards {
        grid-template-columns: 1fr;
    }

    .client-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px,1180px);
    }

    .brand img {
        width: 60px;
        height: 44px;
    }

    .brand strong {
        font-size: 20px;
    }

    .brand span {
        font-size: 10px;
    }

    .hero-slider {
        min-height: 680px;
    }

    .hero-content {
        padding-top: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: -74px;
    }

        .hero-stats div {
            border-right: 0;
            border-bottom: 1px solid var(--border);
            text-align: center;
        }

            .hero-stats div:last-child {
                border-bottom: 0;
            }

    .slider-controls {
        bottom: 94px;
    }

    .section {
        padding: 80px 0;
    }

    .about {
        padding-top: 80px;
    }

    .product-grid, .client-grid, .form-row {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

        .footer-grid > div:first-child, .footer-grid > div:last-child {
            grid-column: span 2;
        }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }

    .feedback-form, .contact-panel {
        padding: 24px;
    }
}

/* Responsive product dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

    .dropdown-toggle i {
        font-size: 18px;
        transition: transform .25s ease;
    }

.nav-dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translate(-50%, 12px);
    min-width: 245px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 63, 167, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .25s ease;
}

    .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -7px;
        left: 50%;
        width: 14px;
        height: 14px;
        background: white;
        border-left: 1px solid var(--border);
        border-top: 1px solid var(--border);
        transform: translateX(-50%) rotate(45deg);
    }

    .dropdown-menu a {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        color: var(--ink);
        font-size: 13px;
        white-space: nowrap;
    }

        .dropdown-menu a:hover {
            background: var(--soft);
            color: var(--primary);
        }

        .dropdown-menu a::after {
            display: none !important;
        }

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.product-card {
    scroll-margin-top: 115px;
}

@media (max-width: 840px) {
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px;
        font-size: 14px;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        min-width: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0 8px;
        border: 0;
        border-radius: 10px;
        box-shadow: none;
        background: #f5f8ff;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: max-height .35s ease, padding .35s ease;
    }

        .dropdown-menu::before {
            display: none;
        }

    .nav-dropdown.open .dropdown-menu {
        max-height: 460px;
        padding: 8px;
    }

    .dropdown-menu a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Grouped product mega dropdown */
.product-mega-menu {
    width: min(760px, 92vw);
    min-width: 700px;
    display: grid;
    grid-template-columns: 1.25fr 1px 1fr;
    gap: 18px;
    padding: 18px;
    left: 50%;
}

.product-menu-group {
    min-width: 0;
}

.product-menu-title {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 14px !important;
    margin-bottom: 6px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800;
}

    .product-menu-title i {
        font-size: 20px;
    }

.product-submenu {
    display: grid;
    gap: 3px;
}

    .product-submenu > a,
    .nested-product-title,
    .nested-product-menu a {
        display: flex !important;
        align-items: center;
        gap: 8px;
        white-space: normal !important;
        line-height: 1.35;
    }

        .product-submenu > a span,
        .nested-product-title span {
            color: var(--primary);
            font-weight: 800;
        }

.product-menu-divider {
    width: 1px;
    background: var(--border);
}

.nested-product-group {
    position: relative;
}

.nested-product-title {
    justify-content: flex-start;
}

    .nested-product-title i {
        margin-left: auto;
        font-size: 18px;
    }

.nested-product-menu {
    position: absolute;
    top: -8px;
    left: calc(100% + 12px);
    width: 230px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15,63,167,.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(8px);
    transition: .22s ease;
    z-index: 20;
}

.nested-product-group:hover .nested-product-menu,
.nested-product-group:focus-within .nested-product-menu,
.nested-product-group.open .nested-product-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.nested-product-menu a {
    padding: 9px 10px !important;
}

@media (max-width: 840px) {
    .product-mega-menu {
        min-width: 0;
        width: 100%;
        display: block;
        padding: 8px;
    }

    .product-menu-divider {
        width: 100%;
        height: 1px;
        margin: 10px 0;
    }

    .product-menu-title {
        margin-top: 5px;
    }

    .nested-product-menu {
        position: static;
        width: auto;
        margin: 2px 0 6px 18px;
        padding: 0 0 0 10px;
        border: 0;
        border-left: 2px solid var(--border);
        border-radius: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: max-height .28s ease;
    }

    .nested-product-group.open .nested-product-menu {
        max-height: 240px;
    }

    .nested-product-title i {
        transform: rotate(90deg);
    }

    .nested-product-group.open .nested-product-title i {
        transform: rotate(270deg);
    }
}

/* Mobile navigation reliability fixes */
@media (max-width: 840px) {
    body {
        overflow-x: hidden;
    }

    .header {
        z-index: 5000;
    }

    .menu-toggle {
        position: relative;
        z-index: 5002;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        cursor: pointer;
    }

    .nav {
        z-index: 5001;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 80px;
    }

    .nav-dropdown,
    .dropdown-toggle {
        flex: 0 0 auto;
    }

        .nav-dropdown.open .dropdown-menu {
            max-height: 70vh;
            overflow-y: auto;
        }

    .product-mega-menu {
        overflow-x: hidden;
    }

    .nested-product-title {
        cursor: pointer;
    }

    .nested-product-group.open .nested-product-menu {
        max-height: 280px;
        padding-top: 4px;
        padding-bottom: 4px;
    }
}
