/* ============================================================
   NABDINA — homepage styles (blue e-commerce, LTR + RTL)
   RTL works via logical properties + a small [dir=rtl] block.
   ============================================================ */
:root {
    --blue: #1B4DE6;
    --blue-dark: #1740B8;
    --blue-soft: #EAF0FE;
    --navy: #0E1B3A;
    --navy-2: #12213F;
    --green: #16A34A;
    --green-soft: #E7F6EC;
    --red: #EF4444;
    --gold: #F59E0B;
    --ink: #0E1B3A;
    --muted: #5B6B8C;
    --muted-2: #8894AC;
    --bg: #FFFFFF;
    --soft: #F5F7FB;
    --line: #E6EAF2;
    --violet: #6D28D9;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 10px rgba(14,27,58,.06);
    --shadow: 0 16px 40px -20px rgba(14,27,58,.28);
    --shadow-lg: 0 30px 70px -34px rgba(14,27,58,.45);
    --maxw: 1200px;
    --gutter: clamp(16px,4vw,40px);
    --f-display: 'Poppins',system-ui,sans-serif;
    --f-body: 'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: var(--f-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none
}

ul {
    list-style: none;
    margin: 0;
    padding: 0
}

h1, h2, h3, h4 {
    font-family: var(--f-display);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -.01em
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 6px
}

.wrap {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter)
}

.i16 {
    width: 16px;
    height: 16px
}

/* Arabic typography */
html[dir="rtl"] body {
    font-family: 'Cairo',var(--f-body)
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
    font-family: 'Cairo',var(--f-display);
    letter-spacing: 0
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .95rem;
    padding: .8rem 1.5rem;
    border-radius: 10px;
    transition: transform .15s,box-shadow .15s,background .15s,color .15s
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(27,77,230,.9)
}

    .btn-primary:hover {
        background: var(--blue-dark);
        transform: translateY(-2px)
    }

.btn-outline {
    background: #fff;
    color: var(--blue);
    border: 1.5px solid var(--blue)
}

    .btn-outline:hover {
        background: var(--blue-soft);
        transform: translateY(-2px)
    }

/* Top bar */
.topbar {
    background: var(--navy);
    color: #c7d0e4;
    font-size: .82rem
}

.topbar-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 44px
}

.tb-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap
}

    .tb-info li {
        display: inline-flex;
        align-items: center;
        gap: .5rem
    }

    .tb-info svg {
        color: #fff;
        opacity: .85
    }

.tb-right {
    display: flex;
    gap: 1.4rem;
    align-items: center
}

    .tb-right a {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        font-weight: 600;
        color: #fff
    }

        .tb-right a:hover {
            color: #9dc0ff
        }

.lang-switch {
    border-inline-start: 1px solid rgba(255,255,255,.2);
    padding-inline-start: 1.4rem
}

@media(max-width:900px) {
    .tb-info li:not(:first-child) {
        display: none
    }
}

@media(max-width:560px) {
    .tb-right a span {
        display: none
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s
}

    .header.scrolled {
        box-shadow: var(--shadow-sm)
    }

.header-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px
}

.logo {
    flex-shrink: 0
}

.logo-img {
    height: 52px;
    width: auto
}

.menu ul {
    display: flex;
    align-items: center;
    gap: .2rem
}

.menu > ul > li {
    position: relative
}

    .menu > ul > li > a, .menu > ul > li > button {
        display: inline-flex;
        align-items: center;
        gap: .3rem;
        padding: .55rem .8rem;
        border-radius: 9px;
        font-weight: 600;
        font-size: .95rem;
        color: var(--ink);
        transition: color .15s,background .15s
    }

        .menu > ul > li > a:hover, .menu > ul > li > button:hover {
            color: var(--blue);
            background: var(--blue-soft)
        }

    .menu > ul > li.active > a {
        color: var(--blue)
    }

        .menu > ul > li.active > a::after {
            content: "";
            position: absolute;
            inset-inline: .8rem;
            bottom: .15rem;
            height: 2px;
            border-radius: 2px;
            background: var(--blue)
        }

