/* خط اسم المتجر */
@font-face { font-family: "Ethnocentric"; src: url("/fonts/Ethnocentric-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
:root { --sc-brand-font: "Ethnocentric", "Cairo", sans-serif; }
.sc-brandname { font-family: var(--sc-brand-font); font-weight: 400; letter-spacing: .05em; direction: ltr; unicode-bidi: isolate; }
/* =========================================================
   Spare Corner – RTL storefront theme
   Palette sampled from the logo:
     red     #E60116   (CORNER lettering / swoosh)
     silver  #D5D5D5   (gear + SPARE lettering)
     black   #0E0E0E   (background)
   ========================================================= */
:root {
    --sc-red: #E60116;
    --sc-red-600: #C40013;
    --sc-red-700: #9E0010;
    --sc-red-50: #FFF1F2;
    --sc-black: #0E0E0E;
    --sc-ink: #17171A;
    --sc-ink-2: #222227;
    --sc-silver: #D5D5D5;
    --sc-silver-2: #A9ABAF;
    --sc-steel: #6B6E74;
    --sc-bg: #F4F4F5;
    --sc-card: #FFFFFF;
    --sc-line: #E3E3E6;
    --sc-text: #1B1B1F;
    --sc-muted: #63666C;
    --sc-radius: 12px;
    --sc-radius-sm: 8px;
    --sc-shadow: 0 6px 24px rgba(14, 14, 14, .08);
    --sc-font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sc-font);
    background: var(--sc-bg);
    color: var(--sc-text);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sc-red); }
