:root {
    --paper: #f4f5f7;
    --card: #fff;
    --ink: #141414;
    --muted: #667085;
    --line: #e6e8ee;
    --red: #e10613;
    --red-dark: #b90510;
    --ok: #067647;
    --ok-bg: #e7f6ee;
    --low: #b54708;
    --low-bg: #fff4e5;
    --out: #b42318;
    --out-bg: #fdecec;
    --shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
    --sans: "IBM Plex Sans Arabic", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.skip {
    position: absolute;
    inset-inline-start: 12px;
    top: -40px;
    background: #fff;
    padding: 8px 12px;
    z-index: 20;
}
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.top {
    background: #141414;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}
.top-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 76px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    min-width: 0;
}
.brand img {
    width: 148px;
    height: 72px;
    border-radius: 8px;
    object-fit: contain;
    background: #ed091a;
}
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick { display: flex; flex: 1; gap: 8px; position: relative; }
.quick input, .finder input, .finder select, .buy input, .line input, .more-grid input, .more-grid select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 16px;
}
.quick input { background: #fff; color: var(--ink); }
.quick button, .btn {
    border: 0;
    background: var(--red);
    color: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.btn:hover, .quick button:hover { background: var(--red-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-wa { background: #128c7e; }
.btn-wa:hover { background: #0d6e63; }
.cart-link {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    text-decoration: none;
    flex: none;
}
.cart-link svg { width: 26px; height: 26px; }
.menu-bar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.menu {
    display: flex;
    gap: 4px;
    align-items: stretch;
    min-height: 48px;
    overflow: visible;
}
.menu a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 12px 9px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}
.menu a:hover,
.menu a[aria-current="page"] {
    color: var(--red);
    border-bottom-color: var(--red);
}
.menu-item {
    position: relative;
    display: flex;
    align-items: stretch;
}
.menu-item.is-current > a {
    color: var(--red);
    border-bottom-color: var(--red);
}
.menu a.only-mobile { display: none; }
.menu-item details { display: flex; align-items: stretch; }
.menu-item summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding-inline: 2px 8px;
}
.menu-item summary::-webkit-details-marker { display: none; }
.menu-item summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}
.menu-sub {
    display: none;
    position: absolute;
    z-index: 30;
    top: 100%;
    inset-inline-start: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 6px 0;
}
.menu-item:hover .menu-sub,
.menu-item details[open] .menu-sub { display: block; }
.menu-sub a {
    display: flex;
    width: 100%;
    border-bottom: 0;
    padding: 10px 14px;
}
.cart-link span {
    position: absolute;
    top: 2px;
    inset-inline-end: 0;
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.banner {
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--red);
    border-radius: 12px;
    padding: 12px 14px;
}
.hero-banner {
    display: block;
    background: #070707;
    line-height: 0;
}
.hero-banner img {
    width: 100%;
    height: auto;
    max-height: none;
}
.eyebrow { margin: 0 0 8px; color: #f3b4b8; font-weight: 700; }
.hero .eyebrow { color: #ffb4b8; }
h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.25; }
h2 { margin: 0; font-size: 1.3rem; }
.lede { color: var(--muted); line-height: 1.7; }
.hero .lede { color: #d0d5dd; max-width: 38rem; }
.stats { display: flex; gap: 18px; margin: 0; }
.stats div {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    min-width: 120px;
}
.stats dt { color: #d0d5dd; font-size: 0.85rem; }
.stats dd { margin: 6px 0 0; font-size: 1.8rem; font-weight: 700; }
.home-body { margin-top: 28px; position: relative; z-index: 1; padding-bottom: 36px; }
.brand-picks { margin-top: 28px; }
.brand-picks h2 { margin: 0 0 16px; font-size: 1.45rem; }
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.brand-grid a {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}
.brand-grid img { width: 100%; height: auto; }
.departments {
    margin-top: 34px;
    padding: 26px 18px 18px;
    border-radius: 28px;
    background:
        radial-gradient(42% 55% at 0% 0%, rgba(255, 186, 196, 0.55), transparent 72%),
        radial-gradient(38% 48% at 100% 100%, rgba(255, 196, 206, 0.42), transparent 70%),
        linear-gradient(180deg, #fbfcfd 0%, #f6f7f8 100%);
}
.dept-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.dept-head h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 800;
    line-height: 1.1;
}
.dept-head h2 span {
    display: block;
    width: 46px;
    height: 4px;
    margin-top: 8px;
    border-radius: 99px;
    background: var(--red);
}
.dept-head p { margin: 8px 0 0; color: #8b919a; font-size: 0.98rem; }
.dept-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 7px 8px 7px 16px;
    font-weight: 800;
}
.dept-all i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: var(--red);
    display: grid;
    place-items: center;
}
.dept-all svg { width: 16px; height: 16px; }
.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.dept-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 168px;
    background: #fff;
    border-radius: 18px;
    padding: 12px 10px 14px;
    text-decoration: none;
    color: #1d2430;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}
.dept-card img {
    width: 100%;
    height: 112px;
    object-fit: contain;
}
.dept-card span { margin-top: 8px; font-weight: 700; }
.dept-card:hover { transform: translateY(-2px); }
.promo {
    margin-top: 16px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(42% 80% at 8% 42%, rgba(225, 6, 19, 0.14), transparent 70%),
        linear-gradient(180deg, #fff 0%, #f6f7f8 48%, #eef1f4 100%);
}
.promo::before {
    content: "";
    position: absolute;
    left: -8%;
    top: -30%;
    width: 34%;
    height: 160%;
    background: linear-gradient(180deg, transparent, rgba(225, 6, 19, 0.2) 42%, transparent 78%);
    transform: rotate(16deg);
    pointer-events: none;
}
.promo::after {
    content: "";
    position: absolute;
    left: 6%;
    bottom: 0;
    width: 58%;
    height: 24%;
    background: radial-gradient(ellipse at center, rgba(20, 20, 20, 0.07), transparent 72%);
    pointer-events: none;
}
.promo-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    max-width: 1360px;
    margin: 0 auto;
    padding: 32px 28px 24px;
    min-height: 540px;
}
.promo-copy h2 {
    margin: 0 0 22px;
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    line-height: 1.35;
    font-weight: 700;
}
.promo-line { display: block; white-space: nowrap; }
.promo-copy h2 span span { color: var(--red); }
.promo-logo {
    width: 240px;
    height: auto;
    max-width: 100%;
    margin-bottom: 18px;
    border-radius: 10px;
}
.promo-btn {
    border-radius: 999px;
    gap: 10px;
    padding: 8px 8px 8px 18px;
    font-size: 1.02rem;
    box-shadow: 0 10px 22px rgba(225, 6, 19, 0.22);
}
.promo-btn span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
}
.promo-btn svg { width: 18px; height: 18px; display: block; }
.promo-stage {
    position: relative;
    height: 500px;
    overflow: hidden;
}
.promo-part {
    position: absolute;
    width: auto;
    height: auto;
    max-width: none;
    pointer-events: none;
    user-select: none;
}
.p-air { left: 1%; top: 10%; width: 32%; z-index: 1; }
.p-disc { left: 16%; top: 1%; width: 42%; z-index: 3; }
.p-shock { left: 50%; top: 0; width: 24%; z-index: 4; }
.p-oil { left: 74%; top: 16%; width: 16%; z-index: 5; }
.p-spark { left: 63%; top: 34%; width: 11%; z-index: 6; }
.p-starter { left: 0; top: 44%; width: 34%; z-index: 4; }
.p-pump { left: 32%; top: 40%; width: 28%; z-index: 5; }
.p-belt { left: 56%; top: 50%; width: 40%; z-index: 3; }
.p-battery { left: 1%; top: 70%; width: 28%; z-index: 6; }
.p-fuel { left: 27%; top: 64%; width: 13%; z-index: 7; }
.p-arm { left: 38%; top: 66%; width: 32%; z-index: 7; }
.p-pads { left: 66%; top: 72%; width: 20%; z-index: 6; }
.p-hub { left: 80%; top: 46%; width: 18%; z-index: 5; }
.page { padding: 28px 0 48px; }
.page-head, .block-head, .cart-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
}
.finder, .detail, .line, .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.finder { padding: 16px; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) auto; gap: 12px; align-items: end; }
.finder label, .more-grid label { display: grid; gap: 6px; font-size: 0.86rem; color: var(--muted); }
.finder .btn { height: 44px; }
.more { grid-column: 1 / -1; }
.more summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.more-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 12px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.chips { display: flex; gap: 8px; overflow: auto; list-style: none; padding: 16px 0 0; margin: 0; }
.chips a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
}
.chips small { color: var(--muted); }
.block { margin-top: 28px; }
.block-head { margin-bottom: 14px; }
.block-head a, .text-link { color: var(--red); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; min-height: 100%; }
.card:hover { transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #f3f4f6; }
.card-media img, .detail-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.card-cat { color: var(--muted); font-size: 0.82rem; }
.card-title { font-size: 1.02rem; line-height: 1.45; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.82rem; margin: 0; }
.price { font-weight: 700; }
.price-lg { font-size: 1.5rem; margin: 8px 0; }
.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.78rem;
    font-weight: 700;
}
.card-media .badge { position: absolute; top: 10px; inset-inline-start: 10px; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-low { background: var(--low-bg); color: var(--low); }
.badge-out { background: var(--out-bg); color: var(--out); }
.is-out { opacity: 0.72; }
.empty { color: var(--muted); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 18px; }
.pager a { color: var(--red); font-weight: 700; }
.crumb { display: flex; gap: 8px; color: var(--muted); }
.detail { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: 24px; padding: 16px; }
.detail-media { background: #f3f4f6; border-radius: 12px; min-height: 260px; }
.facts { display: grid; gap: 8px; margin: 16px 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.buy { display: flex; gap: 8px; margin-bottom: 10px; }
.buy input { width: 88px; }
.compat { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.compat li, .line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
}
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 72px 1fr 88px auto auto; }
.line img { width: 72px; height: 72px; object-fit: contain; background: #f3f4f6; border-radius: 8px; }
.line-name { font-weight: 700; text-decoration: none; }
.line input { width: 88px; }
.text-btn { border: 0; background: transparent; color: var(--out); font-weight: 700; cursor: pointer; }
.cart-bar { margin-top: 16px; align-items: center; }
.cart-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.faq { display: grid; gap: 12px; }
.faq article { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.faq h2 { font-size: 1.05rem; margin-bottom: 6px; }
.faq p { margin: 0; line-height: 1.7; }
.fail { padding: 48px 0 72px; }
.shop-map {
    margin-top: 36px;
    background: #fff;
    border-top: 1px solid var(--line);
}
.shop-map-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0 12px;
}
.shop-map h2 { font-size: 1.25rem; }
.shop-map p { margin: 0; color: var(--muted); }
.shop-map iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}
.shop-map + .foot { margin-top: 0; }
.foot {
    margin-top: 28px;
    background: #141414;
    color: #d0d5dd;
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
    padding: 36px 0 28px;
}
.foot-brand .brand img { width: 168px; height: 82px; }
.foot-brand p { margin: 12px 0 0; line-height: 1.7; }
.foot-contact { margin: 14px 0 0; }
.foot-contact a { color: #fff; font-weight: 700; }
.foot h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #d0d5dd; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.foot-bottom .wrap {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 0;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .brand-grid, .dept-grid { grid-template-columns: 1fr 1fr; }
    .dept-head { align-items: flex-start; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
    .promo-inner { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); min-height: 460px; padding: 24px 16px 16px; }
    .promo-stage { height: 420px; }
    .hero-inner, .finder, .detail, .more-grid, .line { grid-template-columns: 1fr 1fr; }
    .finder-q, .more, .detail-media, .detail-copy { grid-column: 1 / -1; }
    .finder .btn { grid-column: 1 / -1; }
    .line { grid-template-columns: 72px 1fr; }
}
@media (max-width: 720px) {
    .top { position: static; }
    .top-row {
        position: sticky;
        top: 0;
        z-index: 40;
        flex-wrap: nowrap;
        gap: 8px;
        min-height: 0;
        padding: 8px 0;
        padding-top: max(8px, env(safe-area-inset-top));
        background: #141414;
    }
    .brand { flex: none; }
    .brand img { width: 96px; height: 46px; }
    .quick { order: 0; flex: 1 1 auto; min-width: 0; }
    .quick button { flex: none; padding-inline: 12px; }
    .menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        align-items: stretch;
        gap: 0;
        padding-bottom: 0;
    }
    .menu::-webkit-scrollbar { display: none; }
    .menu a, .menu-item summary { min-height: 44px; padding-inline: 12px; }
    .menu-item { flex: none; align-items: stretch; }
    .menu-item details { display: none; }
    .menu a.only-mobile { display: inline-flex; }
    .hero-banner img {
        width: 100%;
        height: 58vw;
        min-height: 210px;
        max-height: 280px;
        object-fit: cover;
        object-position: 22% center;
    }
    .promo { margin-top: 12px; }
    .promo-inner { grid-template-columns: 1fr; min-height: 0; padding: 22px 16px 8px; }
    .promo-copy { text-align: center; }
    .promo-logo { margin-inline: auto; }
    .promo-copy h2 { font-size: clamp(1.2rem, 6.5vw, 1.65rem); }
    .promo-btn { margin-inline: auto; }
    .promo-stage { height: 280px; max-width: 100%; }
    .p-starter, .p-air, .p-fuel, .p-pads, .p-hub { display: none; }
    .p-disc { left: 2%; top: 2%; width: 46%; }
    .p-shock { left: 48%; top: 0; width: 30%; }
    .p-oil { left: 76%; top: 18%; width: 20%; }
    .p-spark { left: 62%; top: 38%; width: 14%; }
    .p-pump { left: 24%; top: 40%; width: 34%; }
    .p-belt { left: 42%; top: 58%; width: 48%; }
    .p-battery { left: 0; top: 60%; width: 36%; }
    .p-arm { left: 28%; top: 66%; width: 40%; }
    .foot-contact a { overflow-wrap: anywhere; }
    .cart-actions { width: 100%; }
    .cart-actions .btn { flex: 1 1 auto; }
    .hero-inner, .page-head, .cart-bar, .stats { flex-direction: column; align-items: stretch; }
    .finder, .more-grid, .foot-grid { grid-template-columns: 1fr; }
    .dept-head { flex-direction: column; align-items: stretch; }
    .dept-all { align-self: flex-start; }
    .dept-card { min-height: 0; padding: 10px 8px 12px; }
    .dept-card img { height: 84px; }
    .dept-card span { font-size: 0.92rem; }
    .departments { padding: 18px 12px 14px; border-radius: 20px; }
    .shop-map iframe { height: 260px; }
    .shop-map-head { flex-direction: column; align-items: stretch; gap: 4px; }
    .foot { padding-bottom: env(safe-area-inset-bottom); }
    .foot-bottom .wrap { flex-direction: column; }
}