.caret {
    width: 14px;
    height: 14px;
    transition: transform .2s
}

.has-dd.open .caret {
    transform: rotate(180deg)
}

.dd {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s
}

.has-dd.open .dd {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.dd a {
    display: block;
    padding: .55rem .7rem;
    border-radius: 9px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink)
}

    .dd a:hover {
        background: var(--blue-soft);
        color: var(--blue)
    }

@media(hover:hover) {
    .has-dd:hover .dd {
        opacity: 1;
        visibility: visible;
        transform: translateY(0)
    }

    .has-dd:hover .caret {
        transform: rotate(180deg)
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .25rem
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--ink);
    transition: background .15s,color .15s;
    position: relative
}

    .icon-btn:hover {
        background: var(--soft);
        color: var(--blue)
    }

    .icon-btn svg {
        width: 22px;
        height: 22px
    }

.cart-badge {
    position: absolute;
    top: 5px;
    inset-inline-end: 5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    display: grid;
    place-items: center
}

.burger {
    display: none
}

/* Hero */
.hero {
    background: radial-gradient(900px 460px at 85% 0,rgba(27,77,230,.10),transparent 60%),linear-gradient(180deg,#F3F6FD,#fff)
}

.hero-in {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(24px,5vw,56px);
    align-items: center;
    padding-block: clamp(36px,5vw,64px)
}

.hero h1 {
    font-size: clamp(2.4rem,5.4vw,4rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.03em
}

    .hero h1 .accent {
        color: var(--blue)
    }

.hero p {
    font-size: clamp(1rem,1.5vw,1.15rem);
    color: var(--muted);
    margin: 1.2rem 0 1.8rem;
    max-width: 42ch
}

.hero-cta {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap
}

.hero-trust {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: 2.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
    width: fit-content;
    max-width: 100%
}

    .hero-trust span {
        display: flex;
        align-items: center;
        gap: .55rem;
        font-size: .82rem;
        font-weight: 600;
        color: var(--navy);
        padding: .2rem .7rem;
        border-inline-end: 1px solid var(--line)
    }

        .hero-trust span:last-child {
            border-inline-end: none
        }

    .hero-trust svg {
        width: 26px;
        height: 26px;
        color: var(--green);
        flex: none
    }

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 340px
}

.hero-stage {
    position: relative;
    width: min(360px,80%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 40%,#fff,#EAF0FB);
    border-radius: 26px;
    box-shadow: var(--shadow)
}

.hero-aed {
    width: 46%;
    filter: drop-shadow(0 24px 30px rgba(14,27,58,.22))
}

.pedestal {
    position: absolute;
    bottom: 16%;
    width: 56%;
    height: 26px;
    background: linear-gradient(#dbe4f4,#c6d2ea);
    border-radius: 50%;
    filter: blur(1px);
    z-index: -1
}

.hero-card {
    position: absolute;
    inset-inline-end: 0;
    top: 34%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px 18px;
    max-width: 220px
}

    .hero-card b {
        font-family: var(--f-display);
        font-size: 1.05rem;
        color: var(--navy);
        display: block
    }

    .hero-card span {
        font-size: .85rem;
        color: var(--muted);
        display: block;
        margin: .2rem 0 .6rem
    }

    .hero-card a {
        color: var(--blue);
        font-weight: 600;
        font-size: .85rem;
        display: inline-flex;
        align-items: center;
        gap: .35rem
    }

        .hero-card a svg {
            width: 15px;
            height: 15px
        }

/* Sections */
.section {
    padding-block: clamp(40px,6vw,68px)
}

.center-title {
    text-align: center;
    font-size: clamp(1.5rem,3vw,2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: clamp(1.6rem,3vw,2.4rem)
}

.row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6rem
}

    .row-head h2 {
        font-size: clamp(1.4rem,2.6vw,1.9rem);
        font-weight: 700;
        color: var(--navy)
    }

.view-all {
    color: var(--blue);
    font-weight: 600;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem
}

    .view-all svg {
        width: 16px;
        height: 16px
    }

/* Categories */
.cat-row {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 14px
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    transition: transform .18s,box-shadow .18s,border-color .18s
}

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

.cat-ic {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--soft)
}

    .cat-ic svg {
        width: 38px;
        height: 38px;
        color: var(--blue)
    }

.cat-card span:last-child {
    font-size: .86rem;
    font-weight: 600;
    color: var(--navy)
}

@media(max-width:1024px) {
    .cat-row {
        grid-template-columns: repeat(4,1fr)
    }
}

@media(max-width:640px) {
    .cat-row {
        grid-template-columns: repeat(2,1fr)
    }
}

/* Products */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 16px
}

.prod-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s,box-shadow .18s,border-color .18s
}

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

