/* Safqa Used Market: presentation only; native CS-Cart catalog controls stay in place. */
html body.theme-safqa:has(.sq-used-market-category) {
    --sq-used-ink: #183b3a;
    --sq-used-deep: #124c4a;
    --sq-used-coral: #e66d4d;
    --sq-used-sand: #f6efe4;
    --sq-used-mint: #dce8dc;
    --sq-used-line: #d7ded6;
}

html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-landing {
    width: min(1580px, calc(100% - 28px));
    margin: 0 auto 28px;
    color: var(--sq-used-ink);
    font-family: "Noto Sans Arabic", sans-serif;
}

html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 0 12px;
    color: #687773;
    font-size: 11px;
}

html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-breadcrumbs a { color: #087a88; text-decoration: none; }

html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero {
    position: relative;
    display: grid;
    min-height: 390px;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
    overflow: hidden;
    border: 1px solid #cad8cf;
    border-radius: 18px;
    background: linear-gradient(125deg, #f7efe2 0%, #eef3ea 48%, #d9e8df 100%);
    box-shadow: 0 18px 50px rgba(24, 59, 58, .08);
}

html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__copy {
    position: relative;
    z-index: 2;
    padding: clamp(34px, 5vw, 72px);
}

html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__eyebrow,
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-section-heading > span {
    color: #a14e38;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero h1 {
    margin: 14px 0;
    color: var(--sq-used-ink);
    font-size: clamp(34px, 4.4vw, 66px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.05;
}

html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero h1 em { color: var(--sq-used-coral); font-style: normal; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero p { max-width: 540px; margin: 0; color: #49615d; font-size: 14px; line-height: 1.95; }

html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 7px; font-size: 12px; font-weight: 800; text-decoration: none; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-button--primary { background: var(--sq-used-deep); color: #fff; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-button--secondary { border: 1px solid #9eafa7; color: var(--sq-used-ink); }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__notes { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; color: #40615a; font-size: 11px; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__notes i { color: #13805d; margin-inline-end: 5px; }

html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__showcase { position: relative; min-height: 100%; background: radial-gradient(circle at 65% 35%, rgba(230,109,77,.23), transparent 28%), linear-gradient(145deg, #1b5450, #163c3a); }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-orbit { position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-orbit--one { width: 410px; height: 410px; top: -180px; right: -80px; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-orbit--two { width: 250px; height: 250px; bottom: -140px; left: 15px; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__card { position: absolute; z-index: 1; box-sizing: border-box; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__card--phone { top: 34px; right: clamp(30px, 7vw, 110px); width: min(310px, 48%); padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 20px 30px rgba(4, 28, 27, .24); transform: rotate(5deg); }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__card--phone span { display: block; margin: 0 0 8px; color: #59716b; font-family: Outfit, sans-serif; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__card--phone img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__card--tag { bottom: 30px; right: 22px; display: flex; width: 116px; height: 116px; align-items: center; justify-content: center; gap: 5px; border-radius: 50%; background: var(--sq-used-coral); color: #fffaf5; font-size: 17px; line-height: 1.1; transform: rotate(-9deg); }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__card--note { bottom: 30px; left: 30px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(11, 47, 44, .8); color: #e7f5eb; font-size: 10px; line-height: 1.5; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__card--note i { color: #f6b665; margin-inline-end: 7px; }

html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-promises { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border: 1px solid var(--sq-used-line); border-radius: 12px; background: #fff; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-promises > div { min-height: 82px; padding: 16px; border-inline-start: 1px solid var(--sq-used-line); }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-promises > div:first-child { border-inline-start: 0; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-promises i { color: var(--sq-used-coral); margin-inline-end: 7px; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-promises strong, html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-promises span { display: block; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-promises strong { color: var(--sq-used-ink); font-size: 11px; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-promises span { margin-top: 4px; color: #6c7b77; font-size: 9.5px; }

html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-paths { margin-top: 34px; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-section-heading h2 { margin: 5px 0 14px; color: var(--sq-used-ink); font-size: 25px; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-paths__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-path { display: flex; min-height: 156px; flex-direction: column; padding: 22px; border: 1px solid var(--sq-used-line); border-radius: 12px; background: #fff; color: var(--sq-used-ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-path:hover { box-shadow: 0 10px 24px rgba(24, 59, 58, .1); transform: translateY(-2px); }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-path > i { width: 37px; height: 37px; display: grid; margin-bottom: 14px; place-items: center; border-radius: 10px; background: var(--sq-used-sand); color: var(--sq-used-coral); }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-path--tech > i { background: #e4eef0; color: #177985; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-path--home > i { background: var(--sq-used-mint); color: #28724e; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-path strong { font-size: 14px; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-path span { margin-top: 5px; color: #697a75; font-size: 10.5px; }
html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-path b { margin-top: auto; color: var(--sq-used-deep); font-size: 10px; }

html body.theme-safqa:has(.sq-used-market-category) .safqa-used-market-sidebar .filters-head { background: #f8f2e8 !important; }
html body.theme-safqa:has(.sq-used-market-category) .safqa-used-market-sidebar .filter-title { color: var(--sq-used-ink) !important; }
html body.theme-safqa:has(.sq-used-market-category) .safqa-used-market-catalog-toolbar { border-color: var(--sq-used-line) !important; }
html body.theme-safqa:has(.sq-used-market-category) .safqa-used-market-catalog-toolbar .safqa-fashion-toolbar-button.is-active { border-color: var(--sq-used-deep) !important; background: var(--sq-used-deep) !important; }

@media (max-width: 920px) {
    html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero { grid-template-columns: 1fr; }
    html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__showcase { min-height: 300px; }
    html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-promises { grid-template-columns: repeat(2, 1fr); }
    html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-paths__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-landing { width: calc(100% - 20px); }
    html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__copy { padding: 28px 22px; }
    html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__showcase { min-height: 245px; }
    html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__card--phone { top: 23px; right: 19%; width: 200px; }
    html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__card--tag { width: 84px; height: 84px; bottom: 20px; right: 14px; font-size: 12px; }
    html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-hero__card--note { bottom: 20px; left: 14px; font-size: 8.5px; }
    html body.theme-safqa:has(.sq-used-market-category) .sq-used-market-promises > div { min-height: 92px; padding: 12px; }
}