:focus-visible { outline: 3px solid rgba(230, 1, 22, .45); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.sc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .6rem 1.4rem;
    border: 2px solid transparent; border-radius: var(--sc-radius-sm);
    font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.sc-btn:active { transform: translateY(1px); }
.sc-btn--primary { background: var(--sc-red); color: #fff; }
.sc-btn--primary:hover { background: var(--sc-red-600); color: #fff; }
.sc-btn--accent { background: var(--sc-red); color: #fff; text-transform: uppercase; letter-spacing: .02em; box-shadow: 0 8px 20px rgba(230,1,22,.35); }
.sc-btn--accent:hover { background: #fff; color: var(--sc-red); }
.sc-btn--outline { background: #fff; color: var(--sc-red); border-color: var(--sc-red); }
.sc-btn--outline:hover { background: var(--sc-red); color: #fff; }

.sc-badge {
    display: inline-block; padding: 0 .55rem; border-radius: 6px;
    font-size: .78rem; font-weight: 700; line-height: 1.7; color: #fff;
}
.sc-badge--hot { background: var(--sc-red); }
.sc-badge--new { background: #fff; color: var(--sc-red); border: 1px solid var(--sc-red); }

/* =========================================================
   HEADER
   ========================================================= */
.sc-header { position: sticky; top: 0; z-index: 1030; }

.sc-topbar { background: var(--sc-black); color: var(--sc-silver-2); font-size: .85rem; border-bottom: 1px solid #222; }
.sc-topbar .container-xl { min-height: 34px; }
.sc-topbar__list { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.sc-topbar__list i { color: var(--sc-red); margin-inline-end: .3rem; }
.sc-topbar__phone { color: var(--sc-silver); font-weight: 600; }
.sc-topbar__phone i { color: var(--sc-red); }

.sc-mainbar {
    background:
        linear-gradient(90deg, rgba(230,1,22,.12), transparent 30%),
        var(--sc-ink);
    border-bottom: 1px solid #2b2b31;
}
.sc-mainbar__inner {
    display: flex; align-items: center; gap: 1rem;
    min-height: 72px; padding-block: .5rem;
}

.sc-logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.sc-logo img { height: 54px; width: auto; border-radius: 6px; }
.sc-logo__text { flex-direction: column; align-items: center; text-align: center; line-height: 1.1; }
.sc-logo__text strong { color: var(--sc-silver); font-family: var(--sc-brand-font); font-size: .95rem; font-weight: 400; letter-spacing: .06em; direction: ltr; white-space: nowrap; }
.sc-logo__text em { color: var(--sc-red); font-style: normal; }
.sc-logo__text small { color: var(--sc-silver-2); font-size: .95rem; font-weight: 700; }

.sc-add-vehicle {
    align-items: center; gap: .55rem;
    height: 50px; padding: 0 1.1rem;
    background: var(--sc-red); color: #fff; border: 0;
    border-radius: var(--sc-radius-sm); font-weight: 700; white-space: nowrap;
    transition: background .2s;
}
.sc-add-vehicle:hover { background: var(--sc-red-600); }
.sc-add-vehicle .bi-car-front-fill { font-size: 1.2rem; }

.sc-search { flex: 1 1 auto; display: flex; min-width: 0; height: 50px; }
.sc-search input {
    flex: 1; min-width: 0; height: 100%;
    border: 2px solid transparent; border-inline-end: 0;
    border-start-start-radius: var(--sc-radius-sm); border-end-start-radius: var(--sc-radius-sm);
    padding: 0 1rem; font-family: inherit; font-size: 1rem; background: #fff; color: var(--sc-text);
}
.sc-search input:focus { outline: none; border-color: var(--sc-red); }
.sc-search button {
    width: 56px; border: 0; background: #fff; color: var(--sc-ink); font-size: 1.2rem;
    border-start-end-radius: var(--sc-radius-sm); border-end-end-radius: var(--sc-radius-sm);
}
.sc-search button:hover { color: var(--sc-red); }

.sc-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.sc-icon-btn {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    background: transparent; border: 0; color: var(--sc-silver); font-size: 1.6rem; border-radius: var(--sc-radius-sm);
}
.sc-icon-btn:hover { color: #fff; background: rgba(255,255,255,.06); }

.sc-cart {
    display: flex; align-items: center; gap: .7rem; height: 50px; padding: 0 .9rem;
    background: rgba(255,255,255,.06); border: 1px solid #34343b; border-radius: var(--sc-radius-sm); color: var(--sc-silver);
}
.sc-cart:hover { color: #fff; border-color: var(--sc-red); }
.sc-cart__icon { position: relative; font-size: 1.5rem; line-height: 1; }
.sc-cart__count {
    position: absolute; top: -8px; inset-inline-start: -10px;
    min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    background: var(--sc-red); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.sc-cart__meta { flex-direction: column; line-height: 1.15; }
.sc-cart__meta small { font-size: .75rem; color: var(--sc-silver-2); }
.sc-cart__meta strong { color: #fff; font-size: 1.15rem; font-weight: 800; }
.sc-cart__meta strong span { font-size: .8rem; font-weight: 600; }

/* Category nav */
.sc-nav { background: var(--sc-black); border-bottom: 3px solid var(--sc-red); }
.sc-nav__list { display: flex; align-items: stretch; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.sc-nav__list > li > a {
    display: flex; align-items: center; gap: .45rem; height: 56px; padding: 0 .9rem;
    color: #fff; font-weight: 700; white-space: nowrap; position: relative;
}
.sc-nav__list > li > a::after {
    content: ""; position: absolute; inset-inline: .9rem; bottom: 0; height: 3px;
    background: var(--sc-silver); transform: scaleX(0); transition: transform .2s;
}
.sc-nav__list > li > a:hover { color: var(--sc-silver); }
.sc-nav__list > li > a:hover::after { transform: scaleX(1); }
.sc-nav__all { border-inline-end: 1px solid #2c2c32; padding-inline-end: .5rem; }
.sc-nav__all a i { color: var(--sc-red); font-size: 1.1rem; }

/* Mobile vehicle strip */
.sc-mobile-vehicle {
    display: flex; align-items: center; gap: .6rem; width: 100%;
    padding: .7rem 16px; border: 0; background: var(--sc-red); color: #fff; font-weight: 700; font-size: .95rem; text-align: start;
}

/* Off-canvas */
.sc-offcanvas { background: var(--sc-ink); color: #fff; width: min(320px, 86vw) !important; }
.sc-offcanvas .offcanvas-header { border-bottom: 1px solid #2c2c32; }
.sc-offcanvas__logo { height: 52px; border-radius: 6px; }
.sc-mnav { list-style: none; margin: 0; padding: 0; }
.sc-mnav a {
    display: flex; align-items: center; gap: .5rem; padding: .85rem .25rem;
    border-bottom: 1px solid #2a2a30; font-weight: 700; color: #fff;
}
.sc-mnav a i { color: var(--sc-red); }
.sc-mnav__phone { display: inline-flex; gap: .5rem; margin-top: 1.5rem; color: var(--sc-silver); font-weight: 700; }
.sc-mnav__phone i { color: var(--sc-red); }

/* =========================================================
   HERO
   ========================================================= */
.sc-hero { padding: 2rem 0 1.5rem; background: #fff; }
.sc-hero__grid {
    display: grid; gap: 1.25rem;
    grid-template-columns: minmax(320px, 400px) 1fr;
    align-items: start;
}

/* Finder card */
.sc-finder {
    background: var(--sc-bg); border-radius: var(--sc-radius); padding: 1.6rem 1.6rem 1.3rem;
    border: 1px solid var(--sc-line);
}
.sc-finder__title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .9rem; color: var(--sc-text); }
.sc-finder__selector { position: relative; }
.sc-finder__link {
    display: inline-block; margin-top: 1rem; color: var(--sc-red); font-weight: 700; font-size: .92rem;
    text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(230,1,22,.35);
}

/* VIN input — styled like a plate */
.sc-vin { display: flex; gap: .6rem; }
.sc-vin__field {
    flex: 1; display: flex; height: 56px; min-width: 0;
    border-radius: var(--sc-radius-sm); overflow: hidden; border: 2px solid var(--sc-ink);
    background: #fff;
}
.sc-vin__flag {
    flex: 0 0 54px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--sc-ink); color: #fff; font-weight: 800; font-size: 1rem; line-height: 1.05;
    border-inline-end: 4px solid var(--sc-red);
}
.sc-vin__flag small { font-size: .65rem; color: var(--sc-silver); font-weight: 600; }
.sc-vin__field input {
    flex: 1; min-width: 0; border: 0; padding: 0 1rem;
    font-family: inherit; font-size: 1.05rem; font-weight: 700; letter-spacing: .12em;
    text-align: center; text-transform: uppercase; color: var(--sc-ink);
    background: linear-gradient(180deg, #fff, #F2F2F3);
}
.sc-vin__field input::placeholder { color: var(--sc-steel); letter-spacing: 0; font-weight: 600; }
.sc-vin__field input:focus { outline: none; }
.sc-vin__field:focus-within { border-color: var(--sc-red); }
.sc-vin .sc-btn { min-height: 56px; padding-inline: 1.6rem; }

/* Step selectors */
.sc-vsel { display: flex; flex-direction: column; gap: .65rem; }
.sc-step {
    position: relative; display: flex; align-items: center;
    height: 58px; background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius-sm);
    transition: border-color .2s, box-shadow .2s;
}
.sc-step.is-active { border-color: var(--sc-red); box-shadow: 0 0 0 3px rgba(230,1,22,.08); }
.sc-step__num {
    position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: #EDEDEF; color: var(--sc-steel); font-size: .85rem; font-weight: 700; pointer-events: none;
}
.sc-step.is-active .sc-step__num,
.sc-step.is-done .sc-step__num { background: var(--sc-red); color: #fff; }
.sc-step.is-done .sc-step__num { background: var(--sc-ink); }
.sc-step__select {
    appearance: none; -webkit-appearance: none;
    width: 100%; height: 100%; border: 0; background: transparent;
    padding-inline: 52px 46px; font-family: inherit; font-size: 1rem; color: var(--sc-text); cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%231B1B1F' stroke-width='2' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: left 16px center;
}
.sc-step__select:focus { outline: none; }
.sc-step__select:disabled { cursor: not-allowed; color: var(--sc-steel); }
.sc-step::after { /* divider before the chevron, like the reference */
    content: ""; position: absolute; inset-inline-end: 42px; top: 16px; bottom: 16px; width: 1px; background: var(--sc-line);
}
.sc-vsel .sc-btn { min-height: 56px; margin-top: .2rem; font-size: 1.05rem; }

/* Hint bubble next to the selector */
.sc-hint {
    position: absolute; top: 0; inset-inline-start: calc(100% + 18px); z-index: 5;
    width: 210px; padding-block: .9rem; padding-inline: 1rem 2rem;
    background: var(--sc-ink); color: #fff; border-radius: var(--sc-radius-sm);
    font-size: .9rem; font-weight: 600; line-height: 1.55; box-shadow: var(--sc-shadow);
    border-inline-start: 4px solid var(--sc-red);
}
.sc-hint::before {
    content: ""; position: absolute; top: 22px; inset-inline-start: -20px;
    border: 8px solid transparent; border-inline-end-color: var(--sc-red);
}
.sc-hint button {
    position: absolute; top: 4px; inset-inline-end: 4px; border: 0; background: none; color: var(--sc-silver); font-size: 1.1rem; line-height: 1;
}
.sc-hint.is-hidden { display: none; }

/* Promo carousel */
.sc-promo { min-width: 0; }
.sc-promo .carousel { border-radius: var(--sc-radius); overflow: hidden; }
.sc-slide {
    position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
    min-height: 470px; padding: 2.5rem 3rem; overflow: hidden; color: #fff;
}
.sc-slide--dark {
    background:
        radial-gradient(circle at 18% 70%, rgba(230,1,22,.45), transparent 45%),
        repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px),
        linear-gradient(135deg, #1b1b20 0%, #0E0E0E 70%);
}
.sc-slide--red {
    background:
        radial-gradient(circle at 15% 75%, rgba(0,0,0,.35), transparent 50%),
        linear-gradient(135deg, var(--sc-red) 0%, var(--sc-red-700) 100%);
}
.sc-slide--silver {
    color: var(--sc-ink);
    background:
        radial-gradient(circle at 20% 80%, rgba(230,1,22,.18), transparent 45%),
        linear-gradient(135deg, #F2F2F3 0%, #C9CACD 100%);
}
.sc-slide__text { position: relative; z-index: 2; }
.sc-slide__badge {
    display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1.2rem;
    background: var(--sc-red); color: #fff; font-size: 1.8rem; border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.sc-slide--red .sc-slide__badge { background: #fff; color: var(--sc-red); }
.sc-slide__kicker { margin: 0; font-size: 1.5rem; font-weight: 600; opacity: .9; }
.sc-slide__title { margin: .2rem 0 .6rem; font-size: clamp(1.9rem, 3.4vw, 3.1rem); font-weight: 900; line-height: 1.25; }
.sc-slide__sub { margin: 0 0 1.6rem; font-size: 1.1rem; opacity: .85; max-width: 30ch; }
.sc-slide--red .sc-btn--accent { background: var(--sc-ink); box-shadow: none; }
.sc-slide--red .sc-btn--accent:hover { background: #fff; color: var(--sc-ink); }

.sc-slide__art { position: relative; display: grid; place-items: center; height: 100%; min-height: 260px; }
.sc-slide__art > i {
    position: relative; z-index: 2; font-size: clamp(6rem, 11vw, 9.5rem); line-height: 1;
    color: #fff; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45));
}
.sc-slide--silver .sc-slide__art > i { color: var(--sc-red); }
/* gear ring echoing the logo */
.sc-gear {
    position: absolute; width: min(320px, 28vw); aspect-ratio: 1; border-radius: 50%;
    background:
        radial-gradient(circle, transparent 54%, var(--sc-silver) 55%, var(--sc-silver-2) 66%, transparent 67%),
        repeating-conic-gradient(var(--sc-silver-2) 0 9deg, transparent 9deg 22.5deg);
    -webkit-mask: radial-gradient(circle, transparent 53%, #000 54%, #000 74%, transparent 75%);
            mask: radial-gradient(circle, transparent 53%, #000 54%, #000 74%, transparent 75%);
    opacity: .55; animation: sc-spin 40s linear infinite;
}
.sc-slide--silver .sc-gear { opacity: .9; filter: brightness(.75); }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sc-gear { animation: none; } }

.sc-promo__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.sc-arrow {
    width: 42px; height: 42px; display: grid; place-items: center;
    background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius-sm); color: var(--sc-ink); font-size: 1.1rem;
}
.sc-arrow:hover { border-color: var(--sc-red); color: var(--sc-red); }
.sc-dots { display: flex; gap: .55rem; }
.sc-dots button {
    width: 12px; height: 12px; padding: 0; border-radius: 50%;
    border: 2px solid var(--sc-silver-2); background: transparent; transition: all .2s;
}
.sc-dots button.active { background: var(--sc-red); border-color: var(--sc-red); width: 28px; border-radius: 6px; }

/* =========================================================
   BENEFITS / SECTIONS
   ========================================================= */
.sc-benefits { background: var(--sc-ink); color: #fff; }
.sc-benefits ul { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.sc-benefits li { display: flex; align-items: center; gap: .8rem; padding: 1.1rem .75rem; border-inline-start: 1px solid #2c2c32; }
.sc-benefits li:first-child { border-inline-start: 0; }
.sc-benefits i { font-size: 1.9rem; color: var(--sc-red); }
.sc-benefits strong { display: block; font-size: .98rem; }
.sc-benefits span { display: block; font-size: .82rem; color: var(--sc-silver-2); }

.sc-section { padding: 3rem 0; }
.sc-section--alt { background: #fff; }
.sc-section__title {
    text-align: center; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; margin: 0 0 2rem; position: relative;
}
.sc-section__title::after {
    content: ""; display: block; width: 64px; height: 4px; margin: .6rem auto 0; border-radius: 2px;
    background: linear-gradient(90deg, var(--sc-red) 60%, var(--sc-silver) 60%);
}

/* Categories */
.sc-cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1rem; }
.sc-cat {
    display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.2rem .5rem;
    background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius);
    font-weight: 700; text-align: center; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.sc-cat:hover { transform: translateY(-3px); border-color: var(--sc-red); box-shadow: var(--sc-shadow); color: var(--sc-text); }
.sc-cat__icon {
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem;
    background: var(--sc-ink); color: var(--sc-silver); transition: background .2s, color .2s;
}
.sc-cat:hover .sc-cat__icon { background: var(--sc-red); color: #fff; }

/* Products */
.sc-products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.sc-product {
    position: relative; display: flex; flex-direction: column; padding: 1rem;
    background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius);
    transition: box-shadow .2s, border-color .2s;
}
.sc-product:hover { box-shadow: var(--sc-shadow); border-color: var(--sc-silver); }
.sc-product__tag { position: absolute; top: .8rem; inset-inline-start: .8rem; z-index: 1; }
.sc-product__off {
    position: absolute; top: .8rem; inset-inline-end: .8rem; z-index: 1;
    background: var(--sc-red); color: #fff; font-weight: 800; font-size: .8rem; padding: 0 .45rem; border-radius: 6px;
}
.sc-product__img {
    display: grid; place-items: center; aspect-ratio: 1; margin-bottom: .8rem; border-radius: var(--sc-radius-sm);
    background: radial-gradient(circle at 50% 40%, #fff, #EDEDEF); font-size: 3.6rem; color: var(--sc-ink);
}
.sc-product__brand { font-size: .78rem; font-weight: 700; color: var(--sc-red); text-transform: uppercase; letter-spacing: .04em; }
.sc-product__name { font-size: .98rem; font-weight: 700; margin: .15rem 0 .5rem; line-height: 1.5; flex: 1; }
.sc-product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-bottom: .8rem; }
.sc-product__price strong { font-size: 1.25rem; font-weight: 900; }
.sc-product__price small { font-size: .8rem; }
.sc-product__price del { color: var(--sc-muted); font-size: .85rem; }
.sc-product .sc-btn { min-height: 44px; font-size: .92rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.sc-footer { background: var(--sc-black); color: var(--sc-silver-2); padding-top: 3rem; border-top: 4px solid var(--sc-red); }
.sc-footer h6 { color: #fff; font-weight: 800; font-size: 1rem; margin-bottom: 1rem; }
.sc-footer ul { list-style: none; margin: 0; padding: 0; }
.sc-footer li { margin-bottom: .5rem; }
.sc-footer a:hover { color: #fff; }
.sc-footer__logo { height: 84px; border-radius: 8px; margin-bottom: 1rem; }
.sc-footer__about { max-width: 34ch; }
.sc-footer__phone { color: var(--sc-silver); font-weight: 700; }
.sc-footer__phone i { color: var(--sc-red); }
.sc-pay { display: flex; flex-wrap: wrap; gap: .5rem; }
.sc-pay span { padding: .25rem .7rem; border: 1px solid #333; border-radius: 6px; font-size: .82rem; color: var(--sc-silver); }
.sc-social { display: flex; gap: .5rem; }
.sc-social a {
    width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
    background: #1d1d22; color: var(--sc-silver); font-size: 1.1rem;
}
.sc-social a:hover { background: var(--sc-red); color: #fff; }
.sc-footer__bottom { margin-top: 2.5rem; padding: 1rem 0; border-top: 1px solid #222; font-size: .85rem; text-align: center; }

/* =========================================================
   MODAL
   ========================================================= */
.sc-modal .modal-content { border: 0; border-radius: var(--sc-radius); overflow: hidden; font-family: var(--sc-font); }
.sc-modal .modal-header { background: var(--sc-ink); color: #fff; border: 0; }
.sc-modal .modal-header .bi { color: var(--sc-red); }
.sc-modal .btn-close { filter: invert(1); margin: 0 auto 0 0; }
.sc-modal .modal-body { background: var(--sc-bg); padding: 1.25rem; }
.sc-vtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: 1rem; }
.sc-vtabs .nav-link {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .6rem; border: 1px solid var(--sc-line); background: #fff; color: var(--sc-text);
    border-radius: var(--sc-radius-sm); font-weight: 700;
}
.sc-vtabs .nav-link.active { background: var(--sc-red); border-color: var(--sc-red); color: #fff; }

/* =========================================================
   CHAT WIDGET (bottom-left in RTL)
   ========================================================= */
.sc-chat { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 1040; display: flex; align-items: flex-end; gap: 14px; }
.sc-chat__fab {
    width: 66px; height: 66px; border-radius: 50%; border: 0;
    background: var(--sc-red); color: #fff; font-size: 1.8rem;
    box-shadow: 0 10px 26px rgba(230,1,22,.45); display: grid; place-items: center; transition: transform .2s;
}
.sc-chat__fab:hover { transform: scale(1.06); }
.sc-chat__card {
    position: relative; width: 330px; padding: 1.1rem; background: #fff;
    border: 1px solid var(--sc-red); border-radius: var(--sc-radius); box-shadow: var(--sc-shadow);
}
.sc-chat__card.is-hidden { display: none; }
@media (max-width: 991.98px) {
    /* closed by default on tablets/phones; opens from the round button */
    .sc-chat__card:not(.is-open) { display: none; }
}
.sc-chat__close { position: absolute; top: 6px; inset-inline-end: 8px; border: 0; background: none; color: var(--sc-steel); }
.sc-chat__head { display: flex; gap: .8rem; align-items: center; margin-bottom: .9rem; }
.sc-chat__head p { margin: 0; font-size: .92rem; font-weight: 600; line-height: 1.55; padding-inline-end: 1rem; }
.sc-chat__avatar {
    flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--sc-ink); color: var(--sc-silver); font-size: 1.5rem; border: 2px solid var(--sc-red);
}
.sc-chat .sc-btn { min-height: 44px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1399.98px) {
    .sc-products { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1199.98px) {
    .sc-hint { display: none; } /* no room beside the card */
    .sc-nav__list > li > a { padding: 0 .6rem; font-size: .93rem; }
    .sc-cats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991.98px) {
    .sc-hero__grid { grid-template-columns: 1fr; }
    .sc-finder { order: 2; }
    .sc-promo { order: 1; }
    .sc-slide { min-height: 360px; padding: 2rem; }
    .sc-gear { width: 240px; }
    .sc-products { grid-template-columns: repeat(3, 1fr); }
    .sc-benefits ul { grid-template-columns: repeat(2, 1fr); }
    .sc-benefits li:nth-child(3) { border-inline-start: 0; }
    .sc-benefits li:nth-child(n+3) { border-top: 1px solid #2c2c32; }
}

@media (max-width: 767.98px) {
    body { font-size: 14.5px; }
    .container-xl { padding-inline: 16px; }
    .sc-mainbar__inner { flex-wrap: wrap; gap: .5rem; min-height: 0; }
    .sc-logo img { height: 44px; }
    .sc-actions { margin-inline-start: auto; }
    .sc-search { order: 10; flex-basis: 100%; height: 46px; }
    .sc-cart { padding: 0 .6rem; height: 44px; }

    .sc-hero { padding: 1rem 0; }
    .sc-finder { padding: 1.2rem 1rem; }
    .sc-slide { grid-template-columns: 1fr; min-height: 0; padding: 1.6rem 1.4rem; text-align: start; }
    .sc-slide__art { position: absolute; inset-inline-end: -40px; bottom: -40px; min-height: 0; opacity: .25; }
    .sc-slide__art > i { font-size: 8rem; }
    .sc-gear { width: 220px; }
    .sc-slide__badge { width: 46px; height: 46px; font-size: 1.4rem; margin-bottom: .8rem; }
    .sc-slide__kicker { font-size: 1.1rem; }
    .sc-slide__sub { font-size: .98rem; margin-bottom: 1.1rem; }

    .sc-section { padding: 2rem 0; }
    .sc-cats { grid-template-columns: repeat(4, 1fr); gap: .6rem; }
    .sc-cat { padding: .8rem .25rem; font-size: .82rem; }
    .sc-cat__icon { width: 48px; height: 48px; font-size: 1.35rem; }
    .sc-products { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .sc-product { padding: .7rem; }
    .sc-product__img { font-size: 2.6rem; }
    .sc-product__price strong { font-size: 1.05rem; }

    .sc-chat { bottom: 14px; inset-inline-end: 14px; }
    .sc-chat__card { position: fixed; bottom: 92px; inset-inline: 14px; width: auto; }
    .sc-chat__fab { width: 56px; height: 56px; font-size: 1.5rem; }
}

@media (max-width: 420px) {
    .sc-vin { flex-direction: column; }
    .sc-vin .sc-btn { width: 100%; }
    .sc-benefits ul { grid-template-columns: 1fr; }
    .sc-benefits li { border-inline-start: 0 !important; border-top: 1px solid #2c2c32; }
    .sc-benefits li:first-child { border-top: 0; }
    .sc-cats { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   SHARED BITS ADDED FOR DB-DRIVEN PAGES
   ========================================================= */
.sc-btn--disabled { background: #EDEDEF; color: var(--sc-muted); cursor: not-allowed; }
.sc-empty { text-align: center; color: var(--sc-muted); }
.sc-more { text-align: center; margin-top: 2rem; }
.sc-product__img { text-decoration: none; overflow: hidden; }
.sc-product__img img { width: 100%; height: 100%; object-fit: contain; }
.sc-product__name a:hover { color: var(--sc-red); }
.sc-slide__img { position: relative; z-index: 2; max-width: 90%; max-height: 340px; object-fit: contain; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }
.sc-cat__icon img { width: 60%; height: 60%; object-fit: contain; }

.sc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; color: var(--sc-muted); margin-bottom: 1rem; }
.sc-crumbs a:hover { color: var(--sc-red); }
.sc-crumbs i { font-size: .7rem; }
.sc-crumbs span { color: var(--sc-text); font-weight: 600; }

.sc-notice {
    display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1rem; padding: .85rem 1rem;
    background: var(--sc-red-50); border: 1px solid rgba(230,1,22,.25); border-radius: var(--sc-radius-sm);
    color: var(--sc-ink); font-weight: 600;
}
.sc-notice i { color: var(--sc-red); margin-top: .2rem; }

/* =========================================================
   LISTING (search / category)
   ========================================================= */
.sc-listing { padding: 1.5rem 0 3rem; }
.sc-listing__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sc-listing__head h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; margin: 0; }
.sc-listing__count { margin: 0; color: var(--sc-muted); }

.sc-sort { display: flex; align-items: center; gap: .6rem; }
.sc-sort label { font-weight: 600; font-size: .9rem; color: var(--sc-muted); white-space: nowrap; }
.sc-sort select {
    height: 44px; min-width: 190px; padding-inline: 1rem 2.4rem; border: 1px solid var(--sc-line); border-radius: var(--sc-radius-sm);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%231B1B1F' stroke-width='2' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E") no-repeat left 14px center;
    appearance: none; -webkit-appearance: none; font-family: inherit; font-size: .95rem;
}

.sc-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.sc-chip {
    display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem;
    background: #fff; border: 1px solid var(--sc-line); border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.sc-chip:hover { border-color: var(--sc-red); }
.sc-chip--vehicle { background: var(--sc-ink); color: #fff; border-color: var(--sc-ink); }
.sc-chip--vehicle:hover { color: #fff; background: var(--sc-red); border-color: var(--sc-red); }
.sc-chip--vehicle .bi-car-front-fill { color: var(--sc-red); }
.sc-chip--vehicle:hover .bi-car-front-fill { color: #fff; }

.sc-listing__grid { display: grid; grid-template-columns: 260px 1fr; gap: 1.25rem; align-items: start; }

.sc-filters { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 190px; }
.sc-filter { background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: .4rem 1rem; }
.sc-filter summary { padding: .6rem 0; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.sc-filter summary::-webkit-details-marker { display: none; }
.sc-filter summary::after { content: "−"; color: var(--sc-red); font-weight: 900; }
.sc-filter:not([open]) summary::after { content: "+"; }
.sc-filter ul { list-style: none; margin: 0 0 .6rem; padding: 0; }
.sc-filter li a {
    display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem; border-radius: 6px; font-size: .93rem;
}
.sc-filter li a i { color: var(--sc-steel); }
.sc-filter li a .sc-filter__img { flex: 0 0 36px; width: 36px; height: 36px; object-fit: contain; }
.sc-filter li a span { margin-inline-start: auto; font-size: .78rem; color: var(--sc-muted); background: var(--sc-bg); border-radius: 999px; padding: 0 .5rem; }
.sc-filter li a:hover { background: var(--sc-bg); color: var(--sc-text); }
.sc-filter li a.is-active { background: var(--sc-red-50); color: var(--sc-red); font-weight: 700; }
.sc-filter li a.is-active i { color: var(--sc-red); }
.sc-filter--vehicle { background: var(--sc-ink); color: #fff; border: 0; padding: 1rem; }
.sc-filter--vehicle p { font-weight: 600; font-size: .92rem; }
.sc-filter--vehicle i { color: var(--sc-red); }

/* قايمة الأقسام والماركات: كل قايمة بطول ثابت وليها scroll، والعمود نفسه من غير scroll، وطوله بيتظبط على طول المنتجات من site.js */
@media (min-width: 992px) {
    .sc-filters { position: static; }
    .sc-filter ul { max-height: 300px; overflow-y: auto; scrollbar-width: thin; }
}

.sc-products--listing { grid-template-columns: repeat(4, 1fr); }

.sc-empty-state {
    text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed var(--sc-silver-2); border-radius: var(--sc-radius);
}
.sc-empty-state > i { font-size: 3rem; color: var(--sc-silver-2); }
.sc-empty-state h2 { font-size: 1.3rem; font-weight: 800; margin: .5rem 0; }
.sc-empty-state p { color: var(--sc-muted); }

.sc-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2rem; }
.sc-pager a, .sc-pager span {
    min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 .6rem;
    background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius-sm); font-weight: 700;
}
.sc-pager a:hover { border-color: var(--sc-red); }
.sc-pager .is-active { background: var(--sc-red); border-color: var(--sc-red); color: #fff; }
.sc-pager .sc-pager__gap { border: 0; background: none; }

/* =========================================================
   PRODUCT DETAILS
   ========================================================= */
.sc-pd { padding: 1.5rem 0 3rem; }
.sc-pd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 1.5rem; }
.sc-pd__media {
    position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--sc-radius);
    background: radial-gradient(circle at 50% 40%, #fff, #EDEDEF); overflow: hidden;
}
.sc-pd__media > i { font-size: clamp(6rem, 14vw, 10rem); color: var(--sc-ink); }
.sc-pd__media img { width: 100%; height: 100%; object-fit: contain; }
.sc-pd__info h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; margin: .2rem 0 1rem; line-height: 1.4; }
.sc-pd__codes { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.2rem; }
.sc-pd__codes div { display: flex; gap: .4rem; }
.sc-pd__codes dt { color: var(--sc-muted); font-weight: 600; }
.sc-pd__codes dd { margin: 0; font-weight: 700; }
.sc-pd__price { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .6rem; }
.sc-pd__price strong { font-size: 2rem; font-weight: 900; color: var(--sc-red); }
.sc-pd__price del { color: var(--sc-muted); }
.sc-stock { font-weight: 700; margin-bottom: 1rem; }
.sc-stock--in { color: #12804A; }
.sc-stock--out { color: var(--sc-red); }
.sc-pd__cta { width: 100%; max-width: 380px; margin-bottom: .6rem; }
.sc-pd__perks { list-style: none; margin: 1.2rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--sc-line); display: grid; gap: .5rem; }
.sc-pd__perks i { color: var(--sc-red); margin-inline-end: .4rem; }
.sc-pd__block { margin-top: 2rem; }
.sc-pd__block h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; padding-inline-start: .8rem; border-inline-start: 4px solid var(--sc-red); }
.sc-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); }
.sc-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.sc-table th { background: var(--sc-ink); color: #fff; font-weight: 700; padding: .75rem 1rem; text-align: start; }
.sc-table td { padding: .65rem 1rem; border-top: 1px solid var(--sc-line); }
.sc-table tbody tr:nth-child(even) { background: #FAFAFB; }

@media (max-width: 1199.98px) {
    .sc-products--listing { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
    .sc-listing__grid { grid-template-columns: 1fr; }
    .sc-filters { position: static; }
    .sc-filter ul { display: flex; flex-wrap: wrap; gap: .4rem; }
    .sc-filter li a { border: 1px solid var(--sc-line); border-radius: 999px; padding: .3rem .7rem; }
    .sc-pd__grid { grid-template-columns: 1fr; padding: 1rem; }
    .sc-pd__media { max-height: 380px; aspect-ratio: auto; height: 300px; }
}
@media (max-width: 767.98px) {
    .sc-products--listing { grid-template-columns: repeat(2, 1fr); }
    .sc-sort { width: 100%; }
    .sc-sort select { flex: 1; min-width: 0; }
    .sc-pd__cta { max-width: none; }
}
.sc-pd__media .sc-product__off { top: 1rem; inset-inline-end: 1rem; font-size: .95rem; padding: .1rem .6rem; }

/* معرض صور المنتج */
.sc-pd__gallery { min-width: 0; }
.sc-pd__thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.sc-pd__thumb { flex: 0 0 72px; height: 72px; padding: 4px; border: 2px solid var(--sc-line); border-radius: 10px; background: #fff; cursor: pointer; }
.sc-pd__thumb img { width: 100%; height: 100%; object-fit: contain; }
.sc-pd__thumb:hover { border-color: #A9ABAF; }
.sc-pd__thumb.is-active { border-color: var(--sc-red); }
.sc-pd__thumb:focus-visible { outline: 3px solid var(--sc-red); outline-offset: 2px; }
@media (max-width: 575.98px) { .sc-pd__thumb { flex-basis: 60px; height: 60px; } }

/* =========================================================
   LANGUAGE SWITCH
   ========================================================= */
.sc-topbar__end { display: flex; align-items: center; gap: 1.2rem; }
.sc-lang {
    display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .7rem;
    border: 1px solid #3a3a41; border-radius: 999px; color: var(--sc-silver); font-weight: 700; font-size: .85rem;
}
.sc-lang:hover { color: #fff; border-color: var(--sc-red); }
.sc-lang i { color: var(--sc-red); }
.sc-lang--compact { height: 40px; padding: 0 .7rem; font-size: .8rem; }
.sc-lang--block { display: flex; justify-content: center; margin-top: 1rem; padding: .6rem; font-size: .95rem; }

/* =========================================================
   COMING SOON (mobile app)
   ========================================================= */
.sc-btn--soon {
    background: rgba(255,255,255,.1); color: var(--sc-silver); border: 2px dashed var(--sc-silver-2);
    cursor: default; box-shadow: none;
}
.sc-slide--silver .sc-btn--soon { color: var(--sc-ink); border-color: var(--sc-steel); background: rgba(255,255,255,.5); }
.sc-slide--red .sc-btn--soon { color: #fff; border-color: rgba(255,255,255,.7); }
.sc-slide__ribbon {
    position: absolute; z-index: 3; top: 18%; inset-inline-end: 10%;
    padding: .3rem 1rem; border-radius: 999px; background: var(--sc-red); color: #fff;
    font-weight: 800; font-size: 1rem; box-shadow: 0 8px 20px rgba(230,1,22,.4);
    transform: rotate(-8deg);
}
[dir="ltr"] .sc-slide__ribbon { transform: rotate(8deg); }
.sc-soon {
    display: inline-block; margin-inline-start: .4rem; padding: 0 .5rem; border-radius: 6px;
    background: var(--sc-red); color: #fff; font-size: .72rem; font-weight: 700; vertical-align: middle;
}
.sc-stores { display: flex; flex-wrap: wrap; gap: .5rem; }
.sc-store {
    display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem;
    border: 1px solid #333; border-radius: 8px; color: var(--sc-steel); font-size: .85rem; font-weight: 600;
    cursor: default; user-select: none;
}

/* =========================================================
   LTR (English) – only the bits logical properties can't cover
   ========================================================= */
[dir="ltr"] .sc-flip { display: inline-block; transform: scaleX(-1); }
[dir="ltr"] .sc-mainbar { background: linear-gradient(270deg, rgba(230,1,22,.12), transparent 30%), var(--sc-ink); }
[dir="ltr"] .sc-step__select { background-position: right 16px center; }
[dir="ltr"] .sc-sort select { background-position: right 14px center; }
[dir="ltr"] .sc-modal .btn-close { margin: 0 0 0 auto; }
[dir="ltr"] .sc-slide__kicker,
[dir="ltr"] .sc-section__title,
[dir="ltr"] .sc-listing__head h1 { letter-spacing: -.01em; }
@media (max-width: 767.98px) {
    .sc-slide__ribbon { display: none; } /* the button already says "coming soon" */
}

/* =========================================================
   AUTH (SMS login)
   ========================================================= */
.sc-auth { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 3rem 16px; background: radial-gradient(circle at 50% 0%, rgba(230,1,22,.08), transparent 60%), var(--sc-bg); }
.sc-auth__card {
    width: 100%; max-width: 440px; min-width: 0; padding: 2rem 1.8rem; background: #fff; border: 1px solid var(--sc-line);
    border-radius: 16px; box-shadow: var(--sc-shadow); border-top: 4px solid var(--sc-red);
}
.sc-auth__logo { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; display: block; margin: 0 auto 1rem; }
.sc-auth h1 { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: .3rem; }
.sc-auth__lead { text-align: center; color: var(--sc-muted); margin-bottom: 1.4rem; }
.sc-auth__masked { font-weight: 800; color: var(--sc-ink); }
.sc-auth__label { display: block; font-weight: 700; margin-bottom: .4rem; }
.sc-auth__phone { display: flex; height: 54px; border: 2px solid var(--sc-line); border-radius: var(--sc-radius-sm); overflow: hidden; direction: ltr; }
.sc-auth__phone:focus-within { border-color: var(--sc-red); }
.sc-auth__cc { display: grid; place-items: center; padding: 0 .9rem; background: var(--sc-bg); font-weight: 700; border-inline-end: 1px solid var(--sc-line); white-space: nowrap; }
.sc-auth__phone input { flex: 1; min-width: 0; width: 100%; border: 0; padding: 0 1rem; font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; font-family: inherit; }
.sc-auth__phone input:focus { outline: none; }
.sc-auth__code {
    width: 100%; height: 62px; border: 2px solid var(--sc-line); border-radius: var(--sc-radius-sm);
    text-align: center; font-size: 1.8rem; font-weight: 800; letter-spacing: .6em; font-family: inherit; padding-inline-start: .6em;
}
.sc-auth__code:focus { outline: none; border-color: var(--sc-red); }
.sc-auth__error { display: block; min-height: 1.4rem; color: var(--sc-red); font-weight: 600; font-size: .88rem; margin: .3rem 0 .4rem; }
.sc-auth__check { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-weight: 600; cursor: pointer; }
.sc-auth__check input { width: 18px; height: 18px; accent-color: var(--sc-red); }
.sc-auth__note { margin: 1.2rem 0 0; text-align: center; font-size: .85rem; color: var(--sc-muted); }
.sc-auth__actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.sc-auth__bigicon { font-size: 3.4rem; color: var(--sc-red); }
.sc-linkbtn { background: none; border: 0; padding: 0; color: var(--sc-red); font-weight: 700; font-family: inherit; cursor: pointer; }
.sc-linkbtn:hover { text-decoration: underline; }
.sc-devcode { margin-bottom: 1rem; padding: .7rem .9rem; border: 2px dashed #E3A008; border-radius: 8px; background: #FFF8E1; font-size: .88rem; }
.sc-devcode strong { background: #E3A008; color: #fff; padding: 0 .4rem; border-radius: 4px; margin-inline-end: .3rem; }
.sc-devcode span { display: block; margin-top: .3rem; font-weight: 700; }

/* account dropdown */
.sc-icon-btn--active { color: #fff; }
.sc-icon-btn--active i { color: var(--sc-red); }
.sc-dropdown { min-width: 220px; font-family: var(--sc-font); }
.sc-dropdown__who { padding: .4rem 1rem .5rem; font-weight: 700; color: var(--sc-muted); font-size: .9rem; }
.sc-dropdown .dropdown-item { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.sc-dropdown .dropdown-item:active { background: var(--sc-red); }
@media (max-width: 420px) { .sc-auth__card { padding: 1.5rem 1.1rem; } .sc-auth { padding: 1.5rem 12px; } }

/* ===== Images ===== */
.sc-cat__icon--img { background: radial-gradient(circle at 50% 40%, #fff, #EDEDEF); border: 2px solid var(--sc-line); width: 84px; height: 84px; }
.sc-cat__icon--img img { width: 82%; height: 82%; object-fit: contain; transition: transform .25s; }
.sc-cat:hover .sc-cat__icon--img { background: radial-gradient(circle at 50% 40%, #fff, #FFE3E6); border-color: var(--sc-red); }
.sc-cat:hover .sc-cat__icon--img img { transform: scale(1.08) rotate(-4deg); }
.sc-product__img img { padding: 6%; transition: transform .25s; }
.sc-product:hover .sc-product__img img { transform: scale(1.05); }
.sc-pd__media img { padding: 8%; }
.sc-slide__img { width: 100%; max-width: 520px; max-height: 360px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.sc-slide--silver .sc-slide__img { filter: drop-shadow(0 18px 30px rgba(0,0,0,.18)); }
/* with a real picture the decorative gear is just noise */
.sc-slide__art:has(.sc-slide__img) .sc-gear { opacity: .18; }
@media (max-width: 767.98px) {
    .sc-cat__icon--img { width: 60px; height: 60px; }
    .sc-slide__art:has(.sc-slide__img) { opacity: .35; inset-inline-end: -60px; bottom: -30px; width: 70%; }
}

/* =========================================================
   INFO PAGES (returns / shipping / FAQ)
   ========================================================= */
.sc-info { padding: 1.5rem 0 3rem; }
.sc-info__grid { display: grid; grid-template-columns: 1fr 300px; gap: 1.25rem; align-items: start; }
.sc-info__card { background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 2rem; min-width: 0; }
.sc-info__head { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--sc-line); }
.sc-info__head h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; margin: 0 0 .3rem; }
.sc-info__head p { margin: 0; color: var(--sc-muted); font-size: 1.05rem; }
.sc-info__icon { flex: 0 0 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: var(--sc-red); color: #fff; font-size: 1.7rem; box-shadow: 0 8px 20px rgba(230,1,22,.3); }
.sc-info__updated { margin: 1.5rem 0 0; font-size: .85rem; color: var(--sc-muted); }
.sc-info__side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 190px; }
.sc-info__nav, .sc-info__help { background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 1rem; }
.sc-info__nav h2, .sc-info__help h2 { font-size: 1rem; font-weight: 800; margin: 0 0 .6rem; }
.sc-info__nav a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 8px; font-weight: 600; }
.sc-info__nav a:hover { background: var(--sc-bg); color: var(--sc-text); }
.sc-info__nav a.is-active { background: var(--sc-red-50); color: var(--sc-red); font-weight: 800; }
.sc-info__nav a i { color: var(--sc-red); }
.sc-info__help { background: var(--sc-ink); color: #fff; border: 0; display: flex; flex-direction: column; gap: .6rem; }
.sc-info__help p { margin: 0; color: var(--sc-silver-2); }
.sc-info__help .sc-btn { min-height: 44px; }
.sc-info__help .sc-btn--outline { background: transparent; color: #fff; border-color: #3a3a41; }
.sc-info__help .sc-btn--outline:hover { border-color: #25D366; background: #25D366; }

.sc-prose { font-size: 1.02rem; line-height: 1.9; }
.sc-prose h2 { font-size: 1.2rem; font-weight: 800; margin: 1.6rem 0 .6rem; padding-inline-start: .7rem; border-inline-start: 4px solid var(--sc-red); }
.sc-prose h2:first-child { margin-top: 0; }
.sc-prose p { margin: 0 0 .8rem; }
.sc-prose ul, .sc-prose ol { margin: 0 0 1rem; padding-inline-start: 1.4rem; }
.sc-prose li { margin-bottom: .3rem; }
.sc-prose ul li::marker { color: var(--sc-red); }
.sc-prose ol { counter-reset: step; list-style: none; padding-inline-start: 0; }
.sc-prose ol li { counter-increment: step; position: relative; padding-inline-start: 2.6rem; min-height: 2rem; margin-bottom: .6rem; }
.sc-prose ol li::before {
    content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%;
    display: grid; place-items: center; background: var(--sc-ink); color: #fff; font-weight: 800; font-size: .9rem;
}
.sc-prose strong { color: var(--sc-ink); }

.sc-faq__group { font-size: 1.1rem; font-weight: 800; margin: 1.6rem 0 .7rem; color: var(--sc-red); }
.sc-faq__group:first-of-type { margin-top: 0; }
.sc-faq { display: flex; flex-direction: column; gap: .5rem; }
.sc-faq__item { border: 1px solid var(--sc-line); border-radius: 10px; background: #fff; transition: border-color .2s; }
.sc-faq__item[open] { border-color: var(--sc-red); box-shadow: 0 4px 14px rgba(230,1,22,.08); }
.sc-faq__item summary {
    list-style: none; cursor: pointer; padding: .9rem 1rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem;
}
.sc-faq__item summary::-webkit-details-marker { display: none; }
.sc-faq__item summary::after { content: "+"; flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sc-bg); color: var(--sc-red); font-weight: 900; }
.sc-faq__item[open] summary::after { content: "−"; background: var(--sc-red); color: #fff; }
.sc-faq__item .sc-prose { padding: 0 1rem .9rem; color: #3a3a40; }

.sc-topbar__list a { color: inherit; }
.sc-topbar__list a:hover { color: #fff; }
.sc-pd__perks a { color: inherit; }
.sc-pd__perks a:hover { color: var(--sc-red); }

@media (max-width: 991.98px) {
    .sc-info__grid { grid-template-columns: 1fr; }
    .sc-info__side { position: static; }
}
@media (max-width: 575.98px) {
    .sc-info__card { padding: 1.2rem 1rem; }
    .sc-info__head { flex-direction: column; }
    .sc-info__icon { flex: none; width: 52px; height: 52px; font-size: 1.4rem; }
}

/* =========================================================
   CART / CHECKOUT / ORDERS
   ========================================================= */
.sc-cartpage { padding: 1.5rem 0 3rem; }
.sc-page-title, .sc-cartpage h1 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 900; margin: 0 0 1rem; }
.sc-cartpage h1 small { font-size: .9rem; color: var(--sc-muted); font-weight: 600; }

/* steps */
.sc-steps { display: flex; gap: .5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: none; }
.sc-steps li { flex: 1; display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; background: #fff; border: 1px solid var(--sc-line); border-radius: 10px; font-weight: 700; color: var(--sc-muted); font-size: .92rem; }
.sc-steps li a { display: flex; align-items: center; gap: .5rem; color: inherit; }
.sc-steps span { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sc-bg); color: var(--sc-muted); font-size: .85rem; }
.sc-steps .is-current { border-color: var(--sc-red); color: var(--sc-ink); }
.sc-steps .is-current span { background: var(--sc-red); color: #fff; }
.sc-steps .is-done span { background: var(--sc-ink); color: #fff; }

.sc-cartpage__grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.25rem; align-items: start; }

/* lines */
.sc-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.sc-line { display: grid; grid-template-columns: 76px 1fr auto auto auto; gap: .9rem; align-items: center; padding: .8rem; background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); }
.sc-line.is-problem { border-color: var(--sc-red); background: var(--sc-red-50); }
.sc-line__img { width: 76px; height: 76px; border-radius: 10px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff, #EDEDEF); font-size: 1.8rem; overflow: hidden; }
.sc-line__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.sc-line__info { display: flex; flex-direction: column; min-width: 0; }
.sc-line__name { font-weight: 700; }
.sc-line__info small { color: var(--sc-muted); }
.sc-line__warn { color: var(--sc-red) !important; font-weight: 700; }
.sc-line__qty { color: var(--sc-muted); font-weight: 700; }
.sc-line__total { white-space: nowrap; }
.sc-line__remove { width: 38px; height: 38px; border: 1px solid var(--sc-line); background: #fff; border-radius: 8px; color: var(--sc-muted); }
.sc-line__remove:hover { color: var(--sc-red); border-color: var(--sc-red); }
.sc-qty { display: flex; align-items: center; border: 1px solid var(--sc-line); border-radius: 8px; overflow: hidden; }
.sc-qty button { width: 36px; height: 38px; border: 0; background: var(--sc-bg); font-size: 1.1rem; font-weight: 800; }
.sc-qty button:hover:not(:disabled) { background: var(--sc-red); color: #fff; }
.sc-qty button:disabled { opacity: .4; }
.sc-qty span { min-width: 38px; text-align: center; font-weight: 800; }

/* summary */
.sc-summary { position: sticky; top: 190px; background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .8rem; }
.sc-summary h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.sc-summary .sc-btn { min-height: 52px; }
.sc-summary__continue { text-align: center; font-weight: 700; color: var(--sc-red); }
.sc-summary__secure { margin: 0; font-size: .85rem; color: var(--sc-muted); text-align: center; }
.sc-promo-form label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: .3rem; }
.sc-promo-form div { display: flex; gap: .4rem; }
.sc-promo-form input { flex: 1; min-width: 0; height: 44px; border: 1px dashed var(--sc-silver-2); border-radius: 8px; padding: 0 .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-family: inherit; }
.sc-promo-form input:focus { outline: none; border-color: var(--sc-red); border-style: solid; }
.sc-promo-form .sc-btn { min-height: 44px; padding-inline: 1rem; }
.sc-promo-applied { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; background: #E8F7EE; border: 1px dashed #12804A; border-radius: 8px; }
.sc-promo-applied i { color: #12804A; }
.sc-promo-ok { margin: 0; color: #12804A; font-weight: 700; font-size: .9rem; }
.sc-totals { margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.sc-totals > div { display: flex; justify-content: space-between; gap: 1rem; }
.sc-totals dt { font-weight: 600; color: var(--sc-muted); }
.sc-totals dd { margin: 0; font-weight: 700; }
.sc-totals__discount dd, .sc-totals__discount dt { color: #12804A; }
.sc-totals__total { padding-top: .6rem; border-top: 1px solid var(--sc-line); }
.sc-totals__total dt { color: var(--sc-ink); font-weight: 800; font-size: 1.05rem; }
.sc-totals__total dd { color: var(--sc-red); font-weight: 900; font-size: 1.35rem; }
.sc-mini { list-style: none; margin: 0; padding: 0 0 .6rem; border-bottom: 1px solid var(--sc-line); display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; }
.sc-mini li { display: flex; justify-content: space-between; gap: .8rem; }
.sc-mini small { color: var(--sc-muted); }

/* checkout form */
.sc-checkout { min-width: 0; }
.sc-fieldset { background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 1.2rem; margin-bottom: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.sc-fieldset legend { float: left; width: 100%; grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; font-weight: 800; margin-bottom: .6rem; padding: 0; }
.sc-fieldset legend span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sc-red); color: #fff; font-size: .85rem; }
.sc-field { display: flex; flex-direction: column; min-width: 0; }
.sc-field--full { grid-column: 1 / -1; }
.sc-field label { font-weight: 700; font-size: .92rem; margin-bottom: .3rem; }
.sc-field label small { color: var(--sc-muted); font-weight: 600; }
.sc-field input, .sc-field select, .sc-field textarea {
    width: 100%; min-height: 48px; padding: .6rem .9rem; border: 1.5px solid var(--sc-line); border-radius: 10px;
    font-family: inherit; font-size: 1rem; background: #fff; color: var(--sc-text);
}
.sc-field textarea { resize: vertical; line-height: 1.7; }
.sc-field input:focus, .sc-field select:focus, .sc-field textarea:focus { outline: none; border-color: var(--sc-red); box-shadow: 0 0 0 3px rgba(230,1,22,.1); }
.sc-field .input-validation-error, .sc-field input[aria-invalid="true"] { border-color: var(--sc-red); background: var(--sc-red-50); }
.sc-field__hint { color: var(--sc-muted); font-size: .82rem; margin-top: .2rem; }
.sc-paylist { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.sc-payopt { display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; border: 1.5px solid var(--sc-line); border-radius: 10px; font-weight: 700; cursor: pointer; }
.sc-payopt:has(input:checked) { border-color: var(--sc-red); background: var(--sc-red-50); }
.sc-payopt input { width: 18px; height: 18px; accent-color: var(--sc-red); }
.sc-payopt.is-disabled { opacity: .55; cursor: not-allowed; }
.sc-payopt .sc-soon { margin-inline-start: auto; }

/* done */
.sc-done { text-align: center; background: #fff; border: 1px solid var(--sc-line); border-radius: 16px; padding: 2rem 1rem; margin-bottom: 1.25rem; border-top: 4px solid #12804A; }
.sc-done__icon { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: #12804A; color: #fff; font-size: 2.4rem; box-shadow: 0 10px 26px rgba(18,128,74,.3); }
.sc-done__lead { color: var(--sc-muted); font-size: 1.05rem; }
.sc-done__number { font-size: 1.1rem; }
.sc-done__number strong { color: var(--sc-red); font-size: 1.3rem; letter-spacing: .03em; }
.sc-done__mail { color: var(--sc-muted); }
.sc-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }

/* order pages */
.sc-order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; align-items: start; }
.sc-panel-box { background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 1.2rem; margin-bottom: 1.25rem; }
.sc-panel-box h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 1rem; }
.sc-panel-box .sc-totals { margin-top: 1rem; }
.sc-order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.sc-order-head h1 { margin: 0; }
.sc-order-head p { margin: .2rem 0 0; color: var(--sc-muted); }
.sc-order-head__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.sc-address { font-style: normal; line-height: 1.9; margin-bottom: .8rem; }
.sc-address__notes { background: var(--sc-bg); padding: .6rem .8rem; border-radius: 8px; }
.sc-btn--danger { color: var(--sc-red); border-color: var(--sc-line); }
.sc-btn--danger:hover { background: var(--sc-red); color: #fff; border-color: var(--sc-red); }

/* status badges */
.sc-status { display: inline-block; padding: .1rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 800; background: var(--sc-bg); color: var(--sc-ink); white-space: nowrap; }
.sc-status--new { background: #FFF1F2; color: var(--sc-red); }
.sc-status--awaitingconfirmation { background: #FFF8E1; color: #9A6B00; }
.sc-status--preparing { background: #E8F0FE; color: #1F4FB5; }
.sc-status--shipped, .sc-status--outfordelivery { background: #EDE7FF; color: #5B3CC4; }
.sc-status--delivered { background: #E8F7EE; color: #12804A; }
.sc-status--cancelled { background: #EDEDEF; color: var(--sc-muted); text-decoration: line-through; }

/* timeline */
.sc-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.sc-timeline__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 0 .2rem; }
.sc-timeline__step::before { content: ""; position: absolute; top: 17px; inset-inline-start: 50%; width: 100%; height: 4px; background: var(--sc-line); z-index: 0; }
.sc-timeline__step:last-child::before { display: none; }
.sc-timeline__step.is-done::before { background: var(--sc-ink); }
.sc-timeline__dot { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--sc-line); color: var(--sc-muted); font-weight: 800; }
.is-done .sc-timeline__dot { background: var(--sc-ink); border-color: var(--sc-ink); color: #fff; }
.is-current .sc-timeline__dot { background: var(--sc-red); border-color: var(--sc-red); color: #fff; box-shadow: 0 0 0 6px rgba(230,1,22,.15); }
.sc-timeline__label { font-weight: 700; font-size: .85rem; }
.is-current .sc-timeline__label { color: var(--sc-red); }
.sc-timeline__time { font-size: .75rem; color: var(--sc-muted); direction: ltr; }
.sc-timeline__cancelled { display: flex; align-items: center; gap: .8rem; padding: 1rem; background: var(--sc-bg); border-radius: 10px; }
.sc-timeline__cancelled i { font-size: 1.8rem; color: var(--sc-muted); }
.sc-timeline__cancelled span { display: block; color: var(--sc-muted); font-size: .85rem; direction: ltr; text-align: start; }
.sc-timeline__notes { list-style: none; margin: 1rem 0 0; padding: .8rem; background: var(--sc-bg); border-radius: 8px; display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.sc-timeline__notes span { color: var(--sc-muted); direction: ltr; display: inline-block; margin-inline-end: .5rem; }

/* my orders */
.sc-orders { display: flex; flex-direction: column; gap: .6rem; }
.sc-order-card { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 1rem; align-items: center; padding: .9rem 1rem; background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); color: var(--sc-text); }
.sc-order-card:hover { border-color: var(--sc-red); box-shadow: var(--sc-shadow); color: var(--sc-text); }
.sc-order-card__thumbs { display: flex; }
.sc-order-card__thumbs span { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; background: radial-gradient(circle at 50% 40%, #fff, #EDEDEF); display: grid; place-items: center; margin-inline-start: -12px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.sc-order-card__thumbs span:first-child { margin-inline-start: 0; }
.sc-order-card__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.sc-order-card__info { display: flex; flex-direction: column; }
.sc-order-card__info small { color: var(--sc-muted); }
.sc-order-card__total { white-space: nowrap; }

/* track */
.sc-track { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 1.25rem; align-items: start; }
.sc-track__card { margin: 0; }
.sc-track__card .sc-info__icon { margin: 0 auto 1rem; }
.sc-track__input { width: 100%; height: 50px; border: 2px solid var(--sc-line); border-radius: 10px; padding: 0 1rem; font-size: 1.05rem; font-weight: 700; font-family: inherit; margin-bottom: .8rem; }
.sc-track__input:focus { outline: none; border-color: var(--sc-red); }
.sc-track__result h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sc-track__meta { margin: 1rem 0 0; color: var(--sc-muted); }

/* toast + cart bump */
.sc-toast {
    position: fixed; z-index: 1100; bottom: 24px; inset-inline-start: 50%; transform: translate(-50%, 140%);
    display: flex; align-items: center; gap: .7rem; padding: .8rem 1.1rem; border-radius: 12px; background: var(--sc-ink); color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.25); font-weight: 700; transition: transform .25s; max-width: calc(100vw - 32px);
}
[dir="rtl"] .sc-toast { transform: translate(50%, 140%); }
.sc-toast.is-visible { transform: translate(-50%, 0); }
[dir="rtl"] .sc-toast.is-visible { transform: translate(50%, 0); }
.sc-toast i { color: #3DDC84; font-size: 1.2rem; }
.sc-toast.is-error i { color: #FFB020; }
.sc-toast a { color: #fff; text-decoration: underline; white-space: nowrap; }
.sc-cart__count.is-bump { animation: sc-bump .4s; }
@keyframes sc-bump { 50% { transform: scale(1.5); } }
.sc-pd__buy { display: flex; gap: .5rem; max-width: 380px; margin-bottom: .6rem; }
.sc-pd__buy .sc-pd__cta { margin: 0; flex: 1; }
.sc-pd__qty { width: 80px; min-height: 48px; border: 1.5px solid var(--sc-line); border-radius: 8px; text-align: center; font-weight: 800; font-size: 1.05rem; font-family: inherit; }
.sc-product form { margin: 0; }

@media (max-width: 991.98px) {
    .sc-cartpage__grid, .sc-order-grid, .sc-track { grid-template-columns: 1fr; }
    .sc-summary { position: static; }
}
@media (max-width: 767.98px) {
    .sc-steps li { font-size: 0; justify-content: center; padding: .5rem; }
    .sc-steps li a { font-size: 0; }
    .sc-steps .is-current { font-size: .85rem; }
    .sc-line { grid-template-columns: 64px 1fr auto; grid-template-areas: "img info remove" "img qty total"; gap: .4rem .8rem; }
    .sc-line__img { grid-area: img; width: 64px; height: 64px; }
    .sc-line__info { grid-area: info; }
    .sc-line .sc-qty, .sc-line__qty { grid-area: qty; justify-self: start; }
    .sc-line__total { grid-area: total; justify-self: end; }
    .sc-line > form:last-child { grid-area: remove; justify-self: end; }
    .sc-fieldset { grid-template-columns: 1fr; padding: 1rem; }
    .sc-timeline { grid-template-columns: 1fr; gap: .2rem; }
    .sc-timeline__step { flex-direction: row; text-align: start; gap: .7rem; padding: .2rem 0; }
    .sc-timeline__step::before { top: 38px; inset-inline-start: 17px; width: 4px; height: calc(100% - 20px); }
    .sc-timeline__time { margin-inline-start: auto; }
    .sc-order-card { grid-template-columns: auto 1fr auto; }
    .sc-order-card__total, .sc-order-card > .bi { display: none; }
}

/* =========================================================
   CATEGORY TILES (home, /car-parts, sub-categories)
   صورة ← خط بنقطة حمرا ← الاسم
   ========================================================= */
.sc-ptiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; }
.sc-ptile {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 1.4rem 1.2rem 1.5rem; background: var(--sc-card); border: 1px solid transparent; border-radius: 4px;
    color: var(--sc-text); transition: border-color .2s, box-shadow .2s;
}
.sc-ptile:hover { border-color: var(--sc-red); box-shadow: var(--sc-shadow); color: var(--sc-text); }
.sc-ptile__img { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.sc-ptile__img img { width: 92%; height: 92%; object-fit: contain; transition: transform .25s; }
.sc-ptile:hover .sc-ptile__img img { transform: scale(1.05); }
.sc-ptile__img i { font-size: 3.5rem; color: var(--sc-ink); }
.sc-ptile__dot { position: relative; width: 100%; height: 1px; background: var(--sc-line); margin: 1rem 0 1.3rem; }
.sc-ptile__dot::after {
    content: ""; position: absolute; inset-inline-start: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
    border-radius: 50%; background: var(--sc-red);
}
[dir="rtl"] .sc-ptile__dot::after { margin: -4px -4px 0 0; }
.sc-ptile__name { font-weight: 700; font-size: 1.05rem; line-height: 1.35; min-height: 2.7em; display: flex; align-items: center; }
.sc-ptiles--sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.sc-ptiles--sm .sc-ptile { padding: 1rem .8rem 1.1rem; }
.sc-ptiles--sm .sc-ptile__dot { margin: .7rem 0 .9rem; }
.sc-ptiles--sm .sc-ptile__name { font-size: .92rem; }
.sc-btn--more { min-width: 220px; justify-content: center; border-color: var(--sc-ink); color: var(--sc-ink); }
.sc-btn--more:hover { background: var(--sc-ink); border-color: var(--sc-ink); color: #fff; }
.sc-subcats { margin: 0 0 2rem; }
.sc-subcats__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 .9rem; }
.sc-catalogue-head { text-align: center; margin: .5rem 0 1.8rem; }
.sc-catalogue-head h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; margin-bottom: .4rem; }
.sc-catalogue-head p { color: var(--sc-muted); margin: 0; }
@media (max-width: 1199.98px) { .sc-ptiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
    .sc-ptiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
    .sc-ptile { padding: 1rem .6rem 1.1rem; }
    .sc-ptile__name { font-size: .92rem; }
    .sc-ptile__dot { margin: .7rem 0 .9rem; }
}
@media (max-width: 479.98px) {
    .sc-ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sc-ptiles--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* /car-parts: quick search by category (A–Z list) + groups */
.sc-catalogue { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.sc-ptiles--catalogue { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sc-quick {
    position: sticky; top: 1rem; background: var(--sc-card); border: 1px solid var(--sc-line); border-radius: 6px; padding: 1.2rem;
}
.sc-quick__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .8rem; }
.sc-quick__search { position: relative; margin-bottom: 1rem; }
.sc-quick__search input {
    width: 100%; height: 64px; padding: 0 1rem; padding-inline-end: 3.2rem; border: 1px solid #C9CCD3; border-radius: 4px;
    font-family: inherit; font-size: 1rem; background: #fff;
}
.sc-quick__search input:focus { outline: none; border-color: var(--sc-red); box-shadow: 0 0 0 3px rgba(230,1,22,.1); }
.sc-quick__search i { position: absolute; inset-inline-end: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--sc-ink); pointer-events: none; }
.sc-quick__list { max-height: min(70vh, 760px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.sc-quick__letter {
    position: sticky; top: 0; z-index: 1; padding: .9rem 1.2rem; background: #F6F7F9; border-bottom: 1px solid var(--sc-line);
    font-weight: 600;
}
.sc-quick__group ul { list-style: none; margin: 0; padding: .4rem 0; }
.sc-quick__group li a { display: flex; align-items: center; gap: 1.2rem; padding: .7rem 1.2rem; color: var(--sc-text); border-radius: 4px; }
.sc-quick__group li a:hover { background: var(--sc-red-50); color: var(--sc-red); }
.sc-quick__img { flex: 0 0 40px; height: 40px; display: grid; place-items: center; }
.sc-quick__img img { width: 100%; height: 100%; object-fit: contain; }
.sc-quick__img i { font-size: 1.4rem; color: var(--sc-ink); }
.sc-quick__empty { padding: 1rem 1.2rem; color: var(--sc-muted); margin: 0; }
[hidden] { display: none !important; }
@media (max-width: 1199.98px) {
    .sc-catalogue { grid-template-columns: 300px minmax(0, 1fr); }
    .sc-ptiles--catalogue { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .sc-catalogue { grid-template-columns: 1fr; }
    .sc-quick { position: static; }
    .sc-quick__list { max-height: 380px; }
    .sc-quick__search input { height: 52px; }
}
@media (max-width: 767.98px) { .sc-ptiles--catalogue { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .sc-ptiles--catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc-quick__search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* تتبع الشحنة عند شركة الشحن (صفحة الطلب / تتبع الطلب) */
.sc-shiptrack { display: grid; gap: .6rem; justify-items: start; margin-top: 1rem; padding: 1rem; border: 1px dashed var(--sc-silver-2); border-radius: var(--sc-radius); background: var(--sc-bg); }
.sc-shiptrack__title { margin: 0; font-weight: 800; }
.sc-shiptrack__title i { color: var(--sc-red); }
.sc-shiptrack__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sc-shiptrack__num { font-weight: 800; font-size: 1.1rem; letter-spacing: .04em; background: #fff; padding: .15rem .6rem; border-radius: var(--sc-radius-sm); border: 1px solid var(--sc-line); }
.sc-shiptrack__hint { color: var(--sc-muted); }

/* حماية المحتوى: مفيش تحديد للنصوص، ولا سحب للصور، ولا قايمة "حفظ / نسخ" بالضغط المطوّل على الموبايل
   (الخانات اللي العميل بيكتب فيها شغالة عادي)
   الحماية على body.sc-protect بس (الزوار والعملاء) – الموظفين والأدمن من غير قيود */
body.sc-protect { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body.sc-protect :is(input, textarea, select, [contenteditable], .sc-allow-copy) { user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; }
body.sc-protect :is(img, video) { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* الطباعة / الحفظ PDF: بيطلع رسالة بدل محتوى الصفحة */
@media print {
    body.sc-protect > * { display: none !important; }
    body.sc-protect::before {
        content: "© Spare Corner – سبير كورنر. طباعة ونسخ محتوى الموقع غير مسموح.";
        display: block; padding: 3rem; text-align: center; font: 700 18px/1.8 Arial, sans-serif; color: #000;
    }
}

/* فيديو المنتج */
.sc-pd__video-ico { color: var(--sc-red); }
.sc-pd__video { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; border-radius: var(--sc-radius); overflow: hidden; background: #000; }
.sc-pd__video--vertical { max-width: 360px; aspect-ratio: 9 / 16; }
.sc-pd__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sc-pd__video-link { margin-top: .8rem; }
.sc-pd__video--file { aspect-ratio: auto; max-height: 70vh; }
.sc-pd__video--file video { display: block; width: 100%; max-height: 70vh; background: #000; }


/* ===== Available on Demand + Special Order (part requests) ===== */
.sc-stock--demand { color: #1c7ed6; font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 .5rem; }
.sc-pd__demandnote { color: #666; font-size: .92rem; margin: 0 0 .75rem; }
.sc-reqform__row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.sc-reqform textarea.sc-track__input { resize: vertical; }
.sc-reqform__product { display: flex; align-items: center; gap: .75rem; padding: .6rem; border: 1px solid #e5e5e5; border-radius: 10px; margin-bottom: 1rem; }
.sc-reqform__product img { width: 56px; height: 56px; object-fit: contain; }
.sc-reqnumber { font-size: 1.35rem; letter-spacing: .5px; }
.sc-reqsteps { list-style: none; display: flex; gap: .25rem; padding: 0; margin: 1rem 0; }
.sc-reqsteps li { flex: 1; text-align: center; font-size: .78rem; color: #888; position: relative; }
.sc-reqsteps__dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #e5e5e5; color: #555; font-weight: 700; margin-bottom: .3rem; }
.sc-reqsteps__label { display: block; }
.sc-reqsteps li.is-done .sc-reqsteps__dot { background: #2f9e44; color: #fff; }
.sc-reqsteps li.is-current .sc-reqsteps__dot { background: var(--sc-orange, #E8590C); color: #fff; }
.sc-reqsteps li.is-current { color: #111; font-weight: 700; }
.sc-reqsteps.is-cancelled { opacity: .45; }
.sc-reqflow { list-style: none; counter-reset: rq; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; padding: 0; margin: 1.25rem 0 0; color: #666; font-size: .85rem; }
.sc-reqflow li::before { counter-increment: rq; content: counter(rq) ". "; font-weight: 700; }
.sc-reqquote { border: 1px dashed var(--sc-orange, #E8590C); border-radius: 12px; padding: 1rem; margin: 1rem 0; }
.sc-reqquote h3 { margin: 0 0 .25rem; font-size: 1rem; }
.sc-reqquote__price strong { font-size: 1.6rem; }
.sc-reqquote__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }
.sc-reqhistory { list-style: none; padding: 0; margin: 1rem 0 0; font-size: .88rem; }
.sc-reqhistory li { padding: .3rem 0; border-top: 1px solid #eee; }
.sc-reqadmin { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.sc-reqadmin__dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.sc-reqadmin__dl dt { color: #777; font-weight: 600; }
.sc-reqadmin__dl dd { margin: 0; }
.sc-reqadmin__photo { max-width: 100%; max-height: 260px; border-radius: 10px; border: 1px solid #e5e5e5; }
.sc-reqadmin__form { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.sc-reqadmin__form label { font-weight: 600; font-size: .88rem; margin-top: .4rem; }
.sc-reqadmin__hint { color: #777; font-size: .85rem; }
.sc-status--customerrequest { background: #e7f1ff; color: #1c5cc2; }
.sc-status--sourcing { background: #fff4e0; color: #b25e00; }
.sc-status--quotation { background: #f3e8ff; color: #7a2ec2; }
.sc-status--customerapproval { background: #fff0cc; color: #8a6100; }
.sc-status--purchasedelivery { background: #e0f5ff; color: #0b6e99; }
@media (max-width: 768px) { .sc-reqadmin { grid-template-columns: 1fr; } .sc-reqsteps { font-size: .7rem; } }

.sc-price-note { display: block; color: #1c7ed6; font-weight: 600; font-size: .75rem; }

/* ===== Payment provider contracts (admin) ===== */
.sc-contract { display: flex; flex-direction: column; gap: 1rem; }
.sc-contract label { display: block; font-weight: 600; font-size: .88rem; margin: .5rem 0 .25rem; }
.sc-contract__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .25rem 1rem; }
.sc-contract__check { align-self: end; }
.sc-contract__inline { display: inline; font-weight: 400; }
.sc-contract__sub { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.sc-status--contract-active { background: #e6f6ea; color: #1f7a38; }
.sc-status--contract-expiring { background: #fff0cc; color: #8a6100; }
.sc-status--contract-expired { background: #fde8e8; color: #b42318; }
.sc-status--contract-terminated { background: #eee; color: #666; }
.sc-status--contract-draft { background: #e7f1ff; color: #1c5cc2; }

/* fees table in payment contract form */
.sc-feetable { table-layout: fixed; width: 100%; min-width: 760px; }
.sc-feetable th, .sc-feetable td { padding: .5rem .4rem; vertical-align: middle; }
.sc-feetable th:nth-child(1) { width: 24%; }
.sc-feetable th:nth-child(2) { width: 17%; }
.sc-feetable th:nth-child(3) { width: 10%; }
.sc-feetable th:nth-child(4) { width: 11%; }
.sc-feetable th:nth-child(5) { width: 9%; }
.sc-feetable th:nth-child(7) { width: 52px; }
.sc-fee__in { width: 100%; height: 40px; padding: 0 .6rem; border: 1px solid #d9d9d9; border-radius: 8px; background: #fff; font: inherit; font-size: .92rem; }
.sc-fee__in:focus { outline: 2px solid rgba(214, 0, 28, .25); border-color: #d6001c; }
.sc-fee__num { text-align: center; direction: ltr; -moz-appearance: textfield; }
.sc-fee__num::-webkit-outer-spin-button, .sc-fee__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sc-feetable .sc-btn--sm { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.sc-contract .sc-table-wrap { overflow-x: auto; }

/* payment contract commission report */
.sc-report__filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .5rem 1rem; align-items: end; margin-bottom: 1rem; }
.sc-report__filters label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .2rem; }
.sc-report__period { color: #666; margin: .5rem 0; }
.sc-report__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin: 1rem 0 1.5rem; }
.sc-report__cards > div { border: 1px solid #e5e5e5; border-radius: 12px; padding: .75rem 1rem; background: #fff; }
.sc-report__cards small { display: block; color: #777; }
.sc-report__cards strong { font-size: 1.35rem; }
.sc-report__cards span { font-size: .8rem; font-weight: 600; color: #777; }
.sc-report__cards .is-total { border-color: #d6001c; background: #fff5f6; }
.sc-report__sub { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
.sc-report__note { color: #777; font-size: .85rem; }
.sc-table tfoot th { background: #f3f3f3; }
@media print {
    .sc-noprint, .sc-admin__side, .sc-admin__sidebar, header, nav, footer { display: none !important; }
    .sc-report__cards > div { break-inside: avoid; }
}

/* موافقة الشروط والأحكام في الـ Checkout */
.sc-terms{display:flex;align-items:flex-start;gap:.55rem;margin:.9rem 0 .35rem;font-size:.92rem;line-height:1.6;cursor:pointer}
.sc-terms input{margin-top:.3rem;width:1.1rem;height:1.1rem;flex:0 0 auto;accent-color:#1c7ed6}
.sc-terms a{font-weight:600;text-decoration:underline}
.sc-termsdlg{border:0;border-radius:14px;padding:1.4rem 1.5rem;max-width:480px;width:calc(100% - 2rem);box-shadow:0 20px 60px rgba(0,0,0,.3)}
.sc-termsdlg::backdrop{background:rgba(0,0,0,.5)}
.sc-termsdlg h3{margin:0 0 .6rem;font-size:1.15rem}
.sc-termsdlg ul{padding-inline-start:1.2rem;margin:.4rem 0 .8rem;line-height:1.8;font-size:.93rem}
.sc-termsdlg a{font-weight:600;text-decoration:underline}
.sc-termsdlg__actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}
.sc-pay span i, .sc-payopt span i { margin-inline-end: .35rem; }
.sc-payopt span i { color: var(--sc-red); }
.sc-origin { display: inline-flex; align-items: center; gap: .4rem; }
.sc-flag { width: 24px; height: 18px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }

/* =========================================================
   Skeleton loading – الصور اللي لسه بتحمّل بتبان كمربع رمادي متحرك بدل مساحة فاضية،
   والصورة بتظهر بنعومة أول ما تحمّل (site.js بيضيف/يشيل is-skeleton و is-paging)
   ========================================================= */
@keyframes sc-shimmer { 0% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
.is-skeleton, .is-paging .sc-product__img, .is-paging .sc-order-card__thumbs > span {
    background: linear-gradient(100deg, #ECEDEF 30%, #F8F8F9 50%, #ECEDEF 70%) !important;
    background-size: 300% 100%;
    animation: sc-shimmer 1.3s ease-in-out infinite;
}
.is-skeleton > i, .is-paging .sc-product__img > i { visibility: hidden; }
.is-skeleton > img, .is-paging .sc-product__img > img { opacity: 0; }
img[loading="lazy"], img[data-gallery-main] { transition: opacity .3s ease; }
/* بين الصفحات (Next / رقم صفحة): الكروت بتبهت لحد ما الصفحة الجاية توصل */
.is-paging .sc-product, .is-paging .sc-order-card { opacity: .6; pointer-events: none; transition: opacity .15s; }
@media (prefers-reduced-motion: reduce) {
    .is-skeleton, .is-paging .sc-product__img, .is-paging .sc-order-card__thumbs > span { animation: none; }
}
.sc-product__demandnote { color: #666; font-size: .85rem; line-height: 1.5; margin: 0 0 .6rem; }

/* =========================================================
   Full-banner slide (finished design, image only)
   نفس ارتفاع الشريحة لكل البانرات + خلفية الموقع الغامقة، فاختلاف المقاسات البسيط ما بيبانش
   ========================================================= */
.sc-slide.sc-slide--banner {
    display: block; min-height: 0; padding: 0; color: inherit; text-decoration: none;
    aspect-ratio: 1408 / 752; line-height: 0; overflow: hidden;
    background: linear-gradient(135deg, #1b1b20 0%, #0E0E0E 70%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.sc-slide--banner .sc-slide__banner {
    display: block; width: 100%; height: 100%; object-fit: contain;
    transition: transform .5s ease, filter .3s ease;
}
a.sc-slide--banner:hover .sc-slide__banner { transform: scale(1.02); filter: brightness(1.06); }
a.sc-slide--banner:focus-visible { outline: 3px solid var(--sc-red); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .sc-slide--banner .sc-slide__banner { transition: none; transform: none !important; } }
/* الإطار حوالين السلايدر بنفس شكل كارت البحث */
.sc-promo .carousel { box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