.prod-media {
    position: relative;
    aspect-ratio: 1;
    background: var(--soft);
    display: grid;
    place-items: center;
    padding: 18px
}

    .prod-media > svg, .prod-media > img {
        width: 64%;
        height: 64%;
        object-fit: contain
    }

.prod-badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .24rem .5rem;
    border-radius: 999px;
    color: #fff;
    background: var(--blue)
}

    .prod-badge.sale {
        background: var(--red)
    }

    .prod-badge.stock {
        background: var(--green)
    }

.prod-info {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 1
}

    .prod-info h3 {
        font-size: .98rem;
        font-weight: 600;
        color: var(--navy)
    }

.stars {
    display: flex;
    align-items: center;
    gap: .15rem;
    color: var(--gold);
    font-size: .78rem
}

    .stars svg {
        width: 14px;
        height: 14px
    }

    .stars .count {
        color: var(--muted-2);
        font-weight: 600;
        margin-inline-start: .3rem
    }

.price {
    font-family: var(--f-display);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.02rem
}

    .price .old {
        font-family: var(--f-body);
        font-weight: 500;
        color: var(--muted-2);
        text-decoration: line-through;
        font-size: .85rem;
        margin-inline-start: .4rem
    }

.add-cart {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    padding: .6rem;
    border-radius: 9px;
    transition: background .15s
}

    .add-cart:hover {
        background: var(--blue-dark)
    }

    .add-cart svg {
        width: 16px;
        height: 16px
    }

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

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

/* Solutions banner */
.sol-banner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    background: linear-gradient(120deg,#EAF0FE,#F4F7FF);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden
}

.sol-copy {
    padding: clamp(24px,4vw,40px)
}

    .sol-copy h2 {
        font-size: clamp(1.4rem,2.6vw,1.9rem);
        font-weight: 700;
        color: var(--navy)
    }

    .sol-copy p {
        color: var(--muted);
        margin: .6rem 0 1.4rem;
        max-width: 44ch
    }

.sol-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

    .sol-pills a {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: .6rem .9rem;
        font-size: .85rem;
        font-weight: 600;
        color: var(--navy);
        transition: transform .15s,border-color .15s,color .15s
    }

        .sol-pills a:hover {
            transform: translateY(-3px);
            border-color: var(--blue);
            color: var(--blue)
        }

    .sol-pills svg {
        width: 20px;
        height: 20px;
        color: var(--blue)
    }

.sol-media {
    position: relative;
    background: linear-gradient(135deg,#1B4DE6,#3B6BF0);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 280px;
    text-align: center;
    padding: 24px
}

.sol-media-ic {
    width: 70px;
    height: 70px;
    opacity: .9
}

.sol-media span {
    font-size: .85rem;
    opacity: .85;
    font-weight: 500
}

@media(max-width:820px) {
    .sol-banner {
        grid-template-columns: 1fr
    }

    .sol-media {
        min-height: 180px;
        order: -1
    }
}

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

.fcard {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform .18s,box-shadow .18s,border-color .18s
}

    .fcard:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
        border-color: transparent
    }

.fcard-body {
    flex: 1
}

.fcard h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .4rem
}

.fcard p {
    font-size: .88rem;
    color: var(--muted);
    margin: 0 0 .7rem
}

.learn {
    color: var(--blue);
    font-weight: 600;
    font-size: .86rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem
}

    .learn svg {
        width: 15px;
        height: 15px
    }

.fcard-art {
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 16px;
    display: grid;
    place-items: center
}

    .fcard-art svg {
        width: 34px;
        height: 34px
    }

.art-blue {
    background: var(--blue-soft);
    color: var(--blue)
}

.art-violet {
    background: #EFE9FE;
    color: var(--violet)
}

.art-green {
    background: var(--green-soft);
    color: var(--green)
}

.why-list {
    display: grid;
    gap: .45rem;
    margin-top: .2rem
}

    .why-list li {
        display: flex;
        align-items: center;
        gap: .5rem;
        font-size: .86rem;
        font-weight: 500;
        color: var(--navy)
    }

    .why-list svg {
        width: 16px;
        height: 16px;
        color: var(--green);
        flex: none
    }

@media(max-width:900px) {
    .feature-3 {
        grid-template-columns: 1fr
    }
}

/* Trust + newsletter bar */
.trust-bar {
    background: linear-gradient(120deg,var(--blue),#2E5BEA);
    color: #fff
}

.trust-bar-in {
    display: flex;
    align-items: center;
    gap: clamp(16px,3vw,40px);
    flex-wrap: wrap;
    padding-block: 22px
}

.tb-item {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 600;
    font-size: .95rem
}

    .tb-item svg {
        width: 22px;
        height: 22px
    }

.tb-news {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
}

    .tb-news b {
        display: block;
        font-family: var(--f-display);
        font-size: 1rem
    }

    .tb-news span {
        font-size: .82rem;
        opacity: .85
    }

.news-field {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm)
}

    .news-field input {
        border: none;
        outline: none;
        padding: .7rem .9rem;
        font-size: .9rem;
        width: min(240px,60vw)
    }

    .news-field button {
        width: 46px;
        background: var(--navy);
        color: #fff;
        display: grid;
        place-items: center
    }

        .news-field button svg {
            width: 18px;
            height: 18px
        }

        .news-field button:hover {
            background: var(--navy-2)
        }

.news-msg {
    max-width: var(--maxw);
    margin: .4rem auto 0;
    padding-inline: var(--gutter);
    color: #eafff0;
    font-size: .82rem;
    font-weight: 600;
    min-height: 1em
}

@media(max-width:820px) {
    .tb-news {
        margin-inline-start: 0;
        width: 100%
    }
}

/* Footer */
.footer {
    background: var(--navy);
    color: #aeb9d3;
    padding-top: clamp(40px,6vw,64px)
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4,1fr);
    gap: clamp(20px,3vw,36px)
}

.foot-logo {
    height: 46px;
    width: auto;
    margin-bottom: 1rem;
    background: #fff;
    padding: 6px 10px;
    border-radius: 10px
}

.foot-about p {
    margin: 0 0 1.2rem;
    font-size: .88rem;
    color: #9aa6c2;
    max-width: 34ch
}

.social {
    display: flex;
    gap: .5rem
}

    .social a {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: rgba(255,255,255,.07);
        display: grid;
        place-items: center;
        color: #c7d0e4;
        transition: .15s
    }

        .social a:hover {
            background: var(--blue);
            color: #fff;
            transform: translateY(-2px)
        }

    .social svg {
        width: 17px;
        height: 17px
    }

.foot-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: .55rem
}

    .foot-col h4::after {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        bottom: 0;
        width: 24px;
        height: 3px;
        border-radius: 3px;
        background: var(--blue)
    }

.foot-col li {
    margin-bottom: .6rem
}

.foot-col a {
    font-size: .88rem;
    color: #9aa6c2
}

    .foot-col a:hover {
        color: #fff
    }

.foot-contact li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .88rem;
    color: #c7d0e4
}

.foot-contact svg {
    width: 17px;
    height: 17px;
    color: #6f8bd8;
    flex: none;
    margin-top: 2px
}

.foot-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: clamp(30px,4vw,48px);
    padding-block: 20px
}

.foot-bottom-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .8rem;
    color: #8894ac
}

.legal {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap
}

    .legal a:hover {
        color: #fff
    }

@media(max-width:1024px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr 1fr
    }

    .foot-about {
        grid-column: 1/-1
    }
}

@media(max-width:560px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr
    }
}

/* Mobile menu */
.mobile {
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    pointer-events: none
}

.mobile-back {
    position: absolute;
    inset: 0;
    background: rgba(14,27,58,.5);
    opacity: 0;
    transition: opacity .25s
}

.mobile-panel {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    height: 100%;
    width: min(330px,86%);
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    padding: 18px;
    overflow-y: auto
}

html[dir="rtl"] .mobile-panel {
    transform: translateX(-100%)
}

.mobile.open {
    visibility: visible;
    pointer-events: auto
}

    .mobile.open .mobile-back {
        opacity: 1
    }

    .mobile.open .mobile-panel {
        transform: translateX(0)
    }

.mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line)
}

    .mobile-head b {
        font-family: var(--f-display);
        font-size: 1.1rem
    }

.mobile-links > li {
    border-bottom: 1px solid var(--line)
}

    .mobile-links > li > a, .mobile-links > li > button {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .9rem .2rem;
        font-weight: 600;
        font-size: 1rem;
        color: var(--navy)
    }

.m-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s
}

.mobile-links li.open .m-sub {
    max-height: 340px
}

.m-sub a {
    display: block;
    padding: .5rem .2rem .5rem;
    padding-inline-start: 1rem;
    color: var(--muted);
    font-weight: 500;
    font-size: .9rem
}

.mobile-links li.open .caret {
    transform: rotate(180deg)
}

.mm-quote {
    width: 100%;
    margin-top: 16px
}

.lang-switch-m {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 14px;
    font-weight: 600;
    color: var(--blue)
}

/* Mobile menu item icons */
.mobile-links > li > a {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.mm-ic {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--violet);
}

.mm-quote .mm-ic {
    color: #fff; /* icon on the filled button */
    margin-inline-end: .1rem;
}

/* Desktop nav icons + smaller label */
.menu > ul > li > a {
    font-size: .875rem; /* was .95rem */
    gap: .45rem;
}

.nav-ic {
    width: 17px;
    height: 17px;
    flex: none;
    color: currentColor; /* matches the link color, incl. hover/active violet */
}

/* ── Header search ─────────────────────────────────────── */
.header-search {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.hsearch-form {
    position: absolute;
    inset-inline-end: 46px; /* sits to the side of the icon, no layout shift */
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: .45rem;
    width: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    background: #fff;
    border: 1.5px solid transparent;
    border-radius: 10px;
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(14,27,58,.06));
    transition: width .25s ease, opacity .2s ease, padding .2s ease, border-color .2s ease;
}

.header-search.open .hsearch-form {
    width: min(280px, 60vw);
    padding: .45rem .6rem;
    opacity: 1;
    pointer-events: auto;
    border-color: #EAECF0;
}

.hsearch-ic {
    width: 16px;
    height: 16px;
    flex: none;
    color: #98A2B3;
}

.hsearch-form input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: .9rem;
    color: #101828;
}

    .hsearch-form input::placeholder {
        color: #98A2B3;
    }

.hsearch-close {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: none;
    border: none;
    background: transparent;
    color: #98A2B3;
    cursor: pointer;
}

    .hsearch-close svg {
        width: 14px;
        height: 14px;
    }

    .hsearch-close:hover {
        color: var(--violet);
    }



@media(max-width:1024px) {
    .menu {
        display: none
    }

    .burger {
        display: grid
    }

    .header-actions .icon-btn[aria-label="Account"] {
        display: none
    }
}

/* RTL fine-tuning: flip directional arrows */
html[dir="rtl"] .view-all svg,
html[dir="rtl"] .hero-card a svg,
html[dir="rtl"] .learn svg,
html[dir="rtl"] .btn svg {
    transform: scaleX(-1)
}

/* Motion */
@media(prefers-reduced-motion:reduce) {
    * {
        transition-duration: .001ms !important;
        animation-duration: .001ms !important
    }
}
