body {
    margin: 0;
}
img {
    max-width: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
}

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #e9eee5;
    --ink: #13241b;
    --ink-2: #56655b;
    --line: #d9dfd5;
    --brand: #173b22;
    --brand-ink: #ffffff;
    --accent: #347a22;
    --accent-ink: #2f6e20;
    --accent-soft: #e4efdd;
    --warn: #a5610c;
    --warn-soft: #fbeedc;
    --hero: #173b22;
    --hero-deep: #0f2a18;
    --oem: #1e7a3c;
    --oem-soft: #ddf1e2;
    --hq: #24508f;
    --hq-soft: #dce8f7;
    --com: #6b6f73;
    --com-soft: #ecedee;
    --danger: #b23a2e;
    --danger-soft: #fbe6e3;
    --shadow: 0 10px 30px rgba(15, 42, 24, 0.16);
    --f-body: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
    --f-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
    --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0d1510;
        --surface: #152019;
        --surface-2: #1d2a22;
        --ink: #e3ece4;
        --ink-2: #9db0a2;
        --line: #2a3a30;
        --brand: #0f2a18;
        --accent: #347a22;
        --accent-ink: #86cf6c;
        --accent-soft: #1f3320;
        --warn: #e7a24c;
        --warn-soft: #3a2a14;
        --hero: #10291a;
        --hero-deep: #0a1c11;
        --oem: #5fc784;
        --oem-soft: #143222;
        --hq: #8db4f0;
        --hq-soft: #172a45;
        --com: #aeb3b8;
        --com-soft: #262c30;
        --danger: #ee7a6c;
        --danger-soft: #3a1c19;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d1510;
    --surface: #152019;
    --surface-2: #1d2a22;
    --ink: #e3ece4;
    --ink-2: #9db0a2;
    --line: #2a3a30;
    --brand: #0f2a18;
    --accent: #347a22;
    --accent-ink: #86cf6c;
    --accent-soft: #1f3320;
    --warn: #e7a24c;
    --warn-soft: #3a2a14;
    --hero: #10291a;
    --hero-deep: #0a1c11;
    --oem: #5fc784;
    --oem-soft: #143222;
    --hq: #8db4f0;
    --hq-soft: #172a45;
    --com: #aeb3b8;
    --com-soft: #262c30;
    --danger: #ee7a6c;
    --danger-soft: #3a1c19;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
* {
    box-sizing: border-box;
}
[hidden] {
    display: none !important;
}
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.55;
}
button,
input,
select {
    font: inherit;
    color: inherit;
}
button {
    cursor: pointer;
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.num,
.pn {
    font-variant-numeric: tabular-nums;
}
.pn {
    font-family: var(--f-mono);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    direction: ltr;
    unicode-bidi: isolate;
}

/* header */
.top {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    background: var(--brand);
    color: var(--brand-ink);
}
.top-in {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}
.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    display: grid;
    place-items: center;
    color: #fff;
}
.logo small {
    display: block;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.72rem;
    opacity: 0.75;
}
.search {
    flex: 1 1 280px;
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.search input {
    flex: 1;
    border: 0;
    padding: 10px 14px;
    min-width: 0;
    color: #14232a;
    background: #fff;
}
.search button {
    border: 0;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    padding: 0 16px;
}
.top-actions {
    display: flex;
    gap: 8px;
    margin-inline-start: auto;
}
.pill-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: center;
}
.pill-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.badge {
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    font-size: 0.78rem;
    padding: 0 6px;
}

/* categories */
.cats {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.cats-in {
    max-width: 1240px;
    margin: 0;
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.cat {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}
.cat svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}
.cat[aria-pressed="true"] {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* vehicle selector */
.picker {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.steps {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.9rem;
    color: var(--ink-2);
}
.step {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    padding: 4px 6px;
    border-radius: 6px;
    color: inherit;
}
.step b {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--surface-2);
    font-size: 0.75rem;
}
.step.done {
    color: var(--ink);
}
.step.done b {
    background: var(--oem);
    color: #fff;
}
.step.cur {
    color: var(--ink);
    font-weight: 600;
}
.step.cur b {
    background: var(--accent);
    color: #fff;
}
.step-sep {
    opacity: 0.4;
}
h1,
h2,
h3 {
    font-family: var(--f-display);
    text-wrap: balance;
    margin: 0;
}
h2 {
    font-size: 1.25rem;
}
.sub {
    color: var(--ink-2);
    margin: 2px 0 0;
    font-size: 0.92rem;
}
.brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.brand {
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.brand:hover {
    border-color: var(--accent);
}
.brand-mono {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--f-display);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.brand span {
    font-weight: 600;
}
.brand small {
    color: var(--ink-2);
    font-size: 0.78rem;
}
.models {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}
.model {
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: start;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.model:hover {
    border-color: var(--accent);
}
.model b {
    font-size: 1.02rem;
}
.model small {
    color: var(--ink-2);
}
.years {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.year {
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
}
.year:hover {
    border-color: var(--accent);
}
.car-chip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    background: var(--accent-soft);
    border-radius: 10px;
    padding: 12px 14px;
}
.car-chip b {
    font-family: var(--f-display);
    font-size: 1.05rem;
}
.link-btn {
    border: 0;
    background: none;
    color: var(--accent-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0;
}
.hint {
    color: var(--ink-2);
    font-size: 0.85rem;
}

/* parts */
.bar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}
.legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--ink-2);
}
.legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-inline-end: 5px;
    vertical-align: middle;
}
.parts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pgroup {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pgroup.all-out {
    border-color: var(--danger);
}
.pg-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    flex-wrap: wrap;
}
.pg-head h3 {
    font-size: 1.08rem;
}
.tcards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}
.tcard {
    border: 1px solid var(--line);
    border-top: 4px solid var(--c);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg);
    cursor: pointer;
    position: relative;
}
.tcard:hover {
    border-color: var(--c);
}
.tcard.sel {
    background: var(--cs);
    border-color: var(--c);
    box-shadow: 0 0 0 2px var(--c);
}
.tcard.sel::after {
    content: attr(data-sel);
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--c);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
}
.tcard .pimg {
    width: 100%;
    aspect-ratio: 16/9;
}
.sg .pimg {
    aspect-ratio: 16/10;
}
.sg button {
    white-space: nowrap;
}
.tc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}
.tc-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.82rem;
    color: var(--ink-2);
}
.tc-body > b {
    color: var(--ink);
    font-size: 0.95rem;
}
.tc-pn {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 6px 8px;
}
.tc-pn small {
    font-size: 0.7rem;
    color: var(--ink-2);
}
.tc-pn .pn {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}
.tc-buy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.tcard.out {
    border-color: var(--danger);
    border-top-color: var(--danger);
    background: var(--danger-soft);
    cursor: default;
}
.tcard.out .tier-tag {
    color: var(--danger);
    background: transparent;
    border: 1px solid var(--danger);
}
.tcard.out .price {
    color: var(--ink-2);
    text-decoration: line-through;
}
.tcard.out .pimg {
    filter: grayscale(1);
    opacity: 0.6;
}
.sugg.inline {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow);
}
.sg-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sg-block h3 {
    font-size: 1rem;
}
.sg {
    border-top: 4px solid var(--c, var(--line));
}
.sg.out {
    background: var(--danger-soft);
    border-color: var(--danger);
}
.sg .tier-tag {
    align-self: flex-start;
}
.sg button:disabled {
    border-color: var(--danger);
    color: var(--danger);
    cursor: not-allowed;
    background: transparent;
}
.ct {
    grid-template-columns: 40px 64px 76px !important;
}
.ct .st {
    grid-column: 1/-1;
}
.ct .thumb-up .pimg {
    width: 40px;
    border-radius: 6px;
}
.ct .thumb-up .cam {
    width: 18px;
    height: 18px;
}
.ct .thumb-up .cam svg {
    width: 11px;
    height: 11px;
}
.part {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.part-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: start;
}
.part-head h3 {
    font-size: 1.05rem;
}
.part-cat {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--ink-2);
    text-transform: uppercase;
}
.fit {
    font-size: 0.78rem;
    background: var(--oem-soft);
    color: var(--oem);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
    font-weight: 600;
}
.meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--ink-2);
}
.meta span b {
    color: var(--ink);
    font-weight: 600;
}
.tiers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tier {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    border-inline-start: 4px solid var(--c);
}
.tier-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c);
    background: var(--cs);
    border-radius: 6px;
    padding: 3px 8px;
    white-space: nowrap;
}
.tier-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    color: var(--ink-2);
}
.tier-info b {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tier-buy {
    display: flex;
    align-items: center;
    gap: 10px;
}
.price {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}
.price small {
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--ink-2);
}
.add {
    border: 0;
    background: var(--ink);
    color: var(--bg);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    line-height: 1;
}
.add:hover {
    background: var(--accent);
    color: #fff;
}
.add.ok {
    background: var(--oem);
    color: #fff;
}
.stock-low {
    color: var(--danger);
    font-weight: 600;
}
.stock-ok {
    color: var(--oem);
    font-weight: 600;
}
.stock-out {
    color: #fff;
    background: var(--danger);
    font-weight: 700;
    border-radius: 5px;
    padding: 1px 8px;
    align-self: flex-start;
    margin-top: 2px;
}
.tier.out {
    border-color: var(--danger);
    border-inline-start-color: var(--danger);
    background: var(--danger-soft);
}
.tier.out .tier-tag {
    color: var(--danger);
    background: transparent;
    border: 1px solid var(--danger);
}
.tier.out .price {
    color: var(--ink-2);
    text-decoration: line-through;
}
.add:disabled {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid var(--danger);
    cursor: not-allowed;
}
.out-badge {
    font-size: 0.78rem;
    background: var(--danger);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
    font-weight: 700;
}
.part.all-out {
    border-color: var(--danger);
}
.part.all-out .pimg {
    filter: grayscale(1);
    opacity: 0.6;
}
.oem {
    --c: var(--oem);
    --cs: var(--oem-soft);
}
.hq {
    --c: var(--hq);
    --cs: var(--hq-soft);
}
.com {
    --c: var(--com);
    --cs: var(--com-soft);
}
.pimg {
    flex: 0 0 auto;
    width: 104px;
    aspect-ratio: 4/3;
    max-width: 100%;
    border-radius: 10px;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.pimg svg {
    width: 100%;
    height: 100%;
}
.pimg.sm {
    width: 64px;
}
.part-top {
    display: flex;
    gap: 14px;
    align-items: start;
}
.part-top .part-head {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.part-top .part-head .fit {
    align-self: flex-start;
}
.ln {
    fill: none;
    stroke: var(--ink-2);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.lt {
    fill: none;
    stroke: var(--ink-2);
    stroke-width: 1.2;
    opacity: 0.7;
}
.sf {
    fill: var(--surface);
    stroke: var(--ink-2);
    stroke-width: 2.2;
    stroke-linejoin: round;
}
.ac {
    fill: var(--accent);
    stroke: var(--ink-2);
    stroke-width: 2;
    stroke-linejoin: round;
}
.dk {
    fill: var(--ink-2);
}
.car-sil {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 4px;
}
.car-sil .body {
    fill: var(--surface-2);
    stroke: var(--ink-2);
    stroke-width: 2;
    stroke-linejoin: round;
}
.car-sil .win {
    fill: var(--surface);
    stroke: var(--ink-2);
    stroke-width: 1.5;
}
.car-sil .wh {
    fill: var(--ink-2);
}
.car-sil .hub {
    fill: var(--surface-2);
}
.model:hover .car-sil .body {
    fill: var(--accent-soft);
}
.sg .pimg {
    width: 100%;
}
.ci-row {
    display: flex;
    gap: 10px;
    align-items: start;
}
.ci-row > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.empty {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    color: var(--ink-2);
}

/* suggestions */
.sugg {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sugg-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.sg {
    flex: 0 0 220px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg);
}
.sg b {
    font-size: 0.92rem;
}
.sg .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.sg button {
    border: 1px solid var(--ink);
    background: transparent;
    border-radius: 8px;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 0.82rem;
}
.sg button:hover {
    background: var(--ink);
    color: var(--bg);
}

/* cart drawer */
.scrim {
    position: fixed;
    inset: 0;
    background: rgba(8, 20, 24, 0.45);
    z-index: 40;
}
.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: min(420px, 100%);
    background: var(--surface);
    z-index: 41;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}
.x {
    border: 0;
    background: var(--surface-2);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
}
.cart-list {
    flex: 1;
    overflow: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ci {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-inline-start: 4px solid var(--c);
}
.ci-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.ci small {
    color: var(--ink-2);
}
.qty {
    display: flex;
    align-items: center;
    gap: 6px;
}
.qty button {
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 6px;
    width: 28px;
    height: 28px;
}
.rm {
    border: 0;
    background: none;
    color: var(--danger);
    font-size: 0.82rem;
    padding: 0;
}
.totals {
    border-top: 1px solid var(--line);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.totals div {
    display: flex;
    justify-content: space-between;
}
.totals .grand {
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 6px;
    border-top: 1px dashed var(--line);
}
.checkout {
    margin-top: 8px;
    border: 0;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px;
}
.checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.done-msg {
    background: var(--oem-soft);
    color: var(--oem);
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.thumb {
    position: relative;
}
.thumb-up {
    display: block;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
}
.thumb-up .cam {
    position: absolute;
    inset-block-end: -4px;
    inset-inline-end: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
}
.thumb-up .cam svg {
    width: 13px;
    height: 13px;
}
.thumb:has(input:focus-visible) .thumb-up {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.thumb-up:hover .pimg {
    outline: 2px solid var(--accent);
}
.link-btn.sm,
.hint.sm {
    font-size: 0.74rem;
    align-self: flex-start;
}
.bulk {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    border: 2px dashed var(--line);
    border-radius: 14px;
    padding: 16px;
    background: var(--surface);
}
.bulk-ic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
}
.bulk-tx {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bulk:has(input:focus-visible) .up-btn {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.up-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.bulk.over,
.img-card.over {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.img-card {
    border-width: 2px;
}
.icon-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
}
.icon-btn:hover,
.pill-btn[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.14);
}
.icon-btn svg,
.pill-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pimg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.pimg.xs {
    width: 52px;
    border-radius: 8px;
}
/* admin */
.admin {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.adm-head h1 {
    font-size: 1.5rem;
}
.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.kpi {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kpi span {
    font-size: 0.82rem;
    color: var(--ink-2);
    font-weight: 600;
}
.kpi b {
    font-family: var(--f-display);
    font-size: 1.6rem;
    line-height: 1.2;
}
.kpi small {
    color: var(--ink-2);
    font-size: 0.78rem;
}
.kpi.bad b {
    color: var(--danger);
}
.kpi.warn b {
    color: var(--warn);
}
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}
.tab {
    border: 0;
    background: none;
    padding: 10px 14px;
    font-weight: 600;
    color: var(--ink-2);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}
.tab[aria-selected="true"] {
    color: var(--ink);
    border-bottom-color: var(--accent);
}
.panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--ink-2);
    font-weight: 600;
    min-width: 0;
}
.field.grow {
    flex: 1 1 220px;
}
.field input,
.field select,
.inv-cust select {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.92rem;
    color: var(--ink);
    min-width: 0;
    width: 100%;
}
.chk {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
    padding-bottom: 8px;
}
.tbl-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.tbl th {
    text-align: start;
    font-weight: 600;
    color: var(--ink-2);
    font-size: 0.78rem;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    background: var(--surface-2);
}
.tbl th small {
    display: block;
    font-weight: 600;
    margin-top: 4px;
}
.tbl td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.tbl tr:last-child td {
    border-bottom: 0;
}
.empty-cell {
    text-align: center;
    color: var(--ink-2);
    padding: 24px;
}
.pcell {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 200px;
}
.pcell > div {
    display: flex;
    flex-direction: column;
}
.ct {
    display: grid;
    grid-template-columns: 72px 84px;
    gap: 6px;
    align-items: center;
    border-radius: 8px;
    padding: 6px;
    border: 1px solid transparent;
}
.ct .st {
    grid-column: 1/-1;
    font-size: 0.74rem;
    font-weight: 600;
}
.n-in {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 6px;
    padding: 6px 8px;
    width: 100%;
    color: var(--ink);
}
.s-ok .st {
    color: var(--oem);
}
.s-low .st {
    color: var(--warn);
}
.s-low {
    background: var(--warn-soft);
}
.s-out {
    background: var(--danger-soft);
    border-color: var(--danger);
}
.s-out .st {
    color: var(--danger);
}
.tier-tag.oem,
.tier-tag.hq,
.tier-tag.com {
    display: inline-block;
}
.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.img-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.img-card .pimg {
    width: 100%;
}
.img-meta {
    display: flex;
    flex-direction: column;
}
.img-meta small {
    color: var(--ink-2);
}
.img-acts {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}
.up-btn {
    border: 1px solid var(--ink);
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
}
.up-btn:hover {
    background: var(--ink);
    color: var(--bg);
}
.img-card:has(input:focus-visible) .up-btn {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.sm-btn {
    border: 1px solid var(--line);
    background: var(--surface-2);
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.84rem;
}
.sm-btn:hover {
    border-color: var(--accent);
}
.chip {
    font-size: 0.7rem;
    background: var(--surface-2);
    color: var(--ink-2);
    border-radius: 5px;
    padding: 1px 6px;
    font-weight: 600;
}
.stc {
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}
.st-new {
    background: var(--hq-soft);
    color: var(--hq);
}
.st-paid {
    background: var(--oem-soft);
    color: var(--oem);
}
.st-cancel {
    background: var(--danger-soft);
    color: var(--danger);
}
.modal-scrim {
    position: fixed;
    inset: 0;
    background: rgba(8, 20, 24, 0.5);
    z-index: 45;
    display: grid;
    place-items: center;
    padding: 16px;
}
.modal {
    background: var(--surface);
    border-radius: 14px;
    width: min(860px, 100%);
    max-height: calc(100% - 20px);
    overflow: auto;
    box-shadow: var(--shadow);
}
.inv-doc {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.inv-h {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 12px;
}
.inv-h small {
    color: var(--ink-2);
}
.logo-sm {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.2rem;
}
.inv-t {
    text-align: end;
}
.inv-t h2 {
    font-size: 1.1rem;
}
.inv-t .num {
    font-family: var(--f-mono);
    font-size: 1.05rem;
}
.inv-cust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    background: var(--surface-2);
    border-radius: 10px;
    padding: 12px;
}
.inv-cust > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.inv-cust small {
    color: var(--ink-2);
    font-size: 0.76rem;
}
.inv-tot {
    align-self: flex-end;
    width: min(320px, 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.inv-tot div {
    display: flex;
    justify-content: space-between;
}
.inv-tot .grand {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid var(--ink);
    padding-top: 6px;
}
.inv-acts {
    display: flex;
    justify-content: flex-end;
}
.err-msg {
    background: var(--danger-soft);
    color: var(--danger);
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}
.cust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 6px;
}
.toast {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    inset-inline-start: 50%;
    transform: translateX(50%);
    background: var(--ink);
    color: var(--bg);
    padding: 10px 16px;
    border-radius: 10px;
    z-index: 50;
    box-shadow: var(--shadow);
    font-weight: 600;
    max-width: calc(100% - 32px);
}
[dir="ltr"] .toast {
    transform: translateX(-50%);
}
footer {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px 30px;
    color: var(--ink-2);
    font-size: 0.8rem;
}
@media (prefers-reduced-motion: no-preference) {
    .add,
    .brand,
    .model,
    .year {
        transition:
            background 0.15s,
            border-color 0.15s;
    }
}
.price small > .sar,
.cp-lt small > .sar,
.pm-price small > .sar,
b small > .sar {
    color: var(--ink);
}
.sar {
    display: inline-block;
    width: 0.8em;
    height: 0.9em;
    vertical-align: -0.08em;
    margin-inline: 0.08em;
    fill: currentColor;
    flex-shrink: 0;
}

.parts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}
.parts .sugg {
    grid-column: 1/-1;
}
.pcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    position: relative;
}
.pcard:hover {
    border-color: var(--accent);
}
.pcard.sel {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
    background: var(--accent-soft);
}
.pcard.sel::after {
    content: attr(data-sel);
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
}
.pcard .pimg {
    width: 100%;
    aspect-ratio: 16/10;
}
.pcard.out {
    border-color: var(--danger);
    background: var(--danger-soft);
}
.pcard.out .pimg {
    filter: grayscale(1);
    opacity: 0.6;
}
.pcard.out .price {
    color: var(--ink-2);
    text-decoration: line-through;
}
.pc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.maker {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 6px;
    padding: 3px 6px;
    border: 1px solid var(--line);
}
.maker img {
    height: 18px;
    width: auto;
    display: block;
}
.maker.lg img {
    height: 30px;
}
.pc-name {
    font-family: var(--f-display);
    font-size: 1rem;
    line-height: 1.35;
    text-wrap: balance;
}
.pc-fit {
    font-size: 0.82rem;
    color: var(--ink-2);
}
.pc-pn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 6px 8px;
}
.pc-pn small {
    font-size: 0.7rem;
    color: var(--ink-2);
}
.pc-pn .pn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}
.pc-buy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
}
.side {
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    padding: 2px 8px;
    background: var(--hq-soft);
    color: var(--hq);
    white-space: nowrap;
}
.warn-note {
    font-size: 0.76rem;
    color: var(--warn);
    font-weight: 600;
}
.catalog-note {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--ink-2);
    font-size: 0.85rem;
}
.sg {
    cursor: pointer;
}
.sg .pimg {
    aspect-ratio: 16/10;
}
.sg.out {
    background: var(--danger-soft);
    border-color: var(--danger);
}
.sg button:disabled {
    border-color: var(--danger);
    color: var(--danger);
    cursor: not-allowed;
    background: transparent;
}
.sg button {
    white-space: nowrap;
}
.none-msg {
    color: var(--ink-2);
    font-size: 0.88rem;
    background: var(--bg);
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 12px;
}
.ybtn-all {
    font-weight: 700;
}
.tbl .note-i {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--warn-soft);
    color: var(--warn);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: help;
}
.tbl td.desc {
    min-width: 220px;
}
.tbl td.desc small {
    display: block;
    color: var(--ink-2);
    font-size: 0.76rem;
}
.stk {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 8px;
    padding: 6px;
    border: 1px solid transparent;
    min-width: 96px;
}
.stk .st {
    font-size: 0.74rem;
    font-weight: 600;
}
.n-in.w {
    width: 84px;
}
.brand-mono.sm {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
}
.maker-dark {
    background: #fff;
}

/* ---------- header (light, per the design) ---------- */
.util {
    background: var(--hero-deep);
    color: #c9d6c6;
    font-size: 0.8rem;
}
.util-in {
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    gap: 8px 20px;
    flex-wrap: wrap;
}
.util b {
    color: #fff;
    font-weight: 600;
}
.top {
    background: var(--surface);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.top-in {
    padding: 14px 16px;
    gap: 16px 24px;
}
.logo {
    gap: 14px;
}
.logo img {
    height: 40px;
    width: auto;
    display: block;
    background: #fff;
    border-radius: 6px;
}
.logo-sep {
    width: 1px;
    height: 34px;
    background: var(--line);
}
.logo small {
    opacity: 1;
    color: var(--ink-2);
}
.search {
    border: 2px solid var(--ink);
    border-radius: 12px;
    height: 50px;
}
.search input {
    background: var(--surface);
    color: var(--ink);
}
.search button {
    color: #fff;
    font-weight: 700;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pill-btn,
.icon-btn {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface);
    height: 46px;
}
.pill-btn {
    border-radius: 12px;
    padding: 0 14px;
}
.icon-btn {
    border-radius: 12px;
    width: 46px;
}
.pill-btn:hover,
.icon-btn:hover {
    background: var(--surface-2);
}
#cartBtn {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
#cartBtn:hover {
    opacity: 0.92;
    background: var(--ink);
}
.badge {
    color: #fff;
}
.cats {
    background: var(--surface);
}

/* ---------- home ---------- */
#home {
    display: flex;
    flex-direction: column;
}

.hero-tag {
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 600;
    color: #bfe3ae;
    border: 1px solid #4e7a45;
    border-radius: 999px;
    padding: 5px 13px;
}

.f-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px;
    gap: 12px;
}

.f-act {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.f-go {
    flex: 1 1 220px;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.f-go:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.hero-stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
}
.hero-stats div {
    display: flex;
    flex-direction: column;
}
.hero-stats b {
    font-family: var(--f-display);
    font-size: 1.9rem;
    line-height: 1.2;
}
.hero-stats span {
    font-size: 0.8rem;
    color: #bccbb8;
}
.boxlabel {
    background: #f7f6f0;
    color: #13241b;
    border-radius: 6px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: rotate(-3deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.bl-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.bl-top img {
    height: 38px;
    width: auto;
}
.bl-qty {
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid #13241b;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.bl-rule {
    height: 2px;
    background: #13241b;
}
.bl-pn {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bl-pn small {
    font-size: 0.72rem;
    color: #56655b;
    letter-spacing: 0.08em;
}
.bl-pn span {
    font-family: var(--f-mono);
    font-size: 1.9rem;
    text-align: left;
    word-break: break-all;
}
.bl-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 0.88rem;
}
.bl-meta div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bl-meta small {
    color: #56655b;
    font-size: 0.72rem;
}
.bl-bar {
    display: flex;
    gap: 3px;
    height: 54px;
    align-items: stretch;
}
.bl-bar i {
    background: #13241b;
    display: block;
}
.bl-price {
    margin-inline-start: auto;
    align-self: flex-end;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.6rem;
    white-space: nowrap;
}
.bl-price small {
    font-size: 0.85rem;
    font-weight: 600;
}
.home-in {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 16px 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.hsec {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.hsec-h {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}
.hsec-h h2 {
    font-size: 1.75rem;
}
.cat-tiles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}
.ctile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: start;
    color: var(--ink);
}
.ctile:hover,
.btile:hover {
    border-color: var(--accent);
}
.ct-ic {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
}
.ct-ic svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}
.ctile b {
    font-size: 1.02rem;
    display: block;
}
.ctile small {
    font-size: 0.8rem;
    color: var(--ink-2);
}
.brand-tiles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.btile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: start;
    color: var(--ink);
    min-width: 0;
}
.btile .brand-mono,
.blogo {
    width: 72px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
}
.btile .brand-mono,
.car-chip .brand-mono.sm {
    font-size: 0.85rem;
    background: #fff;
    color: #13241b;
    border: 1px solid var(--line);
    font-family: var(--f-display);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.blogo {
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    padding: 5px 7px;
    box-sizing: border-box;
}
.blogo img {
    max-width: 100%;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.blogo.sm img {
    max-height: 28px;
}
.blogo.sm,
.brand-mono.sm {
    width: 60px;
    height: 40px;
    border-radius: 8px;
}
.car-chip .brand-mono.sm {
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 0.8rem;
}
.btile {
    padding: 12px 14px;
}
.btile b {
    display: block;
    font-size: 0.95rem;
    line-height: 1.35;
}
.btile small {
    font-size: 0.8rem;
    color: var(--ink-2);
}
.btile.more {
    justify-content: center;
    background: var(--accent-soft);
    border: 1px dashed var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
}
.steps3 {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.steps3 h2 {
    font-size: 1.5rem;
}
.steps3-g {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.st3 {
    display: flex;
    gap: 14px;
}
.st3 .n {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--f-display);
    font-weight: 700;
    flex-shrink: 0;
}
.st3 b {
    display: block;
    font-size: 1.02rem;
    margin-bottom: 2px;
}
.st3 span {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--ink-2);
}
.link-btn.light {
    color: #fff;
}
/* ---------- footer ---------- */
.site-foot {
    background: var(--hero-deep);
    color: #bccbb8;
    margin-top: 40px;
    font-size: 0.88rem;
}
.site-foot + .util,
#storeView + .util {
    border-top: 1px solid #2b4a33;
}
.util-in {
    padding-block: 12px;
}
.sf-in {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sf-top {
    display: flex;
    justify-content: space-between;
    gap: 32px 48px;
    flex-wrap: wrap;
}
.sf-about {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    line-height: 1.8;
}
.sf-about img {
    height: 32px;
    width: auto;
    background: #fff;
    border-radius: 6px;
    padding: 5px 8px;
    align-self: flex-start;
}
.sf-cols {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}
.sf-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sf-col b {
    color: #fff;
    font-size: 0.95rem;
}
.sf-col button {
    background: none;
    border: 0;
    padding: 0;
    color: #bccbb8;
    text-align: start;
}
.sf-col button:hover {
    color: #fff;
    text-decoration: underline;
}
.sf-rule {
    height: 1px;
    background: #2b4a33;
}
.sf-note {
    font-size: 0.8rem;
    line-height: 1.7;
}
@media (max-width: 1000px) {
    
    .boxlabel {
        display: none;
    }
    .cat-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .brand-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .steps3-g {
        grid-template-columns: 1fr;
    }
}
#storeMain,
#results {
    scroll-margin-top: 110px;
}
@media (max-width: 640px) {
    .top {
        position: static;
    }
    #storeMain,
    #results {
        scroll-margin-top: 8px;
    }
    .top-actions {
        gap: 6px;
        flex-wrap: nowrap;
    }
    .pill-btn {
        padding: 0 10px;
    }
    #viewBtn span,
    #cartBtn span[data-t] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .pcard .pimg {
        aspect-ratio: 16/8;
    }
    .util-in {
        justify-content: center;
        text-align: center;
    }
    .logo-sep,
    .logo small {
        display: none;
    }
    .top-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .f-row {
        grid-template-columns: 1fr 1fr;
    }
    .f-row .field:first-child {
        grid-column: 1/-1;
    }
    .cat-tiles,
    .brand-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ctile {
        padding: 16px 10px;
        gap: 10px;
    }
    .ct-ic {
        width: 42px;
        height: 42px;
    }
    .hsec-h h2 {
        font-size: 1.35rem;
    }
    .steps3 {
        padding: 20px;
    }
}

/* round category nav with photos */
.cats-in {
    gap: 6px 14px;
    padding: 14px 16px 10px;
    align-items: flex-start;
}
.cat {
    flex-direction: column;
    gap: 7px;
    border: 0;
    background: none;
    border-radius: 0;
    padding: 2px;
    width: 96px;
    white-space: normal;
    text-align: center;
    color: var(--ink);
    font-size: 0.8rem;
    line-height: 1.3;
}
.cat[aria-pressed="true"] {
    background: none;
    color: var(--ink);
    border: 0;
}
.cat-ic {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: #fff;
    overflow: hidden;
    display: grid;
    place-items: center;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.cat-ic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cat-ic.all {
    background: var(--surface-2);
}
.cat-ic svg {
    width: 30px;
    height: 30px;
    stroke: var(--ink);
}
.cat:hover .cat-ic {
    border-color: var(--accent);
}
.cat[aria-pressed="true"] .cat-ic {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.cat[aria-pressed="true"] .cat-ic.all {
    background: var(--accent);
}
.cat[aria-pressed="true"] .cat-ic.all svg {
    stroke: #fff;
}
.cat[aria-pressed="true"] .cat-lbl {
    font-weight: 700;
    color: var(--accent-ink);
}
.cat:focus-visible {
    outline: none;
}
.cat:focus-visible .cat-ic {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.cat-ic i {
    font-size: 1.6rem;
    color: var(--ink);
}
.cat[aria-pressed="true"] .cat-ic.all i {
    color: #fff;
}
.ct-ic.ct-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
}
.ct-ic.ct-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 640px) {
    .cat {
        width: 78px;
        font-size: 0.74rem;
    }
    .cat-ic {
        width: 60px;
        height: 60px;
    }
    .ctile .ct-ic.ct-photo {
        width: 72px;
        height: 72px;
    }
    .ctile b {
        font-size: 1.05rem;
    }
}

/* ad carousel */
.ads {
    background: var(--bg);
}
.ads-in {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 16px 24px;
    position: relative;
}
.ads-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 18px;
    aspect-ratio: 20/7;
    max-width: 100%;
    max-height: 380px;
    width: 100%;
    background: var(--surface-2);
    box-shadow: 0 10px 28px rgba(15, 42, 24, 0.18);
    outline: 1px solid var(--line);
    outline-offset: -1px;
}
.ads-track::-webkit-scrollbar {
    display: none;
}
.ad-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
}
.ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.ad-hit {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
}
.ad-hit:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}
.ad-nav {
    position: absolute;
    top: calc(50% + 8px);
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #13241b;
    font-size: 1.6rem;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    z-index: 2;
}
.ad-nav.prev {
    inset-inline-start: 28px;
}
.ad-nav.next {
    inset-inline-end: 28px;
}
.ad-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.ad-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.6);
    padding: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.ad-dot[aria-current="true"] {
    width: 24px;
    background: #fff;
}
@media (max-width: 640px) {
    .ads-in {
        padding: 14px 12px 18px;
    }
    .ads-track {
        border-radius: 14px;
    }
    .ad-nav {
        display: none;
    }
    .ad-dots {
        bottom: 26px;
    }
}
/* ads admin */
.ad-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ad-card {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
}
.ad-card.off .ad-prev {
    opacity: 0.45;
}
.ad-prev {
    aspect-ratio: 20/7;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-2);
}
.ad-prev img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ad-f {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.ad-f input,
.ad-f select {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 10px;
    background: var(--bg);
    color: var(--ink);
    width: 100%;
    box-sizing: border-box;
}
.ad-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ad-acts {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ad-order {
    display: flex;
    gap: 4px;
    margin-inline-start: auto;
}
.ad-order .sm-btn {
    width: 40px;
    height: 36px;
    padding: 0;
}
@media (max-width: 760px) {
    .ad-card {
        grid-template-columns: 1fr;
    }
    .ad-row {
        grid-template-columns: 1fr;
    }
}

/* footer v2 */
.sf-col {
    min-width: 0;
}
.sf-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sf-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bccbb8;
    text-decoration: none;
    min-width: 0;
}
.sf-row:hover {
    color: #fff;
}
.sf-row i {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    display: grid;
    place-items: center;
    color: #9fd08a;
}
.sf-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.sf-kv {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sf-kv div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2b4a33;
    border-radius: 10px;
    padding: 8px 12px;
}
.sf-kv dt {
    font-size: 0.74rem;
    color: #8fa58a;
}
.sf-kv dd {
    margin: 0;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.03em;
    direction: ltr;
    text-align: start;
}
.sf-bottom {
    display: flex;
    justify-content: space-between;
    gap: 8px 24px;
    flex-wrap: wrap;
}
@media (max-width: 640px) {
    .sf-in {
        padding: 28px 16px 22px;
        gap: 18px;
    }
    .sf-top {
        gap: 22px;
    }
    .sf-about {
        max-width: none;
        gap: 10px;
        font-size: 0.84rem;
        line-height: 1.7;
    }
    .sf-about img {
        height: 28px;
    }
    .sf-cols {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%;
    }
    .sf-col {
        gap: 10px;
    }
    .sf-col b {
        font-size: 0.9rem;
        padding-bottom: 6px;
        border-bottom: 1px solid #2b4a33;
    }
    .sf-chips {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .sf-chips button {
        border: 1px solid #2b4a33;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 999px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .sf-chips button:hover {
        text-decoration: none;
        border-color: #9fd08a;
    }
    .sf-contact {
        gap: 8px;
    }
    .sf-row {
        font-size: 0.86rem;
    }
    .sf-kv {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .sf-kv div {
        padding: 8px 10px;
    }
    .sf-kv dd {
        font-size: 0.82rem;
    }
    .sf-bottom {
        flex-direction: column;
        gap: 6px;
    }
    .sf-note {
        font-size: 0.74rem;
        line-height: 1.6;
    }
    .sf-copy {
        color: #8fa58a;
    }
}
.logo-home {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    text-align: start;
    cursor: pointer;
    border-radius: 8px;
}
.logo-home .logo-txt {
    display: block;
}
.logo-home:hover img {
    box-shadow: 0 0 0 2px var(--accent-soft);
}
.logo-home:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
/* ===== header v3 (single row, marketplace style) ===== */
.top {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(15, 30, 20, 0.05);
}
.top-in.nh {
    max-width: 1440px;
    display: grid;
    grid-template-columns: auto auto minmax(260px, 1fr) auto auto;
    grid-template-areas: "logo loc search tools actions";
    align-items: center;
    gap: 10px 18px;
    padding: 10px 20px;
    flex-wrap: nowrap;
}
.nh .logo {
    grid-area: logo;
}
.nh-loc {
    grid-area: loc;
}
/* "Track order" sits beside "Deliver to" with a cell of its own (both are .nh-loc buttons) */
.nh-loc.nh-track {
    grid-area: track;
}
.nh .search {
    grid-area: search;
}
.top-tools {
    grid-area: tools;
}
.nh .top-actions {
    grid-area: actions;
}
.nh .logo img {
    height: 38px;
}
.nh .logo-sep,
.nh .logo-txt {
    display: none;
}
.nh-loc {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 0;
    padding: 6px 8px;
    border-radius: 10px;
    color: var(--ink);
    max-width: 220px;
    cursor: pointer;
    text-align: start;
}
.nh-loc:hover {
    background: var(--surface-2);
}
.nh-loc svg {
    flex-shrink: 0;
    color: var(--accent-ink);
}
.nh-loc-t {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}
.nh-loc-t small {
    font-size: 0.72rem;
    color: var(--ink-2);
    white-space: nowrap;
}
.nh-loc-t b {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nh .search {
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    flex: none;
    min-width: 0;
}
.nh .search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.nh .search input {
    background: transparent;
    font-size: 0.95rem;
}
.nh .search button {
    background: var(--accent);
    border-radius: 0;
    padding: 0 18px;
}
.top-tools,
.nh .top-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    flex-wrap: nowrap;
    width: auto;
}
.nh-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
}
.nh-btn:hover {
    background: var(--surface-2);
}
.nh-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
.nh-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.nh-btn .chev {
    width: 14px;
    height: 14px;
    stroke-width: 2.4;
    margin-inline-start: 2px;
}
.nh-l {
    display: inline-flex;
    align-items: center;
}
.nh-ic {
    width: 42px;
    padding: 0;
    justify-content: center;
    color: var(--ink-2);
}
.nh-ic span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
#langBtn {
    color: var(--ink);
}
.nh-bi {
    position: relative;
    display: inline-grid;
}
.nh-badge {
    position: absolute;
    top: -7px;
    inset-inline-end: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid var(--surface);
    line-height: 1;
}
.nh-badge[hidden] {
    display: none;
}
#cartBtn,
#cartBtn:hover {
    background: none;
    color: var(--ink);
    border: 0;
    opacity: 1;
}
#cartBtn:hover {
    background: var(--surface-2);
}
.nh #walletBtn.in {
    background: none;
    color: var(--ink);
    border: 0;
}
.nh #walletBtn.in:hover,
.nh #walletBtn[aria-expanded="true"] {
    background: var(--surface-2);
}
#walletBtn.in > svg {
    color: var(--accent-ink);
}
.fav-t {
    margin-inline-start: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    cursor: pointer;
}
.fav-t svg {
    width: 17px;
    height: 17px;
}
.fav-t:hover {
    color: #e53935;
    border-color: #e53935;
}
.fav-t.on {
    color: #e53935;
    border-color: #f3b5b3;
    background: #fdecec;
}
.fav-t.on svg {
    fill: currentColor;
}
.fav-t.lg {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}
.fav-t.lg svg {
    width: 22px;
    height: 22px;
}
.fav-l {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: start;
}
.fav-l li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: var(--surface);
}
.fav-img {
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    grid-row: span 2;
}
.fav-img .pimg {
    width: 72px;
    height: 72px;
    border-radius: 8px;
}
.fav-i {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.fav-i b {
    font-size: 0.9rem;
}
.fav-i small {
    font-size: 0.74rem;
    color: var(--ink-2);
}
.fav-p {
    font-weight: 700;
    font-size: 0.92rem;
}
.fav-a {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fav-a .sm-btn {
    height: 36px;
}
@media (max-width: 1440px) {
    .nh .logo-sep,
    .nh .logo-txt {
        display: none;
    }
    .nh-loc {
        max-width: 170px;
    }
    #ordersBtn .nh-l,
    #favBtn .nh-l {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
}
@media (max-width: 1180px) {
    .top-in.nh {
        grid-template-columns: auto auto 1fr auto;
        grid-template-areas: "logo tools . actions" "loc track search search";
        gap: 8px 12px;
        padding: 10px 16px;
    }
}
@media (max-width: 920px) {
    .nh .top-actions .nh-l {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
}
@media (max-width: 760px) {
    .top {
        position: sticky;
    }
    .top-in.nh {
        grid-template-columns: auto auto 1fr;
        grid-template-areas: "logo logo tools" "search search search" "loc track actions";
        padding: 8px 12px;
        gap: 8px;
    }
    .nh .logo img {
        height: 32px;
    }
    .top-tools {
        justify-self: end;
    }
    .nh .top-actions {
        justify-self: end;
    }
    .nh .top-actions .nh-l {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .nh-btn {
        height: 40px;
        padding: 0 8px;
    }
    .nh-ic {
        width: 38px;
    }
    #langBtn span {
        font-size: 0.82rem;
    }
    .nh .search {
        height: 44px;
    }
    .nh .search button span {
        display: none;
    }
    .nh .search button {
        padding: 0 14px;
    }
    .nh-loc {
        min-width: 0;
    }
    .nh-loc-t small {
        display: none;
    }
    .nh-loc-t b {
        font-size: 0.82rem;
    }
}
/* app download */
.sf-app {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px 24px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2b4a33;
    border-radius: 16px;
    padding: 16px 18px;
}
.sf-app b {
    color: #fff;
    font-size: 1rem;
}
.sf-app p {
    margin: 4px 0 0;
    font-size: 0.84rem;
    line-height: 1.6;
}
.store-bs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.store-b {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    min-width: 152px;
    padding: 0 14px;
    border-radius: 10px;
    background: #000;
    color: #fff !important;
    border: 1px solid #6b6b6b;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.store-b:hover {
    background: #111;
    border-color: #aaa;
}
.store-b span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.store-b small {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    color: #fff;
    opacity: 0.9;
}
.store-b b {
    font-size: 1.08rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
}
@media (max-width: 640px) {
    .sf-app {
        flex-direction: column;
        align-items: stretch;
        text-align: start;
    }
    .store-bs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .store-b {
        min-width: 0;
        justify-content: center;
        padding: 0 8px;
        gap: 6px;
    }
    .store-b b {
        font-size: 0.86rem;
    }
    .store-b svg {
        width: 20px;
        height: 20px;
    }
}
.store-b svg {
    flex-shrink: 0;
}
.store-b b,
.store-b small {
    white-space: nowrap;
    text-align: left;
}
.site-foot {
    max-width: none;
    width: 100%;
    margin: 40px 0 0;
    padding: 0;
    box-sizing: border-box;
}
.sf-in {
    max-width: 1440px;
    padding: 40px 20px;
}
.util-in {
    max-width: 1440px;
    padding-inline: 20px;
}
/* scroll-to-catalog */
.to-cat-w {
    display: flex;
    justify-content: center;
    margin: -6px 0 6px;
}
.to-cat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    color: var(--ink-2);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 4px 16px;
}
.to-cat:hover {
    color: var(--accent-ink);
}
.tc-l {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--ink);
}
.tc-l img {
    height: 26px;
    width: auto;
    background: #fff;
    border-radius: 6px;
    padding: 3px 6px;
    border: 1px solid var(--line);
}
.tc-arr {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(46, 125, 50, 0.35);
}
.to-cat:hover .tc-arr {
    background: var(--accent-ink);
}
.to-cat:focus-visible {
    outline: none;
}
.to-cat:focus-visible .tc-arr {
    outline: 3px solid var(--accent-soft);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
    .tc-arr svg {
        animation: tcBob 1.6s ease-in-out infinite;
    }
    @keyframes tcBob {
        0%,
        100% {
            transform: translateY(-2px);
        }
        50% {
            transform: translateY(3px);
        }
    }
}
@media (max-width: 640px) {
    .to-cat {
        font-size: 0.8rem;
    }
    .tc-arr {
        width: 40px;
        height: 40px;
    }
}
.hero-stats.live {
    align-items: flex-end;
    gap: 14px 30px;
}
.lv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #bfe3ae;
    border: 1px solid #4e7a45;
    border-radius: 999px;
    padding: 3px 10px;
}
.lv-badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
    .lv-badge i {
        animation: lvPulse 1.8s infinite;
    }
    @keyframes lvPulse {
        0% {
            box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
        }
        70% {
            box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
        }
    }
}
@media (max-width: 640px) {
    .hero-stats.live {
        gap: 10px 20px;
    }
    .hero-stats.live b {
        font-size: 1.5rem;
    }
    .lv-badge {
        align-self: flex-start;
    }
}
/* catalog button: one rectangle, items side by side */
.to-cat {
    flex-direction: row;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px 10px 8px 16px;
    box-shadow: 0 6px 16px rgba(15, 30, 20, 0.08);
}
[dir="rtl"] .to-cat {
    padding: 8px 16px 8px 10px;
}
.to-cat:hover {
    border-color: var(--accent);
    background: var(--surface);
}
.to-cat .tc-arr {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: none;
}
.to-cat-w {
    margin: 2px 0 10px;
}
/* smaller catalog button */
.to-cat {
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border-radius: 11px;
    font-size: 0.8rem;
}
[dir="rtl"] .to-cat {
    padding: 5px 12px 5px 6px;
}
[dir="rtl"] .to-cat {
    padding: 5px 12px 5px 6px;
}
.to-cat .tc-l {
    font-size: 0.85rem;
    gap: 6px;
}
.to-cat .tc-l img {
    height: 20px;
    padding: 2px 5px;
    border-radius: 5px;
}
.to-cat .tc-arr {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}
.to-cat .tc-arr svg {
    width: 16px;
    height: 16px;
}
.to-cat-w {
    margin: 0 0 8px;
}
/* full-bleed ad banner: edge to edge at any zoom */
.ads-in {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}
.ads-track {
    border-radius: 0;
    aspect-ratio: 3/1;
    max-height: none;
    box-shadow: none;
    outline: 0;
}
.ad-nav.prev {
    inset-inline-start: 16px;
}
.ad-nav.next {
    inset-inline-end: 16px;
}
.ad-nav {
    top: 50%;
}
.ad-dots {
    bottom: 14px;
}
@media (max-width: 640px) {
    .ads-in {
        padding: 0;
    }
    .ads-track {
        border-radius: 0;
        aspect-ratio: 20/7;
    }
    .ad-dots {
        bottom: 8px;
    }
}
.to-cat-w {
    margin: 12px 0 8px;
}
/* category chips for the selected car */
.car-cats {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
}
.cc-b {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 14px;
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    color: var(--ink);
    text-align: start;
}
[dir="rtl"] .cc-b {
    padding: 6px 6px 6px 14px;
}
.cc-b:hover {
    border-color: var(--accent);
}
.cc-b[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent);
}
.cc-ic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}
.cc-ic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cc-ic.all {
    background: var(--accent);
    border-color: var(--accent);
}
.cc-ic.all svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}
.cc-t {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.cc-t b {
    font-size: 0.9rem;
    white-space: nowrap;
}
.cc-t small {
    font-size: 0.74rem;
    color: var(--ink-2);
}
@media (max-width: 640px) {
    .cc-ic {
        width: 38px;
        height: 38px;
    }
    .cc-t b {
        font-size: 0.82rem;
    }
}
/* banner: rounded rectangle again, still spanning the screen */
.ads-in {
    padding: 16px 20px 4px;
}
.ads-track {
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 42, 24, 0.18);
    outline: 1px solid var(--line);
    outline-offset: -1px;
}
.ad-nav.prev {
    inset-inline-start: 34px;
}
.ad-nav.next {
    inset-inline-end: 34px;
}
.ad-nav {
    top: calc(50% + 6px);
}
.ad-dots {
    bottom: 18px;
}
@media (max-width: 640px) {
    .ads-in {
        padding: 12px 12px 2px;
    }
    .ads-track {
        border-radius: 14px;
    }
    .ad-dots {
        bottom: 10px;
    }
}
/* ad arrows: faint by default, clear on hover/focus */
.ad-nav {
    background: rgba(255, 255, 255, 0.35);
    color: rgba(19, 36, 27, 0.55);
    box-shadow: none;
    opacity: 0.45;
    transition:
        opacity 0.2s,
        background 0.2s,
        color 0.2s,
        box-shadow 0.2s;
    backdrop-filter: blur(2px);
}
.ads-in:hover .ad-nav {
    opacity: 0.8;
}
.ads-in .ad-nav:hover,
.ads-in .ad-nav:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
    color: #13241b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.ad-nav:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
@media (hover: none) {
    .ad-nav {
        opacity: 0.7;
    }
}

.biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    max-width: 900px;
}
.sm-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pimg img {
    object-fit: contain;
}
/* invoice paper: always light, like the printed copy */
.modal .inv-doc {
    background: #fff;
    color: #13241b;
    --ink: #13241b;
    --ink-2: #56655b;
    --line: #d9dfd5;
    --surface: #fff;
    --surface-2: #f2f4ef;
    --bg: #f2f4ef;
}
.inv-h {
    border-bottom: 3px solid #173b22;
}
.inv-seller {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.inv-seller b {
    font-family: var(--f-display);
    font-size: 1.15rem;
    margin-top: 6px;
}
.inv-seller small,
.inv-t small {
    color: #56655b;
    font-size: 0.8rem;
}
.inv-logo {
    height: 38px;
    width: auto;
    align-self: flex-start;
}
.inv-t .en {
    display: block;
    letter-spacing: 0.04em;
}
.inv-no {
    font-family: var(--f-mono);
    font-size: 1.25rem;
    margin: 6px 0 2px;
}
.inv-tbl td small {
    display: block;
    color: #56655b;
    font-size: 0.76rem;
}
.inv-tbl td small.pn {
    color: #13241b;
}
.inv-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}
.inv-codes {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.inv-codes .qr {
    width: 128px;
    height: 128px;
    border: 1px solid #d9dfd5;
    border-radius: 8px;
    padding: 4px;
    background: #fff;
}
.inv-codes .qr svg {
    width: 100%;
    height: 100%;
    display: block;
}
.inv-codes .bar svg {
    max-width: 100%;
    height: auto;
    display: block;
}
.inv-tot {
    align-self: auto;
    width: min(380px, 100%);
}
.inv-tot .grand span:first-child {
    white-space: nowrap;
}
.qr-miss {
    font-size: 0.75rem;
    color: var(--danger);
    max-width: 160px;
}
.inv-acts {
    gap: 8px;
}
@media print {
    @page {
        size: A4;
        margin: 12mm;
    }
    body > *:not(#modal) {
        display: none !important;
    }
    #modal {
        position: static;
        background: none;
        padding: 0;
        display: block;
    }
    .modal {
        box-shadow: none;
        max-height: none;
        overflow: visible;
        width: 100%;
        border-radius: 0;
    }
    .no-print {
        display: none !important;
    }
    .tbl-wrap {
        overflow: visible;
        border-color: #999;
    }
}
/* payment */
.paym {
    border: 0;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.paym legend {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.92rem;
}
.pm-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    background: var(--surface);
}
.pm-opt:hover {
    border-color: var(--accent);
}
.pm-opt.on {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
    background: var(--accent-soft);
}
.pm-opt input {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
}
.pm-opt:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.pm-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pm-txt b {
    font-size: 0.92rem;
}
.pm-txt small {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-2);
}
.pm-badge {
    width: 56px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    background: #fff;
    color: #13241b;
    border: 1px solid var(--line);
    font-family: var(--f-display);
}
.pm-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.pm-badge:has(img) {
    padding: 4px 6px;
}
.pm-badge.lg {
    width: 84px;
    height: 50px;
    font-size: 1rem;
    border-radius: 10px;
}
.pm-cod {
    color: var(--accent-ink);
}
#payModal {
    z-index: 58;
}
.gw {
    position: relative;
    padding: 28px 22px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.gw h2 {
    font-size: 1.3rem;
}
.gw-amt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.gw-amt small {
    color: var(--ink-2);
}
.gw-amt b {
    font-family: var(--f-display);
    font-size: 2rem;
}
.gw-amt b small {
    font-size: 0.9rem;
}
.gw-rows {
    margin: 0;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    text-align: start;
}
.gw-rows div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}
.gw-rows div:last-child {
    border-bottom: 0;
}
.gw-rows dt {
    color: var(--ink-2);
}
.gw-rows dd {
    margin: 0;
    font-weight: 600;
}
.gw-demo {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--warn);
    background: var(--warn-soft);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: start;
}
.inv-ok {
    text-align: center;
}
.ps-paid {
    background: #ddf1e2;
    color: #1e7a3c;
}
.ps-cod {
    background: #fbeedc;
    color: #a5610c;
}
.ps-cancel {
    background: #fbe6e3;
    color: #b23a2e;
}
.inv-cust .stc {
    align-self: flex-start;
}
@media (max-width: 640px) {
    .inv-doc {
        padding: 14px;
    }
    .inv-tbl thead {
        display: none;
    }
    .inv-tbl tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 12px;
        padding: 10px 12px;
        border-bottom: 1px solid #d9dfd5;
    }
    .inv-tbl tr:last-child {
        border-bottom: 0;
    }
    .inv-tbl td {
        border: 0;
        padding: 0;
    }
    .inv-tbl td:first-child {
        grid-column: 1/-1;
        margin-bottom: 4px;
    }
    .inv-tbl td[data-l]::before {
        content: attr(data-l);
        display: block;
        font-size: 0.7rem;
        color: #56655b;
        font-weight: 600;
    }
    .inv-codes .qr {
        width: 110px;
        height: 110px;
    }
    .inv-tot .grand span:first-child {
        white-space: normal;
    }
    .inv-tot .grand {
        font-size: 1rem;
        gap: 10px;
        align-items: flex-end;
    }
    .inv-tot .grand span:last-child {
        white-space: nowrap;
    }
    .inv-cust {
        grid-template-columns: 1fr 1fr;
    }
}
/* cart drawer: one scrolling column so form + payment methods are reachable */
.drawer {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.drawer-h {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--surface);
}
.cart-list {
    flex: none;
    overflow: visible;
}
.totals {
    flex: none;
}
.totals .checkout {
    position: sticky;
    bottom: 0;
    z-index: 2;
    box-shadow: 0 -10px 16px var(--surface);
}
/* address + map */
.addr {
    border: 0;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.addr legend {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.92rem;
}
.addr-g {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
}
.addr-g .wide {
    grid-column: 1/-1;
}
.addr select,
.addr input,
.cust input {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 10px;
    background: var(--bg);
    color: var(--ink);
    font-size: 0.92rem;
    width: 100%;
    box-sizing: border-box;
}
.addr .field small {
    color: var(--ink-2);
    font-weight: 600;
}
.loc {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.loc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border: 1.5px dashed var(--accent);
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 700;
}
.loc-btn:hover {
    background: var(--surface-2);
}
.loc-ok {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 10px;
    padding: 8px 10px;
}
.loc-ok > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 120px;
}
.loc-ok small {
    color: var(--ink-2);
    font-size: 0.76rem;
    text-align: start;
}
.loc-ic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
#mapModal {
    z-index: 59;
}
.map-modal {
    width: min(640px, 100%);
}
.mp {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mp-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.mp-h h2 {
    font-size: 1.2rem;
}
.mp-h .pm-x {
    position: static;
}
.mp-wrap {
    position: relative;
    height: min(58vh, 420px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
}
.lmap {
    position: absolute;
    inset: 0;
}
.mp-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    z-index: 500;
    color: #b23a2e;
    pointer-events: none;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}
.mp-pin svg {
    width: 40px;
    height: 40px;
    fill: #fff;
    stroke-width: 2.2;
}
.mp-me {
    position: absolute;
    bottom: 12px;
    inset-inline-start: 12px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: #13241b;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
}
.mp-me:disabled {
    opacity: 0.6;
}
.mp-coords {
    font-size: 0.8rem;
    color: var(--ink-2);
    text-align: center;
}
.inv-addr a {
    align-self: flex-start;
    font-size: 0.8rem;
}
.inv-addr small.num {
    font-size: 0.72rem;
}
@media (max-width: 640px) {
    .inv-addr {
        grid-column: 1/-1;
    }
}
/* invoice popup actions */
#modal .modal {
    display: flex;
    flex-direction: column;
}
.inv-acts {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 10px;
    margin-top: -4px;
    border-top: 1px solid #d9dfd5;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 2;
}
.inv-acts .sm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 16px;
}
.inv-frame-note {
    text-align: center;
    font-size: 0.76rem;
}
.pdf-mode .no-print {
    display: none !important;
}
.pdf-mode {
    padding: 24px !important;
}
@media (max-width: 640px) {
    .inv-acts .sm-btn {
        flex: 1 1 30%;
        justify-content: center;
        padding: 0 8px;
    }
}
/* cart: undo the generic ".totals div" flex row for the address blocks */
.totals .addr-g {
    display: grid;
    justify-content: normal;
}
.totals .loc-ok {
    display: flex;
    justify-content: flex-start;
}
.totals .loc-ok > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.totals .loc,
.totals .cust {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
/* PDF capture: fixed A4-width desktop layout regardless of phone viewport */
.pdf-mode {
    width: 794px !important;
    max-width: none !important;
    box-sizing: border-box;
}
.pdf-mode .inv-tbl thead {
    display: table-header-group !important;
}
.pdf-mode .inv-tbl tr {
    display: table-row !important;
}
.pdf-mode .inv-tbl td {
    display: table-cell !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid #d9dfd5 !important;
}
.pdf-mode .inv-tbl td[data-l]::before {
    content: none !important;
    display: none !important;
}
.pdf-mode .inv-cust {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.pdf-mode .inv-tot {
    width: 380px !important;
}
.pdf-mode .inv-tot .grand span {
    white-space: nowrap !important;
}
.pdf-mode .inv-codes .qr {
    width: 128px !important;
    height: 128px !important;
}
/* coupons & accounts */
.cpn-f {
    display: flex !important;
    gap: 8px;
    margin-bottom: 6px;
}
.cpn-f input {
    flex: 1;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    background: var(--bg);
    color: var(--ink);
    font-size: 0.95rem;
    text-transform: uppercase;
    min-width: 0;
}
.cpn-f input[readonly] {
    background: var(--accent-soft);
    border-color: var(--accent);
    font-weight: 700;
}
.cpn-f .sm-btn {
    height: 44px;
    padding: 0 16px;
}
.cpn-msg {
    font-size: 0.82rem;
    padding: 8px 10px;
}
.disc-row {
    color: var(--oem);
}
.disc-row b {
    font-family: var(--f-mono);
    font-size: 0.85em;
}
.kpis.acct {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.kpi.good b {
    color: var(--oem);
}
.acct-pay {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.acct-pay .chip {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 999px;
}
.tbl td.pos {
    color: var(--oem);
}
.tbl td.neg,
.link-btn.neg {
    color: var(--danger);
}
.row-cancel td {
    opacity: 0.55;
    text-decoration: line-through;
}
.row-cancel td:last-child {
    text-decoration: none;
    opacity: 1;
}
.cpn-new {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-end;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}
.cpn-new h3 {
    width: 100%;
    font-size: 1.05rem;
}
.cpn-new .field {
    flex: 1 1 160px;
}
.cpn-new input {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 10px;
    background: var(--bg);
    color: var(--ink);
    width: 100%;
    box-sizing: border-box;
}
.cpn-new .sm-btn {
    height: 44px;
    padding: 0 22px;
}
.cpn-new .err-msg {
    width: 100%;
}
/* CRM & loyalty */
.totals .known,
.totals .known-h,
.totals .pts-box,
.totals .pts-box > div {
    justify-content: flex-start;
}
.known {
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
}
.known-h {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
.known-h > div {
    display: flex !important;
    flex-direction: column;
}
.known-h small {
    color: var(--ink-2);
    font-size: 0.78rem;
}
.known-ic {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    flex-shrink: 0;
}
.pts-box {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--surface);
    border-radius: 10px;
    padding: 8px 10px;
}
.pts-box > div {
    display: flex !important;
    flex-direction: column;
}
.pts-box b {
    font-family: var(--f-display);
    font-size: 1.3rem;
    color: var(--accent-ink);
}
.pts-box small {
    color: var(--ink-2);
    font-size: 0.76rem;
}
.pts-use {
    font-weight: 600;
    padding: 0;
}
.pts-min {
    max-width: 160px;
}
.known-hist summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--accent-ink);
}
.known-hist ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.known-hist li {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
    background: var(--surface);
    border-radius: 8px;
    padding: 6px 8px;
}
.pts-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fbeedc;
    color: #7a4a08;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.9rem;
}
.pts-ic {
    font-size: 1.1rem;
}
.loy {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-end;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}
.loy h3 {
    width: 100%;
    font-size: 1.05rem;
}
.loy .field {
    flex: 1 1 160px;
}
.loy input {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 10px;
    background: var(--bg);
    color: var(--ink);
    width: 100%;
    box-sizing: border-box;
}
.loy .hint {
    width: 100%;
    margin: 0;
}
.row-open td {
    background: var(--accent-soft);
}
.crm-detail td {
    background: var(--bg);
}
.crm-d {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.crm-inv {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    text-align: start;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--ink);
}
.crm-inv:hover {
    border-color: var(--accent);
}
.pay-chip {
    border: 1px solid var(--line);
    cursor: pointer;
    background: var(--surface-2);
    color: var(--ink);
}
.pay-chip[aria-pressed="true"] {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
/* ===== invoice layout v2 ===== */
.inv-doc {
    gap: 18px;
}
.iv-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 3px solid #173b22;
}
.iv-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.iv-brand .inv-logo {
    height: 44px;
    width: auto;
}
.iv-brand > div {
    display: flex;
    flex-direction: column;
    border-inline-start: 1px solid #d9dfd5;
    padding-inline-start: 12px;
}
.iv-brand b {
    font-family: var(--f-display);
    font-size: 1.15rem;
    color: #13241b;
}
.iv-brand small {
    color: #56655b;
    font-size: 0.76rem;
}
.iv-title {
    text-align: end;
    display: flex;
    flex-direction: column;
}
.iv-title h2 {
    font-size: 1.3rem;
    color: #173b22;
    margin: 0;
}
.iv-title small {
    color: #56655b;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
}
.iv-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #d9dfd5;
    border-radius: 10px;
    overflow: hidden;
}
.iv-meta > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 10px 14px;
    border-inline-start: 1px solid #d9dfd5;
}
.iv-meta > div:first-child {
    border-inline-start: 0;
}
.iv-meta small {
    color: #56655b;
    font-size: 0.74rem;
}
.iv-meta b {
    font-size: 0.98rem;
    color: #13241b;
}
.iv-meta .num[dir="ltr"] {
    font-family: var(--f-mono);
}
.iv-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.iv-party {
    border: 1px solid #d9dfd5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.iv-party h3 {
    margin: 0;
    font-size: 0.92rem;
    background: #eef3ec;
    color: #173b22;
    padding: 9px 14px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #d9dfd5;
}
.iv-party h3 small {
    font-weight: 600;
    color: #56655b;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}
.iv-party dl {
    margin: 0;
    padding: 6px 14px 10px;
}
.iv-party dl > div {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #e3e8e0;
    font-size: 0.86rem;
}
.iv-party dl > div:last-child {
    border-bottom: 0;
}
.iv-party dt {
    color: #56655b;
}
.iv-party dd {
    margin: 0;
    color: #13241b;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.iv-party dd[dir="ltr"] {
    text-align: start;
    unicode-bidi: plaintext;
}
.iv-party dd .link-btn {
    font-size: 0.78rem;
    margin-inline-start: 6px;
}
.iv-st {
    padding: 0 14px 12px;
}
.iv-st select {
    height: 40px;
    border: 1px solid #d9dfd5;
    border-radius: 8px;
    padding: 0 8px;
    background: #fff;
}
.inv-tbl th {
    background: #eef3ec !important;
    color: #173b22 !important;
}
.iv-n {
    width: 32px;
    text-align: center;
    color: #56655b;
}
.inv-foot {
    align-items: flex-start;
}
.inv-tot {
    border: 1px solid #d9dfd5;
    border-radius: 10px;
    padding: 10px 14px;
    background: #fafbf9;
}
.iv-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    border-top: 1px solid #d9dfd5;
    padding-top: 12px;
}
.iv-foot b {
    color: #173b22;
    font-family: var(--f-display);
}
.iv-foot span {
    font-size: 0.72rem;
    color: #56655b;
    max-width: 60ch;
    line-height: 1.6;
}
@media (max-width: 640px) {
    .iv-top {
        flex-direction: column;
        align-items: stretch;
    }
    .iv-title {
        text-align: start;
    }
    .iv-meta {
        grid-template-columns: 1fr 1fr;
    }
    .iv-meta > div:nth-child(3) {
        grid-column: 1/-1;
        border-inline-start: 0;
        border-top: 1px solid #d9dfd5;
    }
    .iv-parties {
        grid-template-columns: 1fr;
    }
    .iv-party dl > div {
        grid-template-columns: 92px minmax(0, 1fr);
    }
    .iv-n {
        display: none;
    }
}
.pdf-mode .iv-top {
    flex-direction: row !important;
    align-items: center !important;
}
.pdf-mode .iv-title {
    text-align: end !important;
}
.pdf-mode .iv-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.pdf-mode .iv-meta > div:nth-child(3) {
    grid-column: auto !important;
    border-top: 0 !important;
    border-inline-start: 1px solid #d9dfd5 !important;
}
.pdf-mode .iv-parties {
    grid-template-columns: 1fr 1fr !important;
}
.pdf-mode .iv-n {
    display: table-cell !important;
}
@media print {
    .iv-parties {
        grid-template-columns: 1fr 1fr;
    }
    .iv-meta {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* order stages + tracking */
.stp {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    counter-reset: s;
}
.stp li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 0 4px;
}
.stp li::before {
    content: "";
    position: absolute;
    top: 15px;
    inset-inline-start: calc(-50% + 18px);
    inset-inline-end: calc(50% + 18px);
    height: 3px;
    border-radius: 3px;
    background: var(--line);
}
.stp li:first-child::before {
    display: none;
}
.stp li.done::before,
.stp li.cur::before {
    background: var(--accent);
}
.stp-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--surface-2);
    color: var(--ink-2);
    border: 2px solid var(--line);
    position: relative;
    z-index: 1;
}
.stp li.done .stp-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.stp li.cur:not(.done) .stp-dot {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.stp-t {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stp-t b {
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--ink-2);
    font-weight: 600;
}
.stp li.done .stp-t b,
.stp li.cur .stp-t b {
    color: var(--ink);
}
.stp-t small {
    font-size: 0.68rem;
    color: var(--ink-2);
}
@media (max-width: 640px) {
    .stp {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .stp li {
        flex-direction: row;
        text-align: start;
        align-items: flex-start;
        gap: 12px;
        padding: 0 0 16px;
    }
    .stp li::before {
        top: auto;
        bottom: calc(100% - 16px);
        inset-inline-start: 15px;
        inset-inline-end: auto;
        width: 3px;
        height: calc(100% - 16px);
        display: block;
    }
    .stp li:first-child::before {
        display: none;
    }
    .stp li:last-child {
        padding-bottom: 0;
    }
    .stp-t {
        padding-top: 5px;
    }
    .stp-t b {
        font-size: 0.9rem;
    }
    .stp-t small {
        font-size: 0.74rem;
    }
}
.ord-f {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 6px;
    scrollbar-width: thin;
}
.chipbtn {
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 600;
    font-size: 0.84rem;
    white-space: nowrap;
}
.chipbtn span {
    opacity: 0.7;
    margin-inline-start: 4px;
}
.chipbtn[aria-pressed="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.ord-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}
.ord {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ord-h {
    display: flex;
    justify-content: space-between;
    gap: 8px 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.ord-h > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ord-h > div:first-child > b {
    font-size: 1.1rem;
}
.ord-h .chip {
    align-self: flex-start;
}
.ord-c {
    color: var(--ink-2);
    font-size: 0.88rem;
}
.ord-m {
    display: flex;
    gap: 6px 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.86rem;
}
.ord-m > span:first-child {
    font-weight: 700;
}
.ord-a {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}
.ord-a .sm-btn {
    height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.ord-sel {
    flex: 0 1 220px;
}
.ord-sel select {
    height: 44px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 10px;
    background: var(--bg);
    color: var(--ink);
}
.sms-btn {
    background: var(--surface-2);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 14px;
}
.ord-ok {
    padding: 8px 12px;
    margin: 0;
}
.ord-sms summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--ink-2);
}
.ord-sms ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ord-sms li {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
}
.ord-sms li p {
    margin: 0;
    width: 100%;
    font-size: 0.84rem;
    line-height: 1.6;
}
.ord-sms small {
    color: var(--ink-2);
    font-size: 0.72rem;
}
.sms-s,
.sms-r {
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 8px;
}
.sms-s {
    background: var(--accent-soft);
    color: var(--accent-ink);
}
.sms-r {
    background: var(--warn-soft);
    color: var(--warn);
}
@media (max-width: 640px) {
    .ord {
        padding: 12px;
    }
    .ord-a .sm-btn.primary {
        flex: 1 1 100%;
        justify-content: center;
    }
    .ord-sel {
        flex: 1 1 55%;
    }
    .sms-btn {
        flex: 1 1 35%;
        justify-content: center;
    }
}
#trkModal {
    z-index: 58;
}
.trk-modal {
    width: min(560px, 100%);
}
.trk {
    position: relative;
    padding: 28px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.trk h2 {
    font-size: 1.3rem;
}
.trk-f {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 380px;
}
.trk-f input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 1.1rem;
    background: var(--bg);
    color: var(--ink);
    text-align: center;
}
.trk-f input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.trk-f .sm-btn {
    height: 48px;
    padding: 0 20px;
}
.trk-res {
    width: 100%;
    text-align: start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: var(--bg);
}
.trk-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.trk-head b {
    font-size: 1.05rem;
}
.trk-head span,
.trk-head small {
    color: var(--ink-2);
    font-size: 0.85rem;
}
.trk-now {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: var(--accent-soft);
    border-radius: 10px;
    padding: 10px 12px;
}
.trk-now small {
    color: var(--ink-2);
}
.trk-now b {
    color: var(--accent-ink);
}
.trk-note {
    font-size: 0.74rem;
    color: var(--ink-2);
    margin: 0;
}
.trk .err-msg {
    width: 100%;
}
.sf-trk {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-align: start;
}
@media (max-width: 640px) {
    .trk-lbl {
        display: none;
    }
    .trk-btn {
        padding: 0 11px;
    }
    .trk .stp {
        text-align: start;
    }
}
/* wallet */
#walModal {
    z-index: 58;
}
.wal-card {
    width: 100%;
    text-align: start;
    border-radius: 16px;
    padding: 18px;
    color: #fff;
    background: linear-gradient(135deg, #1f5a2e, #2e7d32 55%, #4c9a3a);
    box-shadow: 0 10px 24px rgba(20, 60, 30, 0.25);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wal-card small {
    opacity: 0.85;
    font-size: 0.82rem;
}
.wal-card b {
    font-size: 2.1rem;
    line-height: 1.15;
    font-family: var(--f-display);
}
.wal-card b span {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.85;
}
.wal-card p {
    margin: 6px 0 0;
    font-size: 0.8rem;
    line-height: 1.6;
    opacity: 0.92;
}
.wal-pts {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: start;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--bg);
}
.wal-pts > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.wal-pts b {
    font-size: 1.3rem;
}
.wal-pts small {
    color: var(--ink-2);
    font-size: 0.76rem;
}
.wal-pts .sm-btn {
    height: 42px;
}
.wal-hist {
    width: 100%;
    text-align: start;
}
.wal-hist h3 {
    font-size: 0.95rem;
    margin: 0 0 8px;
}
.wal-hist ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.wal-hist li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}
.wal-hist li:last-child {
    border-bottom: 0;
}
.wal-hist li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.wal-hist li b {
    font-size: 0.86rem;
    font-weight: 600;
}
.wal-hist li small {
    font-size: 0.72rem;
    color: var(--ink-2);
}
.wal-hist .pos {
    color: var(--accent-ink);
    font-weight: 700;
    white-space: nowrap;
}
.wal-hist .neg {
    color: var(--danger);
    font-weight: 700;
    white-space: nowrap;
}
.wal-hist .pend {
    opacity: 0.55;
}
.wal-box {
    margin-top: 8px;
}
.wal-box > div {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.wal-ic {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-ink);
}
.totals .wal-row,
.inv-tot .wal-row {
    color: var(--accent-ink);
}
.totals .grand.due {
    border-top: 1px dashed var(--line);
}
.cb-note .pts-ic {
    display: inline-grid;
    place-items: center;
}
.cb-note .pts-ic svg {
    width: 16px;
    height: 16px;
}
.cb-on {
    grid-column: 1/-1;
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.cb-on input {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 auto;
    accent-color: var(--accent);
}
.wal-adm {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.wal-adm > b {
    width: 100%;
    font-size: 0.88rem;
}
.wal-adm .field {
    flex: 1 1 140px;
}
.wal-adm .field.grow {
    flex: 2 1 200px;
}
.wal-adm input {
    height: 42px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 10px;
    background: var(--bg);
    color: var(--ink);
}
.wal-adm .sm-btn {
    height: 42px;
}
@media (max-width: 640px) {
    .top-actions {
        gap: 5px;
    }
    .trk-btn {
        padding: 0 10px;
    }
}
/* customer accounts */
.acc-f {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: start;
}
.acc-f input {
    height: 48px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--ink);
    box-sizing: border-box;
}
.acc-f input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.acc-go {
    height: 48px;
    font-size: 1rem;
}
.acc-sw {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: var(--ink-2);
}
.acc-out {
    width: 100%;
    height: 44px;
    color: var(--danger);
    border-color: var(--danger-soft);
}
.wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    background: #25d366;
    color: #fff !important;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}
.wal .wa-btn {
    width: 100%;
}
#walletBtn.in {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-ink);
}
.need-login {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    border: 1px dashed var(--accent);
    background: var(--accent-soft);
    border-radius: 14px;
    padding: 18px 14px;
    margin-top: 6px;
}
.need-login b {
    font-size: 1.02rem;
}
.need-login p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--ink-2);
    line-height: 1.6;
}
.nl-a {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.nl-a .sm-btn {
    height: 44px;
    width: 100%;
}
.cred {
    border: 2px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.cred-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.cred-h .pm-x {
    position: static;
    width: 34px;
    height: 34px;
}
.cred-kv {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.cred-kv div {
    background: var(--surface);
    border-radius: 10px;
    padding: 8px 10px;
}
.cred-kv dt {
    font-size: 0.74rem;
    color: var(--ink-2);
}
.cred-kv dd {
    margin: 0;
    font-weight: 700;
    text-align: start;
}
.cred-pw {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: var(--accent-ink);
}
.cred-a {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cred-a .sm-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.u-sec {
    margin-top: 14px;
}
.u-sec h3 {
    font-size: 1rem;
    margin: 0 0 8px;
}
.u-reqs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.u-req {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    padding: 12px 14px;
}
.u-req > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.u-req small {
    color: var(--ink-2);
    font-size: 0.74rem;
}
.u-req p {
    margin: 4px 0 0;
    font-size: 0.84rem;
    color: var(--ink-2);
}
.u-req-a {
    display: flex;
    gap: 8px;
}
.u-req-a .sm-btn {
    height: 40px;
}
.wal-hist li .link-btn {
    white-space: nowrap;
    flex-shrink: 0;
}
.u-act {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .cred-kv {
        grid-template-columns: 1fr;
    }
    .u-req-a {
        width: 100%;
    }
    .u-req-a .sm-btn {
        flex: 1;
    }
}
/* account menu */
.top-in {
    position: relative;
}
.acc-menu {
    position: absolute;
    top: calc(100% - 4px);
    inset-inline-end: 16px;
    width: 290px;
    z-index: 40;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 30, 20, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.acc-menu[hidden] {
    display: none;
}
.acc-menu button,
.acc-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: none;
    border: 0;
    padding: 12px 18px;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}
.acc-menu button:hover,
.acc-menu a:hover,
.acc-menu [role="menuitem"]:focus-visible {
    background: var(--surface-2);
    outline: none;
}
.acc-menu svg {
    flex-shrink: 0;
    color: var(--ink-2);
}
.am-head {
    padding: 16px 18px !important;
    border-bottom: 1px solid var(--line);
}
.am-av {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.am-av.lg {
    width: 72px;
    height: 72px;
    font-size: 1.4rem;
}
.am-who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.am-who b {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.am-who small {
    color: var(--ink-2);
    font-size: 0.82rem;
}
.am-list {
    padding: 6px 0;
}
.am-foot {
    border-top: 1px solid var(--line);
    padding: 6px 0;
}
.am-out,
.am-out svg {
    color: var(--danger) !important;
}
@media (max-width: 640px) {
    .acc-menu {
        inset-inline: 12px;
        width: auto;
        top: calc(100% - 2px);
    }
}
.pf-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: -6px;
}
.pf-name {
    font-size: 1.1rem;
}
.pf-top small {
    color: var(--ink-2);
    font-size: 0.8rem;
}
.pf-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.pf-stats div {
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 12px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.pf-stats b {
    font-size: 1.15rem;
}
.pf-stats small {
    font-size: 0.72rem;
    color: var(--ink-2);
    text-align: center;
}
.pf-pw {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}
.pf-pw h3 {
    font-size: 1rem;
    margin: 0;
}
.acc-f .hint {
    font-size: 0.74rem;
    margin-top: 4px;
    display: block;
}
.acc-ol {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: start;
}
.acc-ol li {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--surface);
}
.acc-oh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.acc-ol small {
    color: var(--ink-2);
    font-size: 0.78rem;
    line-height: 1.6;
}
.acc-oa {
    display: flex;
    gap: 8px;
}
.acc-oa .sm-btn {
    height: 38px;
    flex: 1;
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 0 8px;
}
/* ===== full-page cart (marketplace style) ===== */
.drawer.cartpage {
    inset: 0;
    width: 100%;
    max-width: none;
    background: var(--bg);
    box-shadow: none;
    display: block;
    overflow-y: auto;
    z-index: 41;
    padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
}
.cartpage[hidden] {
    display: none;
}
.cp-h {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(15, 30, 20, 0.05);
}
.cp-h-in {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.cp-h h1 {
    font-size: 1.2rem;
    margin: 0;
}
.cp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 10px;
    height: 40px;
    padding: 0 12px;
    font-weight: 600;
    cursor: pointer;
}
.cp-back:hover {
    background: var(--surface-2);
}
.cp-arrow {
    font-size: 1.3rem;
    line-height: 1;
}
.cp-steps {
    list-style: none;
    margin: 0 auto 0 0;
    padding: 0;
    display: flex;
    gap: 6px;
    align-items: center;
}
[dir="ltr"] .cp-steps {
    margin: 0 0 0 auto;
}
.cp-steps li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--ink-2);
    font-weight: 600;
}
.cp-steps li + li::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--line);
    margin-inline-end: 6px;
}
.cp-steps span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    font-size: 0.78rem;
}
.cp-steps li.on {
    color: var(--ink);
}
.cp-steps li.on span {
    background: var(--accent);
    color: #fff;
}
.cp-steps li.done span {
    background: var(--accent-soft);
    color: var(--accent-ink);
}
.cp-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}
.cp-main,
.cp-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.cp-side {
    position: sticky;
    top: 84px;
}
.cp-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}
.cp-st {
    font-size: 1.1rem;
    margin: 0 0 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.cp-st small {
    font-size: 0.82rem;
    color: var(--ink-2);
    font-weight: 600;
}
.cp-st.sm {
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.cp-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.cp-it {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.cp-it:first-child {
    border-top: 0;
    padding-top: 0;
}
.cp-img {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}
.cp-img .pimg {
    width: 100%;
    aspect-ratio: 1;
    border: 0;
    border-radius: 0;
}
.cp-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.cp-name {
    font-size: 1rem;
    line-height: 1.4;
}
.cp-info small {
    color: var(--ink-2);
    font-size: 0.8rem;
}
.cp-pn {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.cp-info .stock-ok,
.cp-info .stock-low {
    font-weight: 600;
}
.cp-acts {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.cp-a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.cp-a:hover {
    color: var(--ink);
    border-color: var(--ink-2);
}
.cp-a[data-rm]:hover {
    color: var(--danger);
    border-color: var(--danger);
}
.cp-buy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: end;
}
.cp-lt {
    font-size: 1.15rem;
}
.cp-lt small {
    font-size: 0.75rem;
    color: var(--ink-2);
}
.cp-buy > small {
    font-size: 0.74rem;
    color: var(--ink-2);
}
.cp-buy .qty {
    margin-top: auto;
}
.cp-sg-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}
.cp-sg-row .pcard {
    flex: 0 0 210px;
    scroll-snap-align: start;
}
.cp-sum .sum-rows {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sum-rows div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.92rem;
}
.sum-rows dt {
    color: var(--ink-2);
}
.sum-rows dd {
    margin: 0;
    font-weight: 600;
}
.sum-rows .grand {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 1.08rem;
}
.sum-rows .grand dt,
.sum-rows .grand dd {
    color: var(--ink);
    font-weight: 800;
}
.sum-rows .disc-row dd,
.sum-rows .wal-row dd {
    color: var(--accent-ink);
}
.cp-sum .checkout {
    width: 100%;
    margin-top: 14px;
    height: 50px;
    font-size: 1rem;
    position: static;
    box-shadow: none;
}
.cp-edit {
    display: block;
    margin: 10px auto 0;
}
.cp-hint p {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    font-size: 0.84rem;
    color: var(--ink-2);
    line-height: 1.6;
}
.cp-hint p + p {
    margin-top: 8px;
}
.cp-hint svg {
    flex-shrink: 0;
    color: var(--accent-ink);
}
.cp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 48px 16px;
}
.cp-empty-ic {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
}
.cp-empty b {
    font-size: 1.2rem;
}
.cp-empty p {
    margin: 0;
    color: var(--ink-2);
}
.cp-empty .sm-btn {
    height: 44px;
    padding: 0 22px;
    margin-top: 6px;
}
.cp-form {
    border-top: 1px solid var(--line);
}
.cp-main .totals {
    padding: 16px;
}
.cp-bar {
    display: none;
}
@media (max-width: 900px) {
    .cp-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px 12px 90px;
    }
    .cp-side {
        position: static;
    }
    .cp-sum .checkout,
    .cp-sum #orderMsg {
        display: none;
    }
    .cp-bar:not([hidden]) {
        display: flex;
        position: fixed;
        bottom: 0;
        inset-inline: 0;
        z-index: 6;
        background: var(--surface);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 18px rgba(15, 30, 20, 0.1);
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        align-items: center;
        gap: 12px;
    }
    .cp-bar > div {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }
    .cp-bar small {
        font-size: 0.74rem;
        color: var(--ink-2);
    }
    .cp-bar b {
        font-size: 1.1rem;
    }
    .cp-bar .checkout {
        flex: 1;
        margin: 0;
        height: 48px;
        position: static;
        box-shadow: none;
    }
}
@media (max-width: 640px) {
    .cp-h-in {
        padding: 10px 12px;
        gap: 10px;
    }
    .cp-h h1 {
        font-size: 1.05rem;
    }
    .cp-back [data-t] {
        display: none;
    }
    .cp-back {
        width: 40px;
        justify-content: center;
        padding: 0;
    }
    .cp-steps li {
        font-size: 0.76rem;
    }
    .cp-steps li + li::before {
        width: 14px;
    }
    .cp-card {
        padding: 12px;
        border-radius: 14px;
    }
    .cp-it {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 10px;
    }
    .cp-buy {
        grid-column: 1/-1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: start;
    }
    .cp-buy .qty {
        margin: 0;
    }
    .cp-sg-row .pcard {
        flex-basis: 170px;
    }
}
/* accounts: payment filter with logos */
.acct-pay {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.ap-l {
    font-size: 0.82rem;
    color: var(--ink-2);
    font-weight: 600;
    margin-inline-end: 4px;
}
.pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    padding: 6px 12px 6px 8px;
    cursor: pointer;
    color: var(--ink);
    text-align: start;
    min-height: 52px;
}
.pay-chip.all {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 6px 14px;
}
.pay-chip:hover {
    border-color: var(--accent);
}
.acct-pay .pay-chip[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent);
    color: var(--ink);
}
.acct-pay .pay-chip[aria-pressed="true"] small {
    color: var(--ink-2);
}
.pc-logo {
    width: 54px;
    height: 34px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--accent-ink);
}
.pc-logo img {
    max-width: 46px;
    max-height: 26px;
    object-fit: contain;
}
.pc-t {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.pay-chip b {
    font-size: 0.86rem;
}
.pay-chip small {
    font-size: 0.74rem;
    color: var(--ink-2);
}
@media (max-width: 640px) {
    .acct-pay {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .ap-l {
        display: none;
    }
    .pay-chip {
        flex-shrink: 0;
    }
}
.adr-add {
    width: 100%;
    height: 46px;
}
.adr-f {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: var(--bg);
}
.adr-f h3 {
    margin: 0;
    font-size: 1rem;
}
.adr-f select {
    height: 48px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 12px;
    background: var(--surface);
    color: var(--ink);
}
.adr-fa {
    display: flex;
    gap: 8px;
}
.adr-fa .sm-btn {
    flex: 1;
    height: 44px;
}
.neg-b {
    color: var(--danger) !important;
}
/* invoice customer block */
.iv-party dd.bidi {
    unicode-bidi: plaintext;
    text-align: start;
}
.iv-pay {
    display: flex;
    align-items: center;
    gap: 8px;
}
.iv-pl {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    height: 28px;
    padding: 0 4px;
    border: 1px solid #d9dfd5;
    border-radius: 6px;
    background: #fff;
    color: #2e7d32;
}
.iv-pl:empty {
    display: none;
}
.iv-pl img {
    max-height: 20px;
    max-width: 40px;
    object-fit: contain;
}
.iv-pl svg {
    width: 18px;
    height: 18px;
}
.iv-extra dd {
    color: #1f6f2a;
}
.iv-extra dd small {
    color: #5b6b5e;
    font-weight: 600;
    margin-inline-start: 4px;
}
/* keep every value on the same side as the page (no left/right jumping) */
[dir="rtl"] .iv-party dd {
    text-align: right !important;
}
[dir="ltr"] .iv-party dd {
    text-align: left !important;
}
.iv-party dd[dir="ltr"] {
    unicode-bidi: isolate;
}
[dir="rtl"] .iv-pay {
    justify-content: flex-start;
}
.iv-party dl > div {
    grid-template-columns: 128px minmax(0, 1fr) !important;
}
@media (max-width: 640px) {
    .iv-party dl > div {
        grid-template-columns: 112px minmax(0, 1fr) !important;
    }
}
.iv-paybox {
    margin-top: 14px;
}
.iv-paybox dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
}
.iv-paybox dl > div:last-child {
    border-bottom: 1px dashed #e3e8e0;
}
.iv-due dt,
.iv-due dd {
    font-weight: 800;
    color: #13241b;
}
@media (max-width: 640px) {
    .iv-paybox dl {
        grid-template-columns: 1fr;
    }
}
.pdf-mode .iv-paybox dl {
    grid-template-columns: 1fr 1fr;
}

#pmodal {
    z-index: 44;
    overflow: auto;
    align-items: start;
}
.pmodal {
    position: relative;
    width: min(1000px, 100%);
    max-height: none;
    overflow: visible;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-block: 20px;
}
.pm-x {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 1rem;
    z-index: 2;
}
.pm-x:hover {
    background: var(--surface-2);
}
.pm-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.pm-img .pimg {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    border: 1px solid var(--line);
}
.pm-img.out .pimg {
    filter: grayscale(1);
    opacity: 0.6;
}
.pm-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding-top: 4px;
}
.pm-info h2 {
    font-size: 1.6rem;
    line-height: 1.3;
}
.pm-info > .pc-top {
    padding-inline-end: 48px;
    flex-wrap: wrap;
}
.pmodal {
    min-width: 0;
}
.pm-img {
    min-width: 0;
}
.pm-fit {
    color: var(--ink-2);
    font-size: 0.95rem;
}
.pm-pn .pn {
    font-size: 1.05rem;
}
.pm-spec {
    margin: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.pm-spec div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}
.pm-spec div:last-child {
    border-bottom: 0;
}
.pm-spec div:nth-child(odd) {
    background: var(--bg);
}
.pm-spec dt {
    color: var(--ink-2);
    font-weight: 600;
}
.pm-spec dd {
    margin: 0;
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
}
.pm-orig {
    font-family: var(--f-mono);
    font-size: 0.82rem;
    display: block;
    text-align: start;
}
.pm-buy {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.pm-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pm-price b {
    font-family: var(--f-display);
    font-size: 2rem;
    line-height: 1.1;
}
.pm-price b small {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-2);
}
.pm-price > small {
    color: var(--ink-2);
    font-size: 0.8rem;
}
.pm-act {
    display: flex;
    gap: 10px;
    align-items: center;
}
.pm-qty button {
    width: 40px;
    height: 44px;
}
.pm-qty b {
    min-width: 28px;
    text-align: center;
}
.pm-add {
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.pm-add:disabled {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid var(--danger);
    cursor: not-allowed;
}
.pm-sec {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.sg:focus-visible,
.pcard:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
@media (max-width: 760px) {
    .pmodal {
        padding: 16px;
        margin-block: 8px;
    }
    .pm-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .pm-img .pimg {
        aspect-ratio: 4/3;
    }
    .pm-info h2 {
        font-size: 1.3rem;
    }
    .pm-spec div {
        grid-template-columns: 100px minmax(0, 1fr);
    }
    .pm-act {
        width: 100%;
    }
    .pm-add {
        flex: 1;
    }
}
.cfilter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-end;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
}
.cf-t {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--accent-ink);
    align-self: center;
    margin-inline-end: 6px;
}
.cfilter .field {
    flex: 1 1 180px;
}
.cfilter select {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 10px;
    background: var(--bg);
    color: var(--ink);
    font-size: 0.92rem;
    width: 100%;
}
.cfilter select:disabled {
    opacity: 0.55;
}
.cfilter .link-btn {
    align-self: center;
}
/* keep whole product photo visible inside fixed-ratio frames */
.pimg {
    position: relative;
}
.pimg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* brand dropdown with logos */
.bdd {
    position: relative;
    width: 100%;
}
.bdd-btn {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 10px;
    background: var(--bg);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: start;
}
.cfilter .bdd-btn {
    height: 44px;
}
.bdd-btn:hover {
    border-color: var(--accent);
}
.bdd-btn[aria-expanded="true"] {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.bdd-v {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bdd-ph {
    color: var(--ink-2);
}
.bdd-chev {
    flex-shrink: 0;
    color: var(--ink-2);
}
.bdd-list {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: 0;
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-height: 340px;
    overflow: auto;
    min-width: 240px;
}
.bdd-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--ink);
}
.bdd-list li:hover,
.bdd-list li:focus {
    background: var(--surface-2);
    outline: none;
}
.bdd-list li[aria-selected="true"] {
    background: var(--accent-soft);
}
.bdd-list li[aria-selected="true"] .bdd-n {
    font-weight: 700;
    color: var(--accent-ink);
}
.bdd-n {
    flex: 1;
    font-weight: 600;
}
.bdd-list small {
    color: var(--ink-2);
    font-size: 0.78rem;
    white-space: nowrap;
}
.blogo.xs,
.brand-mono.xs {
    width: 48px;
    height: 32px;
    border-radius: 7px;
    flex-shrink: 0;
}
.blogo.xs {
    padding: 3px 5px;
}
.blogo.xs img {
    max-height: 24px;
}
.brand-mono.xs {
    display: grid;
    place-items: center;
    background: #fff;
    color: #13241b;
    border: 1px solid var(--line);
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.03em;
}
.bdd-all {
    background: var(--surface-2) !important;
}
/* PIN */
#pinModal {
    z-index: 60;
}
.pin-modal {
    width: min(380px, 100%);
}
.pin {
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.pin h2 {
    font-size: 1.3rem;
}
.pin-ic {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
}
.pin-in {
    width: 200px;
    height: 56px;
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 0.6em;
    padding-inline-start: 0.6em;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink);
}
.pin-in:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.pin-acts {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}
.pin-acts .sm-btn {
    min-width: 110px;
    height: 44px;
}
@media (prefers-reduced-motion: no-preference) {
    .shake {
        animation: shake 0.35s;
    }
    @keyframes shake {
        25% {
            transform: translateX(-8px);
        }
        50% {
            transform: translateX(8px);
        }
        75% {
            transform: translateX(-4px);
        }
    }
}
/* centered category tiles */
.ctile {
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 22px 14px;
}
.ctile .ct-ic.ct-photo {
    width: 96px;
    height: 96px;
}
.ctile b {
    font-size: 1.2rem;
    line-height: 1.35;
}
.ctile small {
    font-size: 0.95rem;
}
/* phone: two cards per row */
@media (max-width: 640px) {
    .parts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .pcard {
        padding: 8px;
        gap: 6px;
        border-radius: 12px;
    }
    .pcard .pimg {
        aspect-ratio: 1/1;
    }
    .pcard .pc-top {
        min-height: 0;
    }
    .pcard .maker {
        padding: 2px 4px;
    }
    .pcard .maker img {
        height: 13px;
    }
    .pcard .side {
        font-size: 0.64rem;
        padding: 1px 5px;
    }
    .pc-name {
        font-size: 0.86rem;
        line-height: 1.3;
    }
    .pc-fit {
        font-size: 0.72rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .pc-pn {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 4px 6px;
    }
    .pc-pn small {
        font-size: 0.62rem;
    }
    .pc-pn .pn {
        font-size: 0.7rem;
        word-break: break-all;
    }
    .pcard .stock-ok,
    .pcard .stock-low,
    .pcard .stock-out {
        font-size: 0.7rem;
    }
    .pcard .warn-note {
        font-size: 0.66rem;
        line-height: 1.35;
    }
    .pcard .price {
        font-size: 0.95rem;
    }
    .pcard .price small {
        font-size: 0.66rem;
    }
    .pcard .add {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
    .pcard.sel::after {
        top: 6px;
        inset-inline-start: 6px;
        font-size: 0.6rem;
        padding: 1px 6px;
    }
}
/* dashboard tabs as tiles */
.tabs {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    border-bottom: 0;
    overflow: visible;
    padding: 4px 0;
}
.tab {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 14px 6px;
    min-height: 96px;
    border: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 0;
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink-2);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    transition:
        border-color 0.15s,
        background 0.15s;
}
.tab:hover {
    border-color: var(--accent);
    color: var(--ink);
}
.tab-ic {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--accent-ink);
}
.tab-ic .badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    display: grid;
    place-items: center;
    border: 2px solid var(--surface);
}
.tab-l {
    font-size: 0.86rem;
    font-weight: 600;
}
.tab[aria-selected="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--ink);
    box-shadow: 0 0 0 1px var(--accent);
}
.tab[aria-selected="true"] .tab-ic {
    background: var(--accent);
    color: #fff;
}
.tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
@media (max-width: 900px) {
    .tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .tabs {
        gap: 8px;
    }
    .tab {
        justify-content: flex-start;
        min-height: 92px;
        padding: 12px 4px 8px;
        gap: 6px;
        border-radius: 14px;
    }
    .tab-ic {
        width: 42px;
        height: 42px;
    }
    .tab-ic svg {
        width: 21px;
        height: 21px;
    }
    .tab-l {
        font-size: 0.76rem;
    }
}
/* card qty stepper */
.buy-ctl {
    display: inline-flex;
}
.cq {
    display: inline-flex;
    align-items: center;
    height: 36px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    overflow: hidden;
}
.cq button {
    width: 34px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}
.cq button:hover {
    background: rgba(0, 0, 0, 0.15);
}
.cq button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.cq button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}
.cq b {
    min-width: 22px;
    text-align: center;
    font-size: 0.95rem;
}
@media (max-width: 640px) {
    .cq {
        height: 34px;
    }
    .cq button {
        width: 30px;
        height: 34px;
        font-size: 1.05rem;
    }
    .cq b {
        min-width: 18px;
        font-size: 0.88rem;
    }
}
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--accent);
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.copy-btn:hover {
    background: var(--accent);
    color: #fff;
}
.copy-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.copy-btn.ok {
    background: var(--accent);
    color: #fff;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}
.leaflet-container {
    overflow: hidden;
}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}
.leaflet-tile::selection {
    background: transparent;
}
.leaflet-safari .leaflet-tile {
    image-rendering: -webkit-optimize-contrast;
}
.leaflet-safari .leaflet-tile-container {
    width: 1600px;
    height: 1600px;
    -webkit-transform-origin: 0 0;
}
.leaflet-marker-icon,
.leaflet-marker-shadow {
    display: block;
}
.leaflet-container .leaflet-overlay-pane svg {
    max-width: none !important;
    max-height: none !important;
}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
    max-width: none !important;
    max-height: none !important;
    width: auto;
    padding: 0;
}
.leaflet-container img.leaflet-tile {
    mix-blend-mode: plus-lighter;
}
.leaflet-container.leaflet-touch-zoom {
    -ms-touch-action: pan-x pan-y;
    touch-action: pan-x pan-y;
}
.leaflet-container.leaflet-touch-drag {
    -ms-touch-action: pinch-zoom;
    touch-action: none;
    touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
    -ms-touch-action: none;
    touch-action: none;
}
.leaflet-container {
    -webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
    -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
    filter: inherit;
    visibility: hidden;
}
.leaflet-tile-loaded {
    visibility: inherit;
}
.leaflet-zoom-box {
    width: 0;
    height: 0;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    z-index: 800;
}
.leaflet-overlay-pane svg {
    -moz-user-select: none;
}
.leaflet-pane {
    z-index: 400;
}
.leaflet-tile-pane {
    z-index: 200;
}
.leaflet-overlay-pane {
    z-index: 400;
}
.leaflet-shadow-pane {
    z-index: 500;
}
.leaflet-marker-pane {
    z-index: 600;
}
.leaflet-tooltip-pane {
    z-index: 650;
}
.leaflet-popup-pane {
    z-index: 700;
}
.leaflet-map-pane canvas {
    z-index: 100;
}
.leaflet-map-pane svg {
    z-index: 200;
}
.leaflet-vml-shape {
    width: 1px;
    height: 1px;
}
.lvml {
    behavior: url(#default#VML);
    display: inline-block;
    position: absolute;
}
.leaflet-control {
    position: relative;
    z-index: 800;
    pointer-events: visiblePainted;
    pointer-events: auto;
}
.leaflet-top,
.leaflet-bottom {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}
.leaflet-top {
    top: 0;
}
.leaflet-right {
    right: 0;
}
.leaflet-bottom {
    bottom: 0;
}
.leaflet-left {
    left: 0;
}
.leaflet-control {
    float: left;
    clear: both;
}
.leaflet-right .leaflet-control {
    float: right;
}
.leaflet-top .leaflet-control {
    margin-top: 10px;
}
.leaflet-bottom .leaflet-control {
    margin-bottom: 10px;
}
.leaflet-left .leaflet-control {
    margin-left: 10px;
}
.leaflet-right .leaflet-control {
    margin-right: 10px;
}
.leaflet-fade-anim .leaflet-popup {
    opacity: 0;
    -webkit-transition: opacity 0.2s linear;
    -moz-transition: opacity 0.2s linear;
    transition: opacity 0.2s linear;
}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
    opacity: 1;
}
.leaflet-zoom-animated {
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
}
svg.leaflet-zoom-animated {
    will-change: transform;
}
.leaflet-zoom-anim .leaflet-zoom-animated {
    -webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
    -moz-transition: -moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
    transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1);
}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
    -webkit-transition: none;
    -moz-transition: none;
    transition: none;
}
.leaflet-zoom-anim .leaflet-zoom-hide {
    visibility: hidden;
}
.leaflet-interactive {
    cursor: pointer;
}
.leaflet-grab {
    cursor: -webkit-grab;
    cursor: -moz-grab;
    cursor: grab;
}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
    cursor: crosshair;
}
.leaflet-popup-pane,
.leaflet-control {
    cursor: auto;
}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
    cursor: move;
    cursor: -webkit-grabbing;
    cursor: -moz-grabbing;
    cursor: grabbing;
}
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
    pointer-events: none;
}
.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
    pointer-events: visiblePainted;
    pointer-events: auto;
}
.leaflet-container {
    background: #ddd;
    outline-offset: 1px;
}
.leaflet-container a {
    color: #0078a8;
}
.leaflet-zoom-box {
    border: 2px dotted #38f;
    background: rgba(255, 255, 255, 0.5);
}
.leaflet-container {
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-size: 0.75rem;
    line-height: 1.5;
}
.leaflet-bar {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    border-radius: 4px;
}
.leaflet-bar a {
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    width: 26px;
    height: 26px;
    line-height: 26px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: black;
}
.leaflet-bar a,
.leaflet-control-layers-toggle {
    background-position: 50% 50%;
    background-repeat: no-repeat;
    display: block;
}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
    background-color: #f4f4f4;
}
.leaflet-bar a:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.leaflet-bar a:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom: none;
}
.leaflet-bar a.leaflet-disabled {
    cursor: default;
    background-color: #f4f4f4;
    color: #bbb;
}
.leaflet-touch .leaflet-bar a {
    width: 30px;
    height: 30px;
    line-height: 30px;
}
.leaflet-touch .leaflet-bar a:first-child {
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}
.leaflet-touch .leaflet-bar a:last-child {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    font:
        bold 18px "Lucida Console",
        Monaco,
        monospace;
    text-indent: 1px;
}
.leaflet-touch .leaflet-control-zoom-in,
.leaflet-touch .leaflet-control-zoom-out {
    font-size: 22px;
}
.leaflet-control-layers {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    background: #fff;
    border-radius: 5px;
}
.leaflet-control-layers-toggle {
    background-image: url(images/layers.png);
    width: 36px;
    height: 36px;
}
.leaflet-retina .leaflet-control-layers-toggle {
    background-image: url(images/layers-2x.png);
    background-size: 26px 26px;
}
.leaflet-touch .leaflet-control-layers-toggle {
    width: 44px;
    height: 44px;
}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
    display: none;
}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
    display: block;
    position: relative;
}
.leaflet-control-layers-expanded {
    padding: 6px 10px 6px 6px;
    color: #333;
    background: #fff;
}
.leaflet-control-layers-scrollbar {
    overflow-y: scroll;
    overflow-x: hidden;
    padding-right: 5px;
}
.leaflet-control-layers-selector {
    margin-top: 2px;
    position: relative;
    top: 1px;
}
.leaflet-control-layers label {
    display: block;
    font-size: 13px;
    font-size: 1.08333em;
}
.leaflet-control-layers-separator {
    height: 0;
    border-top: 1px solid #ddd;
    margin: 5px -10px 5px -6px;
}
.leaflet-default-icon-path {
    background-image: url(images/marker-icon.png);
}
.leaflet-container .leaflet-control-attribution {
    background: #fff;
    background: rgba(255, 255, 255, 0.8);
    margin: 0;
}
.leaflet-control-attribution,
.leaflet-control-scale-line {
    padding: 0 5px;
    color: #333;
    line-height: 1.4;
}
.leaflet-control-attribution a {
    text-decoration: none;
}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
    text-decoration: underline;
}
.leaflet-attribution-flag {
    display: inline !important;
    vertical-align: baseline !important;
    width: 1em;
    height: 0.6669em;
}
.leaflet-left .leaflet-control-scale {
    margin-left: 5px;
}
.leaflet-bottom .leaflet-control-scale {
    margin-bottom: 5px;
}
.leaflet-control-scale-line {
    border: 2px solid #777;
    border-top: none;
    line-height: 1.1;
    padding: 2px 5px 1px;
    white-space: nowrap;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px #fff;
}
.leaflet-control-scale-line:not(:first-child) {
    border-top: 2px solid #777;
    border-bottom: none;
    margin-top: -2px;
}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
    border-bottom: 2px solid #777;
}
.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
    box-shadow: none;
}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
}
.leaflet-popup {
    position: absolute;
    text-align: center;
    margin-bottom: 20px;
}
.leaflet-popup-content-wrapper {
    padding: 1px;
    text-align: left;
    border-radius: 12px;
}
.leaflet-popup-content {
    margin: 13px 24px 13px 20px;
    line-height: 1.3;
    font-size: 13px;
    font-size: 1.08333em;
    min-height: 1px;
}
.leaflet-popup-content p {
    margin: 17px 0;
    margin: 1.3em 0;
}
.leaflet-popup-tip-container {
    width: 40px;
    height: 20px;
    position: absolute;
    left: 50%;
    margin-top: -1px;
    margin-left: -20px;
    overflow: hidden;
    pointer-events: none;
}
.leaflet-popup-tip {
    width: 17px;
    height: 17px;
    padding: 1px;
    margin: -10px auto 0;
    pointer-events: auto;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: white;
    color: #333;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}
.leaflet-container a.leaflet-popup-close-button {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    text-align: center;
    width: 24px;
    height: 24px;
    font:
        16px/24px Tahoma,
        Verdana,
        sans-serif;
    color: #757575;
    text-decoration: none;
    background: transparent;
}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
    color: #585858;
}
.leaflet-popup-scrolled {
    overflow: auto;
}
.leaflet-oldie .leaflet-popup-content-wrapper {
    -ms-zoom: 1;
}
.leaflet-oldie .leaflet-popup-tip {
    width: 24px;
    margin: 0 auto;
    -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
    filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
}
.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
    border: 1px solid #999;
}
.leaflet-div-icon {
    background: #fff;
    border: 1px solid #666;
}
.leaflet-tooltip {
    position: absolute;
    padding: 6px;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 3px;
    color: #222;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.leaflet-tooltip.leaflet-interactive {
    cursor: pointer;
    pointer-events: auto;
}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
    position: absolute;
    pointer-events: none;
    border: 6px solid transparent;
    background: transparent;
    content: "";
}
.leaflet-tooltip-bottom {
    margin-top: 6px;
}
.leaflet-tooltip-top {
    margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
    left: 50%;
    margin-left: -6px;
}
.leaflet-tooltip-top:before {
    bottom: 0;
    margin-bottom: -12px;
    border-top-color: #fff;
}
.leaflet-tooltip-bottom:before {
    top: 0;
    margin-top: -12px;
    margin-left: -6px;
    border-bottom-color: #fff;
}
.leaflet-tooltip-left {
    margin-left: -6px;
}
.leaflet-tooltip-right {
    margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
    top: 50%;
    margin-top: -6px;
}
.leaflet-tooltip-left:before {
    right: 0;
    margin-right: -12px;
    border-left-color: #fff;
}
.leaflet-tooltip-right:before {
    left: 0;
    margin-left: -12px;
    border-right-color: #fff;
}
@media print {
    .leaflet-control {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

#catalog .ct-ic.ct-photo {
    background: #fff;
    padding: 10px;
}
#catalog .ct-ic.ct-photo img {
    object-fit: contain;
}

/* as tall as its content (photo, name, count), so no empty band under it */
#catalog .ctile {
    min-height: 0;
    padding-bottom: 18px;
}

/* ---------- header: centered search + account menu ---------- */
a.nh-btn,
a.logo-home {
    text-decoration: none;
}
/* 28px = category row padding (16) + .cat padding (2) + centered 72px circle offset (10),
   so the logo lines up with the "All" circle below */
.top-in.nh {
    max-width: none;
    padding-inline: 28px;
}
/* cancel the last button's own 10px padding so its icon/text sits on the same gutter */
.top-actions > :last-child {
    margin-inline-end: -10px;
}
@media (max-width: 760px) {
    .top-in.nh {
        padding-inline: 12px;
    }
    .top-tools > :last-child {
        margin-inline-end: -10px;
    }
}
.nh-side {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
/* equal side tracks keep the search exactly centered */
@media (min-width: 1181px) {
    .top-in.nh {
        grid-template-columns: 1fr minmax(300px, 1.3fr) 1fr;
        grid-template-areas: "start search end";
    }
    .nh-start {
        grid-area: start;
        justify-self: start;
    }
    .nh-end {
        grid-area: end;
        justify-self: end;
    }
}
/* below desktop the reference's own logo/loc/tools/actions grid areas take over */
@media (max-width: 1180px) {
    .nh-side {
        display: contents;
    }
}
.nh-profile {
    position: relative;
}
.nh-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* compact account menu, anchored under the profile button */
.nh-profile .acc-menu {
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: 210px;
    border-radius: 12px;
}
.nh-profile .acc-menu button,
.nh-profile .acc-menu a {
    gap: 10px;
    padding: 8px 14px;
    font-size: 0.88rem;
}
.nh-profile .acc-menu svg {
    width: 18px;
    height: 18px;
}
.nh-profile .am-head {
    padding: 10px 14px !important;
}
.nh-profile .am-av {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
}
.nh-profile .am-who b {
    font-size: 0.9rem;
}
.nh-profile .am-who small {
    font-size: 0.74rem;
}
.nh-profile .am-list,
.nh-profile .am-foot {
    padding: 4px 0;
}
/* caret centered under the profile button; only its upper half is visible */
.nh-profile.is-open::after {
    content: "";
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    transform: translateX(-50%) rotate(45deg);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 41;
}
.nh-profile .chev {
    transition: transform 0.15s;
}
.nh-profile.is-open .chev {
    transform: rotate(180deg);
}
.acc-menu form {
    margin: 0;
}
@media (max-width: 640px) {
    .nh-profile {
        position: static;
    }
    .nh-profile .acc-menu {
        top: calc(100% - 2px);
        inset-inline: 12px;
        width: auto;
    }
    .nh-profile.is-open::after {
        display: none;
    }
}

/* ---------- account pages ---------- */
.acct-page {
    min-height: 50vh;
}
.acct-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 640px;
}
.acct-head {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.1rem;
}
.acct-kv {
    margin: 0;
    display: grid;
    gap: 12px;
}
.acct-kv > div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.acct-kv dt {
    color: var(--ink-2);
    font-size: 0.88rem;
}
.acct-kv dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}
a.sm-btn {
    display: inline-block;
    text-decoration: none;
}
@media (max-width: 640px) {
    .acct-kv > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ---------- category bar: full width, scrollable, no visible scrollbar ---------- */
.cats-in {
    max-width: none;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cats-in::-webkit-scrollbar {
    display: none;
}
/* "All" stays pinned while the other categories scroll past underneath it */
.cats-in > .cat:first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    background: var(--surface);
}
/* cover the bar's 16px start padding too, so passing circles don't peek out beside "All" */
.cats-in > .cat:first-child {
    box-shadow: -16px 0 0 var(--surface);
}
[dir="rtl"] .cats-in > .cat:first-child {
    box-shadow: 16px 0 0 var(--surface);
}
/* stretch "All" to the bar's full height so taller (multi-line) labels passing beneath it stay hidden */
.cats-in > .cat:first-child {
    align-self: stretch;
}

/* ---------- hero slider: rounded corners with a little space around, as in the reference design ---------- */
.ads:not(.ads-compact) .ads-in {
    padding: 16px 20px 4px;
}
.ads:not(.ads-compact) .ads-track {
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 42, 24, 0.18);
    outline: 1px solid var(--line);
    outline-offset: -1px;
}
@media (max-width: 640px) {
    .ads:not(.ads-compact) .ads-in {
        padding: 12px 12px 2px;
    }
    .ads:not(.ads-compact) .ads-track {
        border-radius: 14px;
    }
}

/* ---------- category page ---------- */
a.cat {
    text-decoration: none;
}
.cat-page {
    min-height: 50vh;
}
.empty-parts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 24px;
}
.empty-parts svg {
    color: var(--ink-2);
}
.empty-parts b {
    font-size: 1.15rem;
    color: var(--ink);
}
.empty-parts p {
    margin: 0 0 6px;
    max-width: 420px;
}

/* original price, struck through, next to a discounted price */
.price-was {
    margin-inline-start: 6px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--ink-2);
}

/* ---------- "View all" link in section headers ---------- */
.view-all {
    align-self: center;
    color: var(--accent-ink);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
}
.view-all:hover {
    text-decoration: underline;
}
a.ctile {
    text-decoration: none;
    color: inherit;
}

/* ---------- catalog page: category sidebar + parts ---------- */
.catalog-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.catalog-side {
    position: sticky;
    top: 124px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 10px;
}
.catalog-side-title {
    font-size: 1rem;
    margin: 0 8px 10px;
}
.catalog-side-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.catalog-side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.92rem;
}
.catalog-side-item:hover {
    background: var(--surface-2);
}
.catalog-side-item[aria-current="page"] {
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 700;
}
.catalog-side-ic {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.catalog-side-ic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.catalog-side-ic.all {
    background: var(--surface-2);
}
.catalog-side-name {
    flex: 1;
    min-width: 0;
}
.catalog-side-item small {
    color: var(--ink-2);
    font-weight: 600;
}
/* small screens: sidebar turns into a horizontal strip above the parts */
@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .catalog-side {
        position: static;
        padding: 10px;
    }
    .catalog-side-title {
        display: none;
    }
    .catalog-side-list {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .catalog-side-list::-webkit-scrollbar {
        display: none;
    }
    .catalog-side-item {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* ---------- catalog page refinements ---------- */
.home-in.catalog-page {
    max-width: none;
    padding-inline: 28px;
}
.catalog-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 32px;
}
.catalog-side {
    padding: 0;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 30, 20, 0.04);
}
.catalog-side-title {
    margin: 0;
    padding: 16px 18px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line);
}
.catalog-side-list {
    padding: 8px;
    gap: 2px;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    scrollbar-width: thin;
}
.catalog-side-item {
    position: relative;
    padding: 9px 10px;
    border-radius: 10px;
    transition: background-color 0.15s, color 0.15s;
}
.catalog-side-item[aria-current="page"]::before {
    content: "";
    position: absolute;
    inset-block: 8px;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 3px;
    background: var(--accent);
}
.catalog-side-ic {
    width: 34px;
    height: 34px;
}
.catalog-side-item small {
    min-width: 26px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--surface-2);
    text-align: center;
    font-size: 0.78rem;
}
.catalog-side-item[aria-current="page"] small {
    background: var(--accent);
    color: #fff;
}
.catalog-side-item.is-empty:not([aria-current="page"]) .catalog-side-name,
.catalog-side-item.is-empty:not([aria-current="page"]) .catalog-side-ic {
    opacity: 0.55;
}
@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .catalog-side {
        position: static;
    }
    .home-in.catalog-page {
        padding-inline: 12px;
    }
    .catalog-side-title {
        display: none;
    }
    .catalog-side-list {
        max-height: none;
        overflow-y: visible;
    }
    .catalog-side-item[aria-current="page"]::before {
        display: none;
    }
}

/* ---------- responsive tuning ---------- */
/* category tiles: the fixed desktop height leaves big empty boxes on smaller screens */
@media (max-width: 1000px) {
    #catalog .ctile {
        min-height: 0;
    }
}
/* tablets: three part cards per row instead of two oversized ones */
@media (min-width: 641px) and (max-width: 1000px) {
    .parts {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

a.fav-t {
    text-decoration: none;
}
.fav-form {
    display: contents;
}

/* "Find your part in three steps": nearly full screen; side space grows with the screen (15px phones, up to 80px) */
.steps3 {
    margin-inline: calc(50% - 50vw + clamp(15px, 4vw, 80px));
}

/* home sections get the same width as the three-steps box */
#home .home-in > .hsec {
    margin-inline: calc(50% - 50vw + clamp(15px, 4vw, 80px));
}
/* desktop: cards keep their original size; leftover space goes between them so every row reaches both edges */
@media (min-width: 1001px) {
    #home .cat-tiles {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
    }
    #home .brand-tiles {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
    }
    #home .parts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* part cards: 6 per row on large screens, fewer on mid-size laptops so they do not get too thin */
@media (min-width: 1200px) {
    #home .parts {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (min-width: 1400px) {
    #home .parts {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
#home .hsec-h {
    align-items: flex-end;
}
.hsec-h-end {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* category tiles: 9 per row on large screens, fewer on smaller laptops */
@media (min-width: 1200px) {
    #home .cat-tiles {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}
@media (min-width: 1600px) {
    #home .cat-tiles {
        grid-template-columns: repeat(9, minmax(0, 1fr));
    }
}

/* car-make tiles: 9 per row on large screens, fewer on smaller laptops */
@media (min-width: 1200px) {
    #home .brand-tiles {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}
@media (min-width: 1600px) {
    #home .brand-tiles {
        grid-template-columns: repeat(9, minmax(0, 1fr));
    }
}

/* slides with a link: the link fills the whole slide */
.ad-slide > a {
    display: block;
    height: 100%;
}
/* part card image slider: photos sit side by side, --i picks the visible one */
.pimg-slide {
    transition: transform 0.35s ease;
}
.pimg-slider .pimg-slide {
    transform: translateX(calc((var(--n) - var(--i)) * 100%));
}
[dir="rtl"] .pimg-slider .pimg-slide {
    transform: translateX(calc((var(--i) - var(--n)) * 100%));
}
.pimg-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 28px;
    height: 40px;
    margin-top: -20px;
    border: 0;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.pimg-nav.prev {
    inset-inline-start: 6px;
}
.pimg-nav.next {
    inset-inline-end: 6px;
}
[dir="rtl"] .pimg-nav {
    transform: scaleX(-1);
}
.pcard:hover .pimg-nav,
.pimg-nav:focus-visible {
    opacity: 1;
}
.pimg-dots {
    position: absolute;
    bottom: 6px;
    inset-inline: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 4px;
}
.pimg-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
}
.pimg-dots i.on {
    background: rgba(0, 0, 0, 0.7);
}
/* touch screens have no hover, so keep the arrows visible */
@media (hover: none) {
    .pimg-nav {
        opacity: 1;
    }
}

/* ---------- catalog page slider: about half the home slider height, inset from the sides ---------- */
.ads.ads-compact {
    background: transparent;
    margin-bottom: 28px;
}
.ads-compact .ads-track {
    aspect-ratio: 6/1;
    border-radius: 14px;
}
.ads-compact .ad-nav.prev {
    inset-inline-start: 12px;
}
.ads-compact .ad-nav.next {
    inset-inline-end: 12px;
}
.ads-compact .ad-dots {
    bottom: 8px;
}
@media (max-width: 640px) {
    .ads.ads-compact {
        margin-bottom: 18px;
    }
    .ads-compact .ads-track {
        aspect-ratio: 40/7;
        border-radius: 10px;
    }
}

/* ---------- catalog page: slider, category row, parts ---------- */
.home-in.catalog-page {
    padding-top: 24px;
}
.ads.ads-compact {
    margin-bottom: 18px;
}
.ccats {
    position: relative;
    margin-bottom: 26px;
}
.ccats-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 2px 2px 4px;
}
.ccats-track::-webkit-scrollbar {
    display: none;
}
.ccat {
    flex: 0 0 128px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    text-align: center;
}
.ccat-ic {
    width: 128px;
    height: 128px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 2px solid transparent;
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.ccat-ic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ccat-ic.all i {
    font-size: 40px;
    color: var(--accent);
}
.ccat-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ccat:hover .ccat-ic {
    transform: translateY(-2px);
}
.ccat[aria-current="page"] .ccat-ic {
    border-color: var(--accent);
}
.ccat[aria-current="page"] .ccat-name {
    color: var(--accent);
}
.ccat.is-empty {
    opacity: 0.55;
}
.ccats-nav {
    position: absolute;
    top: 64px;
    z-index: 2;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.ccats-nav.prev {
    inset-inline-start: -14px;
}
.ccats-nav.next {
    inset-inline-end: -14px;
}
[dir="rtl"] .ccats-nav {
    transform: scaleX(-1);
}
.catalog-page .catalog-main .parts {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
@media (min-width: 1200px) {
    .catalog-page .catalog-main .parts {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (min-width: 1400px) {
    .catalog-page .catalog-main .parts {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .ccats-nav {
        display: none;
    }
    .ccat {
        flex-basis: 92px;
    }
    .ccat-ic {
        width: 92px;
        height: 92px;
        border-radius: 14px;
    }
    .ccat-name {
        font-size: 12.5px;
    }
    .ccats-track {
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .catalog-page .catalog-main .parts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* catalog: borderless slider, category row as a prominent panel */
.ads-compact .ads-track {
    outline: 0;
    box-shadow: none;
}
.ccats {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px 14px;
    box-shadow: 0 8px 24px rgba(15, 42, 24, 0.08);
}
.ccats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.ccats-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}
.ccats-track {
    gap: 8px;
}
.ccat {
    flex-basis: 116px;
}
.ccat-ic {
    width: 116px;
    height: 116px;
}
.ccats-nav {
    top: calc(50% + 4px);
}
.ccats-nav.prev {
    inset-inline-start: -18px;
}
.ccats-nav.next {
    inset-inline-end: -18px;
}
@media (max-width: 760px) {
    .ccats {
        padding: 12px 12px 10px;
        border-radius: 14px;
    }
    .ccats-head h2 {
        font-size: 16px;
    }
    .ccats-track {
        gap: 6px;
    }
    .ccat {
        flex-basis: 88px;
    }
    .ccat-ic {
        width: 88px;
        height: 88px;
    }
}

/* catalog: tighter spacing between slider, categories and parts */
.home-in.catalog-page {
    gap: 0;
    padding-top: 14px;
}
.ads.ads-compact {
    margin-bottom: 14px;
}
.ccats {
    margin-bottom: 18px;
}
.catalog-page .catalog-main {
    gap: 14px;
}
@media (max-width: 760px) {
    .home-in.catalog-page {
        padding-top: 10px;
    }
    .ads.ads-compact {
        margin-bottom: 10px;
    }
    .ccats {
        margin-bottom: 14px;
    }
}

/* ---------- part card links ---------- */
.pimg-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}
a.pc-name {
    color: inherit;
    text-decoration: none;
}
a.pc-name:hover {
    color: var(--accent);
}

/* ---------- part details page ---------- */
.home-in.pd-page {
    gap: 28px;
    padding-top: 18px;
}
.pd-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-2);
}
.pd-crumbs a {
    color: var(--ink-2);
    text-decoration: none;
}
.pd-crumbs a:hover {
    color: var(--accent);
}
.pd-crumbs [aria-current] {
    color: var(--ink);
    font-weight: 600;
}
.pd-main {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 124px;
}
.pd-stage {
    position: relative;
    aspect-ratio: 1/1;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}
.pd-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    box-sizing: border-box;
}
.pd-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.pd-nav.prev {
    inset-inline-start: 12px;
}
.pd-nav.next {
    inset-inline-end: 12px;
}
[dir="rtl"] .pd-nav {
    transform: scaleX(-1);
}
.pd-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pd-thumb {
    width: 76px;
    height: 76px;
    padding: 4px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pd-thumb[aria-current="true"] {
    border-color: var(--accent);
}
.pd-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}
.pd-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pd-name {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.2;
}
.pd-fit {
    margin: 0;
    color: var(--ink-2);
}
.pd-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}
.pd-price .price {
    font-size: 2rem;
    font-weight: 800;
}
.pd-price .price-was {
    font-size: 1rem;
}
.pd-save {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}
.pd-short {
    margin: 0;
    color: var(--ink-2);
    line-height: 1.6;
}
.pd-buy {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}
.pd-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
}
.pd-qty button {
    width: 42px;
    height: 48px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 20px;
    cursor: pointer;
}
.pd-qty input {
    width: 52px;
    height: 48px;
    border: 0;
    text-align: center;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
    -moz-appearance: textfield;
}
.pd-qty input::-webkit-inner-spin-button,
.pd-qty input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}
.pd-add {
    flex: 1;
    min-height: 48px;
    justify-content: center;
    font-size: 16px;
}
.pd-specs {
    width: 100%;
    margin: 6px 0 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.pd-specs > div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 16px;
}
.pd-specs > div + div {
    border-top: 1px solid var(--line);
}
.pd-specs dt {
    color: var(--ink-2);
    font-weight: 600;
}
.pd-specs dd {
    margin: 0;
    font-weight: 600;
}
.pd-desc {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 24px;
}
.pd-desc h2 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}
.pd-desc-body {
    color: var(--ink-2);
    line-height: 1.75;
}
@media (max-width: 900px) {
    .pd-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .pd-gallery {
        position: static;
    }
    .pd-name {
        font-size: 1.5rem;
    }
    .pd-price .price {
        font-size: 1.6rem;
    }
}
@media (max-width: 480px) {
    .pd-thumb {
        width: 60px;
        height: 60px;
    }
    .pd-specs > div {
        grid-template-columns: 110px minmax(0, 1fr);
        padding: 10px 12px;
    }
    .pd-desc {
        padding: 16px;
    }
}
.sm-btn.pd-add {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
}

/* part details: hover magnifier */
@media (hover: hover) {
    .pd-stage {
        cursor: zoom-in;
    }
    .pd-photo {
        transform-origin: var(--zx, 50%) var(--zy, 50%);
        transition: transform 0.2s ease;
    }
    .pd-stage.zooming .pd-photo {
        transform: scale(2.2);
    }
}

/* ---------- stars ---------- */
.stars {
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 2px;
    white-space: nowrap;
}
.stars-bg {
    color: var(--line);
}
.stars-fill {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    overflow: hidden;
    color: #f5a623;
}

/* ---------- part details: rating + tabs ---------- */
.pd-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink-2);
    font-size: 14px;
    margin-top: -6px;
}
.pd-rating b {
    color: var(--ink);
}
.pd-rating:hover span:last-child {
    text-decoration: underline;
}
.pd-tabs {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    scroll-margin-top: 124px;
}
.pd-tablist {
    display: flex;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}
.pd-tablist [role="tab"] {
    flex: 0 0 auto;
    padding: 16px 24px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--ink-2);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: -1px;
}
.pd-tablist [role="tab"][aria-selected="true"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.pd-panel {
    padding: 22px 24px;
}
.pd-panel h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}
.pd-panel .pd-desc-body {
    margin: 0;
}
.pd-rv-summary {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.pd-rv-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 120px;
}
.pd-rv-score b {
    font-size: 2.6rem;
    line-height: 1;
}
.pd-rv-score .stars {
    font-size: 20px;
}
.pd-rv-score small {
    color: var(--ink-2);
}
.pd-rv-bars {
    flex: 1;
    min-width: 220px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pd-rv-bar {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-2);
}
.pd-rv-track {
    height: 8px;
    border-radius: 99px;
    background: var(--surface-2);
    overflow: hidden;
}
.pd-rv-track i {
    display: block;
    height: 100%;
    background: #f5a623;
    border-radius: 99px;
}
.pd-rv-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pd-rv {
    padding: 18px 0;
}
.pd-rv + .pd-rv {
    border-top: 1px solid var(--line);
}
.pd-rv-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pd-rv-head > div {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.pd-rv-head small {
    color: var(--ink-2);
    font-size: 12.5px;
}
.pd-rv-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--accent);
    font-weight: 800;
    display: grid;
    place-items: center;
}
.pd-rv p {
    margin: 10px 0 0;
    color: var(--ink-2);
    line-height: 1.6;
}
@media (max-width: 480px) {
    .pd-tablist [role="tab"] {
        padding: 14px 16px;
        font-size: 14px;
    }
    .pd-panel {
        padding: 16px;
    }
    .pd-rv-summary {
        gap: 18px;
    }
}
.pd-rv-more {
    display: block;
    margin: 6px auto 0;
    padding: 10px 22px;
    border-radius: 10px;
}

/* ---------- category page: filter sidebar ---------- */
.home-in.cf-page {
    max-width: none;
    padding-inline: 28px;
    padding-top: 24px;
}
.cf-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.cf-side {
    position: sticky;
    top: 124px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
    background: transparent;
    padding-inline-end: 6px;
}
.cf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.cf-head b {
    font-size: 1.1rem;
}
.cf-clear {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 2px 8px;
}
.cf-group {
    border-bottom: 1px solid var(--line);
}
.cf-group summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-weight: 700;
    cursor: pointer;
}
.cf-group summary::-webkit-details-marker {
    display: none;
}
.cf-group summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-inline-end: 2px solid var(--ink-2);
    border-bottom: 2px solid var(--ink-2);
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.2s ease;
}
.cf-group[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}
[dir="rtl"] .cf-group summary::after {
    transform: rotate(-45deg);
}
[dir="rtl"] .cf-group[open] summary::after {
    transform: rotate(-135deg);
}
.cf-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 14px;
}
.cf-scroll {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.cf-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
}
.cf-opt input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--accent);
    flex: 0 0 auto;
}
.cf-price {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.cf-price label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.cf-price small {
    color: var(--ink-2);
    font-size: 12px;
}
.cf-price input {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    box-sizing: border-box;
}
.cf-price > span {
    padding-bottom: 9px;
    color: var(--ink-2);
}
.cf-apply {
    margin-top: 8px;
    padding: 8px 12px;
}
.cf-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
}
.cf-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 99px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    display: inline-grid;
    place-items: center;
}
.cf-page .cf-main .parts {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
@media (min-width: 1400px) {
    .cf-page .cf-main .parts {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .home-in.cf-page {
        padding-inline: 12px;
        padding-top: 16px;
    }
    .cf-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .cf-toggle {
        display: inline-flex;
    }
    .cf-side {
        display: none;
        position: static;
        max-height: none;
        order: 0;
        padding: 14px 16px;
        border: 1px solid var(--line);
        border-radius: 14px;
    }
    .cf-side.open {
        display: block;
    }
}
@media (max-width: 480px) {
    .cf-page .cf-main .parts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* catalog: same side gutters as the home sections */
.home-in.catalog-page {
    padding-inline: clamp(15px, 4vw, 80px);
}
a.btile {
    text-decoration: none;
    color: inherit;
}

/* category / car make page: top rated block above the full list */
.cf-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}
.cf-page .cf-top-rated .parts {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
@media (min-width: 1400px) {
    .cf-page .cf-top-rated .parts {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .cf-page .cf-top-rated .parts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- header cart link + toasts ---------- */
a#cartBtn {
    text-decoration: none;
    color: inherit;
}
a.add {
    text-decoration: none;
    display: inline-grid;
    place-items: center;
}
.flash-toast {
    position: fixed;
    inset-block-end: 24px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    max-width: calc(100vw - 32px);
}
[dir="rtl"] .flash-toast {
    transform: translateX(50%);
}
.flash-toast.is-error {
    background: #b23a2e;
}

/* ---------- cart page ---------- */
.home-in.cart-page {
    max-width: none;
    padding-inline: clamp(15px, 4vw, 80px);
    padding-top: 24px;
    gap: 20px;
    min-height: 50vh;
}
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}
.cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.cart-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
}
.cart-item + .cart-item {
    border-top: 1px solid var(--line);
}
.cart-img {
    width: 110px;
    height: 110px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.cart-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cart-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.cart-name {
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}
.cart-name:hover {
    color: var(--accent);
}
.cart-fit,
.cart-pn {
    color: var(--ink-2);
}
.cart-unit {
    margin-top: 4px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.cart-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.cart-qty button,
.cart-qty input {
    height: 38px;
}
.cart-qty button {
    width: 36px;
}
.cart-qty button:disabled {
    opacity: 0.4;
    cursor: default;
}
.cart-line {
    font-size: 1.05rem;
}
.cart-remove {
    border: 0;
    background: transparent;
    color: #b23a2e;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.cart-summary {
    position: sticky;
    top: 124px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 42, 24, 0.08);
}
.cart-summary h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}
.cart-summary dl {
    margin: 0 0 16px;
}
.cart-summary dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}
.cart-summary dt {
    color: var(--ink-2);
}
.cart-summary dd {
    margin: 0;
    font-weight: 600;
}
.cart-save dd {
    color: var(--accent);
}
.cart-total {
    border-top: 1px solid var(--line);
    margin-top: 6px;
    padding-top: 14px !important;
}
.cart-total dt,
.cart-total dd {
    color: var(--ink);
    font-weight: 800;
    font-size: 1.1rem;
}
.cart-checkout {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    font-size: 15px;
}
.cart-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.cart-continue {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .cart-summary {
        position: static;
    }
}
@media (max-width: 560px) {
    .cart-item {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }
    .cart-img {
        width: 80px;
        height: 80px;
    }
    .cart-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* cart toggle: + / trash on cards, Add / Remove text on the details page */
.js-cart-toggle .when-in,
.js-cart-toggle.in-cart .when-out {
    display: none;
}
.js-cart-toggle.in-cart .when-in {
    display: inline;
}
.add.js-cart-toggle.in-cart {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.add.js-cart-toggle.in-cart i {
    font-size: 14px;
}
.pd-add.js-cart-toggle.in-cart {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* cart: discount code */
.cart-code {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}
.cart-code input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    text-transform: uppercase;
}
.cart-code input.is-invalid {
    border-color: #b23a2e;
}
.cart-code .sm-btn {
    padding: 0 16px;
    border-radius: 10px;
}
.cart-code.applied {
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px dashed var(--accent);
    border-radius: 10px;
    color: var(--accent);
    margin-bottom: 10px;
}
.cart-code-remove {
    border: 0;
    background: transparent;
    color: #b23a2e;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.cart-code-error {
    margin: 0 0 10px;
    color: #b23a2e;
    font-size: 13px;
}
.cart-total small {
    font-weight: 600;
    font-size: 12px;
    color: var(--ink-2);
}

/* cart: frequently bought together */
.cart-together {
    margin-top: 16px;
}
.cart-page .cart-together .parts {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
@media (min-width: 1400px) {
    .cart-page .cart-together .parts {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .cart-page .cart-together .parts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* part card cart stepper: just "+" until added, then [trash|−] qty [+] */
.cart-step {
    display: inline-flex;
    align-items: center;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    transition: background 0.2s ease;
}
.cart-step .cs-dec,
.cart-step .cs-qty {
    display: none;
}
.cart-step.open {
    background: var(--ink);
    color: var(--bg);
    padding: 0 2px;
}
.cart-step.open .cs-dec {
    display: grid;
}
.cart-step.open .cs-qty {
    display: inline-block;
    min-width: 22px;
    text-align: center;
    font-weight: 700;
}
.cart-step .cs-dec {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: inherit;
    place-items: center;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}
.cart-step .cs-dec i {
    font-size: 15px;
}
.cart-step .cs-minus,
.cart-step.multi .cs-trash {
    display: none;
}
.cart-step.multi .cs-minus {
    display: inline;
}
.cart-step.open .cs-inc {
    width: 32px;
    height: 32px;
    background: transparent;
    color: inherit;
}
.cart-step.open .cs-inc:hover,
.cart-step.open .cs-dec:hover {
    background: rgba(255, 255, 255, 0.15);
}
.cart-step .cs-inc:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.cart-step.busy {
    opacity: 0.6;
    pointer-events: none;
}
.cf-select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
}

/* ---------- navbar search suggestions ---------- */
.search {
    position: relative;
    overflow: visible;
}
.search input {
    border-start-start-radius: 10px;
    border-end-start-radius: 10px;
}
.search > button {
    border-start-end-radius: 10px;
    border-end-end-radius: 10px;
}
.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: 0;
    z-index: 1200;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    max-height: 70vh;
    overflow-y: auto;
}
.ss-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 9px 14px;
    color: var(--ink);
    text-decoration: none;
}
.ss-item + .ss-item {
    border-top: 1px solid var(--line);
}
.ss-item:hover,
.ss-item.active {
    background: var(--surface-2);
}
.ss-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
}
.ss-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ss-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ss-text b {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ss-text small {
    color: var(--ink-2);
    font-size: 12px;
}
.ss-price {
    font-weight: 700;
    font-size: 14px;
}
.ss-all {
    display: block;
    padding: 11px 14px;
    border-top: 1px solid var(--line);
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    text-align: center;
}
.ss-empty {
    padding: 14px;
    color: var(--ink-2);
    text-align: center;
}

/* catalog: slider 70% + "Best Selling Parts" box 30% */
.catalog-top {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 14px;
}
.catalog-top > .ads.ads-compact {
    margin-bottom: 0;
}
.catalog-top .ads-compact .ads-track {
    border-radius: 0;
    aspect-ratio: 42/10;
}
/* no slides: the box takes the full row */
.catalog-top > .catalog-promo:only-child {
    grid-column: 1 / -1;
}
.catalog-promo {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}
.catalog-promo h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}
@media (max-width: 900px) {
    .catalog-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 10px;
    }
    .catalog-top .ads-compact .ads-track {
        aspect-ratio: 40/9;
    }
    .catalog-promo {
        min-height: 0;
    }
}

/* "Best Selling Parts" box: engine photo behind, big centered title */
.catalog-promo {
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 0;
    background: #13241b url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=900&q=70") center / cover no-repeat;
}
/* dark layer so the white title stays readable on the photo */
.catalog-promo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 24, 15, 0.78), rgba(10, 24, 15, 0.45));
}
.catalog-promo h2 {
    position: relative;
    color: #fff;
    font-size: clamp(1.6rem, 2.6vw, 2.6rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
@media (max-width: 900px) {
    .catalog-promo {
        min-height: 120px;
    }
}

/* catalog category row: no borders, soft mint tiles like the reference */
.ccats {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding-inline: 0;
}
.ccat-ic {
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #d9f0dc 0%, #eef8ef 55%, #f7fcf7 100%);
}
.ccat-ic img {
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
}
/* selected tile: a slightly deeper mint instead of a border */
.ccat[aria-current="page"] .ccat-ic {
    background: linear-gradient(180deg, #bfe6c4 0%, #dcf1de 60%, #eef8ef 100%);
}
:root[data-theme="dark"] .ccat-ic {
    background: linear-gradient(180deg, #1f3a26 0%, #182c1e 100%);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ccat-ic {
        background: linear-gradient(180deg, #1f3a26 0%, #182c1e 100%);
    }
}
.ccats-nav.prev {
    inset-inline-start: -6px;
}
.ccats-nav.next {
    inset-inline-end: -6px;
}

/* catalog tiles: let the photos' white background melt into the mint tile */
.ccat-ic img {
    mix-blend-mode: multiply;
}
:root[data-theme="dark"] .ccat-ic img {
    mix-blend-mode: normal;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ccat-ic img {
        mix-blend-mode: normal;
    }
}
/* categories without parts stay fully visible */
.ccat.is-empty {
    opacity: 1;
}

/* catalog category tiles: a bit larger */
.ccat {
    flex-basis: 136px;
}
.ccat-ic {
    width: 136px;
    height: 136px;
}
@media (max-width: 760px) {
    .ccat {
        flex-basis: 100px;
    }
    .ccat-ic {
        width: 100px;
        height: 100px;
    }
}

/* "Best Selling / Parts": bigger, underline on hover */
.catalog-promo h2 {
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    text-decoration: underline transparent;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
    transition: text-decoration-color 0.2s ease;
}
.catalog-promo:hover h2 {
    text-decoration-color: currentColor;
}
.catalog-promo {
    cursor: pointer;
}

/* ---------- checkout ---------- */
.cart-ship-note {
    margin: -6px 0 12px;
    font-size: 12.5px;
    color: var(--ink-2);
}
a.cart-checkout {
    text-decoration: none;
    color: #fff;
}
.co-alert {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(178, 58, 46, 0.1);
    color: #b23a2e;
    font-weight: 600;
}
.co-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.co-box {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px 22px;
}
.co-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 800;
}
.co-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    display: grid;
    place-items: center;
}
.co-count {
    font-weight: 600;
    color: var(--ink-2);
    font-size: 13px;
}
.co-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}
.co-label small {
    color: var(--ink-2);
    font-weight: 600;
}
.co-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    box-sizing: border-box;
}
.co-input:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 122, 34, 0.15);
}
.co-input.is-invalid {
    border-color: #b23a2e;
}
.co-error {
    margin: 5px 0 0;
    color: #b23a2e;
    font-size: 13px;
}
.co-pay {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.co-pay-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
}
.co-pay-opt:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 122, 34, 0.12);
}
.co-pay-opt input {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    margin: 0;
}
.co-pay-opt > i {
    font-size: 24px;
    color: var(--accent);
}
.co-pay-opt span {
    display: flex;
    flex-direction: column;
}
.co-pay-opt small {
    color: var(--ink-2);
    font-size: 12.5px;
}
.co-pay-opt.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.co-items {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}
.co-items li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
}
.co-items li + li {
    border-top: 1px solid var(--line);
}
.co-img {
    width: 56px;
    height: 56px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.co-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.co-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.co-name b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.co-name small {
    color: var(--ink-2);
}
.co-terms {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--ink-2);
    text-align: center;
}
.cart-checkout:disabled {
    opacity: 0.7;
}
/* order placed */
.co-done {
    max-width: 640px;
    margin: 20px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.co-done-ic {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
}
.co-done p {
    margin: 0;
}
.co-done-box {
    width: 100%;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 20px;
    text-align: start;
}
.co-done-sum {
    margin: 8px 0 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
}
.co-done-sum > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}
.co-done-sum dt {
    color: var(--ink-2);
    font-weight: 600;
}
.co-done-sum dd {
    margin: 0;
    font-weight: 600;
    text-align: end;
}
.co-done-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.co-done-actions .sm-btn {
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
}
@media (max-width: 560px) {
    .co-box {
        padding: 16px;
    }
}
/* Checkout link: center its label like the old button */
a.cart-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* checkout payment options: reference style (.paym / .pm-opt), selected via :has */
.co-box .paym {
    gap: 8px;
    margin: 0;
}
.co-box .pm-opt {
    padding: 10px 12px;
    border-radius: 12px;
}
.co-box .pm-opt:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
    background: var(--accent-soft);
}
.co-box .pm-opt .pm-txt {
    flex: 1;
}
.co-box .pm-opt.is-soon {
    cursor: not-allowed;
}
.co-box .pm-opt.is-soon:hover {
    border-color: var(--line);
}
.co-box .pm-opt.is-soon .pm-txt,
.co-box .pm-opt.is-soon input {
    opacity: 0.6;
}
.pm-soon {
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-2);
    background: var(--surface-2);
    border-radius: 999px;
    padding: 3px 10px;
}
.co-muted {
    color: var(--ink-2);
    font-weight: 600;
    font-size: 13px;
}
.co-ship-time {
    font-size: 12px;
    color: var(--ink-2);
}

/* ---------- my orders ---------- */
.order-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}
.order-placed { background: #fff4d6; color: #8a6100; }
.order-confirmed { background: #e3efff; color: #1d4f91; }
.order-preparing { background: #ece6ff; color: #54389c; }
.order-packed { background: #efe3ff; color: #6a3fa0; }
.order-assigned { background: #e0f2fe; color: #075985; }
.order-picked_up { background: #dff4f7; color: #11636e; }
.order-on_the_way { background: #d9f5ec; color: #0f6e56; }
.order-delivered { background: var(--accent-soft); color: var(--accent); }
.order-cancelled { background: rgba(178, 58, 46, 0.12); color: #b23a2e; }
.my-orders {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.mo-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mo-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(15, 42, 24, 0.08);
}
.mo-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.mo-head > div {
    display: flex;
    flex-direction: column;
}
.mo-head small,
.mo-total small {
    color: var(--ink-2);
    font-size: 12.5px;
}
.mo-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.mo-thumbs {
    display: flex;
    gap: 6px;
}
.mo-thumbs .co-img {
    width: 48px;
    height: 48px;
}
.mo-more {
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--ink-2);
    background: var(--surface-2);
}
.mo-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.mo-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.mo-track li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    color: var(--ink-2);
}
.mo-track li + li::before {
    content: "";
    position: absolute;
    top: 13px;
    inset-inline-end: 50%;
    width: 100%;
    height: 3px;
    background: var(--line);
    z-index: 0;
}
.mo-track li.done + li.done::before {
    background: var(--accent);
}
.mo-dot {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--line);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 14px;
}
.mo-track li.done .mo-dot {
    background: var(--accent);
    border-color: var(--accent);
}
.mo-track li.now small {
    color: var(--accent);
    font-weight: 700;
}
@media (max-width: 480px) {
    .my-orders {
        grid-template-columns: minmax(0, 1fr);
    }
    .mo-track small {
        font-size: 11px;
    }
}
.pd-vat {
    flex-basis: 100%;
    color: var(--ink-2);
    font-size: 12.5px;
}

/* ======================= home page: new noon-style rows ======================= */

/* 2x2 quad boxes */
.hsec.quads {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.quad {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #d9f0dc 0%, #eef8ef 60%, #f7fcf7 100%);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quad:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(15, 42, 24, 0.1);
}
.quad h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}
.quad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.quad-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.quad-cell img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    box-sizing: border-box;
}
.quad-cell small {
    font-size: 12px;
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.quad-off {
    position: absolute;
    top: 6px;
    inset-inline-start: 6px;
    background: #b23a2e;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
}
.quad-more {
    margin-top: auto;
    font-weight: 700;
    font-size: 13px;
    color: var(--accent);
}
:root[data-theme="dark"] .quad {
    background: linear-gradient(180deg, #1f3a26 0%, #182c1e 100%);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .quad {
        background: linear-gradient(180deg, #1f3a26 0%, #182c1e 100%);
    }
}

/* sideways part rows */
.prow-wrap {
    position: relative;
}
.prow-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.prow-track::-webkit-scrollbar {
    display: none;
}
.prow-track > .pcard {
    scroll-snap-align: start;
}
.prow-nav {
    position: absolute;
    top: 38%;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}
.prow-nav.prev {
    inset-inline-start: -14px;
}
.prow-nav.next {
    inset-inline-end: -14px;
}
[dir="rtl"] .prow-nav {
    transform: scaleX(-1);
}
/* sale row sits on a soft tinted band */
.prow-sale {
    background: linear-gradient(180deg, rgba(178, 58, 46, 0.08), rgba(178, 58, 46, 0.02));
    border-radius: 18px;
    padding: 18px;
}
.prow-sale .hsec-h h2 {
    color: #b23a2e !important;
}

/* mid-page ad banners */
.hsec.banner-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.banner-duo.single {
    grid-template-columns: minmax(0, 1fr);
}
.bd-item {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/1;
    background: var(--surface-2);
}
.banner-duo.single .bd-item {
    aspect-ratio: 6/1;
}
.bd-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.bd-item:hover img {
    transform: scale(1.03);
}

@media (max-width: 1000px) {
    .hsec.quads {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .prow-nav {
        display: none;
    }
    .prow-track {
        grid-auto-columns: 170px;
        gap: 10px;
    }
    .hsec.banner-duo {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .prow-sale {
        padding: 12px;
    }
}
@media (max-width: 480px) {
    .hsec.quads {
        gap: 10px;
    }
    .quad {
        padding: 10px;
    }
}

/* two-row variant: cards fill top then bottom, still scrolling sideways */
.prow-track.prow-2 {
    grid-template-rows: repeat(2, auto);
    row-gap: 14px;
}
.prow-wrap:has(.prow-2) .prow-nav {
    top: calc(50% - 19px);
}
.pd-make {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 40px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}
.pd-make img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pd-models {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.pd-model {
    width: 72px;
    height: 48px;
}
.pd-model-name {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
}
/* details page make/model images: shorter, no frame */
.pd-make {
    height: 32px;
    border: 0;
    padding: 0;
    background: transparent;
}
.pd-model {
    width: 60px;
    height: 36px;
}

/* back to top */
.to-top {
    position: fixed;
    /* sits right above the "Ask AI" button (80px wide, 30px from the corner) and lines up with it */
    inset-block-end: 124px;
    inset-inline-end: 47px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 20px;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease;
}
.to-top:hover {
    transform: translateY(-3px);
}
.to-top[hidden] {
    display: none;
}
@media (max-width: 560px) {
    .to-top {
        inset-block-end: calc(170px + env(safe-area-inset-bottom, 0px));
        inset-inline-end: 37px;
        width: 42px;
        height: 42px;
    }
}

/* home: popular searches chips */
.pop-search {
    gap: 12px;
}
.pop-search h2 {
    font-size: 1.15rem;
    margin: 0;
}
.pop-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pop-chip {
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.pop-chip:hover {
    background: var(--accent-soft);
    color: var(--accent);
}
.pop-chip[hidden] {
    display: none;
}
.pop-more {
    align-self: flex-start;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.pop-more:hover {
    text-decoration: underline;
}

/* ---------- loyalty points ---------- */
.co-points {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px dashed var(--accent);
    border-radius: 12px;
    background: var(--accent-soft);
    cursor: pointer;
}
.co-points input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}
.co-points span {
    display: flex;
    flex-direction: column;
}
.co-points b {
    color: var(--accent);
}
.co-points small {
    color: var(--ink-2);
    font-size: 12.5px;
}
.co-points-note,
.co-earn {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
}
.co-points-note[hidden],
.co-earn[hidden] {
    display: none;
}
.co-points-note > i,
.co-earn > i {
    flex: none;
    font-size: 1.15rem;
    line-height: 1.3;
}
.co-points-note > span,
.co-earn > span {
    flex: 1;
    min-width: 0;
}
.co-earn i,
.co-points-note i {
    color: #d49b00;
}
.co-earn b {
    color: var(--ink);
}
.pts-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.pts-balance,
.pts-pending {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    border-radius: 18px;
    min-width: 240px;
}
.pts-balance {
    background: var(--accent);
    color: #fff;
}
.pts-balance b {
    font-size: 2.2rem;
    line-height: 1.1;
}
.pts-balance b span {
    font-size: 1rem;
    font-weight: 600;
}
.pts-pending {
    border: 1px solid var(--line);
}
.pts-pending b {
    font-size: 1.6rem;
    color: var(--accent);
}
.pts-balance small,
.pts-pending small,
.pts-pending span {
    opacity: 0.85;
    font-size: 13px;
}
.pts-rules {
    list-style: none;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pts-rules i {
    color: var(--accent);
    margin-inline-end: 8px;
}
.pts-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 6px 0 0;
}
.pts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.pts-list li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
}
.pts-list li + li {
    border-top: 1px solid var(--line);
}
.pts-ic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.pts-ic.plus {
    background: var(--accent-soft);
    color: var(--accent);
}
.pts-ic.minus {
    background: rgba(178, 58, 46, 0.1);
    color: #b23a2e;
}
.pts-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pts-text small {
    color: var(--ink-2);
    font-size: 12.5px;
}

/* checkout: placing-order overlay */
.co-loading {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background: rgba(10, 24, 15, 0.45);
    backdrop-filter: blur(3px);
    animation: coFade 0.2s ease;
}
.co-loading[hidden] {
    display: none;
}
.co-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 38px;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
}
.co-loading-box small {
    color: var(--ink-2);
}
.co-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid var(--accent-soft);
    border-top-color: var(--accent);
    animation: coSpin 0.8s linear infinite;
    margin-bottom: 6px;
}
@keyframes coSpin {
    to { transform: rotate(360deg); }
}
@keyframes coFade {
    from { opacity: 0; }
}

/* order placed: the tick pops in */
.co-done-ic {
    animation: coPop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.co-done-ic i {
    animation: coFade 0.3s 0.25s ease both;
}
@keyframes coPop {
    from { transform: scale(0.3); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .co-spinner { animation-duration: 2s; }
    .co-done-ic, .co-done-ic i { animation: none; }
}

/* checkout: location picker */
.co-map-wrap {
    margin-bottom: 16px;
}
.co-map-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.co-map-bar .co-input {
    flex: 1;
    min-width: 0;
}
.co-map-bar .sm-btn {
    white-space: nowrap;
    border-radius: 12px;
    padding: 0 14px;
}
.co-map {
    height: 300px;
    border-radius: 14px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--surface-2);
}
.co-map-hint {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: var(--ink-2);
}
@media (max-width: 560px) {
    .co-map {
        height: 240px;
    }
    .co-map-bar {
        flex-wrap: wrap;
    }
    .co-map-bar .sm-btn {
        min-height: 42px;
    }
}
/* google's search dropdown above the page */
.pac-container {
    z-index: 3000;
}
.co-map-search {
    flex: 1;
    min-width: 0;
}
.co-map-search gmp-place-autocomplete {
    width: 100%;
    color-scheme: light;
}

/* ---------- saved addresses ---------- */
.co-saved {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}
.co-saved-opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}
.co-saved-opt:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.co-saved-opt input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
}
.co-saved-opt span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.co-saved-opt small {
    color: var(--ink-2);
    font-weight: 700;
}
.co-saved-opt b small {
    margin-inline-start: 6px;
}
.co-saved-new b {
    color: var(--accent);
}
.co-saved-current b i {
    color: var(--accent);
}
.co-saved-opt small.co-error,
.loc-address small.loc-current-off {
    color: var(--danger, #b23a2e);
}
.co-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}
.co-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}
.co-save-addr {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.co-addr-label {
    max-width: 240px;
    min-height: 40px;
}
.addr-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.addr-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
}
.addr-card.is-default {
    border-color: var(--accent);
}
.addr-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.addr-top i {
    color: var(--accent);
}
.addr-card p {
    margin: 0 0 4px;
    color: var(--ink-2);
    font-size: 14px;
}
.addr-actions {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    font-size: 14px;
}
.addr-actions form {
    margin: 0;
}
.addr-actions a,
.addr-actions button {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.addr-actions .danger {
    color: #b23a2e;
}
.addr-save {
    padding: 9px 18px;
    border-radius: 10px;
    text-decoration: none;
}
.addr-form {
    max-width: 900px;
}
.addr-ok {
    background: var(--accent-soft);
    color: var(--accent);
}

/* ---------- deliver-to popup ---------- */
.loc-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 70px 16px 16px;
    background: rgba(10, 24, 15, 0.45);
}
.loc-modal[hidden] {
    display: none;
}
body.loc-open {
    overflow: hidden;
}
.loc-panel {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: var(--surface);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.loc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.loc-head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}
.loc-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--ink);
    cursor: pointer;
}
.loc-now {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 14px 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--ink);
}
.loc-now i {
    color: var(--accent);
}
.loc-now small {
    flex-basis: 100%;
    color: var(--ink-2);
}
.loc-panel h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.loc-addresses {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}
.loc-address,
.loc-city {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 12px;
    cursor: pointer;
    text-align: start;
}
.loc-address {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
}
.loc-address small {
    color: var(--ink-2);
}
.loc-address i {
    color: var(--accent);
}
.loc-address.on,
.loc-city.on {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}
.loc-add {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 16px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.loc-tools {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.loc-tools .co-input {
    flex: 1;
    min-width: 0;
    min-height: 42px;
}
.loc-tools .sm-btn {
    white-space: nowrap;
    border-radius: 12px;
    padding: 0 14px;
}
.loc-msg {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--ink-2);
}
.loc-region {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.loc-region small {
    flex-basis: 100%;
    color: var(--ink-2);
    font-weight: 600;
    font-size: 12px;
}
.loc-region[hidden],
.loc-city[hidden] {
    display: none;
}
.loc-city {
    padding: 7px 12px;
    font-size: 14px;
}
@media (max-width: 560px) {
    .loc-modal {
        padding: 0;
        align-items: flex-end;
    }
    .loc-panel {
        max-height: 85vh;
        border-radius: 18px 18px 0 0;
    }
    .loc-tools {
        flex-wrap: wrap;
    }
}

/* ---------- track order ---------- */
.nh-track {
    text-decoration: none;
}
.track-form .cart-checkout {
    min-height: 46px;
}
.track-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}
.track-head > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.track-head small {
    color: var(--ink-2);
    font-size: 12.5px;
}
.track-head b {
    font-size: 1.15rem;
}
.track-steps {
    margin-bottom: 18px;
}
.track-sum {
    max-width: 520px;
}
@media (max-width: 1100px) {
    .nh-track .nh-loc-t small {
        display: none;
    }
}
@media (max-width: 760px) {
    .nh-track .nh-loc-t {
        display: none;
    }
}

/* ---------- privacy policy ---------- */
.policy-body {
    max-width: 880px;
    line-height: 1.75;
}
.policy-body section + section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.policy-body h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 8px;
}
.policy-body p,
.policy-body li {
    color: var(--ink-2);
}
.policy-body ul {
    margin: 0;
    padding-inline-start: 20px;
}
.policy-body li + li {
    margin-top: 4px;
}
.policy-body a {
    color: var(--accent);
}

/* review page (link from the "rate your parts" email) */
.rv-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 760px;
}
.rv-part {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.rv-part a {
    color: var(--ink);
    text-decoration: none;
}
.rv-done {
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}
/* inputs run 5 → 1, row-reverse shows 1 → 5; hover/checked fill that star and the lower ones */
.rv-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
}
.rv-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.rv-stars label {
    font-size: 34px;
    line-height: 1;
    color: var(--line);
    cursor: pointer;
    transition: color 0.12s;
}
.rv-stars input:checked ~ label,
.rv-stars label:hover,
.rv-stars label:hover ~ label {
    color: #f5a623;
}
.rv-stars input:focus-visible + label {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}
.rv-submit {
    align-self: flex-start;
    min-width: 200px;
}
.pd-rv-empty {
    padding: 18px 0;
    color: var(--ink-2);
}

/* my orders: rating strip joined under a delivered order's card */
.mo-rated .mo-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.mo-rate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}
.mo-rate:hover {
    background: var(--accent);
    color: #fff;
}
.mo-rate:hover .mo-rate-stars {
    color: #fff;
}
.mo-rate-stars {
    color: #f5a623;
    font-size: 18px;
    letter-spacing: 2px;
}
.mo-rate.is-done {
    background: var(--surface);
    color: var(--ink-2);
    font-weight: 600;
}
.mo-rate.is-done i,
.mo-rate.is-done .mo-rate-act {
    color: var(--accent);
}
.mo-rate.is-done:hover {
    background: var(--accent-soft);
}

/* profile photo inside the round avatar */
.am-av {
    overflow: hidden;
}
.am-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.am-av.xl {
    width: 112px;
    height: 112px;
    font-size: 2rem;
}
.pf-photo {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.pf-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pf-photo-actions .sm-btn {
    cursor: pointer;
}
.pf-form {
    max-width: 720px;
}

/* part page: reviews as their own section */
.pd-reviews-title {
    margin: 0;
    padding: 18px 24px 0;
    font-size: 1.2rem;
    font-weight: 800;
}
.pd-reviews-title small {
    color: var(--ink-2);
    font-weight: 600;
}
/* make / model pictures stay inside their box (a % max-height does not hold inside a grid box) */
.pd-make {
    overflow: hidden;
}
.pd-make img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}
/* model pictures are car photos, not logos: fill the tile */
.pd-model {
    border-radius: 6px;
}
.pd-model img {
    object-fit: cover;
}
/* part page: the description row's text keeps the value column's weight light */
.pd-specs dd.pd-desc-body {
    font-weight: 600;
    line-height: 1.7;
}

/* order items: the part's warranty, counted from delivery */
.warranty-line {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-weight: 600;
}
.warranty-line.is-active { color: var(--accent); }
.warranty-line.is-pending { color: var(--ink-2); }
.warranty-line.is-not_activated { color: #9a5a00; }
.warranty-line.is-expired { color: #b23a2e; }

/* "Track order" opens a modal: the footer link is a button that looks like the other rows */
button.sf-row {
    width: 100%;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: start;
    cursor: pointer;
}
.track-form { margin: 16px 0 12px; }
.track-row { display: flex; gap: 8px; }
.track-row .co-input { flex: 1; min-width: 0; }
.track-row .sm-btn { white-space: nowrap; border-radius: 12px; padding: 0 16px; }
.track-panel .track-result { margin-top: 6px; }
.track-panel .co-alert { margin: 0 0 12px; }

/* ===================== about us ===================== */
.about-page { gap: 40px; }
.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 44px 40px;
    border-radius: 24px;
    color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, #2f6e20 0%, var(--hero, #173b22) 55%, var(--hero-deep, #0f2a18) 100%);
}
.about-kicker {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14);
}
.about-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}
.about-hero p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}
.about-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.about-btn.is-light { color: var(--hero, #173b22); background: #fff; border: 0; }
.about-btn.is-ghost { color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); }
.about-btn:hover { opacity: 0.92; }
.about-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.about-stats li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.about-stats b { font-size: 2rem; line-height: 1; }
.about-stats span { color: rgba(255, 255, 255, 0.78); font-weight: 600; font-size: 14px; }

.about-sec-head { margin-bottom: 18px; }
.about-sec-head h2 { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.about-sec-head p { margin: 4px 0 0; color: var(--ink-2); }
.about-why,
.about-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.about-why li,
.about-steps li {
    position: relative;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}
.about-why i,
.about-steps i {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    font-size: 21px;
    color: var(--accent);
    background: var(--accent-soft);
}
.about-why b,
.about-steps b { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.about-why p,
.about-steps p { margin: 0; color: var(--ink-2); line-height: 1.7; }
.about-step-no {
    position: absolute;
    top: 18px;
    inset-inline-end: 20px;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-soft);
}
.about-makes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.about-makes a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease;
}
.about-makes a:hover { border-color: var(--accent); }
.about-makes img { width: 72px; height: 48px; object-fit: contain; border-radius: 8px; }
.about-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 24px;
    align-items: center;
    padding: 28px 32px;
    border-radius: 20px;
    background: var(--accent-soft);
}
.about-contact h2 { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.about-contact p { margin: 6px 0 0; color: var(--ink-2); }
.about-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.about-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface);
    font-weight: 600;
    min-width: 0;
}
.about-contact li i { color: var(--accent); font-size: 17px; }
.about-contact a { color: var(--ink); text-decoration: none; }
@media (max-width: 900px) {
    .about-hero,
    .about-contact { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
    .about-why,
    .about-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .about-why,
    .about-steps,
    .about-contact ul { grid-template-columns: minmax(0, 1fr); }
}

/* ===================== privacy policy ===================== */
.policy-page { gap: 32px; }
.policy-hero { grid-template-columns: minmax(0, 1fr); }
.policy-hero .about-kicker { display: inline-flex; align-items: center; gap: 6px; }
.policy-updated { display: block; margin-top: 16px; color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.policy-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.policy-toc {
    position: sticky;
    top: 96px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}
.policy-toc b { display: block; margin-bottom: 10px; font-size: 1rem; }
.policy-toc ol { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; }
.policy-toc li { color: var(--ink-2); font-size: 14px; }
.policy-toc a { color: var(--ink-2); text-decoration: none; }
.policy-toc a:hover { color: var(--accent); }
.policy-page .policy-body {
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.policy-page .policy-body section {
    margin: 0;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    scroll-margin-top: 96px;
}
.policy-page .policy-body section + section { margin-top: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.policy-page .policy-body h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
}
.policy-no {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: var(--accent);
    background: var(--accent-soft);
}
.policy-page .policy-contact { background: var(--accent-soft); border-color: transparent; }
.policy-page .policy-contact .policy-no { background: var(--surface); }
.policy-toc li { line-height: 1.5; }
@media (max-width: 900px) {
    .policy-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    /* phones: the contents become separate tappable chips, so long titles can never run into each other */
    .policy-toc { position: static; padding: 14px; }
    .policy-toc ol {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        list-style: none;
    }
    .policy-toc li { line-height: 1.3; }
    .policy-toc a {
        display: inline-block;
        padding: 7px 12px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: var(--surface-2);
        font-size: 13px;
        font-weight: 600;
        color: var(--ink);
    }
}

/* category cards: one size for every name. A long name wraps to two lines at most (then "…"),
   and two lines of room are kept on every card so short and long names give equal cards. */
#catalog .ctile .ct-ic.ct-photo {
    width: 84px;
    height: 84px;
    flex: none;
}
#catalog .ctile > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    min-width: 0;
}
#catalog .ctile b {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: 1.1rem;
    line-height: 1.3;
    min-height: 2.6em;
    max-height: 2.6em;
}

/* account menu: the admin's way back to the panel stands out from the shopping links */
.acc-menu .am-admin {
    color: var(--accent) !important;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
}

/* Add Your Car: saved cars */
.mycar-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
    gap: 14px;
}
.mycar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(19, 36, 27, 0.04), 0 6px 18px rgba(19, 36, 27, 0.05);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mycar:hover {
    box-shadow: 0 2px 4px rgba(19, 36, 27, 0.05), 0 10px 26px rgba(19, 36, 27, 0.08);
}
.mycar.is-default {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 6px 18px rgba(19, 36, 27, 0.05);
}
.mycar-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mycar-logo {
    flex: none;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
.mycar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}
.mycar-logo i {
    font-size: 26px;
    color: var(--accent);
}
.mycar-title {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mycar-title b {
    font-size: 16px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.mycar-title small {
    color: var(--ink-2);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.mycar-badge {
    flex: none;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 12px;
    font-weight: 700;
}
.mycar-need {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-2);
}
.mycar-need small {
    display: block;
    color: var(--ink-2);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}
.mycar-need p {
    margin: 0;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.mycar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mycar-actions form {
    margin: 0;
}
.mycar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.mycar-btn:hover {
    border-color: var(--accent);
    color: var(--accent-ink);
}
.mycar-btn.is-on {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.mycar-btn.danger {
    color: #dc3545;
}
.mycar-btn.danger:hover {
    border-color: #dc3545;
    background: #fcebe8;
}

/* a car make without a logo yet (bulk imported): its name instead */
.blogo .blogo-text {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    color: var(--ink);
    overflow-wrap: anywhere;
}

/* card payment page (Moyasar form) */
.co-pay {
    max-width: 520px;
}
.co-pay-total {
    font-size: 1.05rem;
}
.co-pay-form {
    margin: 18px auto;
}
.co-pay-cancel {
    margin-top: 6px;
}

/* compact footer */
.site-foot .ft-in {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 20px 12px;
}
.ft-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 20px 32px;
}
.ft-about p {
    margin: 8px 0 10px;
    font-size: 0.82rem;
    line-height: 1.6;
    max-width: 340px;
}
.ft-about img {
    height: 28px;
    width: auto;
    background: #fff;
    border-radius: 6px;
    padding: 4px 8px;
}
.ft-stores .store-b {
    height: 38px;
    min-width: 0;
    padding: 0 10px;
    gap: 6px;
}
.ft-stores .store-b b {
    font-size: 0.86rem;
}
.ft-stores .store-b small {
    font-size: 0.56rem;
}
.ft-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.84rem;
}
.ft-col b {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.ft-col a,
.ft-col button {
    color: #bccbb8;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}
.ft-col a:hover,
.ft-col button:hover {
    color: #fff;
    text-decoration: underline;
}
.ft-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #2b4a33;
    font-size: 0.78rem;
}
.ft-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.ft-legal b {
    color: #fff;
    font-weight: 600;
}
@media (max-width: 900px) {
    .ft-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ft-about {
        grid-column: 1 / -1;
    }
}
@media (max-width: 480px) {
    .ft-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .ft-col:last-child {
        grid-column: 1 / -1;
    }
}
.ft-tax {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.ft-tax img {
    width: 42px;
    height: auto;
    border-radius: 4px;
}
.ft-tax dl {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
}
.ft-tax dl div {
    display: flex;
    gap: 6px;
}
.ft-tax dt {
    font-weight: 600;
}
.ft-tax dd {
    margin: 0;
    color: #fff;
    font-weight: 600;
}

/* three steps: one card per step */
.steps3 {
    background: transparent;
    border: 0;
    padding: 0;
    gap: 18px;
}
.steps3-g {
    gap: 16px;
}
.st3 {
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(19, 36, 27, 0.04), 0 8px 22px rgba(19, 36, 27, 0.05);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.st3:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 2px 4px rgba(19, 36, 27, 0.05), 0 14px 30px rgba(19, 36, 27, 0.09);
}
.st3-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.st3-top i {
    font-size: 1.6rem;
    color: var(--accent);
    opacity: 0.85;
}
.st3 > div span {
    display: block;
}
@media (max-width: 560px) {
    .steps3 {
        padding: 0;
    }
    .st3 {
        padding: 18px;
    }
}

/* popular searches: rounded pills with a lift and fill on hover */
.pop-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pop-chip::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--accent), var(--oem));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
[dir="rtl"] .pop-chip::before {
    transform-origin: right;
}
.pop-chip::after {
    content: "↗";
    font-size: 12px;
    opacity: 0;
    width: 0;
    transition: opacity 0.2s ease, width 0.2s ease;
}
.pop-chip:hover,
.pop-chip:focus-visible {
    color: #fff;
    border-color: var(--accent);
    background: var(--surface);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(52, 122, 34, 0.25);
}
.pop-chip:hover::before,
.pop-chip:focus-visible::before {
    transform: scaleX(1);
}
.pop-chip:hover::after,
.pop-chip:focus-visible::after {
    opacity: 1;
    width: 10px;
}
.pop-more {
    margin-top: 4px;
    padding: 6px 14px;
    border: 1px dashed var(--accent);
    border-radius: 999px;
    background: var(--accent-soft);
}
.pop-more:hover {
    background: var(--accent);
    color: #fff;
}

/* part page: the make logo shows whole inside a fixed box */
.pd-specs .pd-make {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 44px;
    padding: 4px 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: visible;
    vertical-align: middle;
}
.pd-specs .pd-make img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* short pages: the footer stays at the bottom of the screen */
body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
body > .top,
body > .site-main,
body > .site-foot {
    width: 100%;
}
.site-main {
    flex: 1 0 auto;
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
}
.site-foot {
    flex-shrink: 0;
}

/* car make tiles: long names (Mercedes-Benz, Volkswagen) stay inside the tile */
.brand-tiles .btile {
    min-width: 0;
    overflow: hidden;
}
.brand-tiles .btile > span:last-child {
    min-width: 0;
    flex: 1;
}
.brand-tiles .btile b {
    font-size: 0.9rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand-tiles .btile small {
    display: block;
    white-space: nowrap;
}
.blogo .blogo-text {
    font-size: 10px;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* discount badge: the same red "-20% off" on every card and on the part page */
.pcard .pimg,
.quad-cell {
    position: relative;
}
.off-badge {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 3;
    padding: 3px 8px;
    border-radius: 6px;
    background: #c62f22;
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(198, 47, 34, 0.3);
    pointer-events: none;
}
.off-badge.is-inline {
    position: static;
    display: inline-block;
    font-size: 13px;
    padding: 4px 10px;
    vertical-align: middle;
}

/* popular searches: a single row that slides, arrows at both ends */
.pop-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pop-search .pop-chips {
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px;
}
.pop-search .pop-chips::-webkit-scrollbar {
    display: none;
}
.pop-search .pop-chip {
    flex: none;
    white-space: nowrap;
}
/* hover: only the outline changes, no fill */
.pop-search .pop-chip::before,
.pop-search .pop-chip::after {
    content: none;
}
.pop-search .pop-chip:hover,
.pop-search .pop-chip:focus-visible {
    color: var(--accent-ink);
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
    transform: none;
}
.pop-arrow {
    flex: none;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(19, 36, 27, 0.08);
}
.pop-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pop-arrow[hidden] {
    display: none !important;
}
[dir="rtl"] .pop-arrow {
    transform: scaleX(-1);
}

/* part page: copy the part number */
.pd-pn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.pd-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pd-copy:hover {
    border-color: var(--accent);
    color: var(--accent-ink);
}
.pd-copy.is-done {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-ink);
}

/* category tiles: one look in light and dark mode. The mint tile + "multiply" melts the white
   backdrop some photos have, so photos with and without a white background match. */
.ccats .ccat-ic,
:root[data-theme="dark"] .ccats .ccat-ic {
    background: linear-gradient(180deg, #d9f0dc 0%, #eef8ef 55%, #f7fcf7 100%);
}
.ccats .ccat[aria-current="page"] .ccat-ic,
:root[data-theme="dark"] .ccats .ccat[aria-current="page"] .ccat-ic {
    background: linear-gradient(180deg, #bfe6c4 0%, #dcf1de 60%, #eef8ef 100%);
}
.ccats .ccat-ic img,
:root[data-theme="dark"] .ccats .ccat-ic img {
    mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ccats .ccat-ic {
        background: linear-gradient(180deg, #d9f0dc 0%, #eef8ef 55%, #f7fcf7 100%);
    }
    :root:not([data-theme="light"]) .ccats .ccat[aria-current="page"] .ccat-ic {
        background: linear-gradient(180deg, #bfe6c4 0%, #dcf1de 60%, #eef8ef 100%);
    }
    :root:not([data-theme="light"]) .ccats .ccat-ic img {
        mix-blend-mode: multiply;
    }
}

/* catalog: "Load more" */
.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.load-more {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 220px;
    padding: 12px 28px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.load-more small {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
}
.load-more:hover {
    background: var(--accent);
    color: #fff;
}
.load-more:hover small {
    color: #fff;
}
.load-more:disabled {
    opacity: 0.7;
    cursor: progress;
}

/* banners under the parts rows: keep each image's own shape at every zoom level, never crop it */
.bd-item,
.banner-duo.single .bd-item {
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bd-item img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
}

/* part cards: the price row always sits at the bottom, so prices line up across a row */
.pcard {
    height: 100%;
    box-sizing: border-box;
}
.pcard .pc-buy {
    margin-top: auto;
    padding-top: 16px;
}

/* header logo: the light one in light mode, the dark one (no white box) in dark mode */
.logo img.logo-on-dark {
    display: none;
    background: none;
}
:root[data-theme="dark"] .logo img.logo-on-light {
    display: none;
}
:root[data-theme="dark"] .logo img.logo-on-dark {
    display: block;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo img.logo-on-light {
        display: none;
    }
    :root:not([data-theme="light"]) .logo img.logo-on-dark {
        display: block;
    }
}
/* footer (always dark): the dark logo without the white box */
.ft-about img.ft-logo-dark {
    height: 34px;
    background: none;
    padding: 0;
    border-radius: 0;
}

/* checkout: one "Card" option showing the mada, Visa and Mastercard logos */
.pm-badge.pm-card {
    width: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
}
.pm-badge.pm-card img {
    width: 30px;
    height: 20px;
    object-fit: contain;
}

/* pay page: saved cards */
.saved-cards h3 {
    font-size: 1rem;
    margin: 6px 0 10px;
}
.saved-card-pay {
    margin: 0 0 8px;
}
.saved-card-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.saved-card-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.saved-card-btn > i {
    font-size: 1.4rem;
    color: var(--accent);
}
.saved-card-btn > span:first-of-type {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.saved-card-btn small {
    color: var(--ink-2);
}
.saved-card-go {
    font-weight: 700;
    color: var(--accent-ink);
    white-space: nowrap;
}
.saved-or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
    color: var(--ink-2);
    font-size: 13px;
}
.saved-or::before,
.saved-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.save-card-check {
    justify-content: center;
    margin: 4px 0 12px;
}

/* part cards: on hover the same mint wash as the "Deals Of The Day" / "Best Stocked" boxes */
.pcard {
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pcard:hover {
    background: linear-gradient(180deg, #d9f0dc 0%, #eef8ef 60%, #f7fcf7 100%);
    border-color: var(--accent);
    box-shadow: 0 8px 22px rgba(52, 122, 34, 0.12);
}
:root[data-theme="dark"] .pcard:hover {
    background: linear-gradient(180deg, #1f3a26 0%, #182c1e 60%, #152019 100%);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .pcard:hover {
        background: linear-gradient(180deg, #1f3a26 0%, #182c1e 60%, #152019 100%);
    }
}

/* footer: CR with the Ministry of Commerce logo, VAT number with the VAT logo */
.ft-tax {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 14px;
}
.ft-tax-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ft-tax-row img {
    width: auto;
    height: 46px;
    padding: 3px;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}
.ft-tax-row span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.ft-tax-row small {
    font-size: 0.72rem;
    color: #bccbb8;
}
.ft-tax-row b {
    color: #fff;
    font-size: 0.86rem;
}

/* footer bottom: © on one side, the payment logos in the middle */
.ft-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.ft-pay {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ft-pay li {
    display: grid;
    place-items: center;
    width: 54px;
    height: 34px;
    padding: 4px 6px;
    border-radius: 7px;
    background: #fff;
    box-sizing: border-box;
}
.ft-pay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@media (max-width: 760px) {
    .ft-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .ft-bottom-end {
        display: none;
    }
}

/* footer: bigger ministry / VAT logos, no white frame around them */
.ft-tax-row img {
    height: 60px;
    padding: 0;
    border-radius: 6px;
    background: none;
}

/* My Orders: filters + table */
.mo-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.mo-filters .co-input {
    width: auto;
    min-height: 40px;
    padding: 7px 12px;
    font-size: 14px;
}
.mo-search {
    position: relative;
    flex: 1 1 260px;
    margin: 0;
}
.mo-search i {
    position: absolute;
    top: 50%;
    inset-inline-start: 12px;
    transform: translateY(-50%);
    color: var(--ink-2);
}
.mo-search input {
    width: 100%;
    min-height: 40px;
    padding: 7px 12px;
    padding-inline-start: 36px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}
.mo-date {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: var(--ink-2);
}
.mo-filters .sm-btn {
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.mo-table-wrap {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
}
.mo-table {
    width: 100%;
    border-collapse: collapse;
}
.mo-table th {
    padding: 11px 14px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 700;
    text-align: start;
    white-space: nowrap;
}
.mo-table td {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    vertical-align: middle;
    font-size: 14px;
}
.mo-table tbody tr:hover {
    background: var(--accent-soft);
}
.mo-table td small {
    display: block;
    color: var(--ink-2);
    font-size: 12px;
}
.mo-table td small.mo-paid {
    color: var(--accent-ink);
    font-weight: 700;
}
.mo-table td a b {
    color: var(--accent-ink);
}
.mo-table .mo-thumbs {
    display: flex;
    gap: 4px;
    margin-bottom: 2px;
}
.mo-table .mo-thumbs .co-img {
    width: 34px;
    height: 34px;
}
.mo-actions {
    white-space: nowrap;
    text-align: end;
}
.mo-actions .sm-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--ink);
}
.mo-actions .sm-btn.primary {
    color: #fff;
}
.mo-pages {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}
.mo-pages a,
.mo-pages span {
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}
.mo-pages .is-on {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.mo-pages .is-off {
    opacity: 0.4;
}
/* phones: each order becomes a card */
@media (max-width: 760px) {
    .mo-date span {
        display: none;
    }
    .mo-filters .co-input,
    .mo-date {
        flex: 1 1 45%;
    }
    .mo-table thead {
        display: none;
    }
    .mo-table,
    .mo-table tbody,
    .mo-table tr,
    .mo-table td {
        display: block;
        width: 100%;
    }
    .mo-table tr {
        padding: 10px 14px;
        border-top: 1px solid var(--line);
    }
    .mo-table tr:first-child {
        border-top: 0;
    }
    .mo-table td {
        border: 0;
        padding: 4px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        text-align: end;
    }
    .mo-table td::before {
        content: attr(data-l);
        color: var(--ink-2);
        font-size: 12px;
        text-align: start;
    }
    .mo-table td.mo-actions {
        justify-content: flex-end;
        padding-top: 8px;
    }
    .mo-table td.mo-actions::before {
        content: none;
    }
}

/* Floating WhatsApp + call buttons (home page) */
.fab-contact {
    position: fixed;
    inset-block-end: 24px;
    inset-inline-start: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fab-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab-btn:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.fab-wa {
    position: relative;
    background: #25d366;
}
.fab-wa::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: fab-pulse 2s ease-out infinite;
}
.fab-call {
    background: var(--accent);
    font-size: 22px;
}
@keyframes fab-pulse {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .fab-wa::after { animation: none; }
}
@media (max-width: 760px) {
    .fab-contact {
        inset-block-end: 16px;
        inset-inline-start: 16px;
        gap: 10px;
    }
    .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 23px;
    }
    .fab-call {
        font-size: 19px;
    }
}

/* Footer social icons (Admin > Social & Contact) */
.ft-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}
.ft-col .ft-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: #dfe8dc;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ft-col .ft-social a:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* part card: warranty badge on the image, opposite the discount badge */
.warranty-badge {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.warranty-badge i {
    font-size: 0.8rem;
}

/* header: every option is a real button (outlined pill, mint on hover) */
.top-tools,
.nh .top-actions {
    gap: 8px;
}
.top-actions > :last-child {
    margin-inline-end: 0;
}
.nh-btn,
.nh-loc {
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(15, 42, 24, 0.06);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.nh-loc {
    padding: 0 12px;
}
.nh-btn:hover,
.nh-loc:hover,
.nh-profile.is-open > .nh-btn,
.nh-btn[aria-current="page"] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-ink);
}
.nh-ic {
    width: 44px;
    padding: 0;
    justify-content: center;
}
@media (max-width: 1600px) {
    #aboutBtn .nh-l {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
}
@media (max-width: 760px) {
    .top-tools,
    .nh .top-actions {
        gap: 6px;
    }
    .nh-btn,
    .nh-loc {
        height: 40px;
        padding: 0 10px;
    }
    .nh-ic {
        width: 40px;
    }
}
#cartBtn {
    border: 1px solid var(--line);
    background: var(--surface);
}
#cartBtn:hover {
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent-ink);
}

/* header buttons: solid green like the Log in button */
.nh-btn,
.nh-loc,
#cartBtn {
    border: 0;
    background: var(--accent);
    color: #fff;
    box-shadow: none;
    transition: filter 0.2s ease;
}
.nh-btn:hover,
.nh-loc:hover,
#cartBtn:hover,
.nh-profile.is-open > .nh-btn,
.nh-btn[aria-current="page"] {
    border: 0;
    background: var(--accent);
    color: #fff;
    filter: brightness(1.08);
}
.nh-loc svg,
.nh-loc-t small,
.nh-loc-t b {
    color: #fff;
}
.nh-loc-t small {
    opacity: 0.85;
}
a#cartBtn,
a#cartBtn:hover {
    color: #fff;
}

/* track order modal: wide enough for every status on one line */
.loc-panel.track-panel {
    max-width: 980px;
    padding: 24px 28px;
}
.track-steps {
    margin: 8px 0 22px;
}
.track-steps small {
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 600;
}

/* the line from the current status to the next one moves, so the customer sees it is in progress */
.mo-track li.now + li::before {
    background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, var(--accent-soft) 8px 16px);
    background-size: 22.6px 22.6px;
    animation: track-flow 0.9s linear infinite;
}
.mo-track li.now + li .mo-dot {
    border-color: var(--accent);
    animation: track-wait 1.6s ease-in-out infinite;
}
@keyframes track-flow {
    to { background-position: 22.6px 0; }
}
[dir="rtl"] .mo-track li.now + li::before {
    animation-direction: reverse;
}
@keyframes track-wait {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
    50% { box-shadow: 0 0 0 6px var(--accent-soft); }
}
@media (prefers-reduced-motion: reduce) {
    .mo-track li.now + li::before,
    .mo-track li.now + li .mo-dot {
        animation: none;
    }
}

/* smaller screens: the steps stack top to bottom, each label on one line */
@media (max-width: 860px) {
    .track-steps {
        flex-direction: column;
        gap: 14px;
    }
    .track-steps li {
        flex-direction: row;
        gap: 12px;
    }
    .track-steps li + li::before {
        top: auto;
        bottom: 100%;
        inset-inline-end: auto;
        inset-inline-start: 12.5px;
        width: 3px;
        height: 14px;
    }
    .track-steps li.now + li::before {
        background: repeating-linear-gradient(-45deg, var(--accent) 0 6px, var(--accent-soft) 6px 12px);
        background-size: 17px 17px;
        animation: track-flow-down 0.9s linear infinite;
    }
    .track-steps small {
        font-size: 14px;
    }
}
@keyframes track-flow-down {
    to { background-position: 0 17px; }
}
/* header sides never shrink below their buttons, so nothing slides over the search */
@media (min-width: 1181px) {
    .top-in.nh {
        grid-template-columns: minmax(max-content, 1fr) minmax(260px, 1.3fr) minmax(max-content, 1fr);
    }
}
.loc-panel.track-panel {
    max-width: 1180px;
}
@media (min-width: 861px) {
    .track-steps li {
        padding: 0 4px;
    }
    .track-steps small {
        font-size: 12px;
    }
}

/* ---------- order tracker v2: thicker line, livelier progress, delivered celebration ---------- */
.mo-track li + li::before {
    top: 11.5px;
    height: 5px;
    border-radius: 99px;
}
.mo-track li.done + li.done::before {
    background: linear-gradient(90deg, var(--accent), #4caf50);
}
[dir="rtl"] .mo-track li.done + li.done::before {
    background: linear-gradient(-90deg, var(--accent), #4caf50);
}
/* the line toward the next status: bright moving stripes with a soft glow */
.mo-track li.now + li::before {
    background-color: var(--accent);
    background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.55) 0 7px, transparent 7px 14px);
    background-size: 19.8px 19.8px;
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.45);
    animation: track-flow 0.7s linear infinite, track-glow 1.6s ease-in-out infinite;
}
@keyframes track-flow {
    to { background-position: 19.8px 0; }
}
@keyframes track-glow {
    0%, 100% { box-shadow: 0 0 4px rgba(46, 125, 50, 0.3); }
    50% { box-shadow: 0 0 14px rgba(46, 125, 50, 0.7); }
}
.mo-track li.now + li .mo-dot {
    border-color: var(--accent);
    animation: track-wait 1.4s ease-in-out infinite;
}
@keyframes track-wait {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.35); transform: scale(1); }
    50% { box-shadow: 0 0 0 8px rgba(46, 125, 50, 0); transform: scale(1.12); }
}
/* the current status dot breathes a little */
.mo-track li.now .mo-dot {
    box-shadow: 0 0 0 5px var(--accent-soft);
}

/* delivered: the lines fill one after another, then the last dot pops with confetti */
.mo-track.is-delivered li + li::before {
    transform-origin: left center;
    animation: track-fill 0.35s ease-out both;
    animation-delay: calc(var(--i) * 0.12s);
}
[dir="rtl"] .mo-track.is-delivered li + li::before {
    transform-origin: right center;
}
@keyframes track-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
.mo-track.is-delivered li .mo-dot {
    animation: track-pop-small 0.35s ease-out both;
    animation-delay: calc(var(--i) * 0.12s + 0.2s);
}
@keyframes track-pop-small {
    from { transform: scale(0.6); }
    to { transform: scale(1); }
}
.mo-track.is-delivered li:last-child .mo-dot {
    width: 34px;
    height: 34px;
    margin-top: -3px;
    margin-bottom: -3px;
    font-size: 17px;
    background: linear-gradient(135deg, #43a047, var(--accent));
    animation: track-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both, track-ring 2s ease-out 1.6s infinite;
    animation-delay: 1s, 1.6s;
}
@keyframes track-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
@keyframes track-ring {
    0% { box-shadow: 0 0 0 0 rgba(67, 160, 71, 0.55); }
    100% { box-shadow: 0 0 0 14px rgba(67, 160, 71, 0); }
}
.mo-track.is-delivered li:last-child small {
    color: var(--accent);
    font-weight: 800;
}
.mo-confetti {
    position: absolute;
    top: 14px;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 2;
}
.mo-confetti i {
    position: absolute;
    width: 7px;
    height: 11px;
    margin: -5px 0 0 -3px;
    border-radius: 2px;
    opacity: 0;
    background: #43a047;
    animation: confetti-burst 1.3s cubic-bezier(0.2, 0.8, 0.3, 1) 1.15s both;
}
.mo-confetti i[style*="--c: 1"], .mo-confetti i[style*="--c:1"] { background: #f9a825; }
.mo-confetti i[style*="--c: 2"], .mo-confetti i[style*="--c:2"] { background: #e53935; }
.mo-confetti i[style*="--c: 3"], .mo-confetti i[style*="--c:3"] { background: #1e88e5; }
@keyframes confetti-burst {
    0% { opacity: 1; transform: rotate(var(--a)) translateY(0) rotate(0); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--a)) translateY(-62px) rotate(280deg); }
}
.mo-delivered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: -6px 0 18px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 700;
    animation: delivered-in 0.5s ease-out 1.5s both;
}
.mo-delivered i {
    font-size: 1.2rem;
}
@keyframes delivered-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* stacked tracker (phones): vertical line, same effects top to bottom */
@media (max-width: 860px) {
    .track-steps li + li::before {
        top: auto;
        bottom: 100%;
        inset-inline-start: 11.5px;
        width: 5px;
        height: 14px;
    }
    .track-steps li.done + li.done::before {
        background: var(--accent);
    }
    .track-steps li.now + li::before {
        background-size: 19.8px 19.8px;
        animation: track-flow-down 0.7s linear infinite, track-glow 1.6s ease-in-out infinite;
    }
    .track-steps.is-delivered li + li::before {
        transform-origin: center top;
        animation: track-fill-down 0.3s ease-out both;
        animation-delay: calc(var(--i) * 0.1s);
    }
    .track-steps.is-delivered li:last-child .mo-dot {
        margin: -3px;
    }
    .track-steps .mo-confetti {
        left: 14px;
    }
    [dir="rtl"] .track-steps .mo-confetti {
        left: auto;
        right: 14px;
    }
}
@keyframes track-flow-down {
    to { background-position: 0 19.8px; }
}
@keyframes track-fill-down {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
    .mo-track li::before,
    .mo-track .mo-dot,
    .mo-confetti,
    .mo-delivered {
        animation: none !important;
    }
    .mo-confetti {
        display: none;
    }
}

/* ---------- out of stock: card label, card bell, part page box ---------- */
.stock-out {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}
.pc-notify {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--accent-ink);
    font-size: 18px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.pc-notify:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-ink);
}
.pd-oos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin: 12px 0 18px;
    color: var(--ink-2);
}
.pd-oos b {
    color: #c62828;
}
.pd-notify-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.15s ease;
}
.pd-notify-link:hover,
.pd-notify-link:focus-visible {
    color: var(--accent);
}
.pd-oos-on {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 700;
}

/* ---------- toasts (partials/toasts) ---------- */
.toast-stack {
    position: fixed;
    top: 84px; /* under the site header */
    inset-inline-end: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}
.toast-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 12px 32px rgba(15, 30, 20, 0.18);
    overflow: hidden;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
[dir="rtl"] .toast-card {
    transform: translateX(-24px);
}
.toast-card.is-in {
    opacity: 1;
    transform: none;
}
.toast-card.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
}
.toast-ic {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
}
.toast-card.is-success .toast-ic { background: #2e7d32; }
.toast-card.is-error .toast-ic { background: #c62828; }
.toast-msg {
    flex: 1;
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}
.toast-x {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--ink-2);
    font-size: 12px;
    cursor: pointer;
}
.toast-x:hover {
    background: var(--surface-2);
    color: var(--ink);
}
.toast-bar {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    transform-origin: left;
    animation: toast-time var(--toast-time, 4500ms) linear forwards;
}
[dir="rtl"] .toast-bar {
    transform-origin: right;
}
.toast-card.is-success .toast-bar { background: #2e7d32; }
.toast-card.is-error .toast-bar { background: #c62828; }
.toast-card.is-paused .toast-bar {
    animation-play-state: paused;
}
@keyframes toast-time {
    to { transform: scaleX(0); }
}
@media (max-width: 640px) {
    .toast-stack {
        top: 12px;
        inset-inline: 16px;
        width: auto;
    }
    .toast-card,
    [dir="rtl"] .toast-card {
        transform: translateY(-16px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .toast-card { transition: none; }
}

/* ---------- header v3: green bar, white links (no buttons) ---------- */
.top {
    background: var(--accent);
    border-bottom: 0;
    box-shadow: 0 2px 12px rgba(10, 40, 15, 0.18);
}
/* the white logo on the green bar, in light and dark mode */
.top .logo img.logo-on-light,
:root[data-theme="dark"] .top .logo img.logo-on-light {
    display: none;
}
.top .logo img.logo-on-dark,
:root[data-theme="light"] .top .logo img.logo-on-dark {
    display: block;
}
.top .nh-btn,
.top .nh-loc,
.top a#cartBtn,
.top .nh-btn:hover,
.top .nh-loc:hover,
.top a#cartBtn:hover,
.top .nh-profile.is-open > .nh-btn,
.top .nh-btn[aria-current="page"] {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    filter: none;
}
.top .nh-btn,
.top .nh-loc {
    padding: 0 8px;
    border-radius: 8px;
    transition: background 0.15s ease;
}
.top .nh-ic {
    width: 40px;
}
.top .nh-btn:hover,
.top .nh-loc:hover,
.top a#cartBtn:hover,
.top .nh-profile.is-open > .nh-btn,
.top .nh-btn[aria-current="page"] {
    background: rgba(255, 255, 255, 0.14);
}
.top .nh-btn:focus-visible,
.top .nh-loc:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}
.top .nh-loc svg,
.top .nh-loc-t b {
    color: #fff;
}
.top .nh-loc-t small {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
}
.top-tools,
.nh .top-actions {
    gap: 4px;
}
/* search: white box with a dark green button so it stands out on the green bar */
.top .nh .search,
.nh .search {
    border-color: transparent;
    background: #fff;
}
.nh .search input {
    color: #13241b;
}
.nh .search button {
    background: #1f4d14;
}
.nh .search button:hover {
    background: #173b0f;
}
.nh .search:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
/* cart count stays readable on green */
.top .nh-badge {
    box-shadow: 0 0 0 2px var(--accent);
}

/* ---------- navbar search v2: icon inside, no button, trending / recent dropdown ---------- */
.nh .search {
    position: relative;
    overflow: visible;
    align-items: center;
    border-radius: 12px;
    background: #fff;
}
.nh .search .search-ic {
    flex-shrink: 0;
    margin-inline-start: 14px;
    color: #4a5a50;
}
.nh .search input {
    height: 100%;
    padding: 0 14px 0 10px;
    border-radius: 12px;
    background: transparent;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}
.nh .search input::-webkit-search-cancel-button {
    cursor: pointer;
}
.nh .search input.hint-out::placeholder {
    opacity: 0;
}
.nh .search input::placeholder {
    color: #7a877f;
    transition: opacity 0.2s ease;
}
.nh .search.is-open {
    border-end-start-radius: 0;
    border-end-end-radius: 0;
}
.nh .search-suggest {
    top: 100%;
    margin-top: -1px;
    border-top: 1px solid #e6ece4;
    border-start-start-radius: 0;
    border-start-end-radius: 0;
    border-end-start-radius: 14px;
    border-end-end-radius: 14px;
    box-shadow: 0 18px 40px rgba(10, 30, 15, 0.22);
}
.ss-idle {
    padding: 14px 18px 18px;
}
.ss-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 10px;
}
.ss-h b {
    font-size: 0.98rem;
    color: var(--ink);
}
.ss-h button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--ink-2);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.ss-h button:hover {
    color: var(--accent);
    text-decoration: underline;
}
.ss-recent {
    margin-bottom: 14px;
}
.ss-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ss-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.9rem;
    text-decoration: none;
    max-width: 100%;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ss-chip svg,
.ss-chip i {
    flex-shrink: 0;
    color: var(--ink-2);
}
.ss-chip:hover,
.ss-chip:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.ss-chip:hover svg,
.ss-chip:hover i {
    color: var(--accent);
}
@media (max-width: 760px) {
    .ss-idle {
        padding: 12px 14px 14px;
    }
    .ss-chip {
        padding: 7px 11px;
        font-size: 0.85rem;
    }
}
.nh .search input:focus,
.nh .search input:focus-visible {
    outline: none;
    border: 0;
    box-shadow: none;
}
.nh .search .ss-h button {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--ink-2);
}
.nh .search .ss-h button:hover {
    background: none;
    color: var(--accent);
}
.ss-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

/* ---------- "Deliver to" map modal ---------- */
.dl-modal {
    align-items: center;
    padding: 24px 16px;
}
.loc-panel.dl-panel {
    max-width: 880px;
    height: min(720px, calc(100vh - 48px));
    max-height: none;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
}
.dl-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.dl-head h2 {
    flex: 1;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}
.dl-back {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
}
.dl-back:hover {
    background: var(--surface-2);
}
[dir="rtl"] .dl-back i {
    display: inline-block;
    transform: scaleX(-1);
}
.dl-body {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #e8ece6;
}
.dl-map {
    position: absolute;
    inset: 0;
}
.dl-top {
    position: absolute;
    top: 14px;
    inset-inline: 14px;
    z-index: 3;
    display: flex;
    gap: 10px;
}
.dl-search {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    color: #4a5a50;
}
.dl-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #13241b;
    font: inherit;
    font-size: 0.95rem;
}
.dl-suggest {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: 0;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.dl-sg {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #13241b;
    text-align: start;
    cursor: pointer;
}
.dl-sg:hover {
    background: #f1f5ef;
}
.dl-sg i {
    margin-top: 2px;
    color: #6a786e;
}
.dl-sg b {
    display: block;
    font-size: 0.92rem;
}
.dl-sg small {
    color: #6a786e;
    font-size: 0.8rem;
}
.dl-sg-empty {
    padding: 12px;
    color: #6a786e;
    font-size: 0.9rem;
}
.dl-locate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    cursor: pointer;
}
.dl-locate:hover {
    background: #f1f8ee;
}
.dl-locate.is-busy i {
    animation: dl-spin 1s linear infinite;
}
@keyframes dl-spin {
    to { transform: rotate(360deg); }
}
/* the pin stays in the middle; the map moves under it */
.dl-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -100%);
    pointer-events: none;
}
.dl-pin svg {
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.18s ease;
}
.dl-shadow {
    width: 10px;
    height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.dl-tip {
    margin-bottom: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #13241b;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}
.dl-pin.is-moving svg {
    transform: translateY(-10px);
}
.dl-pin.is-moving .dl-shadow {
    transform: scale(1.6);
    opacity: 0.5;
}
.dl-pin.is-moving .dl-tip {
    opacity: 0;
}
.dl-zoom {
    position: absolute;
    top: 80px;
    inset-inline-end: 14px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}
.dl-zoom button {
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: #13241b;
    font-size: 18px;
    cursor: pointer;
}
.dl-zoom button + button {
    border-top: 1px solid #e6ece4;
}
.dl-zoom button:hover {
    background: #f1f5ef;
}
.dl-saved {
    position: absolute;
    bottom: 14px;
    inset-inline: 14px;
    z-index: 3;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.dl-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #fff;
    color: #13241b;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    cursor: pointer;
}
.dl-chip:hover,
.dl-chip.on {
    border-color: var(--accent);
    color: var(--accent);
}
.dl-loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    background: #e8ece6;
}
.dl-loading[hidden] {
    display: none;
}
.dl-loading span {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(52, 122, 34, 0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: dl-spin 0.8s linear infinite;
}
.dl-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}
.dl-foot[hidden] {
    display: none;
}
.dl-foot-ic {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--ink);
    font-size: 20px;
}
.dl-addr {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dl-addr small {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.dl-addr b {
    font-size: 1rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dl-addr span {
    color: var(--ink-2);
    font-size: 0.85rem;
}
.dl-addr .dl-err {
    color: #c62828;
    font-weight: 600;
}
.dl-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.dl-confirm {
    min-width: 220px;
    height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.15s ease, opacity 0.15s ease;
}
.dl-confirm:hover {
    filter: brightness(1.08);
}
.dl-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: none;
}
.dl-alt {
    border: 0;
    background: none;
    padding: 0;
    color: var(--ink-2);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.dl-alt:hover {
    color: var(--accent);
    text-decoration: underline;
}
.dl-cities-view {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 18px;
}
.dl-cities-view .co-input {
    width: 100%;
    margin-bottom: 12px;
}
@media (max-width: 640px) {
    .dl-modal {
        padding: 0;
        align-items: flex-end;
    }
    .loc-panel.dl-panel {
        height: 92vh;
        border-radius: 18px 18px 0 0;
    }
    .dl-top {
        flex-direction: column;
        gap: 8px;
    }
    .dl-search,
    .dl-locate {
        flex: none;
        height: 46px;
    }
    .dl-locate {
        align-self: flex-start;
    }
    .dl-zoom {
        top: auto;
        bottom: 64px;
    }
    .dl-foot {
        flex-wrap: wrap;
        padding: 14px;
    }
    .dl-actions {
        width: 100%;
    }
    .dl-confirm {
        width: 100%;
        min-width: 0;
    }
}

/* "Deliver to": room for the full street and district picked on the map */
.top .nh-loc {
    max-width: 320px;
}
@media (max-width: 1440px) {
    .top .nh-loc {
        max-width: 260px;
    }
}
@media (max-width: 760px) {
    .top .nh-loc {
        max-width: 60vw;
    }
}

/* header v4: search takes the free space, then language · account · orders · wishlist · cart */
@media (min-width: 1181px) {
    .top-in.nh {
        grid-template-columns: auto minmax(260px, 1fr) auto;
        gap: 10px 20px;
    }
    .nh-end {
        display: flex;
        align-items: center;
        gap: 6px;
    }
}
.top .top-actions {
    gap: 2px;
}
/* labels show when there is room, icons only below that */
@media (min-width: 1181px) and (max-width: 1440px) {
    #ordersBtn .nh-l,
    #favBtn .nh-l {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }
}
@media (min-width: 1181px) and (max-width: 1360px) {
    .top .nh-loc {
        max-width: 190px;
    }
    #ordersBtn .nh-l,
    #favBtn .nh-l,
    #cartBtn .nh-l {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
}
@media (min-width: 921px) and (max-width: 1180px) {
    #ordersBtn .nh-l,
    #favBtn .nh-l {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }
}

/* ---------- "Account required" (guest on orders / wishlist) ---------- */
.home-in.login-req {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 16px;
    text-align: center;
}
.login-req h1 {
    margin: 12px 0 0;
    font-size: 1.6rem;
    color: var(--ink);
}
.login-req p {
    margin: 0;
    color: var(--ink-2);
}
.lr-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.lr-btn {
    min-width: 140px;
    padding: 12px 22px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.15s ease, background 0.15s ease;
}
.lr-btn:hover {
    color: #fff;
    filter: brightness(1.08);
}
.lr-btn.is-ghost {
    background: transparent;
    color: var(--accent);
}
.lr-btn.is-ghost:hover {
    background: var(--accent-soft);
    color: var(--accent);
    filter: none;
}
.lr-track {
    margin-top: 10px;
    border: 0;
    background: none;
    color: var(--ink-2);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.lr-track:hover {
    color: var(--accent);
}

/* ---------- log in / sign up modal ---------- */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: rgba(10, 24, 15, 0.55);
}
.auth-modal[hidden] {
    display: none;
}
.am-panel {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    scrollbar-width: thin;
}
.am-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #13241b;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}
/* the collage: category photos in soft bubbles */
.am-art {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: linear-gradient(135deg, #e7f2e1, #d4ead0);
}
.am-bubble {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 16px rgba(20, 60, 25, 0.12);
    overflow: hidden;
}
.am-bubble img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}
.am-bubble.b1 { width: 96px; height: 96px; left: -14px; top: 18px; }
.am-bubble.b2 { width: 74px; height: 74px; left: 80px; top: 8px; }
.am-bubble.b3 { width: 110px; height: 110px; left: 150px; top: 36px; }
.am-bubble.b4 { width: 70px; height: 70px; left: 270px; top: 6px; }
.am-bubble.b5 { width: 92px; height: 92px; left: 340px; top: 48px; }
.am-bubble.b6 { width: 64px; height: 64px; left: 60px; top: 100px; }
.am-bubble.b7 { width: 60px; height: 60px; left: 262px; top: 104px; }
.am-bubble.b8 { width: 54px; height: 54px; left: 420px; top: 4px; }
.am-bubble.b9 { width: 50px; height: 50px; left: 16px; top: 124px; }
.am-body {
    padding: 22px 28px 24px;
}
.am-body h2 {
    margin: 0 0 16px;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ink);
}
.am-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #23332a;
}
.am-tabs button {
    height: 40px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.am-tabs button.on {
    background: #fff;
    color: #13241b;
}
.am-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.am-switch label {
    margin: 0;
    cursor: pointer;
}
.am-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.am-switch span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink-2);
    font-weight: 600;
    font-size: 0.9rem;
}
.am-switch input:checked + span {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}
.am-switch input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
/* outlined fields with the label on the border */
.am-field {
    position: relative;
    display: block;
    margin: 0 0 14px;
}
.am-field[hidden] {
    display: none;
}
.am-label {
    position: absolute;
    top: -9px;
    inset-inline-start: 12px;
    padding: 0 6px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 0.78rem;
    font-weight: 600;
}
.am-field input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #b9c4bb;
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.98rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.am-field input:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.am-pw input {
    padding-inline-end: 48px;
}
.am-eye {
    position: absolute;
    top: 50%;
    inset-inline-end: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    color: var(--ink-2);
    cursor: pointer;
}
.am-code {
    letter-spacing: 0.45em;
    font-weight: 700;
    text-align: center;
}
.am-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: -2px 0 14px;
    font-size: 0.88rem;
}
.am-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ink-2);
    cursor: pointer;
}
.am-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}
.am-terms {
    margin: 4px 0 14px;
    font-size: 0.88rem;
}
.am-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.am-link:hover {
    text-decoration: underline;
}
.am-submit {
    position: relative;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: filter 0.15s ease, opacity 0.15s ease;
}
.am-submit:hover {
    filter: brightness(1.08);
}
.am-submit:disabled,
.am-submit.is-off {
    opacity: 0.45;
    cursor: not-allowed;
    filter: none;
}
.am-submit.is-busy {
    color: transparent;
    pointer-events: none;
}
.am-submit.is-busy::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dl-spin 0.8s linear infinite;
}
.am-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    color: var(--ink-2);
    font-size: 0.9rem;
}
.am-error {
    margin: -4px 0 12px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #fdecea;
    color: #b3261e;
    font-size: 0.88rem;
    font-weight: 600;
}
.am-hint,
.am-note {
    margin: -4px 0 14px;
    color: var(--ink-2);
    font-size: 0.88rem;
}
.am-note b {
    color: var(--ink);
}
.am-verified {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--ink);
    font-size: 0.9rem;
}
.am-verified i {
    color: var(--accent);
    font-size: 18px;
}
.am-strength {
    height: 5px;
    margin: -6px 0 8px;
    border-radius: 99px;
    background: var(--surface-2);
    overflow: hidden;
}
.am-strength span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #d93025;
    transition: width 0.25s ease, background 0.25s ease;
}
.am-strength[data-level="1"] span { width: 20%; }
.am-strength[data-level="2"] span { width: 40%; }
.am-strength[data-level="3"] span { width: 60%; background: #f29900; }
.am-strength[data-level="4"] span { width: 80%; background: #7cb342; }
.am-strength[data-level="5"] span { width: 100%; background: #1e8e3e; }
.am-rules {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    color: #c62828;
    font-size: 0.82rem;
    font-weight: 600;
}
.am-rules li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}
.am-rules li[hidden] {
    display: none;
}
.am-legal {
    margin: 16px 0 0;
    text-align: center;
    color: var(--ink-2);
    font-size: 0.8rem;
}
@media (max-width: 520px) {
    .auth-modal {
        padding: 0;
        align-items: flex-end;
    }
    .am-panel {
        max-height: 94vh;
        border-radius: 20px 20px 0 0;
    }
    .am-art {
        height: 120px;
    }
    .am-body {
        padding: 18px 18px 22px;
    }
}

/* modal: phone / email as two text links, the chosen one green and underlined */
.am-switch {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: -2px 0 16px;
}
.am-switch span,
.am-switch input:checked + span {
    height: auto;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: none;
    gap: 6px;
    font-size: 0.92rem;
}
.am-switch span {
    color: var(--ink-2);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.am-switch label:hover span {
    color: var(--accent);
}
.am-switch input:checked + span {
    color: var(--accent);
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
}

/* modal photos: a slow, endless marquee in two rows */
.am-art {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    height: 180px;
    padding: 6px 0;
    direction: ltr;
}
.am-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    animation: am-marquee 60s linear infinite;
}
.am-strip.is-reverse {
    animation-direction: reverse;
    animation-duration: 70s;
    margin-inline-start: -40px;
}
.am-art .am-bubble {
    position: static;
    flex-shrink: 0;
    width: 74px;
    height: 74px;
}
.am-art .am-bubble.s1 {
    width: 64px;
    height: 64px;
}
.am-art .am-bubble.s2 {
    width: 82px;
    height: 82px;
}
@keyframes am-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .am-strip { animation: none; }
}
@media (max-width: 520px) {
    .am-art {
        height: 150px;
        gap: 8px;
    }
    .am-art .am-bubble { width: 60px; height: 60px; }
    .am-art .am-bubble.s1 { width: 52px; height: 52px; }
    .am-art .am-bubble.s2 { width: 68px; height: 68px; }
}

/* marquee v2: each half carries its own trailing gap, so -50% is exactly one half (no jump), GPU-composited */
.am-strip {
    gap: 0;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    animation: am-marquee2 50s linear infinite;
}
.am-strip.is-reverse {
    margin-inline-start: 0;
    animation-name: am-marquee2-rev;
    animation-direction: normal;
    animation-duration: 58s;
}
.am-seq {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
    padding-inline-end: 12px;
}
.am-art .am-bubble {
    box-shadow: 0 4px 10px rgba(20, 60, 25, 0.1);
}
@keyframes am-marquee2 {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}
@keyframes am-marquee2-rev {
    from { transform: translate3d(-50%, 0, 0); }
    to { transform: translate3d(0, 0, 0); }
}

/* ---------- account area (noon style): sidebar + content ---------- */
.home-in.acc-page {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    max-width: 1240px;
    padding-top: 28px;
    padding-bottom: 48px;
}
.acc-side {
    position: sticky;
    top: 124px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.acc-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.acc-hello {
    padding: 16px;
}
.acc-hello b {
    display: block;
    font-size: 1.05rem;
}
.acc-hello small {
    display: block;
    margin-top: 2px;
    color: var(--ink-2);
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.acc-complete {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 8px;
    font-size: 0.85rem;
    font-weight: 600;
}
.acc-complete em {
    padding: 1px 8px;
    border-radius: 99px;
    background: var(--accent-soft);
    color: var(--accent);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 700;
}
.acc-bar {
    height: 6px;
    border-radius: 99px;
    background: var(--surface-2);
    overflow: hidden;
}
.acc-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}
.acc-group {
    margin: 6px 4px -4px;
    color: var(--ink-2);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.acc-links {
    padding: 6px;
}
.acc-links a,
.acc-links button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}
.acc-links i {
    width: 20px;
    color: var(--ink-2);
    font-size: 1.05rem;
    text-align: center;
}
.acc-links a:hover,
.acc-links button:hover {
    background: var(--surface-2);
}
.acc-links a.on {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}
.acc-links a.on i {
    color: var(--accent);
}
.acc-main {
    min-width: 0;
}
.acc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.acc-head h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
}
.acc-tools {
    display: flex;
    gap: 8px;
}
.acc-find {
    position: relative;
    margin: 0;
}
.acc-find i {
    position: absolute;
    top: 50%;
    inset-inline-start: 12px;
    transform: translateY(-50%);
    color: var(--ink-2);
}
.acc-find input,
.acc-period {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.92rem;
}
.acc-find input {
    width: 220px;
    padding: 0 12px;
    padding-inline-start: 36px;
}
.acc-period {
    padding: 0 12px;
    min-width: 160px;
}
.acc-find input:focus,
.acc-period:focus {
    outline: 0;
    border-color: var(--accent);
}
.ord-group {
    padding: 20px;
    margin-bottom: 18px;
}
.ord-group h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-weight: 700;
}
.ord-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.ord-card + .ord-card {
    margin-top: 14px;
}
.ord-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.ord-ic {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff4e0;
    color: #b26a00;
    font-size: 1.15rem;
}
.ord-ic.is-done {
    background: var(--accent-soft);
    color: var(--accent);
}
.ord-ic.is-off {
    background: #fdecea;
    color: #c62828;
}
.ord-state {
    flex: 1;
    min-width: 0;
}
.ord-state b {
    display: block;
    font-size: 1.02rem;
}
.ord-state small {
    color: var(--ink-2);
    font-size: 0.8rem;
}
.ord-acts {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ord-rate {
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.ord-rate:hover {
    color: #fff;
    filter: brightness(1.08);
}
.ord-rate.is-done {
    background: var(--accent-soft);
    color: var(--accent);
}
.ord-more {
    position: relative;
}
.ord-more summary {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    list-style: none;
    color: var(--ink-2);
    cursor: pointer;
}
.ord-more summary::-webkit-details-marker {
    display: none;
}
.ord-more summary:hover,
.ord-more[open] summary {
    background: var(--surface-2);
}
.ord-menu {
    position: absolute;
    top: calc(100% + 4px);
    inset-inline-end: 0;
    z-index: 5;
    min-width: 170px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}
.ord-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.9rem;
    text-decoration: none;
}
.ord-menu a:hover {
    background: var(--surface-2);
}
.ord-items {
    display: block;
    padding: 6px 16px;
    color: inherit;
    text-decoration: none;
}
.ord-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}
.ord-item + .ord-item {
    border-top: 1px dashed var(--line);
}
.ord-img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.ord-img img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}
.ord-item small {
    display: block;
    color: var(--ink-2);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ord-item b {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}
.ord-item .num {
    font-size: 0.9rem;
    font-weight: 700;
}
.ord-item em {
    color: var(--ink-2);
    font-style: normal;
    font-weight: 600;
}
.ord-items:hover b {
    color: var(--accent);
}
.ord-more-items {
    margin: 0 0 8px;
    color: var(--ink-2);
    font-size: 0.85rem;
}
.ord-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 0.82rem;
}
.ord-foot b {
    color: var(--ink);
}
.acc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 48px 20px;
    text-align: center;
}
.acc-empty > i {
    font-size: 2.4rem;
    color: var(--accent);
}
.acc-empty p {
    margin: 0 0 8px;
    color: var(--ink-2);
}
@media (max-width: 900px) {
    .home-in.acc-page {
        grid-template-columns: minmax(0, 1fr);
    }
    .acc-side {
        position: static;
    }
    /* phones: the menu becomes a row of chips above the orders */
    .acc-hello,
    .acc-group,
    .acc-side > form {
        display: none;
    }
    .acc-side {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        scrollbar-width: none;
    }
    .acc-links {
        display: flex;
        gap: 6px;
        padding: 0;
        border: 0;
        background: none;
    }
    .acc-links a {
        width: auto;
        flex-shrink: 0;
        padding: 8px 12px;
        border: 1px solid var(--line);
        border-radius: 99px;
        background: var(--surface);
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .acc-tools,
    .acc-find,
    .acc-find input {
        width: 100%;
    }
    .acc-head {
        flex-direction: column;
        align-items: stretch;
    }
}
@media (max-width: 560px) {
    .ord-top {
        align-items: flex-start;
        padding: 12px;
    }
    .ord-rate {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
    .ord-state b {
        font-size: 0.95rem;
    }
    .ord-group {
        padding: 14px;
    }
}

/* ---------- wishlist (noon style) ---------- */
.home-in.wish-page {
    padding-top: 24px;
    padding-bottom: 48px;
    gap: 0;
}
.wish-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.wish-head h1 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
}
.wish-head span {
    color: var(--ink-2);
}
.wish-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 40px;
    text-align: center;
}
.wish-art {
    margin-bottom: 8px;
}
.wish-empty b {
    font-size: 1.35rem;
}
.wish-empty p {
    max-width: 440px;
    margin: 0 0 10px;
    color: var(--ink-2);
}
.wish-recent {
    margin-top: 16px;
}
.wish-recent h2 {
    margin: 0 0 16px;
    font-size: 1.4rem;
    font-weight: 800;
}

/* wishlist: the page is full width; title, empty state and the wishlist itself stay in the usual column,
   "Items you previously viewed" uses the whole width */
.home-in.wish-page {
    max-width: none;
    padding-inline: clamp(15px, 3vw, 48px);
}
.wish-page > .wish-head,
.wish-page > .wish-empty,
.wish-page > .parts {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
}
.wish-recent {
    width: 100%;
}

/* ---------- addresses page ---------- */
.acc-sub {
    margin: 4px 0 0;
    color: var(--ink-2);
}
.addr-wrap {
    padding: 20px;
}
.addr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.addr-new {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed var(--accent);
    border-radius: 12px;
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.15s ease;
}
.addr-new i {
    font-size: 1.6rem;
}
.addr-new:hover {
    background: var(--accent-soft);
}
.addr-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.addr-item.is-default {
    border: 2px solid var(--accent);
}
.addr-body {
    flex: 1;
    display: flex;
    gap: 14px;
    padding: 16px;
}
.addr-ic {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--surface-2);
    font-size: 1.2rem;
}
.addr-body b {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
}
.addr-body b em {
    padding: 1px 8px;
    border-radius: 99px;
    background: var(--accent-soft);
    color: var(--accent);
    font-style: normal;
    font-size: 0.72rem;
}
.addr-body p {
    margin: 4px 0 10px;
    color: var(--ink-2);
    font-size: 0.92rem;
    line-height: 1.5;
}
.addr-body small {
    color: var(--ink);
    font-size: 0.88rem;
}
.addr-body small i {
    color: var(--accent);
}
.addr-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface-2);
    color: var(--ink-2);
}
.addr-foot form {
    margin: 0;
}
.addr-foot a,
.addr-foot button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}
.addr-foot a:hover,
.addr-foot button:hover {
    text-decoration: underline;
}
@media (max-width: 760px) {
    .addr-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .addr-new {
        min-height: 110px;
    }
}

/* "Add new address" mode of the map modal */
.dl-modal.is-address .dl-saved,
.dl-modal.is-address .dl-alt {
    display: none;
}
.dl-details {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 20px 20px;
}
.dl-details[hidden] {
    display: none;
}
.dl-picked {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-2);
    font-weight: 600;
}
.dl-picked i {
    color: var(--accent);
    margin-top: 2px;
}
.dl-labels {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.dl-labels label {
    margin: 0;
    cursor: pointer;
}
.dl-labels input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.dl-labels span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--ink-2);
    font-weight: 600;
}
.dl-labels input:checked + span {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}
.dl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
}
.dl-details .am-check {
    margin: 4px 0 14px;
    font-size: 0.9rem;
}
.dl-save {
    width: 100%;
}
@media (max-width: 640px) {
    .dl-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* map modal footer keeps one height whatever the address text, so the map never resizes (it used to bounce) */
.dl-foot {
    min-height: 112px;
    flex-shrink: 0;
}
.dl-addr b,
.dl-addr span:not(.dl-err) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dl-addr span:not(.dl-err) {
    min-height: 1.3em;
}
.dl-body {
    flex: 1 1 0;
}

/* orders period dropdown: own arrow with room from the edge (the native one sat on the border) */
.acc-period {
    appearance: none;
    -webkit-appearance: none;
    padding-inline-start: 14px;
    padding-inline-end: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b60' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position: right 14px center;
    cursor: pointer;
}
[dir="rtl"] .acc-period {
    background-position: left 14px center;
}

/* every dropdown on the site: one arrow, 14px in from the edge (native arrows sat on the border) */
select:not([multiple]):not([size]):not(.ts-hidden-accessible) {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-inline-end: 40px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b60' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
    background-position: right 14px center !important;
    cursor: pointer;
}
[dir="rtl"] select:not([multiple]):not([size]):not(.ts-hidden-accessible) {
    background-position: left 14px center !important;
}
select:disabled {
    cursor: not-allowed;
}

/* account sidebar: a little space between links so two highlighted rows (current + hover) don't touch */
@media (min-width: 901px) {
    .acc-links {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 8px;
    }
}

/* ---------- profile page (noon style) ---------- */
.pf-card {
    padding: 24px 28px 28px;
    margin-bottom: 18px;
}
.pf-card h2 {
    margin: 0 0 20px;
    font-size: 1.15rem;
    font-weight: 700;
}
.pf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
    max-width: 760px;
}
.pf-field label,
.pf-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-2);
    font-weight: 600;
    font-size: 0.92rem;
}
.pf-field input,
.pf-field select {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.98rem;
}
.pf-field input:focus,
.pf-field select:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.pf-field input.is-locked {
    border-color: transparent;
    background: var(--surface-2);
    color: var(--ink);
    cursor: default;
}
.pf-field input.is-invalid {
    border-color: #c62828;
}
.pf-field select.is-empty {
    color: var(--accent);
    font-weight: 600;
}
.pf-field small {
    display: block;
    margin-top: 6px;
    color: var(--ink-2);
    font-size: 0.8rem;
}
.pf-field small.pf-ok {
    color: var(--accent);
    font-weight: 600;
}
.pf-field small.pf-err,
.pf-photo .pf-err {
    color: #c62828;
    font-weight: 600;
}
.pf-input {
    position: relative;
}
.pf-input input {
    padding-inline-end: 42px;
}
.pf-input i {
    position: absolute;
    top: 50%;
    inset-inline-end: 14px;
    transform: translateY(-50%);
    color: var(--ink-2);
    pointer-events: none;
}
.pf-gender {
    display: flex;
    gap: 10px;
}
.pf-gender label {
    margin: 0;
    cursor: pointer;
}
.pf-gender input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pf-gender span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-weight: 600;
    color: var(--ink);
}
.pf-gender input:checked + span {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}
.pf-gender input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.pf-photo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}
.pf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
}
.pf-link:hover {
    text-decoration: underline;
}
.pf-file {
    color: var(--ink-2);
    font-size: 0.85rem;
}
.pf-save {
    min-width: 260px;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
}
.pf-save:hover {
    filter: brightness(1.08);
}
.pf-save:disabled {
    background: #9aa59d;
    cursor: not-allowed;
    filter: none;
}
.addr-body b em.is-off {
    background: #fdecea;
    color: #c62828;
}
@media (max-width: 760px) {
    .pf-card {
        padding: 18px;
    }
    .pf-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .pf-save {
        width: 100%;
    }
}

/* older account pages (points, add your car, order details, address form) inside the account layout */
.acc-inner {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.acc-inner > .hsec:first-child {
    margin-top: 0;
}

/* ---------- warranty claims: page + side drawer ---------- */
.wc-empty {
    padding-top: 36px;
}
.wc-art {
    margin-bottom: 4px;
}
.wc-drawer {
    position: fixed;
    inset: 0;
    z-index: 2400;
}
.wc-drawer[hidden] {
    display: none;
}
.wc-shade {
    position: absolute;
    inset: 0;
    background: rgba(10, 24, 15, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.wc-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: min(440px, 100vw);
    display: flex;
    flex-direction: column;
    background: var(--surface-2);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.25s ease;
}
[dir="rtl"] .wc-panel {
    transform: translateX(-100%);
}
.wc-drawer.is-open .wc-shade {
    opacity: 1;
}
.wc-drawer.is-open .wc-panel {
    transform: none;
}
.wc-head {
    position: relative;
    padding: 18px 56px 10px;
    text-align: center;
}
.wc-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}
.wc-x {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
}
.wc-x:hover {
    background: var(--surface);
}
.wc-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 4px 16px 14px;
}
.wc-tabs button {
    padding: 7px 22px;
    border: 0;
    border-radius: 99px;
    background: var(--line);
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
}
.wc-tabs button.on {
    background: #23332a;
    color: #fff;
}
.wc-tools {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
}
.wc-tools .acc-find {
    flex: 1;
}
.wc-tools .acc-find input {
    width: 100%;
}
.wc-tools .acc-period {
    min-width: 150px;
}
.wc-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 16px;
}
.wc-item {
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: var(--surface);
}
.wc-item[hidden] {
    display: none;
}
.wc-oid {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-2);
    font-size: 0.8rem;
}
.wc-row {
    display: flex;
    gap: 12px;
}
.wc-img {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.wc-img img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}
.wc-img em {
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    padding: 0 5px;
    border-radius: 4px;
    background: rgba(35, 51, 42, 0.75);
    color: #fff;
    font-size: 0.7rem;
    font-style: normal;
}
.wc-row small {
    color: var(--ink-2);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
}
.wc-row b {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}
.wc-warranty {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}
.wc-warranty.is-active { color: var(--accent); }
.wc-warranty.is-not_activated { color: #9a5a00; }
.wc-warranty.is-pending,
.wc-warranty.is-none { color: var(--ink-2); }
.wc-warranty.is-expired { color: #c62828; }
.wc-state {
    margin: 10px 0 0;
    font-weight: 700;
    font-size: 0.9rem;
}
.wc-none {
    padding: 30px 10px;
    color: var(--ink-2);
    text-align: center;
}

/* ---------- home: three columns (More reasons to shop · Mega Deals · In focus) ---------- */
.hsec.trio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
.trio-col {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 16px;
    background: var(--surface-2);
}
.trio-col h2 {
    margin: 0 0 14px;
    font-size: 1.3rem;
    font-weight: 800;
}
.trio-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.trio-h h2 {
    margin: 0;
}
.trio-tiles,
.trio-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.trio-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trio-tile:hover {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 42, 24, 0.12);
}
.trio-pic {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 11;
}
.trio-tile.t1 .trio-pic { background: linear-gradient(135deg, #fff1df, #fde3c3); }
.trio-tile.t2 .trio-pic { background: linear-gradient(135deg, #ece9ff, #dcd8fb); }
.trio-tile.t3 .trio-pic { background: linear-gradient(135deg, #e3f3df, #cfe8c9); }
.trio-tile.t4 .trio-pic { background: linear-gradient(135deg, #fde8e6, #f9d2cd); }
.trio-pic img {
    width: 72%;
    height: 82%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.trio-tile b {
    padding: 10px 14px 0;
    font-size: 1.02rem;
}
.trio-tile small {
    padding: 2px 14px 12px;
    color: var(--ink-2);
    font-size: 0.85rem;
}
/* Mega Deals: brand-tinted panel */
.trio-col.trio-deals {
    background: linear-gradient(160deg, #cfe8c4, #b7dca8);
}
[data-theme="dark"] .trio-col.trio-deals {
    background: linear-gradient(160deg, #24452a, #1d3a22);
}
.trio-btn {
    padding: 8px 14px;
    border-radius: 10px;
    background: #13241b;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}
.trio-btn:hover {
    color: #fff;
    background: #000;
}
.trio-deal {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 12px 12px;
    border-radius: 12px;
    background: var(--surface);
}
.trio-tag {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    max-width: 85%;
    padding: 4px 10px;
    border-end-start-radius: 10px;
    border-start-end-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trio-deal-pic {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    margin-bottom: 8px;
}
.trio-deal-pic img {
    max-width: 85%;
    max-height: 100%;
    object-fit: contain;
}
.trio-add {
    position: absolute;
    top: 46%;
    inset-inline-end: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.trio-add:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.trio-deal-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.35;
    text-decoration: none;
    min-height: 2.7em;
}
.trio-deal-name:hover {
    color: var(--accent);
}
.trio-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.trio-price del {
    color: var(--ink-2);
    font-size: 0.85rem;
}
.trio-price b {
    font-size: 1.15rem;
}
.trio-focus {
    flex: 1;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}
.trio-banner {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface);
    min-height: 140px;
}
.trio-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.trio-banner:hover img {
    transform: scale(1.03);
}
.trio-banner.is-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-soft), #cfe8c9);
    color: var(--ink);
    text-decoration: none;
}
.trio-banner.is-text b {
    font-size: 1.5rem;
}
@media (max-width: 1100px) {
    .hsec.trio {
        grid-template-columns: 1fr 1fr;
    }
    .trio-col:last-child {
        grid-column: 1 / -1;
    }
    .trio-focus {
        grid-template-rows: none;
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 700px) {
    .hsec.trio {
        grid-template-columns: minmax(0, 1fr);
    }
    .trio-focus {
        grid-template-columns: minmax(0, 1fr);
    }
}
.trio-banner.is-text {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
}
.trio-banner.is-text span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1;
}
.trio-banner.is-text b {
    font-size: 1.7rem;
    line-height: 1.15;
    font-weight: 800;
}
.trio-banner.is-text small {
    color: var(--ink-2);
    font-size: 0.95rem;
}
.trio-banner.is-text img {
    width: 45%;
    height: auto;
    max-height: 85%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.trio-banner.is-warm {
    background: linear-gradient(135deg, #fff1df, #fcd9b0);
}
.trio-banner.is-cool {
    background: linear-gradient(135deg, #e3f0fb, #c9dff3);
}

/* part cards: badges as corner tabs, like the Mega Deals cards.
   Discount in the top corner, warranty in the bottom corner, so they never cover each other */
.pcard .pimg {
    overflow: hidden;
    border-radius: 12px;
}
.pcard .pimg .off-badge {
    top: 0;
    inset-inline-start: auto;
    inset-inline-end: 0;
    padding: 5px 11px;
    border-radius: 0;
    border-end-start-radius: 12px;
    background: #c62828;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: none;
}
.pcard .pimg .warranty-badge {
    top: auto;
    bottom: 0;
    inset-inline-end: auto;
    inset-inline-start: 0;
    padding: 5px 11px;
    border-radius: 0;
    border-start-end-radius: 12px;
    background: var(--accent);
    font-size: 11.5px;
    box-shadow: none;
}

/* ---------- home: "Maximize your savings" (discount code cards) ---------- */
.sv-row .hsec-h h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
}
.sv-wrap {
    position: relative;
}
.sv-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 18px) / 4);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.sv-track::-webkit-scrollbar {
    display: none;
}
.sv-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: start;
    text-align: center;
}
.sv-pic {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 40%, #ffffff, #e9eee6);
    overflow: hidden;
    text-decoration: none;
}
.sv-pic img {
    width: 62%;
    height: 72%;
    object-fit: contain;
    margin-bottom: 30px;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}
.sv-pic.is-own img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    mix-blend-mode: normal;
}
.sv-card:hover .sv-pic img {
    transform: scale(1.04);
}
.sv-code {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border: 0;
    border-radius: 8px;
    background: #23332a;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: copy;
}
.sv-code b {
    color: #f7c948;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.sv-code:hover {
    background: #13241b;
}
.sv-title {
    margin-top: 14px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
}
.sv-sub {
    margin-top: 2px;
    color: var(--ink-2);
    font-size: 1rem;
}
.sv-nav {
    position: absolute;
    top: calc(50% - 50px);
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}
.sv-nav[hidden] {
    display: none;
}
.sv-nav.prev { inset-inline-start: -16px; }
.sv-nav.next { inset-inline-end: -16px; }
[dir="rtl"] .sv-nav i {
    display: inline-block;
    transform: scaleX(-1);
}
@media (max-width: 1100px) {
    .sv-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
}
@media (max-width: 760px) {
    .sv-track { grid-auto-columns: 78%; gap: 12px; }
    .sv-nav { display: none; }
    .sv-title { font-size: 1.15rem; }
    .sv-code { font-size: 0.88rem; }
    .sv-code b { font-size: 1.05rem; }
}
.sv-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.sv-code {
    z-index: 2;
}

/* ---------- part page v3 (noon layout): gallery · details · buy box ---------- */
.pd-main.pd3 {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) 330px;
    gap: 28px;
}
.pd3-gallery {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    position: sticky;
    top: 124px;
}
.pd3-thumbs {
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: 560px;
    overflow-y: auto;
    scrollbar-width: none;
}
.pd3-thumbs .pd-thumb {
    width: 64px;
    height: 64px;
}
.pd3-thumbs .pd-thumb[aria-current="true"] {
    border: 2px solid var(--ink);
}
.pd3-stage {
    flex: 1;
    border: 0;
}
.pd3-fav {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 4;
}
.pd3-stage .pd3-off {
    top: 0;
    inset-inline-start: 0;
    padding: 6px 12px;
    border-radius: 0;
    border-end-end-radius: 12px;
    font-size: 13px;
    box-shadow: none;
}
.pd3-brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}
.pd3-brand i {
    font-size: 0.75rem;
}
.pd3-info .pd-name {
    margin: 6px 0 8px;
    font-size: 1.6rem;
    line-height: 1.3;
}
.pd3-info .pd-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--ink);
}
.pd3-ratings {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pd3-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.pd3-now {
    font-size: 1.9rem;
    font-weight: 800;
}
.pd3-price del {
    color: var(--ink-2);
}
.pd3-save {
    color: var(--accent);
    font-weight: 800;
}
.pd3-info .pd-vat {
    display: block;
    margin-top: 2px;
}
.pd3-fits {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--surface-2);
}
.pd3-fits i {
    color: var(--accent);
    font-size: 1.2rem;
}
.pd3-h {
    margin: 22px 0 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pd3-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.pd3-deliver {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
}
.pd3-express {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f7c948;
    color: #13241b;
    font-weight: 800;
    font-style: italic;
}
.pd3-deliver em {
    margin-inline-start: auto;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    font-style: normal;
    font-weight: 700;
    font-size: 0.85rem;
}
.pd3-deliver em.is-low {
    background: #fdecea;
    color: #c62828;
}
.pd3-ship {
    margin: 0;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 0.9rem;
}
.pd3-coupons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pd3-coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.pd3-cp-ic {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
}
.pd3-cp-t {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.pd3-cp-t b {
    font-size: 0.9rem;
}
.pd3-cp-t small {
    color: var(--ink-2);
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pd3-cp-code {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1.5px dashed var(--accent);
    border-radius: 8px;
    background: transparent;
    color: var(--accent);
    font-weight: 800;
    cursor: copy;
}
.pd3-cp-code:hover {
    background: var(--accent-soft);
}
.pd3-info .pd-specs {
    margin-top: 0;
}
/* buy box */
.pd3-buybox {
    position: sticky;
    top: 124px;
}
.pd3-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 6px 20px rgba(15, 42, 24, 0.06);
}
.pd3-seller {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.pd3-seller-logo {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.pd3-seller-logo img {
    width: 90%;
}
.pd3-seller small {
    color: var(--ink-2);
    font-size: 0.8rem;
}
.pd3-seller b {
    display: block;
}
.pd3-seller b i {
    color: var(--accent);
}
.pd3-perks {
    margin: 0;
    padding: 14px 0;
    list-style: none;
    border-bottom: 1px solid var(--line);
}
.pd3-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.92rem;
}
.pd3-perks i {
    color: var(--ink-2);
    font-size: 1.1rem;
}
.pd3-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 12px;
    font-weight: 600;
}
.pd3-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pd3-cta {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}
.pd3-cta:hover {
    color: #fff;
    filter: brightness(1.08);
}
.pd3-cta.is-ghost {
    background: transparent;
    color: var(--accent);
}
.pd3-cta.is-ghost:hover {
    background: var(--accent-soft);
    color: var(--accent);
    filter: none;
}
.pd3-buybox .pd-oos {
    flex-direction: column;
    align-items: flex-start;
    margin: 14px 0 0;
}
@media (max-width: 1180px) {
    .pd-main.pd3 {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .pd3-buybox {
        position: static;
        grid-column: 2;
    }
}
@media (max-width: 860px) {
    .pd-main.pd3 {
        grid-template-columns: minmax(0, 1fr);
    }
    .pd3-gallery,
    .pd3-buybox {
        position: static;
        grid-column: auto;
    }
    .pd3-gallery {
        flex-direction: column-reverse;
    }
    .pd3-thumbs {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
    }
    .pd3-coupons {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* middle column: blocks use the full column width, and never spill under the buy box */
.pd3-info {
    min-width: 0;
}
.pd3-info > .pd3-fits,
.pd3-info > .pd3-h,
.pd3-info > .pd3-box,
.pd3-info > .pd3-coupons,
.pd3-info > .pd-specs {
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
}
.pd3-coupons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pd3-coupon {
    min-width: 0;
}
.pd3-coupons {
    grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 860px) {
    .pd3-stage {
        flex: none;
        width: 100%;
    }
}

/* part page: full width like noon (side gutters only) */
.home-in.pd-page {
    max-width: none;
    padding-inline: clamp(15px, 3vw, 48px);
}
@media (min-width: 1500px) {
    .pd-main.pd3 {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 380px;
        gap: 40px;
    }
}

/* ===================== part card v2 (noon style) ===================== */
.pcard.pcard-n {
    padding: 0;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    cursor: default;
}
/* hover: the same mint wash as before the noon-style card */
.pcard.pcard-n:hover {
    background: linear-gradient(180deg, #d9f0dc 0%, #eef8ef 60%, #f7fcf7 100%);
    border-color: var(--accent);
    box-shadow: 0 8px 22px rgba(52, 122, 34, 0.12);
}
.pcard-n .pimg {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 0;
    background: #f5f6f4;
}
[data-theme="dark"] .pcard-n .pimg {
    background: #1f2a22;
}
.pcard-n .pimg .pimg-slide {
    padding: 14%;
    box-sizing: border-box;
    mix-blend-mode: multiply;
}
[data-theme="dark"] .pcard-n .pimg .pimg-slide {
    mix-blend-mode: normal;
}
/* discount: top-left tab; warranty: bottom-left tab; heart: top-right; add: bottom-right */
.pcard-n .pimg .off-badge {
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: auto;
    border-radius: 0;
    border-end-end-radius: 12px;
    border-end-start-radius: 0;
}
.pcard-n .pc-fav {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 4;
}
.pcard-n .pc-fav .fav-t {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.pcard-n .pc-fav .fav-t.on {
    color: #e53935;
}
.pcard-n .pc-fav .fav-t.on svg {
    fill: currentColor;
}
.pcard-n .buy-ctl {
    position: absolute;
    bottom: 10px;
    inset-inline-end: 10px;
    z-index: 4;
}
.pcard-n .buy-ctl .add,
.pcard-n .buy-ctl .cs-inc,
.pcard-n .buy-ctl .pc-notify {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}
.pcard-n .buy-ctl .add:hover,
.pcard-n .buy-ctl .cs-inc:hover,
.pcard-n .buy-ctl .pc-notify:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pcard-n .buy-ctl .pc-notify {
    font-size: 1rem;
}
.pcard-n .cart-step.open {
    height: 36px;
    padding: 0 2px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.pcard-n .cart-step.open .cs-inc {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    font-size: 1.2rem;
}
.pcard-n .warranty-badge {
    z-index: 3;
}
/* text part */
.pcard-n .pc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 14px;
}
.pcard-n .pc-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}
.pcard-n .pc-name:hover {
    color: var(--accent);
}
.pcard-n .pc-fit {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pcard-n .pc-rate {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--ink-2);
}
.pcard-n .pc-rate i {
    color: #2e9e45;
}
.pcard-n .pc-rate b {
    color: var(--ink);
}
.pcard-n .pc-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}
.pcard-n .pc-price b {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
}
.pcard-n .pc-price del {
    color: var(--ink-2);
    font-size: 0.82rem;
}
.pcard-n .pc-price em {
    color: var(--accent);
    font-style: normal;
    font-weight: 700;
    font-size: 0.82rem;
}
.pcard-n .pc-pn {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: baseline;
    gap: 4px;
    margin: -4px 0 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.78rem;
    color: var(--ink-2);
}
.pcard-n .pc-pn .pn {
    color: var(--ink);
    font-weight: 600;
    font-size: 0.8rem;
}
.pcard-n .pc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}
.pc-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 0.74rem;
    font-weight: 700;
}
.pc-tag.is-fast {
    background: #fff4cf;
    color: #7a5b00;
}
.pc-tag.is-fast i {
    color: #e0a800;
}
.pc-tag.is-low {
    background: #fdecea;
    color: #c62828;
}
.pc-tag.is-out {
    background: #c62828;
    color: #fff;
}
@media (max-width: 760px) {
    .pcard-n .pc-body {
        padding: 10px;
    }
    .pcard-n .pc-name {
        font-size: 0.88rem;
    }
    .pcard-n .pc-price b {
        font-size: 1.02rem;
    }
}

/* ---------- catalog / search toolbar (noon style) ---------- */
.cf-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.cf-count h1 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
}
.cf-count h1 b {
    font-weight: 800;
}
.cf-count h1 span {
    color: var(--accent);
    font-weight: 800;
}
.cf-count small {
    color: var(--ink-2);
}
.cf-bar-end {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cf-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-inline-start: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 0.85rem;
    font-weight: 600;
}
.cf-sort select {
    height: 42px;
    border: 0;
    background-color: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
}
.cf-sort select:focus {
    outline: 0;
}
.cf-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.cf-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px 6px 12px;
    border: 1px solid var(--accent);
    border-radius: 99px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}
[dir="rtl"] .cf-chip {
    padding: 6px 12px 6px 8px;
}
.cf-chip:hover {
    background: var(--accent);
    color: #fff;
}
.cf-chip-clear {
    color: var(--ink-2);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: underline;
}

/* ---------- cart (noon style) ---------- */
.cart-h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
}
.cart-h1 small {
    color: var(--ink-2);
    font-size: 1rem;
    font-weight: 600;
}
.cart-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.cart-free {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.cart-free p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 0.95rem;
}
.cart-free p i {
    color: var(--accent);
    font-size: 1.15rem;
}
.cart-free-bar {
    display: block;
    height: 8px;
    border-radius: 99px;
    background: var(--surface-2);
    overflow: hidden;
}
.cart-free-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7cb342, var(--accent));
    transition: width 0.4s ease;
}
.cart-free.is-done {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.cart-links {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cart-links form {
    margin: 0;
}
.cart-move {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-2);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}
.cart-move:hover {
    color: var(--accent);
}
.cart-freetag {
    color: var(--accent);
    font-weight: 800;
}
.cart-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
[dir="rtl"] .cart-checkout i {
    transform: scaleX(-1);
}

/* ---------- checkout (noon style) ---------- */
.co-saved {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.co-saved .co-saved-opt {
    margin: 0;
}
.co-saved .co-saved-current {
    grid-column: 1 / -1;
}
.co-saved-add {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed var(--accent);
    border-radius: 12px;
    background: transparent;
    color: var(--accent);
    font-weight: 800;
    cursor: pointer;
}
.co-saved-add:hover {
    background: var(--accent-soft);
}
.co-eta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff8e1;
    color: #6b5100;
    font-size: 0.9rem;
}
.co-eta i {
    color: #e0a800;
    font-size: 1.1rem;
}
@media (max-width: 760px) {
    .co-saved {
        grid-template-columns: minmax(0, 1fr);
    }
}
.co-saved .co-saved-new {
    grid-column: 1 / -1;
}

/* order placed: delivery estimate and the journey */
.co-done-eta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0;
    padding: 8px 14px;
    border-radius: 10px;
    background: #fff8e1;
    color: #6b5100;
}
.co-done-eta i {
    color: #e0a800;
}
.co-done-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    width: min(520px, 100%);
    margin: 18px auto 6px;
    padding: 0;
    list-style: none;
}
.co-done-steps li {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--ink-2);
    font-size: 0.8rem;
    font-weight: 600;
}
.co-done-steps li i {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-2);
    font-size: 1rem;
}
.co-done-steps li + li::before {
    content: "";
    position: absolute;
    top: 16px;
    inset-inline-end: 50%;
    width: 100%;
    height: 3px;
    background: var(--line);
}
.co-done-steps li.done {
    color: var(--accent);
}
.co-done-steps li.done i {
    background: var(--accent);
    color: #fff;
}

/* ---------- phones: bottom tab bar ---------- */
.mtab {
    display: none;
}
@media (max-width: 760px) {
    .mtab {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 1500;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--line);
        background: var(--surface);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    }
    .mtab a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 4px 0;
        color: var(--ink-2);
        font-size: 0.68rem;
        font-weight: 600;
        text-decoration: none;
    }
    .mtab a i {
        font-size: 1.3rem;
        line-height: 1;
    }
    .mtab a.on {
        color: var(--accent);
    }
    .mtab-ic {
        position: relative;
    }
    .mtab-ic em {
        position: absolute;
        top: -6px;
        inset-inline-end: -10px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border-radius: 99px;
        background: #e53935;
        color: #fff;
        font-size: 0.66rem;
        font-style: normal;
        font-weight: 700;
        line-height: 17px;
        text-align: center;
    }
    /* room for the bar; floating buttons sit above it */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
    .fab-contact {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
    .to-top {
        bottom: calc(170px + env(safe-area-inset-bottom, 0px));
    }
    .toast-stack {
        top: 12px;
    }
}
@media (max-width: 760px) {
    /* the tab bar has account / orders / wishlist / cart; the header keeps logo, language, theme, search, deliver-to */
    .nh .top-actions #signInLink,
    .nh .top-actions .nh-profile,
    .nh .top-actions #favBtn,
    .nh .top-actions #cartBtn {
        display: none;
    }
}

/* phone fields: a fixed +966 in front, the customer types 5XXXXXXXX */
.ksa-tel {
    position: relative;
    display: block;
    width: 100%;
}
.ksa-tel > b {
    position: absolute;
    top: 50%;
    left: 1px;
    z-index: 2;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    height: calc(100% - 14px);
    padding: 0 10px 0 12px;
    border-right: 1px solid #d5ddd2;
    color: #4a5a50;
    font-weight: 700;
    font-size: 0.95rem;
    pointer-events: none;
}
.ksa-tel > input {
    padding-left: 70px !important;
    text-align: left;
}
.ksa-tel.is-off > b {
    display: none;
}
.ksa-tel.is-off > input {
    padding-left: 16px !important;
}
/* the floating label stays above the prefixed field */
.am-field .am-label {
    z-index: 3;
}

/* warranty policy: numbered claim steps and the claim button */
.policy-body ol.policy-steps {
    counter-reset: step;
    padding: 0;
    list-style: none;
}
.policy-body ol.policy-steps li {
    position: relative;
    padding-inline-start: 38px;
    margin-bottom: 10px;
}
.policy-body ol.policy-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}
.policy-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

/* ---------- warranty policy (noon layout: plain text panel) ---------- */
.home-in.wp-page {
    padding-top: 0;
    padding-bottom: 0;
}
.wp-doc {
    margin: 0;
    padding: 6px 12px 10px;
    background: #f1f5ef;
    color: #2b3a30;
    font-size: 0.86rem;
    line-height: 1.6;
}
[data-theme="dark"] .wp-doc {
    background: var(--surface-2);
    color: var(--ink);
}
.wp-doc p {
    margin: 0;
}
.wp-title {
    color: var(--ink-2);
}
.wp-h {
    margin-top: 2px !important;
    font-weight: 700;
    color: var(--ink);
}
.wp-n {
    display: inline-block;
    min-width: 22px;
}
.wp-note {
    margin-top: 6px !important;
}
.wp-help {
    margin-top: 0;
    background: var(--surface-2);
    border-top: 1px solid var(--line);
}
.wp-help-in {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}
.wp-help-in > div:first-child b {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}
.wp-help-in > div:first-child small {
    color: var(--ink-2);
}
.wp-help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}
.wp-help-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}
.wp-help-links i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
}
.wp-help-links small {
    display: block;
    color: var(--ink-2);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.wp-help-links b {
    font-size: 1rem;
}
.wp-help-links a:hover b {
    color: var(--accent);
}

/* warranty policy: panel and help strip edge to edge */
.home-in.wp-page {
    max-width: none;
    padding-inline: 0;
}
.wp-doc {
    padding: 10px clamp(15px, 3vw, 48px) 14px;
}
.wp-help-in {
    max-width: none;
    padding-inline: clamp(15px, 3vw, 48px);
}
/* warranty policy v3: noon's reading size, long full-width lines, timeline rows */
.wp-doc {
    margin: 0 clamp(10px, 2vw, 28px);
    padding: 10px clamp(12px, 1.2vw, 18px) 16px;
    background: #f1f5ef;
    font-size: 1rem;
    line-height: 1.5;
    color: #2b3a30;
}
.wp-doc p {
    margin: 0 0 1px;
}
.wp-title {
    color: var(--ink-2);
}
.wp-row {
    display: grid;
    grid-template-columns: minmax(0, 440px) auto;
    gap: 24px;
}
.wp-updated {
    margin-top: 8px !important;
    color: var(--ink-2);
    font-size: 0.9rem;
}
.wp-doc a {
    color: var(--accent);
    font-weight: 600;
}

/* ===================== footer (noon style) ===================== */
.nf {
    margin-top: 40px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.9rem;
}
.nf-wrap {
    padding-inline: clamp(15px, 3vw, 48px);
}
/* help strip */
.nf-help {
    background: var(--surface-2);
    border-top: 1px solid var(--line);
}
.nf-help .nf-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding-block: 22px;
}
.nf-help-t b {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}
.nf-help-t small {
    color: var(--ink-2);
}
.nf-help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}
.nf-help-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}
.nf-help-links i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
}
.nf-help-links small {
    display: block;
    color: var(--ink-2);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.nf-help-links b {
    font-size: 1rem;
}
.nf-help-links a:hover b {
    color: var(--accent);
}
/* link columns */
.nf-main {
    border-top: 1px solid var(--line);
}
.nf-cols {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    padding-block: 28px 20px;
}
.nf-cols nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}
.nf-cols b {
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 700;
}
.nf-cols a,
.nf-cols button,
.nf-cols span {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-2);
    font: inherit;
    text-align: start;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.nf-cols span {
    cursor: default;
}
.nf-cols a:hover,
.nf-cols button:hover {
    color: var(--accent);
}
/* apps · social · registration */
.nf-mid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 56px;
    padding-block: 20px 26px;
    border-top: 1px solid var(--line);
}
.nf-block > b {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.nf-stores {
    display: flex;
    gap: 10px;
}
.nf-social {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nf-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    font-size: 1.1rem;
    text-decoration: none;
}
.nf-social a:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.nf-tax-rows {
    display: flex;
    gap: 18px;
}
.nf-tax-rows > span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nf-tax-rows img {
    height: 44px;
    width: auto;
}
.nf-tax-rows small {
    display: block;
    color: var(--ink-2);
    font-size: 0.75rem;
}
.nf-tax-rows b {
    font-size: 0.92rem;
}
/* legal bar */
.nf-bottom {
    background: var(--surface-2);
    border-top: 1px solid var(--line);
}
.nf-bottom .nf-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    padding-block: 14px;
}
.nf-copy {
    color: var(--ink-2);
    font-size: 0.82rem;
}
.nf-pay {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nf-pay img {
    height: 26px;
    width: auto;
    padding: 2px 4px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
}
.nf-legal {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}
.nf-legal a {
    color: var(--ink-2);
    font-size: 0.82rem;
    text-decoration: none;
}
.nf-legal a:hover {
    color: var(--accent);
}
@media (max-width: 1000px) {
    .nf-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .nf-bottom .nf-wrap {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }
    .nf-legal {
        justify-content: center;
    }
}
@media (max-width: 600px) {
    .nf-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nf-help-links {
        flex-direction: column;
        gap: 14px;
    }
    .nf-stores .store-b {
        min-width: 0;
    }
}
/* an older rule centres every <footer> in a column: this one spans the page */
footer.nf {
    max-width: none;
    width: 100%;
    margin-inline: 0;
    padding: 0;
}
/* light footer: the coloured ministry logo; dark mode: the white one */
.nf-tax-rows img.nf-moc-dark { display: none; }
:root[data-theme="dark"] .nf-tax-rows img.nf-moc { display: none; }
:root[data-theme="dark"] .nf-tax-rows img.nf-moc-dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nf-tax-rows img.nf-moc { display: none; }
    :root:not([data-theme="light"]) .nf-tax-rows img.nf-moc-dark { display: block; }
}

/* footer middle row: three equal columns (apps · social · registration), each centred in its third */
.nf-mid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}
.nf-mid .nf-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.nf-mid .nf-block:first-child {
    align-items: flex-start;
    text-align: start;
}
.nf-mid .nf-block:last-child {
    align-items: flex-end;
    text-align: end;
}
.nf-tax-rows > span {
    text-align: start;
}
@media (max-width: 900px) {
    .nf-mid {
        grid-template-columns: minmax(0, 1fr);
    }
    .nf-mid .nf-block,
    .nf-mid .nf-block:first-child,
    .nf-mid .nf-block:last-child {
        align-items: flex-start;
        text-align: start;
    }
    .nf-tax-rows {
        flex-wrap: wrap;
    }
}

/* ---------- home: SEO text + popular searches (noon style) ---------- */
.seo-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.seo-block h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}
.seo-block p {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.92rem;
    line-height: 1.65;
    text-align: justify;
}
.seo-block p a {
    color: var(--accent);
    text-decoration: none;
}
.seo-block p a:hover {
    text-decoration: underline;
}
.seo-toggle {
    margin-top: 2px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}
.seo-toggle:hover {
    text-decoration: underline;
}
.pop-n h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}
.pop-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.pop-pill {
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--ink);
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.pop-pill[hidden] {
    display: none;
}
.pop-pill:hover {
    background: var(--accent-soft);
    color: var(--accent);
}
/* "View More" sits under the pills on the start side, like noon; text block "Read More" too */
.pop-n {
    display: block;
}
.pop-n .seo-toggle,
.seo-block .seo-toggle {
    display: block;
    margin-inline: 0;
    text-align: start;
}

/* part page coupons: one sliding row, ~2 cards visible, like noon */
.pd3-cp-wrap {
    position: relative;
}
.pd3-coupons,
.pd3-info > .pd3-coupons {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 10px) / 2);
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.pd3-coupons::-webkit-scrollbar {
    display: none;
}
.pd3-coupon {
    scroll-snap-align: start;
}
.pd3-cp-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-50%);
    cursor: pointer;
}
.pd3-cp-nav[hidden] {
    display: none;
}
.pd3-cp-nav.prev { inset-inline-start: -12px; }
.pd3-cp-nav.next { inset-inline-end: -12px; }
[dir="rtl"] .pd3-cp-nav i {
    display: inline-block;
    transform: scaleX(-1);
}
@media (max-width: 860px) {
    .pd3-coupons,
    .pd3-info > .pd3-coupons {
        grid-template-columns: none;
        grid-auto-columns: 85%;
    }
    .pd3-cp-nav {
        display: none;
    }
}
.pd3-cp-wrap .pd3-coupon {
    gap: 8px;
    padding: 10px;
}
.pd3-cp-wrap .pd3-cp-ic {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
}
.pd3-cp-wrap .pd3-cp-t b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.88rem;
}
.pd3-cp-wrap .pd3-cp-code {
    padding: 4px 8px;
    font-size: 0.82rem;
    gap: 4px;
}

/* ===================== mega menu (noon style) ===================== */
.mm {
    position: relative;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.mm-row {
    position: relative;
    padding-inline: clamp(15px, 3vw, 48px);
}
.mm-tabs {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.mm-tabs::-webkit-scrollbar {
    display: none;
}
.mm-tab {
    position: relative;
    display: block;
    padding: 12px 12px;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    text-decoration: none;
}
.mm-tab::after {
    content: "";
    position: absolute;
    inset-inline: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.15s ease;
}
.mm-tab:hover,
.mm-tab.on {
    color: var(--accent);
}
.mm-tab.on::after,
.mm-tab:hover::after {
    transform: scaleX(1);
}
.mm-deals {
    color: #c62828;
}
.mm-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    transform: translateY(-50%);
    cursor: pointer;
}
.mm-arrow[hidden] {
    display: none;
}
.mm-arrow.prev { inset-inline-start: 8px; }
.mm-arrow.next { inset-inline-end: 8px; }
[dir="rtl"] .mm-arrow i {
    display: inline-block;
    transform: scaleX(-1);
}
/* the sheet */
.mm-sheet {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    z-index: 1100;
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 18px 30px rgba(10, 30, 15, 0.14);
}
.mm-sheet[hidden] {
    display: none;
}
.mm-sheet-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    padding: 22px clamp(15px, 3vw, 48px) 26px;
}
.mm-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}
.mm-cols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.mm-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.mm-col a,
.mm-col span {
    color: var(--ink-2);
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* many sub-categories flow into more columns (6 rows each) instead of one long list */
.mm-cols:has(.mm-subs > a:nth-child(7)) { display: flex; flex-wrap: wrap; gap: 20px 56px; }
.mm-subs { display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, auto); gap: 10px 40px; justify-content: start; }
.mm-subs a, .mm-subs span { max-width: 190px; }
.mm-col a:hover {
    color: var(--accent);
}
.mm-col .mm-col-h {
    margin-bottom: 4px;
    color: var(--ink);
    font-weight: 700;
}
.mm-col .mm-all {
    color: var(--accent);
    font-weight: 700;
}
.mm-picks-h {
    display: block;
    margin-bottom: 10px;
    color: var(--ink-2);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.mm-picks-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.mm-pick {
    flex: 0 0 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}
.mm-pick span {
    width: 100px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.mm-pick img {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
}
.mm-pick small {
    width: 100%;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mm-pick:hover span {
    border-color: var(--accent);
}
.mm-feature {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface-2);
    min-height: 260px;
}
.mm-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mm-feature b {
    position: absolute;
    inset-inline: 12px;
    bottom: 12px;
    padding: 10px 14px;
    background: #13241b;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: uppercase;
}
@media (max-width: 1000px) {
    .mm-sheet-in {
        grid-template-columns: minmax(0, 1fr);
    }
    .mm-feature {
        display: none;
    }
}
/* phones: the circles row already does this job */
@media (max-width: 760px) {
    .mm {
        display: none;
    }
}
/* desktop: the text menu replaces the circles row; phones keep the circles */
@media (min-width: 761px) {
    nav.cats {
        display: none;
    }
}

/* main slider: fills the screen under the header (desktop), leaving room for "Shop Now" below it; phones keep a wide banner */
@media (min-width: 761px) {
    .ads:not(.ads-compact) .ads-track {
        aspect-ratio: auto !important;
        height: calc(100vh - var(--hero-top, 241px) - 84px);
        height: calc(100svh - var(--hero-top, 241px) - 84px);
        max-height: none !important;
    }
}

/* ---------- announcement marquee above the header ---------- */
.topbar {
    overflow: hidden;
    background: #13241b;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    direction: ltr;
}
.topbar-track {
    display: flex;
    width: max-content;
    animation: topbar-move 40s linear infinite;
    will-change: transform;
}
.topbar:hover .topbar-track {
    animation-play-state: paused;
}
.topbar-seq {
    display: flex;
    flex-shrink: 0;
}
.topbar-seq span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 48px;
    white-space: nowrap;
}
[dir="rtl"] .topbar-seq span {
    direction: rtl;
}
.topbar-seq i {
    color: #f7c948;
}
.topbar-seq svg {
    fill: currentColor;
}
@keyframes topbar-move {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}
[dir="rtl"] .topbar-track {
    animation-direction: reverse;
}
@media (prefers-reduced-motion: reduce) {
    .topbar-track { animation: none; }
}

/* the announcement strip stays at the top while scrolling; the header sticks right under it */
.topbar {
    position: sticky;
    top: 0;
    z-index: 31;
    height: 34px;
}
.topbar-seq span {
    height: 34px;
    padding-block: 0;
}
header.top {
    top: 34px;
}
/* sheets/dropdowns that were placed under the header move down by the strip */
.mm-sheet {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

/* ---------- part card: quick view eye (bottom centre of the photo) ---------- */
.pcard-n .pc-quick {
    position: absolute;
    bottom: 10px;
    left: 50%;
    z-index: 4;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}
.pcard-n:hover .pc-quick,
.pcard-n .pc-quick:focus-visible {
    opacity: 1;
    transform: translateX(-50%);
}
.pcard-n .pc-quick:hover {
    border-color: var(--accent);
    color: var(--accent);
}
@media (hover: none) {
    .pcard-n .pc-quick {
        opacity: 1;
        transform: translateX(-50%);
    }
}

/* ---------- quick view modal ---------- */
.qv-modal {
    position: fixed;
    inset: 0;
    z-index: 2550;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: rgba(10, 24, 15, 0.55);
}
.qv-modal[hidden] {
    display: none;
}
.qv-panel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--surface);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.qv-x {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}
.qv-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    padding: 26px;
}
.qv-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qv-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background: #fff;
    overflow: hidden;
}
.qv-stage img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
}
.qv-stage .off-badge {
    top: 0;
    inset-inline-start: 0;
    border-radius: 0;
    border-end-end-radius: 12px;
}
.qv-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}
.qv-thumbs button {
    flex: 0 0 60px;
    height: 60px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.qv-thumbs button.on {
    border: 2px solid var(--accent);
}
.qv-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.qv-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    border-inline-start: 3px solid var(--accent);
    padding-inline-start: 22px;
}
.qv-cat {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}
.qv-info h2 {
    margin: 0;
    padding-inline-end: 36px;
    font-size: 1.35rem;
    line-height: 1.3;
}
.qv-rate {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--ink-2);
    font-size: 0.85rem;
}
.qv-rate i {
    color: #2e9e45;
}
.qv-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.qv-price b {
    font-size: 1.6rem;
    font-weight: 800;
}
.qv-price del {
    color: var(--ink-2);
}
.qv-price em {
    color: var(--accent);
    font-style: normal;
    font-weight: 800;
}
.qv-vat {
    margin-top: -6px;
    color: var(--ink-2);
}
.qv-stock {
    margin: 2px 0 0;
    font-weight: 700;
}
.qv-stock::after {
    content: " \2713";
}
.qv-stock.is-ok { color: var(--accent); }
.qv-stock.is-low { color: #c62828; }
.qv-stock.is-out { color: #c62828; }
.qv-stock.is-low::after,
.qv-stock.is-out::after {
    content: "";
}
.qv-desc {
    margin: 0;
    color: var(--ink-2);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.qv-specs {
    margin: 4px 0 6px;
    border: 1px solid var(--line);
}
.qv-specs > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
}
.qv-specs > div[hidden] {
    display: none;
}
.qv-specs > div + div {
    border-top: 1px solid var(--line);
}
.qv-specs dt {
    color: var(--ink-2);
    font-weight: 600;
}
.qv-specs dd {
    margin: 0;
    font-weight: 600;
}
.qv-copy {
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--accent);
    cursor: copy;
}
.qv-buy {
    display: flex;
    gap: 10px;
}
.qv-buy[hidden] {
    display: none;
}
.qv-buy .qv-qty {
    flex-shrink: 0;
}
.qv-buy .pd3-cta {
    flex: 1;
}
.qv-info .pd3-cta[hidden] {
    display: none;
}
.qv-more {
    align-self: center;
    margin-top: 4px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}
.qv-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--surface);
}
.qv-loading[hidden] {
    display: none;
}
.qv-loading span {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(52, 122, 34, 0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: dl-spin 0.8s linear infinite;
}
@media (max-width: 760px) {
    .qv-modal {
        padding: 0;
        align-items: flex-end;
    }
    .qv-panel {
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
    }
    .qv-body {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
        gap: 18px;
    }
    .qv-info {
        border-inline-start: 0;
        padding-inline-start: 0;
    }
    .qv-stage {
        aspect-ratio: 4 / 3;
    }
}
.qv-stage img {
    width: 82%;
    height: 82%;
}
/* quick view details: plain rows with a thin line between, no box */
.qv-specs {
    border: 0;
    margin: 6px 0 10px;
}
.qv-specs > div {
    padding: 9px 0;
}
.qv-specs > div + div {
    border-top: 1px solid var(--line);
}

/* circles row is back on every screen; its sheet floats right under the circles */
@media (min-width: 761px) {
    nav.cats {
        display: block;
    }
}
.mm-sheet.is-floating {
    position: fixed;
}
/* text category row removed: the menu holds only the sheets now */
.mm {
    border-bottom: 0;
    background: none;
}

/* ===================== "find your part in 3 steps" (design) ===================== */
.how3 {
    padding: 36px clamp(15px, 3vw, 48px) 40px;
}
.how3-head h2 {
    display: inline-block;
    margin: 0;
    padding-bottom: 8px;
    font-size: 2rem;
    font-weight: 800;
    color: #13241b;
    background: linear-gradient(var(--accent), var(--accent)) no-repeat;
    background-size: 64px 4px;
    background-position: left bottom;
}
[dir="rtl"] .how3-head h2 {
    background-position: right bottom;
}
.how3-head h2 em {
    color: var(--accent);
    font-style: normal;
}
.how3-head p {
    margin: 10px 0 24px;
    color: var(--ink-2);
    font-size: 1.05rem;
}
.how3-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.how3-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border: 1px solid #edf1eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 42, 24, 0.07);
}
.how3-text {
    padding-inline-end: 16px;
    border-inline-end: 1px solid #e6ece4;
}
.how3-n {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3d8f2a, #256619);
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(52, 122, 34, 0.3);
}
.how3-text b {
    display: block;
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #13241b;
}
.how3-text p {
    margin: 0;
    color: var(--ink-2);
    line-height: 1.6;
}
.how3-pic img {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 1100px) {
    .how3-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .how3-card {
        grid-template-columns: minmax(0, 1fr) 36%;
    }
}
@media (max-width: 560px) {
    .how3-head h2 {
        font-size: 1.5rem;
    }
    .how3-card {
        grid-template-columns: minmax(0, 1fr) 38%;
        padding: 16px;
    }
    .how3-text b {
        font-size: 1.1rem;
    }
}

/* ===================== footer (dark green design) ===================== */
footer.gf {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 380px at 85% 10%, rgba(255, 255, 255, 0.05), transparent 60%),
        radial-gradient(900px 400px at 10% 100%, rgba(255, 255, 255, 0.04), transparent 60%),
        #0f3b1f;
    color: #e3ece0;
    font-size: 0.95rem;
}
.gf-in {
    padding-inline: clamp(15px, 3vw, 48px);
}
.gf-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.1fr 1fr 1fr 1fr;
    padding-block: 34px 26px;
}
.gf-grid > * {
    padding-inline: 26px;
    min-width: 0;
}
.gf-grid > * + * {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
}
.gf-grid > :first-child {
    padding-inline-start: 0;
}
.gf-logo {
    height: 52px;
    width: auto;
    margin-bottom: 14px;
}
.gf-brand p {
    margin: 0 0 18px;
    color: #e3ece0;
    line-height: 1.7;
}
.gf-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.gf-stores .store-b {
    border-color: rgba(255, 255, 255, 0.55);
}
.gf-social {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.gf-social a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.15s ease;
}
.gf-social a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.gf-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gf-col > b {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}
.gf-col > b i {
    font-size: 1.35rem;
}
.gf-col a,
.gf-col button,
.gf-col > span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: #e3ece0;
    font: inherit;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}
.gf-col a i,
.gf-col > span i {
    width: 20px;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
}
.gf-col a:hover,
.gf-col button:hover {
    color: #fff;
    text-decoration: underline;
}
.gf-col .gf-reg {
    display: block;
    margin-top: 8px;
    color: #b5c7b0;
    font-size: 0.8rem;
    cursor: default;
}
.gf-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.gf-bottom .gf-in {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    padding-block: 14px;
}
.gf-copy {
    color: #e3ece0;
    font-size: 0.88rem;
}
.gf-pay {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.gf-pay img {
    height: 38px;
    width: auto;
    padding: 4px 8px;
    border-radius: 6px;
    background: #fff;
}
@media (max-width: 1100px) {
    .gf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 26px;
    }
    .gf-grid > *,
    .gf-grid > :first-child {
        padding-inline: 0;
        border: 0;
    }
    .gf-brand {
        grid-column: 1 / -1;
    }
    .gf-bottom .gf-in {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }
}
/* as in the design: photo first, then a thin line, then number + text */
.how3-card {
    grid-template-columns: 42% minmax(0, 1fr);
}
.how3-pic {
    order: -1;
}
.how3-text {
    padding-inline-end: 0;
    padding-inline-start: 22px;
    border-inline-end: 0;
    border-inline-start: 1px solid #e6ece4;
}
.how3-n {
    margin-inline-start: auto;
}
@media (max-width: 1100px) {
    .how3-card { grid-template-columns: 36% minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .how3-card { grid-template-columns: 38% minmax(0, 1fr); }
}

/* Arabic footer, as in the design: logo + app stores on the LEFT, "About US POINT" on the right.
   The columns are laid out left-to-right; each column keeps right-to-left text inside. */
[dir="rtl"] .gf-grid {
    direction: ltr;
}
[dir="rtl"] .gf-grid > * {
    direction: rtl;
    border-inline-start: 0;
    border-left: 0;
    border-right: 0;
    padding-left: 26px;
    padding-right: 26px;
}
[dir="rtl"] .gf-grid > * + * {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}
[dir="rtl"] .gf-grid > :first-child {
    padding-left: 0;
}
[dir="rtl"] .gf-grid > :last-child {
    padding-right: 0;
}
@media (max-width: 1100px) {
    [dir="rtl"] .gf-grid {
        direction: rtl;
    }
    [dir="rtl"] .gf-grid > *,
    [dir="rtl"] .gf-grid > * + * {
        border: 0;
        padding: 0;
    }
}
/* bottom bar: CR and VAT numbers on the opposite side of the copyright */
.gf-bottom .gf-reg {
    justify-self: end;
    color: #e3ece0;
    font-size: 0.85rem;
    white-space: nowrap;
}
.gf-bottom .gf-reg b {
    color: #fff;
    font-weight: 700;
}
.gf-bottom .gf-reg i {
    margin-inline: 6px;
    font-style: normal;
    opacity: 0.6;
}
@media (max-width: 1100px) {
    .gf-bottom .gf-reg {
        justify-self: center;
        white-space: normal;
    }
}

/* tabby / tamara logos on the part card, own line under the price */
.pc-bnpl {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pc-bnpl img {
    height: 18px;
    width: auto;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: #fff;
}

/* mid-page banners: full width, 1920 × 320 (6:1, the height they had before); more than one image slides */
.hsec.bslide {
    position: relative;
}
.bs-view {
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface-2);
}
.bs-track {
    display: flex;
    transition: transform 0.55s ease;
}
.bs-item {
    flex: 0 0 100%;
    display: block;
    aspect-ratio: 6 / 1;
}
.bs-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.bslide:hover .bs-nav {
    opacity: 1;
}
.bs-nav.prev {
    inset-inline-start: 12px;
}
.bs-nav.next {
    inset-inline-end: 12px;
}
[dir="rtl"] .bs-nav {
    transform: translateY(-50%) scaleX(-1);
}
.bs-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.bs-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}
.bs-dots button.on {
    width: 22px;
    background: #fff;
}
@media (max-width: 760px) {
    .bs-view {
        border-radius: 12px;
    }
    .bs-nav {
        display: none;
    }
}

/* footer, compact: 6 columns (the last one holds the CR and VAT numbers with their logos) */
footer.gf {
    font-size: 0.86rem;
}
.gf-grid {
    grid-template-columns: 1.35fr 1.15fr 1fr 1fr 1fr 1.15fr;
    padding-block: 22px 18px;
}
.gf-grid > *,
[dir="rtl"] .gf-grid > * {
    padding-left: 18px;
    padding-right: 18px;
}
.gf-grid > :first-child,
[dir="rtl"] .gf-grid > :first-child {
    padding-left: 0;
    padding-right: 18px;
}
[dir="rtl"] .gf-grid > :last-child {
    padding-right: 0;
}
.gf-grid > :last-child {
    padding-inline-end: 0;
}
.gf-logo {
    height: 40px;
    margin-bottom: 8px;
}
.gf-brand p {
    margin-bottom: 12px;
    line-height: 1.55;
}
.gf-stores {
    gap: 8px;
    margin-bottom: 12px;
}
.gf-social {
    gap: 8px;
}
.gf-social a {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
}
.gf-col {
    gap: 8px;
}
.gf-col > b {
    gap: 8px;
    margin-bottom: 2px;
    font-size: 0.98rem;
}
.gf-col > b i {
    font-size: 1.1rem;
}
.gf-col a,
.gf-col button,
.gf-col > span {
    gap: 8px;
}
.gf-col a i,
.gf-col > span i {
    width: 16px;
    font-size: 0.95rem;
}
.gf-bottom .gf-in {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 10px;
}
.gf-pay img {
    height: 30px;
    padding: 3px 6px;
}
.gf-legal .gf-doc {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
}
.gf-legal .gf-doc img {
    width: 48px;
    height: 50px;
    flex: none;
    object-fit: contain;
}
.gf-legal .gf-doc > span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.gf-legal .gf-doc small {
    color: #b5c7b0;
    font-size: 0.75rem;
}
.gf-legal .gf-doc b {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}
@media (max-width: 1100px) {
    .gf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 18px;
    }
    .gf-grid > *,
    .gf-grid > :first-child,
    [dir="rtl"] .gf-grid > *,
    [dir="rtl"] .gf-grid > :first-child {
        padding: 0;
        border: 0;
    }
    .gf-bottom .gf-in {
        justify-content: center;
    }
}
/* smaller app store buttons in the footer, side by side */
.gf-stores {
    flex-wrap: nowrap;
}
.gf-stores .store-b {
    height: 38px;
    min-width: 0;
    padding: 0 10px;
    gap: 6px;
    border-radius: 8px;
}
.gf-stores .store-b svg {
    width: 16px;
    height: 16px;
}
.gf-stores .store-b small {
    font-size: 0.52rem;
}
.gf-stores .store-b b {
    font-size: 0.85rem;
}

/* bottom bar: payment logos in the middle, transparent on the green (no white boxes) */
.gf-bottom .gf-in {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}
.gf-bottom .gf-pay {
    grid-column: 2;
    gap: 18px;
    align-items: center;
}
.gf-pay img {
    height: 24px;
    padding: 0;
    border-radius: 0;
    background: none;
}
@media (max-width: 1100px) {
    .gf-bottom .gf-in {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }
    .gf-bottom .gf-pay {
        grid-column: 1;
    }
}

/* floating contact: one help button that opens WhatsApp and call above it */
.fab-contact {
    flex-direction: column;
    align-items: center;
}
.fab-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.fab-items .fab-btn {
    opacity: 0;
    transform: translateY(24px) scale(0.6);
    transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.2s ease;
}
.fab-items .fab-call {
    transition-delay: 0s;
}
.fab-items .fab-wa {
    transition-delay: 0.04s;
}
.fab-contact.open .fab-items {
    pointer-events: auto;
}
.fab-contact.open .fab-items .fab-btn {
    opacity: 1;
    transform: none;
}
.fab-contact.open .fab-items .fab-wa {
    transition-delay: 0.05s;
}
.fab-contact.open .fab-items .fab-btn:hover {
    transform: translateY(-3px) scale(1.05);
}
.fab-items .fab-wa::after {
    content: none;
}
.fab-main {
    position: relative;
    border: 0;
    padding: 0;
    background: var(--accent);
    cursor: pointer;
}
.fab-main::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: fab-pulse 2s ease-out infinite;
}
.fab-contact.open .fab-main::after {
    animation: none;
    opacity: 0;
}
.fab-main i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: opacity 0.2s ease, transform 0.25s ease;
}
.fab-main .fab-ic-close {
    font-size: 20px;
    opacity: 0;
    transform: rotate(-90deg);
}
.fab-contact.open .fab-main .fab-ic-open {
    opacity: 0;
    transform: rotate(90deg);
}
.fab-contact.open .fab-main .fab-ic-close {
    opacity: 1;
    transform: none;
}
.fab-contact.open .fab-main {
    background: #1d2b22;
}
@media (prefers-reduced-motion: reduce) {
    .fab-main::after { animation: none; }
}

/* cookie notice at the bottom of the page */
.ck-bar {
    position: fixed;
    inset-inline: 16px;
    bottom: 16px;
    z-index: 1100;
    max-width: 980px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 12px 36px rgba(15, 42, 24, 0.18);
    animation: ck-in 0.35s ease both;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ck-bar.ck-out {
    opacity: 0;
    transform: translateY(20px);
}
@keyframes ck-in {
    from { opacity: 0; transform: translateY(20px); }
}
.ck-ic {
    flex: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft, #e8f3e4);
    color: var(--accent);
    font-size: 1.3rem;
}
.ck-bar p {
    flex: 1;
    margin: 0;
    color: var(--ink-2);
    font-size: 0.86rem;
    line-height: 1.55;
}
.ck-bar p b {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
}
.ck-bar p a {
    color: var(--accent);
    font-weight: 600;
}
.ck-acts {
    flex: none;
    display: flex;
    gap: 8px;
}
.ck-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.ck-min {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
}
.ck-min:hover {
    border-color: var(--ink-2);
}
.ck-all {
    border: 0;
    background: var(--accent);
    color: #fff;
}
.ck-all:hover {
    filter: brightness(1.08);
}
@media (max-width: 760px) {
    .ck-bar {
        inset-inline: 10px;
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
    }
    .ck-ic {
        display: none;
    }
    .ck-acts {
        width: 100%;
    }
    .ck-btn {
        flex: 1;
    }
}

/* login / sign-up code: the label sits above the six boxes, centred */
.am-field:has(.otp-wrap) .am-label {
    position: static;
    display: block;
    padding: 0;
    margin-bottom: 8px;
    background: none;
    text-align: center;
}

/* ===================== profile menu (header) ===================== */
.nh-profile .acc-menu.pm {
    width: 300px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 18px 44px rgba(15, 42, 24, 0.16), 0 2px 6px rgba(15, 42, 24, 0.06);
    animation: pm-in 0.16s ease-out;
}
@keyframes pm-in {
    from { opacity: 0; transform: translateY(-6px); }
}
.acc-menu.pm a,
.acc-menu.pm button {
    width: 100%;
    margin: 0;
    border: 0;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
/* top: avatar, name, email or phone, and "your profile" */
.acc-menu.pm .pm-head {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 10px;
    padding: 14px !important;
    border-radius: 14px;
    background: linear-gradient(180deg, #e6f4e3 0%, #f4faf2 100%);
    color: var(--ink) !important;
}
.acc-menu.pm .pm-head .am-av {
    width: 46px;
    height: 46px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 42, 24, 0.12);
    font-size: 0.95rem;
}
.pm-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pm-who b {
    overflow: hidden;
    color: var(--ink);
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pm-who small {
    overflow: hidden;
    color: var(--ink-2);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
[dir="rtl"] .pm-who small {
    text-align: end;
}
.pm-view {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
    background: #fff;
    color: var(--accent);
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
}
.pm-view i,
.pm-go {
    font-size: 0.75rem;
}
[dir="rtl"] .pm-view i,
[dir="rtl"] .pm-go {
    transform: scaleX(-1);
}
/* rows: one icon tile size, text lined up beside it (mirrors in Arabic) */
.acc-menu.pm .pm-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 8px 10px !important;
    border-radius: 12px;
    background: none;
    color: var(--ink) !important;
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: start;
    transition: background 0.15s ease;
}
.acc-menu.pm .pm-item:hover,
.acc-menu.pm .pm-item:focus-visible {
    background: var(--surface-2, #f3f6f2);
    outline: 0;
}
.pm-ic {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--surface-2, #f3f6f2);
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1;
}
.acc-menu.pm .pm-item:hover .pm-ic {
    background: #fff;
    color: var(--accent);
}
.pm-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
}
/* admin dashboard: light green, set apart from the shopping links */
.acc-menu.pm .pm-admin {
    margin-top: 8px;
    border: 1px solid #cfe8c9 !important;
    background: #eaf6e6;
    color: #1f5f17 !important;
}
.acc-menu.pm .pm-admin .pm-ic {
    background: var(--accent);
    color: #fff;
}
.acc-menu.pm .pm-admin:hover {
    background: #dcf0d6;
}
.acc-menu.pm .pm-admin .pm-go {
    margin-inline-start: auto;
}
/* log out: light red with a clear icon */
.pm-foot {
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.acc-menu.pm .pm-out {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px !important;
    border-radius: 12px;
    background: #fdecea !important;
    color: #c62828 !important;
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    transition: background 0.15s ease;
}
.acc-menu.pm .pm-out i {
    font-size: 18px;
}
[dir="rtl"] .acc-menu.pm .pm-out i {
    transform: scaleX(-1);
}
.acc-menu.pm .pm-out:hover {
    background: #fbd9d5 !important;
}
.nh-profile .acc-menu.pm .am-head,
.nh-profile .acc-menu.pm .am-list,
.nh-profile .acc-menu.pm .am-foot {
    padding: 0;
}
@media (max-width: 640px) {
    .nh-profile .acc-menu.pm {
        inset-inline: 10px;
        width: auto;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
}

/* add your car: header with a picture, and the form's icons, hint, counter and example chips */
.ac-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}
.ac-hero-text h1 {
    margin: 0 0 6px;
    color: var(--ink);
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
}
.ac-hero-text p {
    margin: 0;
    color: var(--ink-2);
}
.ac-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: #e6f2e3;
    color: var(--ink);
    font-weight: 600;
}
.ac-note i {
    color: var(--accent);
    font-size: 1.4rem;
}
.ac-hero-img {
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(0deg, transparent 0, #000 14%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(0deg, transparent 0, #000 14%);
    mask-composite: intersect;
}
.ac-form-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.ac-form-head h3 {
    margin: 0 0 4px;
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-weight: 800;
}
.ac-form-head p {
    margin: 0;
    color: var(--ink-2);
}
.ac-form-ic {
    flex: none;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e3f2e1;
    color: var(--accent);
    font-size: 1.7rem;
}
.ac-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}
.ac-label i {
    color: var(--ink);
    font-size: 1.05rem;
}
.ac-hint,
.ac-count {
    display: block;
    margin-top: 6px;
    color: var(--ink-2);
    font-size: 0.8rem;
}
.ac-count {
    text-align: end;
}
.ac-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}
.ac-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-inline: 26px;
}
.ac-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #d4e9cf;
    border-radius: 14px;
    background: #f1f8ef;
}
.ac-examples b {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-end: 4px;
    color: var(--accent);
    font-size: 0.88rem;
}
.ac-chip {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.ac-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}
@media (max-width: 1100px) {
    .ac-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    }
}
@media (max-width: 640px) {
    .ac-hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .ac-hero-img {
        max-width: 420px;
        justify-self: center;
    }
    .ac-save {
        width: 100%;
        justify-content: center;
    }
}

/* part card: the car maker's small logo before the models and years */
.pcard-n .pc-fit {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.pcard-n .pc-fit span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pc-make {
    flex: none;
    width: 22px;
    height: 22px;
    object-fit: contain;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

/* account sidebar: links in bold */
.acc-links a,
.acc-links button {
    font-weight: 700;
}
.acc-links a.on {
    font-weight: 800;
}

/* part card: part number in a light box (gear icon · label | number) */
.pcard-n .pc-pn.pc-pn-box {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin: 2px 0 0;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f6f7f5;
    min-width: 0;
}
.pc-pn-box > i {
    flex: none;
    color: var(--ink);
    font-size: 1rem;
}
.pc-pn-box small {
    flex: none;
    padding-inline-end: 6px;
    border-inline-end: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 0.74rem;
}
.pcard-n .pc-pn-box .pn {
    min-width: 0;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
/* bigger car maker logo */
.pc-make {
    width: 32px;
    height: 32px;
    padding: 3px;
    border-radius: 8px;
}

/* add your car: labels stay on one line so the four fields line up */
.ac-label {
    white-space: nowrap;
}
.ac-label small {
    color: var(--ink-2);
    font-weight: 600;
}

/* paymob: pay again page */
.co-pay-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 240px;
    margin-top: 6px;
    padding-block: 12px;
    font-size: 1rem;
}
.co-pay-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 0;
    color: var(--ink-2);
    font-size: 0.85rem;
}

/* floating contact, as in the reference: a big brand circle with chat bubbles;
   open, it turns into a cross and shows phone + WhatsApp in dark slate circles above it */
.fab-contact .fab-main {
    width: 64px;
    height: 64px;
    background: var(--accent);
    box-shadow: 0 8px 22px rgba(15, 42, 24, 0.28);
}
.fab-contact .fab-main::after {
    content: none;
}
.fab-main svg,
.fab-main i {
    position: absolute;
    inset: 0;
    margin: auto;
    transition: opacity 0.2s ease, transform 0.25s ease;
}
.fab-main .fab-ic-close {
    font-size: 24px;
}
.fab-contact.open .fab-main {
    background: var(--accent);
}
.fab-contact.open .fab-main .fab-ic-open {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}
.fab-items {
    gap: 14px;
}
.fab-items .fab-btn,
.fab-items .fab-wa,
.fab-items .fab-call {
    width: 54px;
    height: 54px;
    background: #44535f;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.fab-items .fab-btn:hover {
    background: #34414b;
}
@media (max-width: 760px) {
    .fab-contact .fab-main {
        width: 56px;
        height: 56px;
    }
    .fab-items .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 21px;
    }
}

/* the chat bubbles picture, shown white on the green button */
.fab-main img.fab-ic-open {
    position: absolute;
    inset: 0;
    width: 30px;
    height: 30px;
    margin: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease, transform 0.25s ease;
}

/* ===================== "rate your parts" modal ===================== */
.rvm {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(10, 20, 14, 0.55);
}
.rvm[hidden] {
    display: none;
}
.rvm-box {
    display: flex;
    flex-direction: column;
    width: min(620px, 100%);
    max-height: calc(100vh - 32px);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: pm-in 0.18s ease-out;
}
.rvm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.rvm-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}
.rvm-head h2 i {
    color: #f5a623;
}
.rvm-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--ink);
    cursor: pointer;
}
.rvm-body {
    overflow-y: auto;
    padding: 16px 20px 20px;
}
.rvm-sub {
    margin: 0 0 14px;
    color: var(--ink-2);
    font-size: 0.88rem;
}
.rvm-loading {
    margin: 30px 0;
    color: var(--ink-2);
    text-align: center;
}
.rvm-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fdecea;
    color: #c62828;
    font-size: 0.88rem;
    font-weight: 600;
}
.rvm-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.rvm-item .rv-stars {
    margin: 0;
}
.rvm-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rvm-ph,
.rvm-add {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
}
.rvm-ph {
    border: 1px solid var(--line);
}
.rvm-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rvm-ph-x {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.65rem;
    cursor: pointer;
}
.rvm-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1.5px dashed #b9c4bb;
    background: var(--surface-2);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}
.rvm-add[hidden] {
    display: none;
}
.rvm-add i {
    font-size: 1.2rem;
}
.rvm-hint {
    color: var(--ink-2);
    font-size: 0.75rem;
}
.rvm-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-block: 12px;
}
@media (max-width: 560px) {
    .rvm {
        place-items: end center;
        padding: 0;
    }
    .rvm-box {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }
}
/* "rate your experience" is a button now (it opens the modal) */
button.ord-rate {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

/* part page: photos added to a review */
.pd-rv-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.pd-rv-photos img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 10px;
}
/* review modal: stars at the start of the line (they are laid out 5 → 1, reversed) */
.rvm-item .rv-stars {
    justify-content: flex-end;
}

/* ===================== My Orders, lighter: no outer boxes, one soft card per order, no inner lines ===================== */
.acc-card.ord-group {
    margin-bottom: 30px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.ord-group h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--ink);
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
}
.ord-group h2 small {
    min-width: 24px;
    padding: 1px 8px;
    border-radius: 99px;
    background: var(--surface-2, #eef2ec);
    color: var(--ink-2);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}
.ord-card {
    padding: 6px 0 0;
    border: 0;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(15, 42, 24, 0.05), 0 8px 24px rgba(15, 42, 24, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ord-card:hover {
    box-shadow: 0 2px 4px rgba(15, 42, 24, 0.06), 0 14px 32px rgba(15, 42, 24, 0.1);
}
.ord-card + .ord-card {
    margin-top: 16px;
}
.ord-top {
    padding: 14px 20px 6px;
    border-bottom: 0;
}
.ord-ic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.ord-state b {
    font-size: 1rem;
}
.ord-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 8px 20px 12px;
}
.ord-item {
    padding: 0;
}
.ord-item + .ord-item {
    border-top: 0;
}
.ord-img {
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 14px;
    background: #f3f6f2;
}
.ord-more-items {
    align-self: center;
    margin: 0;
    padding: 6px 12px;
    border-radius: 99px;
    background: #f3f6f2;
    font-weight: 600;
}
.ord-foot {
    padding: 12px 20px 14px;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, transparent, #f7faf6);
}
.ord-foot b {
    font-weight: 800;
}
@media (max-width: 640px) {
    .ord-top,
    .ord-items,
    .ord-foot {
        padding-inline: 14px;
    }
    .ord-items {
        flex-direction: column;
    }
}
/* My Orders: page title and the group headings in the brand green */
.acc-page .acc-head h1,
.ord-group h2 {
    color: var(--accent);
}
/* My Orders cards: a light, clearly visible shadow */
.ord-card {
    border: 1px solid rgba(15, 42, 24, 0.06);
    box-shadow: 0 2px 6px rgba(15, 42, 24, 0.08), 0 10px 26px rgba(15, 42, 24, 0.08);
}
.ord-card:hover {
    box-shadow: 0 4px 10px rgba(15, 42, 24, 0.1), 0 16px 36px rgba(15, 42, 24, 0.12);
}

/* home: the 10 popular searches in equal tiles (5 x 2 on desktop) */
.pop-ten .pop-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pop-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.pop-tile:hover {
    border-color: var(--accent);
    background: #f1f8ef;
    color: var(--accent);
    transform: translateY(-2px);
}
.pop-rank {
    flex: none;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e3f2e1;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
}
.pop-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: capitalize;
    font-size: 0.9rem;
}
.pop-tile > i {
    flex: none;
    color: var(--ink-2);
    font-size: 0.85rem;
}
@media (max-width: 1000px) {
    .pop-ten .pop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .pop-ten .pop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pop-tile {
        height: 46px;
        padding: 0 10px;
    }
}

/* popular searches: the same grey pills, now 10 of equal size in a grid */
.pop-ten .pop-pills.pop-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}
.pop-ten .pop-pill {
    overflow: hidden;
    padding: 8px 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: capitalize;
}
@media (max-width: 1000px) {
    .pop-ten .pop-pills.pop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .pop-ten .pop-pills.pop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* popular searches: narrower pills, all the same width */
.pop-ten .pop-pills.pop-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pop-ten .pop-pill {
    width: 150px;
    padding: 6px 10px;
}
@media (max-width: 560px) {
    .pop-ten .pop-pill {
        width: calc(50% - 4px);
    }
}

/* the announcement strip and the header scroll away with the page (no longer pinned to the top) */
.topbar,
header.top,
.top {
    position: relative !important;
    top: auto !important;
}
/* things that stuck under the pinned header now stick to the top of the window */
.catalog-side,
.pd-gallery {
    top: 16px;
}

/* legal pages written in the admin panel: big heading, sub heading, bold */
.legal-doc h2 {
    margin: 14px 0 4px;
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 800;
}
.legal-doc h3 {
    margin: 10px 0 2px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
}
.legal-doc p {
    margin: 0 0 4px;
}
.legal-doc strong {
    color: var(--ink);
}

/* profile menu: Log Out as a solid red (danger) button */
.acc-menu.pm .pm-out {
    background: #c62828 !important;
    color: #fff !important;
}
.acc-menu.pm .pm-out:hover {
    background: #a51f1f !important;
}

/* login modal photos: no white circle, no shadow; the photo shows as it is (transparent PNGs stay transparent) */
.am-art .am-bubble {
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
}
.am-art .am-bubble img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===================== part card: compact design (#5) ===================== */
.pcard.pcard-c {
    padding: 10px;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.pcard-c .pimg {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #f2f4f2;
    overflow: hidden;
}
.pcard-c .pimg .pimg-slide {
    padding: 10% 14% 14%;
}
.pcard-c .pimg .off-badge {
    top: 10px;
    inset-inline-start: 10px;
    border-radius: 8px;
}
.pcard-c .pimg-nav {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink-2);
    box-shadow: none;
}
.pcard-c .pimg-dots {
    bottom: 8px;
}
.pcard-c .pc-body {
    gap: 9px;
    padding: 12px 4px 4px;
}
.pcard-c .pc-name {
    min-height: 2.5em;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}
/* maker logo | part number */
.pc-pnc {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f6f7f5;
}
.pc-pnc img {
    flex: none;
    width: 44px;
    height: 24px;
    object-fit: contain;
}
.pc-pnc > i {
    flex: none;
    width: 44px;
    color: var(--ink-2);
    font-size: 1.05rem;
    text-align: center;
}
.pc-pnc span {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* car models and years */
.pc-car {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding-inline: 4px;
    color: var(--ink-2);
    font-size: 0.86rem;
}
.pc-car i {
    flex: none;
    color: var(--ink);
    font-size: 1.05rem;
}
.pc-car span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pcard-c .pc-price {
    align-items: baseline;
    gap: 8px;
    margin: 0;
    padding-inline: 4px;
}
.pcard-c .pc-price b {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 800;
}
.pcard-c .pc-price del {
    color: #8a958d;
    font-size: 0.9rem;
}
.pcard-c .pc-bnpl {
    gap: 6px;
    padding-inline: 4px;
}
.pcard-c .pc-bnpl img {
    height: 24px;
    border: 0;
    border-radius: 6px;
}
/* warranty | delivery, side by side with a thin divider */
.pc-info {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    padding: 8px 0;
    border-top: 1px solid var(--line);
}
.pc-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding-inline: 6px;
    color: var(--ink-2);
    font-size: 0.76rem;
    line-height: 1.25;
}
.pc-info span + span {
    border-inline-start: 1px solid var(--line);
    padding-inline-start: 10px;
}
.pc-info i {
    flex: none;
    color: var(--accent);
    font-size: 1.25rem;
}
.pc-info .is-low,
.pc-info .is-low i {
    color: #c62828;
}
.pc-info .is-out,
.pc-info .is-out i {
    color: #c62828;
    font-weight: 700;
}
/* the green "Add to Cart" button; after adding it turns into − qty + */
.pc-cta {
    margin-top: auto;
}
.pc-btn,
.pcard-c .cart-step.cs-wide .cs-inc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(52, 122, 34, 0.22);
    transition: filter 0.15s ease, transform 0.15s ease;
}
.pc-btn:hover,
.pcard-c .cart-step.cs-wide .cs-inc:hover {
    color: #fff;
    filter: brightness(1.08);
}
.pc-btn i,
.pcard-c .cs-label i {
    font-size: 1.15rem;
}
.pc-btn.is-ghost {
    border: 1.5px solid var(--accent);
    background: #fff;
    color: var(--accent);
    box-shadow: none;
}
.pc-btn.is-ghost:hover {
    color: var(--accent);
    background: #f1f8ef;
}
.pcard-c .cart-step.cs-wide {
    display: flex;
    width: 100%;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    background: transparent;
}
.pcard-c .cart-step.cs-wide .cs-plus {
    display: none;
}
.pcard-c .cart-step.cs-wide .cs-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
/* in the cart: one green bar with − qty + */
.pcard-c .cart-step.cs-wide.open {
    justify-content: space-between;
    padding: 0 4px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(52, 122, 34, 0.22);
}
.pcard-c .cart-step.cs-wide.open .cs-dec,
.pcard-c .cart-step.cs-wide.open .cs-inc {
    width: 40px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: #fff;
}
.pcard-c .cart-step.cs-wide.open .cs-label {
    display: none;
}
.pcard-c .cart-step.cs-wide.open .cs-plus {
    display: inline;
    font-size: 1.3rem;
}
.pcard-c .cart-step.cs-wide.open .cs-qty {
    font-size: 1.05rem;
}
@media (max-width: 560px) {
    .pcard.pcard-c {
        padding: 8px;
    }
    .pcard-c .pc-name {
        font-size: 0.9rem;
    }
    .pcard-c .pc-price b {
        font-size: 1.15rem;
    }
    .pc-info {
        grid-auto-flow: row;
        gap: 6px;
    }
    .pc-info span + span {
        border: 0;
        padding-inline-start: 6px;
    }
    .pc-btn,
    .pcard-c .cart-step.cs-wide .cs-inc {
        height: 40px;
        font-size: 0.88rem;
    }
}

/* compact card: the reference design's colours (dark brand green icons and price, dark car icon, grey gear) */
.pcard-c {
    --pc-green: #1e5a26;
}
.pcard-c .pc-price b {
    color: var(--pc-green);
}
.pcard-c .pc-price b img,
.pcard-c .pc-price b svg {
    filter: none;
}
.pc-info i {
    color: var(--pc-green);
}
.pc-info span {
    color: #4b5a50;
}
.pc-car i {
    color: #2b3a30;
}
.pc-car span {
    color: #5c6a61;
}
.pc-pnc > i {
    color: #7b8780;
}
.pc-pnc span {
    color: #13241b;
}
/* photo controls: white heart circle, soft grey square arrows, green active dot */
.pcard-c .fav-t {
    width: 36px;
    height: 36px;
    border: 0;
    background: #fff;
    color: #13241b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.pcard-c .fav-t.on {
    color: #c62828;
}
.pcard-c .pimg-nav {
    background: rgba(220, 224, 221, 0.85);
    color: #4b5a50;
}
.pcard-c .pimg-dots i {
    background: #cfd5d0;
}
.pcard-c .pimg-dots i.on {
    background: var(--pc-green);
}
.pcard-c .pimg .off-badge {
    background: #e53935;
    color: #fff;
}
/* the button: same brand green, white cart icon and text */
.pc-btn,
.pcard-c .cart-step.cs-wide .cs-inc,
.pcard-c .cart-step.cs-wide.open {
    background: linear-gradient(180deg, #2f7a2a 0%, #23661f 100%);
    color: #fff;
}
.pc-btn.is-ghost {
    background: #fff;
    color: var(--pc-green);
    border-color: var(--pc-green);
}

.pc-info .pc-truck {
    flex: none;
    color: var(--pc-green, #1e5a26);
}

/* "Notify me" on an out-of-stock card: once subscribed it turns solid and stays */
.pc-notify-btn.is-on,
.pc-notify-btn.is-on:disabled {
    background: #eaf6e6;
    color: var(--pc-green, #1e5a26);
    border-color: #cfe8c9;
    cursor: default;
    opacity: 1;
}

/* catalog "Shop By Category": the selected category gets a green outline */
.ccat[aria-current="page"] .ccat-ic {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 6px 18px rgba(52, 122, 34, 0.22);
}
.ccat[aria-current="page"] .ccat-name {
    color: var(--accent);
    font-weight: 800;
}
/* the outline sits inside the box, so the scrolling row never clips it */
.ccat[aria-current="page"] .ccat-ic {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
    box-shadow: 0 4px 12px rgba(52, 122, 34, 0.18);
}
/* count bubbles (cart, favorites) disappear at zero */
.nh-badge[hidden],
.mtab-ic em[hidden] {
    display: none !important;
}

/* sign-up: "X invited you" note */
.am-invite {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid #cfe5c6;
    border-radius: 14px;
    background: linear-gradient(180deg, #f1f9ee, #e6f4e1);
    color: #1e5a26;
}
.am-invite-ic {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent, #347a22);
    color: #fff;
    font-size: 1.05rem;
}
.am-invite-txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.4;
}
.am-invite-txt b {
    font-size: 0.92rem;
    font-weight: 800;
}
.am-invite-txt small {
    color: #2f6b2a;
    font-size: 0.82rem;
    font-weight: 600;
}
.am-invite-txt small svg {
    vertical-align: -1px;
}

/* account: invite a friend */
.inv-hero { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.inv-gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.inv-gifts > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, #e3f2e1, #f6fbf5); text-align: center; }
.inv-gifts i { color: var(--accent); font-size: 1.6rem; }
.inv-gifts b { color: var(--ink); font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.inv-gifts span { color: var(--ink-2); font-size: 0.85rem; font-weight: 600; }
.inv-label { margin-top: 6px; color: var(--ink-2); font-size: 0.82rem; font-weight: 700; }
.inv-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1.5px dashed #b9d6b2; border-radius: 12px; background: #f6fbf5; }
.inv-copy b { font-size: 1.3rem; letter-spacing: 0.08em; color: var(--accent); }
.inv-copy span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; }
.inv-copy .sm-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.inv-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.inv-share .sm-btn { display: inline-flex; align-items: center; gap: 6px; }
.inv-wa { background: #25d366 !important; border-color: #25d366 !important; }
.inv-rules { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 0.88rem; }
.inv-rules i { color: var(--accent); margin-inline-end: 6px; }
.inv-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.1rem; font-weight: 800; }
.inv-h small { padding: 1px 8px; border-radius: 99px; background: var(--surface-2); font-size: 0.78rem; }
.inv-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.inv-row:first-of-type { border-top: 0; }
.inv-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inv-row small { color: var(--ink-2); font-size: 0.78rem; }
.inv-av { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #e3f2e1; color: var(--accent); font-weight: 800; }
.inv-st { padding: 3px 10px; border-radius: 99px; background: #eef1ec; color: #5c6a61; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.inv-st.is-rewarded { background: #e3f2e1; color: #2e7d32; }
.inv-st.is-review { background: #fff4e0; color: #9a5b00; }
.inv-st.is-rejected, .inv-st.is-reversed { background: #fdecea; color: #c62828; }
.inv-pts { color: var(--accent); }
@media (max-width: 560px) { .inv-gifts b { font-size: 1.4rem; } }

/* phones: the account menu is a row of chips; "Sign out" stays in it (red), so logging out is always possible */
@media (max-width: 900px) {
    .acc-side > form.acc-links {
        display: flex !important;
        flex: none;
    }
    .acc-side > form.acc-links button {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        border: 1px solid #f3c6c2;
        border-radius: 99px;
        background: #fdecea;
        color: #c62828;
        font-weight: 700;
        white-space: nowrap;
    }
}

/* phones: the profile icon stays in the header (icon only); it opens the same menu, with Log Out */
@media (max-width: 760px) {
    .nh .top-actions .nh-profile {
        display: block !important;
    }
    .nh .top-actions .nh-profile .nh-name,
    .nh .top-actions .nh-profile .chev {
        display: none;
    }
}

/* invite page: the friends card gets the same padding as the card above; plain heading with the count beside it */
.acc-card.inv-list {
    padding: 20px 22px;
}
.inv-list .inv-h {
    justify-content: flex-start;
    padding: 0;
    border: 0;
}
.inv-list .inv-h small {
    margin: 0;
}
.inv-list > p {
    margin: 0;
    color: var(--ink-2);
}

/* ===================== Corporate Sales | B2B ===================== */
.b2b-hero {
    padding: 44px 0 40px;
    background: #1f4d14 url("../images/b2b-banner.webp") right center / cover no-repeat;
    color: #fff;
}
.b2b-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    font-weight: 700;
}
.b2b-hero h1 {
    margin: 14px 0 8px;
    color: #fff;
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 800;
}
.b2b-hero p {
    max-width: 720px;
    margin: 0 0 20px;
    color: #e3ece0;
    line-height: 1.7;
}
.b2b-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.b2b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.b2b-btn.is-light { background: #fff; color: #1e5a26; }
.b2b-btn.is-wa { background: #25d366; color: #fff; }
.b2b-btn.is-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(52, 122, 34, 0.25); }
.b2b-btn.is-ghost { border: 1.5px solid var(--accent); background: #fff; color: var(--accent); }
.b2b-btn:hover { filter: brightness(1.06); }
.b2b-btn:disabled { opacity: 0.6; cursor: progress; }
.home-in.b2b-page {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: start;
    padding-top: 28px;
    padding-bottom: 40px;
}
.b2b-side h2,
.b2b-card h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}
.b2b-benefits {
    display: grid;
    gap: 14px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
.b2b-benefits li {
    display: flex;
    gap: 12px;
}
.b2b-benefits i {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e3f2e1;
    color: var(--accent);
    font-size: 1.15rem;
}
.b2b-benefits b {
    color: var(--ink);
}
.b2b-benefits p {
    margin: 2px 0 0;
    color: var(--ink-2);
    font-size: 0.88rem;
}
.b2b-steps {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--surface-2);
}
.b2b-steps ol {
    margin: 8px 0 0;
    padding-inline-start: 18px;
    color: var(--ink-2);
    font-size: 0.9rem;
    line-height: 1.8;
}
.b2b-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 8px 26px rgba(15, 42, 24, 0.07);
}
.b2b-sub {
    margin: -8px 0 16px;
    color: var(--ink-2);
    font-size: 0.85rem;
}
.b2b-alert {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fdecea;
    color: #c62828;
    font-weight: 600;
}
.b2b-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.b2b-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin-bottom: 18px;
}
.b2b-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}
.b2b-field.is-wide {
    grid-column: 1 / -1;
}
.b2b-field > span {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
}
.b2b-field > span em {
    color: var(--ink-2);
    font-style: normal;
    font-weight: 600;
}
.b2b-field input,
.b2b-field select,
.b2b-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #b9c4bb;
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}
.b2b-field input:focus,
.b2b-field select:focus,
.b2b-field textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 122, 34, 0.14);
}
.b2b-field .is-bad {
    border-color: #c62828;
}
.b2b-field small {
    color: #c62828;
    font-size: 0.8rem;
}
.b2b-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 14px;
    border: 1.5px dashed #b9d6b2;
    border-radius: 14px;
    background: #f6fbf5;
    text-align: center;
    cursor: pointer;
}
.b2b-drop i {
    color: var(--accent);
    font-size: 1.8rem;
}
.b2b-drop small {
    color: var(--ink-2) !important;
}
.b2b-files {
    display: grid;
    gap: 4px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ink);
    font-size: 0.85rem;
}
.b2b-submit {
    width: 100%;
}
.b2b-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 10px;
    text-align: center;
}
.b2b-done > span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e3f2e1;
    color: var(--accent);
    font-size: 2rem;
}
.b2b-done p {
    max-width: 420px;
    margin: 0 0 8px;
    color: var(--ink-2);
}
@media (max-width: 900px) {
    .home-in.b2b-page {
        grid-template-columns: minmax(0, 1fr);
    }
    .b2b-card {
        order: -1;
    }
}
@media (max-width: 560px) {
    .b2b-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .b2b-card {
        padding: 18px;
    }
    .b2b-btn {
        flex: 1;
    }
}
/* B2B hero: normal text flow (the page container is a grid elsewhere), the tag only as wide as its text */
.b2b-hero .home-in {
    display: block;
}
.b2b-kicker {
    width: fit-content;
}

/* B2B: the chosen files, each with × */
.b2b-files li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}
.b2b-file-x {
    margin-inline-start: auto;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fdecea;
    color: #c62828;
    font-size: 0.7rem;
    cursor: pointer;
}

/* B2B: submit button while sending */
.b2b-submit.is-busy {
    opacity: 0.85;
    cursor: progress;
}
.b2b-spin {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: b2b-spin 0.7s linear infinite;
}
@keyframes b2b-spin {
    to { transform: rotate(360deg); }
}

.inv-gifts em {
    color: var(--accent);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 700;
}

/* checkout: the wallet (loyalty points worth riyals) */
.co-wallet {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid #cfe8c9;
    border-radius: 14px;
    background: linear-gradient(180deg, #eef8eb 0%, #f8fcf7 100%);
}
.co-wallet-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.co-wallet-ic {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 1.2rem;
}
.co-wallet-head b {
    display: block;
    color: var(--ink);
}
.co-wallet-head small {
    color: var(--accent);
    font-weight: 700;
}
.co-wallet-use {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    cursor: pointer;
}
.co-wallet-use input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}
.co-wallet-use b {
    display: block;
    color: var(--ink);
    font-size: 0.92rem;
}
.co-wallet-use small {
    color: var(--ink-2);
    font-weight: 700;
}
.co-wallet-note {
    margin: 8px 0 0;
    color: var(--ink-2);
    font-size: 0.8rem;
    font-weight: 700;
}

/* login modal: "enter your password" note (not an error) */
.am-error.is-info {
    background: #eaf6e6;
    color: #1e5a26;
}

/* ===================== Warranty claims: list, "Claim now" form in the drawer, claim page ===================== */
.wcl-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.wcl-list {
    display: grid;
    gap: 10px;
}
.wcl-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 2px 10px rgba(19, 36, 27, 0.06);
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s ease;
}
.wcl-card:hover {
    box-shadow: 0 6px 18px rgba(19, 36, 27, 0.1);
    color: inherit;
}
.wcl-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wcl-main b {
    font-size: 0.95rem;
    line-height: 1.4;
}
.wcl-main small {
    color: var(--ink-2);
    font-size: 0.78rem;
}
.wcl-go {
    color: var(--ink-2);
}
[dir="rtl"] .wcl-go {
    transform: scaleX(-1);
}
.wcl-st {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 99px;
    background: #fff4e0;
    color: #a15c00;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.wcl-st.is-in_review,
.wcl-st.is-part_received { background: #e3effd; color: #1a56a8; }
.wcl-st.is-send_part { background: #fde9d9; color: #b34700; }
.wcl-st.is-repair,
.wcl-st.is-replacement,
.wcl-st.is-refund,
.wcl-st.is-completed { background: #e3f2e1; color: #2e7d32; }
.wcl-st.is-not_applicable { background: #fdecea; color: #c62828; }

/* drawer: the button under each part, and the two steps */
.wc-step {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}
.wc-step[hidden] {
    display: none;
}
.wc-claim {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 16px;
    border: 0;
    border-radius: 99px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
}
.wc-claim:hover {
    filter: brightness(0.95);
}
.wc-claimed {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 99px;
    background: #fff4e0;
    color: #a15c00;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}
.wc-back {
    inset-inline-start: 12px;
    inset-inline-end: auto;
}
[dir="rtl"] .wc-back i {
    display: inline-block;
    transform: scaleX(-1);
}
.wcf-part {
    margin-bottom: 14px;
}
.wcf-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}
.wcf-facts dt {
    color: var(--ink-2);
    font-size: 0.74rem;
    font-weight: 600;
}
.wcf-facts dd {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
}
.wcf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.wcf-field[hidden] {
    display: none;
}
.wcf-field > label {
    font-weight: 700;
    font-size: 0.88rem;
}
.wcf-field .req {
    color: #c62828;
}
.wcf-field > small {
    color: var(--ink-2);
    font-size: 0.75rem;
}
.wcf-field textarea {
    resize: vertical;
}
.wcf-foot {
    padding: 12px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}
.wcf-foot .rvm-submit {
    border: 0;
}
.wcf-spin,
.wcf-busy,
.rvm-submit.is-busy .wcf-label {
    display: none;
}
.rvm-submit.is-busy .wcf-busy {
    display: inline;
}
.rvm-submit.is-busy .wcf-spin {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wcf-spin 0.7s linear infinite;
}
@keyframes wcf-spin {
    to { transform: rotate(360deg); }
}

/* the claim page */
.wcd-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--ink-2);
    font-weight: 600;
    text-decoration: none;
}
[dir="rtl"] .wcd-back i {
    transform: scaleX(-1);
}
.wcd-now,
.wcd-grid > .acc-card {
    padding: 18px 20px;
}
.wcd-now {
    margin-bottom: 16px;
    border-inline-start: 4px solid #f0a020;
}
.wcd-now.is-in_review,
.wcd-now.is-part_received { border-inline-start-color: #1a56a8; }
.wcd-now.is-send_part { border-inline-start-color: #e07020; }
.wcd-now.is-repair,
.wcd-now.is-replacement,
.wcd-now.is-refund,
.wcd-now.is-completed { border-inline-start-color: var(--accent); }
.wcd-now.is-not_applicable { border-inline-start-color: #c62828; }
.wcd-now > b {
    font-size: 1.05rem;
}
.wcd-now > p {
    margin: 4px 0 0;
    color: var(--ink-2);
}
.wcd-address {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #cfe5c6;
    border-radius: 12px;
    background: #eaf5e6;
}
.wcd-address small {
    color: var(--ink-2);
    font-size: 0.78rem;
}
.wcd-address p {
    margin: 4px 0 6px;
    font-size: 1rem;
    font-weight: 700;
    white-space: pre-line;
}
.wcd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.wcd-h {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 800;
}
.wcd-remarks {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--surface-2);
    line-height: 1.7;
    white-space: pre-line;
}
.wcd-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wcd-photos img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.wcd-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}
.wcd-steps li {
    position: relative;
    padding: 0 0 16px;
    padding-inline-start: 22px;
    border-inline-start: 2px solid var(--line);
    margin-inline-start: 6px;
}
.wcd-steps li:last-child {
    border-inline-start-color: transparent;
    padding-bottom: 0;
}
.wcd-steps li::before {
    content: "";
    position: absolute;
    top: 3px;
    inset-inline-start: -7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #b9c4bb;
}
.wcd-steps li.is-now::before {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(52, 122, 34, 0.18);
}
.wcd-steps b {
    display: block;
    font-size: 0.9rem;
}
.wcd-steps small {
    color: var(--ink-2);
    font-size: 0.75rem;
}
.wcd-steps p {
    margin: 6px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--surface-2);
    font-size: 0.85rem;
    white-space: pre-line;
}
@media (max-width: 860px) {
    .wcd-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .wcl-card {
        flex-wrap: wrap;
    }
    .wcl-go {
        display: none;
    }
    .wcl-card .wcl-st {
        margin-inline-start: 78px;
    }
}
/* order page: "Claim now" next to a part under warranty */
.co-claim {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

/* ===================== invite link page: continue on the website or get the app ===================== */
.il-page {
    display: flex;
    justify-content: center;
    padding-block: 36px 56px;
}
.il-card {
    width: min(480px, 100%);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px 26px;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 10px 40px rgba(19, 36, 27, 0.1);
    text-align: center;
}
.il-gift {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #e3f2e1, #f6fbf5);
    color: var(--accent);
    font-size: 2.1rem;
    box-shadow: 0 0 0 8px rgba(52, 122, 34, 0.07);
}
.il-card h1 {
    margin: 4px 0 0;
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.35;
}
.il-lead {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.98rem;
    line-height: 1.6;
}
.il-lead svg {
    vertical-align: -2px;
}
.il-code {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px dashed #b9d6b2;
    border-radius: 14px;
    background: #f6fbf5;
    text-align: start;
}
.il-code small {
    color: var(--ink-2);
    font-size: 0.78rem;
    font-weight: 600;
}
.il-code b {
    flex: 1;
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}
.il-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.il-copy.is-done {
    border-color: var(--accent);
    color: var(--accent);
}
.il-web {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-block: 13px;
    font-size: 1rem;
    text-decoration: none;
}
.il-or {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-2);
    font-size: 0.82rem;
    font-weight: 600;
}
.il-or::before,
.il-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.il-stores {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.il-store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    background: #000;
    color: #fff;
    text-align: start;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.il-store:hover {
    color: #fff;
    transform: translateY(-1px);
}
.il-store > i {
    font-size: 1.6rem;
}
.il-store span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.il-store small {
    font-size: 0.66rem;
    opacity: 0.85;
}
.il-store b {
    font-size: 1.02rem;
    font-weight: 700;
}
.il-store.is-soon {
    background: #6b7570;
    cursor: default;
}
.il-store.is-soon:hover {
    transform: none;
}
.il-hint {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.78rem;
}
@media (max-width: 400px) {
    .il-stores {
        grid-template-columns: 1fr;
    }
}

/* part cards: the car + years line in bold; warranty | delivery rows keep one height so cards line up side by side */
.pcard-c .pc-car span {
    font-weight: 700;
    color: #2b3a30;
}
.pcard-c .pc-info {
    min-height: 62px;
    align-items: center;
}
.pcard-c .pc-info span {
    align-self: center;
}
@media (max-width: 560px) {
    .pcard-c .pc-info {
        min-height: 70px;
        align-content: center;
    }
}

/* category / search filters: the navbar no longer sticks, so the panel sticks near the top (no empty gap); everything in it bold */
@media (min-width: 901px) {
    .cf-side {
        top: 16px;
        max-height: calc(100vh - 32px);
    }
}
.cf-side .cf-opt,
.cf-side .cf-opt span,
.cf-side label,
.cf-side select,
.cf-side input {
    font-weight: 700;
}

/* bold: the category circles' names, everything in their hover sheet, and the warranty / delivery line on part cards */
.cats .cat-lbl,
.mm-sheet a,
.mm-sheet span,
.mm-sheet b,
.mm-sheet .mm-col-h,
.pcard-c .pc-info span {
    font-weight: 700;
}
.mm-sheet .mm-col-h,
.mm-sheet .mm-picks-h {
    font-weight: 800;
}

/* category bar arrows, same look as the catalog's */
.cats {
    position: relative;
}
.cats-nav {
    position: absolute;
    z-index: 2;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.cats-nav[hidden] {
    display: none;
}
.cats-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.cats-nav.next {
    inset-inline-end: 8px;
}
[dir="rtl"] .cats-nav {
    transform: scaleX(-1);
}
@media (max-width: 640px) {
    .cats-nav {
        width: 28px;
        height: 28px;
        margin-top: -14px;
        font-size: 19px;
    }
}

/* home "Shop By Category" cards: the same mint tile as the catalog's categories, item count in bold */
#catalog .ctile {
    border-color: transparent;
    background: linear-gradient(180deg, #d9f0dc 0%, #eef8ef 55%, #f7fcf7 100%);
}
#catalog .ctile:hover {
    border-color: var(--accent);
}
#catalog .ctile .ct-ic.ct-photo {
    border-color: transparent;
}
#catalog .ctile small {
    font-weight: 700;
}
:root[data-theme="dark"] #catalog .ctile {
    background: linear-gradient(180deg, #1f3a26 0%, #182c1e 100%);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) #catalog .ctile {
        background: linear-gradient(180deg, #1f3a26 0%, #182c1e 100%);
    }
}

/* home: section subtitles in bold; the "More reasons / Mega Deals / In focus" panel bolder, its small lines a bit larger */
.hsec .sub {
    font-weight: 700;
}
.trio .trio-tile b,
.trio .trio-deal-name,
.trio .trio-price del,
.trio .trio-banner.is-text b {
    font-weight: 700;
}
.trio .trio-tile small {
    font-size: 0.95rem;
    font-weight: 700;
}
.trio .trio-deal-name {
    font-size: 0.95rem;
}
.trio .trio-banner.is-text small {
    font-size: 1.05rem;
    font-weight: 700;
}

/* "View all": a small version of the green "Add to Cart" button */
.view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #2f7a2a 0%, #23661f 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(52, 122, 34, 0.22);
    transition: filter 0.15s ease;
}
.view-all:hover {
    color: #fff;
    filter: brightness(1.08);
    text-decoration: none;
}

/* "Shop Now" scrolls here; keep the heading clear of the sticky header */
#suggested {
    scroll-margin-top: 110px;
}

/* support tickets: footer link, My tickets list and conversation */
.gf-col a.gf-ticket { font-weight: 800; }
.tkc-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: inherit; text-decoration: none; }
.tkc-row:hover { border-color: var(--accent); }
.tkc-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tkc-main b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkc-main small { color: var(--ink-2); font-weight: 600; }
.tkc-st { padding: 3px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.tkc-st.is-open { color: #2f5bb7; background: #e4eefd; }
.tkc-st.is-in_progress { color: #6a48c4; background: #efe7ff; }
.tkc-st.is-waiting { color: #9a6200; background: #fdf1dc; }
.tkc-st.is-resolved { color: #23661f; background: #e3f3df; }
.tkc-st.is-closed { color: #56655b; background: #eef1ea; }
.tkc-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 18px; }
.tkc-empty i { font-size: 2rem; color: var(--accent); }
.tkc-empty p { margin: 0; color: var(--ink-2); }
.tkc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tkc-facts small { display: block; color: var(--ink-2); font-weight: 600; font-size: 0.78rem; }
.tkc-facts b { font-size: 0.9rem; }
@media (max-width: 640px) { .tkc-facts { grid-template-columns: 1fr; } }
.tkc-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.tkc-msg { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); max-width: 88%; }
.tkc-msg.is-team { align-self: flex-start; background: #eef8ec; border-color: #cfe6c8; }
.tkc-msg.is-me { align-self: flex-end; }
.tkc-msg header { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.tkc-msg header small { color: var(--ink-2); font-size: 0.75rem; }
.tkc-msg p { margin: 0; white-space: pre-line; line-height: 1.6; }
.tkc-reply { display: flex; flex-direction: column; gap: 8px; }
.tkc-reply .sm-btn { align-self: flex-end; }
/* "(optional)" next to a field's label is a hint, not an error */
.b2b-field > span > small { color: var(--ink-2); font-weight: 600; }

/* ===================== about us: editorial layout (hero, overlapping photos, accordion, hours, photo band, offer) ===================== */
.ab3 { --ab3-ink: #13241b; --ab3-mute: #5e6d62; --ab3-gold: #b98b3e; --ab3-soft: #f3f5f1; color: var(--ab3-ink); overflow: hidden; }
.ab3 h1, .ab3 h2 { font-family: var(--f-display); letter-spacing: -0.01em; }
.ab3-kicker { display: block; margin-bottom: 14px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ab3-gold); }
[dir="rtl"] .ab3-kicker { letter-spacing: 0; }
.ab3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 4px; font-size: 0.86rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: background-color .2s, color .2s; }
[dir="rtl"] .ab3-btn { letter-spacing: 0; }
.ab3-btn.is-outline { border: 1.5px solid var(--ab3-ink); color: var(--ab3-ink); }
.ab3-btn.is-outline:hover { background: var(--ab3-ink); color: #fff; }
.ab3-btn.is-light { background: #fff; color: var(--ab3-ink); }
.ab3-btn.is-light:hover { background: var(--ab3-gold); color: #fff; }
.ab3-btn.is-wa { background: #1f9d55; color: #fff; }
.ab3-btn.is-wa:hover { background: #17824a; color: #fff; }

/* reveal on scroll (only when the script turned it on) */
.ab3-anim .ab3 [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.ab3-anim .ab3 [data-reveal].is-in { opacity: 1; transform: none; }

/* 1. hero */
.ab3-hero { position: relative; min-height: 420px; display: grid; place-items: center; text-align: center; color: #fff;
    background: linear-gradient(180deg, rgba(8, 28, 15, .55), rgba(8, 28, 15, .7)), var(--ab3-bg, linear-gradient(135deg, #1a5a2f, #0f3b1f)) center / cover no-repeat; }
.ab3-hero-in { padding: 70px 20px; max-width: 760px; }
.ab3-hero h1 { margin: 0 0 14px; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 600; color: #fff; }
.ab3-hero p { margin: 0; font-size: 1.12rem; font-weight: 600; opacity: .92; }

/* 2. intro with two overlapping photos */
.ab3-intro { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: auto; gap: 0; padding-block: 90px 70px; }
.ab3-intro-text { grid-column: 1 / 7; grid-row: 1; align-self: start; padding-inline-end: 30px; position: relative; z-index: 2; }
.ab3-intro-text h2 { margin: 0 0 22px; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; line-height: 1.15; }
.ab3-intro-text p, .ab3-intro-more { margin: 0; font-size: 1.04rem; line-height: 1.85; color: var(--ab3-mute); font-weight: 600; }
.ab3-intro figure { margin: 0; overflow: hidden; background: var(--ab3-soft); }
.ab3-intro figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab3-intro-a { grid-column: 7 / 13; grid-row: 1 / 3; aspect-ratio: 1; }
.ab3-intro-b { grid-column: 1 / 7; grid-row: 2 / 4; margin-top: 50px !important; aspect-ratio: 4 / 3; position: relative; z-index: 1; box-shadow: 0 24px 50px rgba(15, 42, 24, .14); }
.ab3-intro-more { grid-column: 7 / 13; grid-row: 3; padding: 40px 0 0 40px; }
[dir="rtl"] .ab3-intro-more { padding: 40px 40px 0 0; }

/* 3. promise */
.ab3-promise { text-align: center; max-width: 820px; padding-block: 40px 30px; }
.ab3-promise h2 { margin: 0 0 16px; font-size: clamp(1.9rem, 3.8vw, 3.1rem); font-weight: 600; }
.ab3-promise p { margin: 0 auto; max-width: 620px; color: var(--ab3-mute); font-size: 1.06rem; font-weight: 600; line-height: 1.8; }

/* 4. numbers */
.ab3-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-block: 30px 70px; border-block: 1px solid #e3e8df; }
.ab3-stats div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 10px; text-align: center; }
.ab3-stats div + div { border-inline-start: 1px solid #e3e8df; }
.ab3-stats i { font-size: 1.6rem; color: var(--ab3-gold); }
.ab3-stats b { font-family: var(--f-display); font-size: 2.1rem; color: var(--accent); }
.ab3-stats span { font-size: .9rem; font-weight: 700; color: var(--ab3-mute); }

/* 5. categories row */
.ab3-cats { text-align: center; padding-bottom: 80px; }
.ab3-cats ul { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 22px; }
.ab3-cats a:not(.ab3-btn) { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ab3-ink); text-decoration: none; }
.ab3-cats a span { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(180deg, #d9f0dc, #f7fcf7); transition: transform .25s; }
.ab3-cats a span img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.ab3-cats a:hover span { transform: translateY(-4px); }
.ab3-cats a b { font-size: .92rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
[dir="rtl"] .ab3-cats a b { letter-spacing: 0; }

/* 6. features: grey panel + photo over its edge */
.ab3-feat { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; padding-bottom: 90px; }
.ab3-feat-panel { grid-column: 1 / 10; grid-row: 1; background: var(--ab3-soft); padding: 70px 46% 70px 60px; }
[dir="rtl"] .ab3-feat-panel { padding: 70px 60px 70px 46%; }
.ab3-feat-panel h2 { margin: 0 0 26px; font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 600; line-height: 1.2; }
.ab3-feat-photo { grid-column: 6 / 13; grid-row: 1; margin: 0; aspect-ratio: 1; overflow: hidden; box-shadow: 0 28px 60px rgba(15, 42, 24, .18); background: #fff; }
.ab3-feat-photo img { width: 100%; height: 100%; object-fit: cover; }
.ab3-acc details { border-bottom: 1px solid #d7ddd2; }
.ab3-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-size: 1.08rem; font-weight: 800; }
.ab3-acc summary::-webkit-details-marker { display: none; }
.ab3-acc summary i { transition: transform .25s; color: var(--accent); }
.ab3-acc details[open] summary i { transform: rotate(45deg); }
.ab3-acc p { margin: 0 0 18px; color: var(--ab3-mute); line-height: 1.8; font-weight: 600; }

/* 7. working hours */
.ab3-hours { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; padding-bottom: 90px; }
.ab3-hours-list { list-style: none; margin: 0; padding: 0; }
.ab3-hours-list li { display: flex; align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px dashed #d7ddd2; font-weight: 700; }
.ab3-hours-list li i { flex: 1; }
.ab3-hours-list li b { color: var(--accent); font-weight: 800; }
.ab3-hours-main h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 600; }
.ab3-hours-side > p { margin: 0 0 24px; color: var(--ab3-mute); line-height: 1.8; font-weight: 600; }
.ab3-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; border: 1px solid #e3e8df; border-radius: 10px; background: #fff; box-shadow: 0 14px 34px rgba(15, 42, 24, .08); }
.ab3-contact > b { font-size: 1.1rem; }
.ab3-mail { color: var(--ab3-mute); font-weight: 700; }

/* 8. photo band (fixed background on large screens) */
.ab3-band { height: 420px; background: var(--ab3-band) center / cover no-repeat; }
@media (min-width: 992px) { .ab3-band { background-attachment: fixed; } }

/* 9. heading with floating photos */
.ab3-gal.home-in { max-width: 1800px; padding: 50px clamp(16px, 5vw, 90px) 40px; gap: 0; }
.ab3-gal-head { text-align: center; max-width: none; margin: 0 0 30px; }
.ab3-gal-head .ab3-kicker { margin: 0; font-size: 13px; line-height: 21px; font-weight: 600; letter-spacing: .2em; color: var(--ab3-gold); }
.ab3-gal-head h2 { margin: 0; font-size: 40px; font-weight: 600; text-transform: uppercase; color: var(--accent); }

/* photo gallery: 3D carousel of photo cards */
.mzaCarousel { --mzaC-accent: #b9e8a8; --mzaC-glow: rgba(52, 122, 34, .55); --mzaCardH: clamp(340px, 32vw, 560px); position: relative; width: 100%; margin: 0 auto; contain: layout paint; touch-action: pan-y; }
.mzaCarousel-viewport { position: relative; outline: none; overflow: hidden; }
.mzaCarousel-track { position: relative; height: calc(var(--mzaCardH) + 60px); transform-style: preserve-3d; perspective: 1200px; overflow: hidden; }
.mzaCarousel-slide { position: absolute; top: calc(50% + 5px); left: 50%; width: min(880px, 90vw); height: var(--mzaCardH); transform-style: preserve-3d; display: grid; place-items: center; border-radius: 22px; overflow: hidden; will-change: transform, filter; }
.mzaCard { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; background: linear-gradient(135deg, #1a5a2f, #0f3b1f); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); transform: translateZ(0); cursor: grab; color: #fff; }
.mzaCard::before { content: ""; position: absolute; inset: -2%; background-image: var(--mzaCard-bg); background-size: cover; background-position: center; filter: contrast(1.02) saturate(1.08) brightness(.9); transform: translateZ(-60px) scale(1.18) translate3d(var(--mzaParBgX, 0px), var(--mzaParBgY, 0px), 0); transition: transform 800ms cubic-bezier(.2, .7, 0, 1), filter 800ms cubic-bezier(.2, .7, 0, 1); }
.mzaCard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .25) 100%); }
.mzaCard-head { position: absolute; inset: 20px auto auto 20px; z-index: 2; }
.mzaCard-title { margin: 0; font-family: inherit; font-weight: 800; letter-spacing: .2px; font-size: clamp(22px, 3.1vw, 38px); text-shadow: 2px 2px 15px rgba(0, 0, 0, .6); line-height: 110%; color: #fff; text-transform: none; }
.mzaCard-kicker { margin: .5rem 0; color: var(--mzaC-accent); font-size: clamp(12px, 1.7vw, 14px); font-weight: 600; text-shadow: 1px 1px 10px rgba(0, 0, 0, .6); }
.mzaCard-text { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; position: absolute; inset: auto 20px 85px 20px; z-index: 2; max-width: 60ch; margin: 0; background-color: rgba(0, 0, 0, .4); padding: 20px; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border-radius: 10px; text-wrap: balance; color: #ddd; font-weight: 600; line-height: 1.5; }
.mzaCard-actions { position: absolute; inset: auto auto 18px 18px; z-index: 2; }
.mzaBtn { display: inline-block; border: 1px solid var(--accent); border-radius: 14px; padding: 15px 20px; font-weight: 700; color: #fff !important; background: var(--accent); box-shadow: 0 3px 15px var(--mzaC-glow); cursor: pointer; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.mzaBtn:hover { filter: brightness(1.08); }
.mzaBtn:active { transform: translateY(1px); }
.mzaCarousel-controls { position: absolute; inset: 0 0 auto 0; height: calc(var(--mzaCardH) + 60px); display: flex; align-items: center; justify-content: space-between; pointer-events: none; z-index: 5; }
.mzaCarousel-prev, .mzaCarousel-next { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .38); backdrop-filter: blur(6px); color: #fff; font-size: 20px; display: grid; place-items: center; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.mzaCarousel-prev { margin-left: 6px; } .mzaCarousel-next { margin-right: 6px; }
.mzaCarousel-prev:hover, .mzaCarousel-next:hover { background: var(--accent); }
.mzaCarousel-prev:active, .mzaCarousel-next:active { transform: scale(.96); }
.mzaCarousel-pagination { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 14px 0 10px; }
.mzaCarousel-dot { width: 12px; height: 12px; padding: 0; border-radius: 999px; background: rgba(0, 0, 0, .2); border: 0; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.mzaCarousel-dot[aria-selected="true"] { background: var(--accent); transform: scale(1.35); }
.mzaCarousel-progress { height: 4px; border-radius: 4px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.mzaCarousel-progressBar { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); will-change: transform; background: var(--accent); }
.mzaCarousel-slide[data-state="active"] .mzaCard::before { filter: contrast(1.06) saturate(1.12) brightness(1.02); }
.mzaCarousel-slide[data-state="active"] .mzaCard { box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.mzaPar-1, .mzaPar-2, .mzaPar-3 { will-change: transform; transition: transform 500ms cubic-bezier(.2, .7, 0, 1); }
.mzaPar-1 { transform: translate3d(calc(var(--mzaParX, 0px) * .35), calc(var(--mzaParY, 0px) * .35), 0); }
.mzaPar-2 { transform: translate3d(calc(var(--mzaParX, 0px) * .25), calc(var(--mzaParY, 0px) * .25), 0); }
.mzaPar-3 { transform: translate3d(calc(var(--mzaParX, 0px) * .18), calc(var(--mzaParY, 0px) * .18), 0); }
@media (max-width: 1000px) { .mzaCard-head { inset: 16px auto auto 16px; } .mzaCard-title { font-size: clamp(20px, 5.4vw, 30px); } .mzaCard-text { inset: auto 16px 62px 16px; } .ab3-gal.home-in { padding-bottom: 30px; } .ab3-gal-head h2 { font-size: 30px; } }
@media (max-width: 768px) { .mzaCard-text, .mzaCard-title, .mzaCard-kicker { max-width: 70%; } .mzaCard-text { padding: 14px; } .mzaBtn { padding: 12px 16px; } }

/* car makes */
.ab3-makes { text-align: center; padding-bottom: 70px; }
.ab3-makes h2 { margin: 0 0 26px; font-size: 1.7rem; font-weight: 600; }
.ab3-makes.home-in { max-width: 1800px; padding-inline: clamp(16px, 5vw, 90px); }
.brand-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-marquee-track { display: flex; align-items: center; gap: 80px; width: max-content; margin: 0; padding: 18px 40px; list-style: none; animation: brand-slide var(--brand-dur, 40s) linear infinite; }
.brand-marquee:hover .brand-marquee-track { animation-play-state: paused; }
.brand-marquee-track li { flex: 0 0 auto; }
.brand-marquee-track a { display: flex; align-items: center; justify-content: center; height: 64px; color: var(--ab3-mute); font-weight: 800; font-size: 1.3rem; text-decoration: none; opacity: .8; transition: opacity .25s, transform .25s; }
.brand-marquee-track a:hover { opacity: 1; transform: scale(1.06); }
.brand-marquee-track img { display: block; max-height: 56px; max-width: 150px; width: auto; height: auto; object-fit: contain; background: transparent; }
@keyframes brand-slide { to { transform: translateX(-50%); } }
@media (max-width: 600px) { .brand-marquee-track { gap: 48px; } .brand-marquee-track img { max-height: 44px; max-width: 110px; } }
@media (prefers-reduced-motion: reduce) { .brand-marquee { overflow-x: auto; } .brand-marquee-track { animation: none; } }

/* tablet / phone */
@media (max-width: 900px) {
    .ab3-intro, .ab3-feat { grid-template-columns: 1fr; padding-block: 60px 50px; }
    .ab3-intro > *, .ab3-feat > * { grid-column: 1 !important; grid-row: auto !important; }
    .ab3-intro-text { padding: 0 0 26px; }
    .ab3-intro-b { margin-top: -60px !important; width: 70%; justify-self: end; }
    .ab3-intro-more { padding: 26px 0 0 !important; }
    .ab3-feat-panel { padding: 40px 26px !important; }
    .ab3-feat-photo { margin-top: -20px; width: 88%; justify-self: center; }
    .ab3-stats { grid-template-columns: repeat(2, 1fr); }
    .ab3-stats div:nth-child(3) { border-inline-start: 0; }
    .ab3-stats div:nth-child(n+3) { border-top: 1px solid #e3e8df; }
    .ab3-hours { grid-template-columns: 1fr; gap: 30px; }
    .ab3-band { height: 260px; }
}
@media (max-width: 560px) {
    .ab3-hero { min-height: 320px; }
    .ab3-cats a span { width: 84px; height: 84px; }
}
.ab3-cats .ab3-btn { width: auto; display: inline-flex; }
.ab3-cats { display: flex; flex-direction: column; align-items: center; }
.ab3-cats ul { width: 100%; }

/* 2. the story sections: text beside a photo, flipping sides; each slides in from its own side */
.ab3-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; padding-block: 90px; }
.ab3-sec + .ab3-sec { border-top: 0; }
.ab3-sec.is-flip .ab3-sec-text { order: 2; }
.ab3-sec-kicker { display: block; margin-bottom: 14px; font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.ab3-sec-text h2 { position: relative; margin: 0 0 30px; padding-bottom: 18px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; line-height: 1.28; }
.ab3-sec-text h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--accent); }
.ab3-sec-text p { margin: 0 0 18px; font-size: 1.04rem; line-height: 1.9; color: var(--ab3-mute); font-weight: 600; }
.ab3-sec-text .ab3-btn { margin-top: 14px; }
.ab3-btn.is-solid { background: var(--accent); color: #fff; padding: 15px 44px; }
.ab3-btn.is-solid:hover { filter: brightness(.9); color: #fff; }

/* the photo: a thick frame peeking out behind it, rounded corners, and a name pill on the bottom edge */
.ab3-sec-photo { margin: 0; position: relative; isolation: isolate; }
.ab3-sec-photo::before { content: ""; position: absolute; z-index: -1; top: -26px; inset-inline-start: -26px; width: 58%; height: 72%; border: 20px solid var(--accent); border-radius: 46px; opacity: .85; transition: transform .6s ease; }
.ab3-sec.is-flip .ab3-sec-photo::before { top: auto; bottom: -26px; inset-inline-start: auto; inset-inline-end: -26px; }
.ab3-sec-photo:hover::before { transform: translate(-8px, -8px); }
.ab3-sec.is-flip .ab3-sec-photo:hover::before { transform: translate(8px, 8px); }
.ab3-sec-img { aspect-ratio: 4 / 3.3; border-radius: 46px; overflow: hidden; background: var(--ab3-soft); box-shadow: 0 30px 50px rgba(8, 13, 62, .15); }
.ab3-sec-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.ab3-sec-photo:hover .ab3-sec-img img { transform: scale(1.06); }
.ab3-sec-photo figcaption { position: absolute; z-index: 1; bottom: 18px; inset-inline: 56px; padding: 10px 18px; border-radius: 50px; background: var(--accent); color: #fff; text-align: center; box-shadow: 0 14px 28px rgba(15, 42, 24, .25); }
.ab3-sec-photo figcaption b { display: block; font-size: 1.2rem; letter-spacing: .04em; font-weight: 700; }
.ab3-sec-photo figcaption span { display: block; font-size: .8rem; letter-spacing: .4em; font-weight: 600; opacity: .9; }
.ab3-sec .ab3-acc { margin-top: 4px; }
.ab3-acc details { border-bottom: 1px solid #d7ddd2; }
.ab3-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-size: 1.08rem; font-weight: 800; }
.ab3-acc summary::-webkit-details-marker { display: none; }
.ab3-acc summary i { transition: transform .25s; color: var(--accent); }
.ab3-acc details[open] summary i { transform: rotate(45deg); }
.ab3-acc p { margin: 0 0 18px; color: var(--ab3-mute); line-height: 1.8; font-weight: 600; }

/* slide in from the sides (up on phones) */
.ab3-anim .ab3 [data-reveal] { transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.ab3-anim .ab3 [data-reveal="left"] { transform: translateX(-90px); }
.ab3-anim .ab3 [data-reveal="right"] { transform: translateX(90px); }
[dir="rtl"].ab3-anim .ab3 [data-reveal="left"] { transform: translateX(90px); }
[dir="rtl"].ab3-anim .ab3 [data-reveal="right"] { transform: translateX(-90px); }
.ab3-anim .ab3 [data-reveal].is-in { transform: none !important; }

@media (max-width: 900px) {
    .ab3-sec { grid-template-columns: 1fr; gap: 50px; padding-block: 50px; }
    .ab3-sec-photo { margin-inline: 22px; }
    .ab3-sec-img { border-radius: 32px; }
    .ab3-sec-photo::before { border-width: 14px; border-radius: 32px; top: -18px; inset-inline-start: -18px; }
    .ab3-sec.is-flip .ab3-sec-photo::before { bottom: -18px; inset-inline-end: -18px; }
    .ab3-sec-photo figcaption { inset-inline: 30px; }
    .ab3-sec.is-flip .ab3-sec-text { order: 0; }
    .ab3-anim .ab3 [data-reveal="left"], .ab3-anim .ab3 [data-reveal="right"] { transform: translateY(40px) !important; }
    .ab3-anim .ab3 [data-reveal].is-in { transform: none !important; }
}
@media (max-width: 560px) {
    .ab3-hero { min-height: 320px; }
}

/* our history: photo + text card per step, and a year timeline underneath */
.ab3-hist { background: #f7f9fb; padding: 100px 0; min-height: 100vh; display: grid; align-items: center; }
.ab3-hist-head { text-align: center; }
.ab3-hist-tag { display: inline-block; margin: 0 0 15px; padding: 3px 18px; background: #101010; color: #fff; font-size: 14px; font-weight: 700; line-height: 24px; text-transform: uppercase; }
.ab3-hist-head h2 { margin: 0 0 70px; font-family: inherit; font-size: 36px; font-weight: 600; letter-spacing: 0; color: #101010; }
.ab3-hist-head h2 span { display: inline; font-weight: 700; }
.ab3-hist-box { display: grid; margin-bottom: 45px; }
.ab3-hist-item { grid-area: 1 / 1; display: flex; background: #fff; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.ab3-hist-item.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
.ab3-hist-img, .ab3-hist-content { width: 50%; }
.ab3-hist-img { aspect-ratio: 3 / 2; }
.ab3-hist-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab3-hist-content { background: #fff; padding: 35px 35px 35px 14px; padding-inline-start: 40px; align-self: center; }
.ab3-hist-content .ab3-hist-year { display: inline-block; margin: 0 0 15px; padding: 3px 18px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; line-height: 24px; text-transform: uppercase; }
.ab3-hist-content h3 { margin: 0 0 30px; font-family: inherit; font-size: 36px; font-weight: 600; line-height: 1.25; color: #101010; }
.ab3-hist-content h3 span { font-weight: 700; }
.ab3-hist-content p { margin: 0 0 14px; font-size: 1.04rem; line-height: 1.8; color: var(--ab3-mute); }
.ab3-hist-line { position: relative; z-index: 5; width: 100%; padding: 0; margin: 0; text-align: center; list-style: none; }
.ab3-hist-line::before { content: ""; position: absolute; inset-inline: 0; top: 15px; height: 2px; background: #ddd; z-index: -1; }
.ab3-hist-line button { position: relative; display: inline-block; width: 70px; height: 35px; line-height: 35px; margin: 40px 35px 0; padding: 0; border: 0; background: transparent; font-family: inherit; font-size: 16px; font-weight: 700; color: #101010; cursor: pointer; text-indent: 0; border-radius: 0; }
.ab3-hist-line button::before { content: ""; position: absolute; top: -30px; inset-inline-start: 50%; width: 12px; height: 12px; margin-inline-start: -7px; border-radius: 50%; background: #101010; }
.ab3-hist-line button.is-on { background: #fff; color: var(--accent); box-shadow: 0 20px 30px rgba(0, 0, 0, .15); }
.ab3-hist-line button.is-on::before { background: var(--accent); }
.ab3-hist-line button.is-on::after { content: ""; position: absolute; top: -34px; inset-inline-start: 44%; width: 20px; height: 20px; margin-inline-start: -7px; border-radius: 50%; border: 1px solid var(--accent); }
@media (max-width: 900px) {
    .ab3-hist { padding: 60px 0; min-height: 0; }
    .ab3-hist-head h2 { margin-bottom: 40px; font-size: 28px; }
    .ab3-hist-item { flex-direction: column; }
    .ab3-hist-img, .ab3-hist-content { width: 100%; }
    .ab3-hist-img { aspect-ratio: 3 / 2; }
    .ab3-hist-content { padding: 26px 22px; }
    .ab3-hist-content h3 { font-size: 26px; }
    .ab3-hist-line button { margin-inline: 8px; width: 60px; }
}

/* the light / dark button of the header: it shows the icon of the theme it switches to */
.nh-btn#themeSwitch .thm-sun { display: none; }
:root[data-theme="dark"] .nh-btn#themeSwitch .thm-moon { display: none; }
:root[data-theme="dark"] .nh-btn#themeSwitch .thm-sun { display: inline; }
/* B2B: tabs on the card (request an offer / join as a business) */
.b2b-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2, rgba(0, 0, 0, 0.03));
}
.b2b-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-2);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.b2b-tab.is-on {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 3px 10px rgba(52, 122, 34, 0.25);
}
.b2b-panel[hidden] {
    display: none;
}
.b2b-hint {
    color: var(--ink-2);
}
@media (max-width: 560px) {
    .b2b-tab {
        font-size: 0.85rem;
    }
}
/* B2B join: password rules, red until met, then green */
.b2b-rules {
    display: grid;
    gap: 4px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
.b2b-rules[hidden] {
    display: none;
}
.b2b-rules li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #c62828;
    font-size: 0.82rem;
    font-weight: 600;
}
.b2b-rules li.is-ok {
    color: #2e7d32;
}
/* quick view: the details (category to warranty) sit in one bordered box */
.qv-info {
    border-inline-start: 0;
    padding-inline-start: 0;
}
.qv-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border: 1.5px solid var(--accent);
    border-radius: 12px;
}
.qv-box .qv-specs {
    margin-bottom: 0;
}
.qv-box .qv-specs > div:last-child {
    padding-bottom: 0;
}
@media (min-width: 761px) {
    .qv-info {
        padding-top: 30px;
    }
}
/* checkout: bank transfer option and the account details box */
.pm-badge.pm-bank {
    color: var(--accent);
    font-size: 1.2rem;
}
/* checkout payment options: all in one row (two for customers, three with bank transfer for business); they wrap on narrow screens */
.co-box .paym {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
/* online payment option: the logos (mada, Visa, Mastercard, Tabby, Tamara) sit on their own line under the text, in a white strip as wide as the logos */
.co-box .pm-opt.has-logos {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
}
.co-box .pm-opt.has-logos .pm-badge.pm-card {
    order: 3;
    grid-column: 1 / -1;
    justify-self: start;
    width: fit-content;
    padding: 8px 10px;
    gap: 6px;
}
.co-box .pm-opt.has-logos .pm-badge.pm-card img {
    width: 30px;
    height: 20px;
}
/* bank transfer: pending order badge and the upload-your-slip box */
.order-pending { background: #ffe9cc; color: #9a5a00; }
.slip-box {
    margin: 16px 0;
    padding: 16px 18px;
    border: 1.5px solid #e0a030;
    border-radius: 12px;
    background: #fff8ea;
    color: #5c4300;
    text-align: start;
}
.slip-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.02rem;
    color: #9a5a00;
}
.slip-box p {
    margin: 8px 0;
    font-size: 0.92rem;
}
.slip-bank {
    display: grid;
    gap: 4px;
    margin: 8px 0;
}
.slip-bank > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
}
.slip-bank dt { font-weight: 600; }
.slip-bank dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.slip-done { color: #2e7d32; font-weight: 600; }
.slip-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.slip-form .sm-btn {
    align-self: flex-start;
}
.slip-error { color: #c62828; font-weight: 600; }
/* address form: the city search box (results come from the server, 30 at a time) */
.city-combo {
    position: relative;
}
.city-list {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 4px);
    z-index: 30;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(15, 42, 24, 0.14);
}
.city-list[hidden] {
    display: none;
}
.city-list button {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    background: transparent;
    text-align: start;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.city-list button:hover,
.city-list button:focus {
    background: var(--accent-soft);
}
.city-none {
    margin: 0;
    padding: 10px 12px;
    color: var(--ink-2);
}

/* the car finder under "Shop now": a soft green panel with big line-art parts, and one white card: Make · Model · Year · button in a row */

.ss-price {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.ss-price .sar {
    height: 0.85em;
    width: auto;
}

/* finder dropdowns (Model / Year / Part): the same list as the Make dropdown */
.bdd-native { position: absolute !important; inset: auto 0 0 0; width: 100% !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
.bdd-sel .bdd-list { min-width: max(100%, 180px); max-width: calc(100vw - 24px); }
.bdd-btn.is-bad, .bdd-btn.is-invalid { border-color: #b3261e; }
.bdd-btn:disabled { opacity: .55; cursor: not-allowed; }

/* "Sort by" on a category: the label and the dropdown stay on one line */
.cf-sort > span { flex: none; white-space: nowrap; }
.cf-sort .bdd-sel { width: auto !important; min-width: 150px; flex: 0 1 auto; display: block !important; }
.cf-sort .bdd-btn { height: 42px !important; border: 0; background: transparent; padding-inline: 0 10px; font-weight: 700; font-size: .9rem; }
.cf-sort .bdd-btn:hover, .cf-sort .bdd-btn[aria-expanded="true"] { box-shadow: none; }
.cf-sort .bdd-list { inset-inline: auto 0; min-width: 190px; }

/* checkout, cart and part details: normal text is bold (set by partials/bold-text.blade.php) */
.fw7 { font-weight: 700 !important; }

/* filters change the results in place: dim while loading, fade the new results in (no blink) */
.cf-layout .cf-content, .cf-layout .cf-side { transition: opacity .15s ease; }
.cf-layout.is-loading .cf-content, .cf-layout.is-loading .cf-side { opacity: .55; pointer-events: none; }
.cf-content.cf-fade { animation: cfFade .25s ease; }
@keyframes cfFade { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cf-content.cf-fade { animation: none; } }

/* the banner's arrows and dots, one design and one place on every slide: round white arrows either side of pill dots,
   bottom centre */
.ads:not(.ads-compact) .ad-nav { opacity: 1; top: auto; bottom: 36px; inset-inline-end: auto; inset-inline-start: 50%; width: clamp(30px, 3vw, 38px); height: clamp(30px, 3vw, 38px); background: #fff; color: #12240f; font-size: 1.1rem; box-shadow: 0 2px 8px rgba(15, 42, 24, .25); z-index: 3; }
.ads:not(.ads-compact) .ad-nav.prev { transform: translateX(calc(-50% - var(--dw, 100px) / 2 - 30px)); }
.ads:not(.ads-compact) .ad-nav.next { transform: translateX(calc(-50% + var(--dw, 100px) / 2 + 30px)); }
[dir="rtl"] .ads:not(.ads-compact) .ad-nav.prev { transform: translateX(calc(50% + var(--dw, 100px) / 2 + 30px)); }
[dir="rtl"] .ads:not(.ads-compact) .ad-nav.next { transform: translateX(calc(50% - var(--dw, 100px) / 2 - 30px)); }
.ads:not(.ads-compact) .ad-dots { bottom: calc(36px + clamp(30px, 3vw, 38px) / 2 - 3px); gap: 6px; z-index: 3; }
.ads:not(.ads-compact) .ad-dot { width: 12px; height: 6px; background: rgba(15, 42, 24, .5); box-shadow: 0 0 0 1px rgba(255, 255, 255, .55); }
.ads:not(.ads-compact) .ad-dot[aria-current="true"] { width: 36px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 42, 24, .3), 0 1px 4px rgba(0, 0, 0, .3); }
@media (max-width: 760px) { .ads:not(.ads-compact) .ad-dots { bottom: 26px; } }

/* car position (front / back / left ...) on a part card: small tag in the photo's bottom corner */
.pcard .pimg .pos-badge {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 3;
    padding: 3px 10px;
    border-start-end-radius: 10px;
    background: #1f3a2e;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
}

.catalog-promo { text-decoration: none; }

/* cart: "Move to wishlist" (green) and "Remove" (red) as small buttons */
.cart-links { gap: 8px; }
.cart-move, .cart-remove {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}
.cart-move { background: #2f6b35; border-color: #2f6b35; color: #fff; }
.cart-move:hover { background: #1f4a27; border-color: #1f4a27; color: #fff; }
.cart-remove, .cart-clear { background: #dc3545; border-color: #dc3545; color: #fff; }
.cart-remove:hover, .cart-clear:hover { background: #bb2d3b; border-color: #bb2d3b; color: #fff; }
.cart-move:active, .cart-remove:active { transform: translateY(1px); }

/* SweetAlert on the shop: its unused (hidden) inputs must stay hidden, whatever the site's own select styling says */
.swal2-popup .swal2-select,
.swal2-popup .bdd,
.swal2-popup .swal2-input,
.swal2-popup .swal2-textarea,
.swal2-popup .swal2-file {
    display: none !important;
}
.swal2-popup .swal2-input[style*="display: block"], .swal2-popup .swal2-textarea[style*="display: block"] { display: block !important; }

/* cart buttons: the same size (one width, one height, one line) on every screen */
.cart-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.cart-links form { display: flex; }
/* a guest has no "Move to wishlist": Remove takes the whole row */
.cart-links:has(> form:only-child) { grid-template-columns: 1fr; }
.cart-move, .cart-remove { width: 100%; justify-content: center; white-space: nowrap; min-height: 34px; }
@media (max-width: 900px) {
    .cart-actions { gap: 10px; }
    .cart-links { flex: 0 0 auto; width: 250px; max-width: 100%; margin-inline-start: auto; }
    .cart-move, .cart-remove { padding: 6px 8px; font-size: 0.72rem; gap: 4px; }
}

/* cart: the free-delivery progress line sits beside the page title */
.cart-top { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cart-top { align-items: stretch; }
.cart-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.cart-clear { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 14px; border: 1px solid; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; }
.cart-top-free { width: calc(100% - 340px - 28px); display: grid; gap: 8px; }
.cart-top-free .cart-free { padding: 10px 14px; border-radius: 12px; }
.cart-top-free .cart-free p { margin: 0 0 8px; font-size: 0.86rem; font-weight: 700; }
@media (max-width: 900px) { .cart-top-free { width: 100%; } }

/* a part that is out of stock turns red (not green) on hover */
.pcard.pcard-n.pcard-out:hover {
    background: linear-gradient(180deg, #fbdcdc 0%, #fdeeee 60%, #fff8f8 100%);
    border-color: #c62828;
    box-shadow: 0 8px 22px rgba(198, 40, 40, 0.14);
}
:root[data-theme="dark"] .pcard.pcard-n.pcard-out:hover {
    background: linear-gradient(180deg, #3d1f1f 0%, #2c1a1a 60%, #221616 100%);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .pcard.pcard-n.pcard-out:hover {
        background: linear-gradient(180deg, #3d1f1f 0%, #2c1a1a 60%, #221616 100%);
    }
}

/* checkout: the summary card with the payment methods right under it, both the same width */
.co-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; align-self: start; }
.co-side .cart-summary { position: static; }
.co-side .co-pay { padding: 18px; }
@media (max-width: 900px) {
    /* one column: payment methods come before the summary and its Place order button */
    .co-side { display: contents; }
    .co-main { order: 0; }
    .co-side .co-pay { order: 1; }
    .co-side .cart-summary { order: 2; }
}

/* account menu on a computer: "Sign out" has a red (danger) background */
@media (min-width: 901px) {
    .acc-side > form.acc-links button { background: var(--danger); color: #fff; font-weight: 700; }
    .acc-side > form.acc-links button i { color: #fff; }
    .acc-side > form.acc-links button:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }
}

/* position pills under the "Sort by" bar (front, front right, roof…) */
.cf-pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 4px; scrollbar-width: thin; }
.cf-pill { flex: none; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 0.88rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.cf-pill:hover { border-color: var(--accent); color: var(--accent); }
.cf-pill.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* spacing of the results header: the bar, the position pills and the filter chips sit close together (the column gap is 32px) */
.cf-content > .cf-bar { margin-bottom: 0; }
.cf-content > .cf-pills { margin: -18px 0 -6px; padding: 2px 0 6px; }
.cf-content > .cf-chips { margin: -18px 0 0; }

/* account sidebar: green icons and small animations (slide, icon pop, accent bar, soft entrance) */
.acc-links a, .acc-links button { position: relative; transition: background .2s ease, color .2s ease, transform .2s ease, padding .2s ease; }
.acc-links a::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 3px; height: 0; border-radius: 3px; background: var(--accent); transform: translateY(-50%); transition: height .22s ease; }
.acc-links a:hover::before, .acc-links a.on::before { height: 60%; }
.acc-links i { color: var(--accent); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), color .2s ease; }
.acc-links a:hover, .acc-links a:focus-visible { background: linear-gradient(90deg, var(--accent-soft), transparent); color: var(--accent); }
@media (min-width: 901px) { .acc-links a:hover, .acc-links a:focus-visible { padding-inline-start: 16px; } }
.acc-links a:hover i, .acc-links a:focus-visible i { transform: scale(1.22) rotate(-8deg); }
.acc-links a:active { transform: scale(.98); }
.acc-hello { transition: box-shadow .25s ease, transform .25s ease; }
.acc-hello:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(52, 122, 34, .14); }
.acc-side > form.acc-links button:hover { transform: translateY(-1px); }
.acc-side > form.acc-links button:hover i { transform: scale(1.18); }
@keyframes accIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
    .acc-side > * { animation: accIn .45s ease backwards; }
    [dir="rtl"] .acc-side > * { animation-name: accInRtl; }
    @keyframes accInRtl { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
    .acc-side > :nth-child(2) { animation-delay: .05s; }
    .acc-side > :nth-child(3) { animation-delay: .1s; }
    .acc-side > :nth-child(4) { animation-delay: .15s; }
    .acc-side > :nth-child(5) { animation-delay: .2s; }
    .acc-side > :nth-child(6) { animation-delay: .25s; }
    .acc-side > :nth-child(n+7) { animation-delay: .3s; }
}
@media (prefers-reduced-motion: reduce) {
    .acc-links a, .acc-links i, .acc-hello { transition: none; }
    .acc-links a:hover i { transform: none; }
}
/* the red "Sign out" keeps its white icon */
@media (min-width: 901px) { .acc-side > form.acc-links button i { color: #fff; } }

/* ---- account pages: the content that opens from the sidebar ---- */
.acc-head h1 { position: relative; padding-bottom: 8px; }
.acc-head h1::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--accent); transform-origin: left; }
[dir="rtl"] .acc-head h1::after { transform-origin: right; }
.acc-main .acc-card, .ord-card, .wcl-card, .pf-card, .addr-body { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.ord-card:hover, .wcl-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15, 42, 24, .14); border-color: rgba(52, 122, 34, .35); }
.pf-card:hover, .addr-body:hover { box-shadow: 0 8px 24px rgba(15, 42, 24, .1); border-color: rgba(52, 122, 34, .3); }
@keyframes accRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes accGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
    .acc-main > * { animation: accRise .5s ease backwards; }
    .acc-main > :nth-child(2) { animation-delay: .06s; }
    .acc-main > :nth-child(3) { animation-delay: .12s; }
    .acc-main > :nth-child(4) { animation-delay: .18s; }
    .acc-main > :nth-child(n+5) { animation-delay: .24s; }
    .acc-head h1::after { animation: accGrow .6s .25s ease backwards; }
    .wcl-list > *, .addr-grid > *, .ord-group .ord-card, .inv-list > * { animation: accRise .45s ease backwards; }
    .wcl-list > :nth-child(2), .addr-grid > :nth-child(2), .ord-group .ord-card:nth-of-type(2) { animation-delay: .08s; }
    .wcl-list > :nth-child(3), .addr-grid > :nth-child(3), .ord-group .ord-card:nth-of-type(3) { animation-delay: .16s; }
    .wcl-list > :nth-child(4), .addr-grid > :nth-child(4), .ord-group .ord-card:nth-of-type(4) { animation-delay: .24s; }
    .wcl-list > :nth-child(n+5), .addr-grid > :nth-child(n+5), .ord-group .ord-card:nth-of-type(n+5) { animation-delay: .3s; }
}
@media (prefers-reduced-motion: reduce) {
    .ord-card:hover, .wcl-card:hover { transform: none; }
}

/* ---- the account menu on tablets and phones: a smooth row of chips ---- */
@media (max-width: 900px) {
    .acc-side { scroll-snap-type: x proximity; scroll-padding-inline: 12px; -webkit-overflow-scrolling: touch; padding: 2px 2px 10px; margin-inline: -2px;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); }
    .acc-side > * { scroll-snap-align: start; flex: none; }
    .acc-links a::before { display: none; }
    .acc-links a:hover, .acc-links a:focus-visible { background: var(--accent-soft); }
    .acc-links a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
    .acc-links a.on i { color: #fff; }
    .acc-links a:hover i { transform: none; }
    .acc-links a { min-height: 40px; }
    .acc-main > *, .acc-main .acc-card { max-width: 100%; }
}
@media (max-width: 560px) {
    .home-in.acc-page { padding-top: 16px; gap: 14px; }
    .acc-head h1 { font-size: 1.35rem; }
    .acc-links a { padding: 8px 12px; font-size: 0.82rem; }
    .pf-card { padding: 18px 16px 20px; }
    .addr-wrap { padding: 14px; }
}

/* customer: cancel an order (account order page) */
.sm-btn.mo-cancel-btn { color: #dc3545; border-color: #f1c4bf; }
.sm-btn.mo-cancel-btn:hover { background: #fdeceb; color: #bb2d3b; }
.mo-cancel { border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(19, 36, 27, .28); }
.mo-cancel::backdrop { background: rgba(19, 36, 27, .45); }
.mo-cancel form { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.mo-cancel h3 { margin: 0; font-size: 18px; }
.mo-cancel-note { margin: 0; font-size: 13px; line-height: 1.6; color: #56655b; background: #f3f6f1; border-radius: 10px; padding: 10px 12px; }
.mo-cancel label { font-size: 13px; font-weight: 600; }
.mo-cancel select, .mo-cancel textarea { width: 100%; border: 1px solid #d5ddd2; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; }
.mo-cancel-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; flex-wrap: wrap; }
.sm-btn.mo-cancel-confirm { background: #dc3545; border-color: #dc3545; color: #fff; }
.sm-btn.mo-cancel-confirm:hover { background: #bb2d3b; border-color: #bb2d3b; }

/* footer store button without a link yet: "Coming soon" bubble on hover / focus */
.gf-stores .store-b[data-soon] { position: relative; }
.gf-stores .store-b[data-soon]::after {
    content: attr(data-soon);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, 4px);
    padding: 5px 10px;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.gf-stores .store-b[data-soon]:hover::after,
.gf-stores .store-b[data-soon]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* log in with: phone or email (both send a code) */

/* home car finder: its open make / model / year lists sit above the sections below (they were drawn behind them),
   but still under the sticky header */

/* about page: WhatsApp, phone and email boxes are the same size */
.ab3-contact .ab3-btn,
.ab3-contact .ab3-mail { align-self: stretch; box-sizing: border-box; min-height: 50px; }
.ab3-contact .ab3-mail { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border: 1.5px solid var(--ab3-ink); border-radius: 4px; color: var(--ab3-ink); font-size: 0.86rem; font-weight: 800; text-decoration: none; transition: background .2s, color .2s; }
.ab3-contact .ab3-mail:hover { background: var(--ab3-ink); color: #fff; }

/* navbar language: an icon, and a small EN / AR menu under it */
.nh-lang { position: relative; display: inline-flex; }
.nh-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 76px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(15, 30, 20, 0.18);
}
.nh-lang-menu[hidden] { display: none; }
.nh-lang-menu a {
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-align: center;
    text-decoration: none;
}
.nh-lang-menu a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.nh-lang-menu a.is-on { background: var(--accent); color: #fff; }

/* phone: the logo keeps its real shape; the tool buttons (B2B, About us, language) give way to icons */
@media (max-width: 760px) {
    .nh .logo { min-width: max-content; flex-shrink: 0; }
    .nh .logo img { width: auto; max-width: none; flex-shrink: 0; object-fit: contain; }
    .top-tools { min-width: 0; justify-content: flex-end; }
    .top-tools .nh-btn > span {
        position: absolute;
        width: 1px; height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* home: the car finder keeps its green pattern card; it sits right under the header, compact, so the finder,
   the banner and the categories are seen together at first glance */

/* the finder is exactly as wide as the banner below it */

/* finder: the labels above the dropdowns are shown again */

/* finder → banner: a small gap */

#storeView .ads:not(.ads-compact) .ads-in { padding-top: 6px; }

/* finder: category (after the model) and part (after the category) dropdowns */

/* finder heading: the sentence under the title */

/* home banner: with the finder above it and the categories below it, all three fit the first screen */
 /* room for the hover lift of the circles (the row clips what goes above it) */
@media (min-width: 761px) {
    #storeView .ads:not(.ads-compact) .ads-track {
        height: calc(100vh - var(--hero-top, 271px) - 130px);
        height: calc(100svh - var(--hero-top, 271px) - 130px);
        min-height: 300px;
    }
}

/* home: the help button hides while the categories bar is under it */
.fab-contact { transition: opacity .2s ease, transform .2s ease; }
.fab-contact.is-away { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }

/* Body Parts page: the sub-categories as outlined pills with their part count, in columns */
.sct-box { margin: 0 0 16px; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.sct-label { font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--accent-ink); margin: 0 0 10px 4px; }
.sct-pills { display: grid; grid-template-columns: repeat(var(--sct-n, 5), minmax(0, 1fr)); gap: 0 12px; align-items: start; }
.sct-col { min-width: 0; }
.sct-pill { break-inside: avoid; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 4px 5px 4px 14px; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 42, 24, .05); transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.sct-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sct-pill b { flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 800; transition: background .15s ease, color .15s ease; }
.sct-pill:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(46, 107, 31, .14); }
.sct-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* a sub-category with no parts yet stays in its place, only quieter */
.sct-pill.on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 10px rgba(46, 107, 31, .22); }
.sct-pill.on b { background: #fff; color: var(--accent); }
@media (max-width: 760px) { .sct-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; } .sct-pill { font-size: 12px; padding-left: 12px; } }

/* landing page only: the circles row stops before the chat button (bottom-right), and its arrows slide the rest, so the two never overlap */

/* phones / tablets: the finder stacks, so its fields and button take the full width (an earlier rule pushed them to the end) */

/* ================= home first screen: banner slider + glass finder over its bottom edge + category tiles ================= */
#storeView .hx { position: relative; }
#storeView .hx .ads:not(.ads-compact) .ads-in { max-width: none; padding: 0; margin: 0; }
#storeView .hx .ads:not(.ads-compact) .ads-track { border-radius: 0; }
#storeView .hx .ads:not(.ads-compact) .ad-slide img { border-radius: 0; }
@media (min-width: 761px) {
    #storeView .hx .ads:not(.ads-compact) .ads-track {
        /* the same height as the main branch's slider: the window minus 341px */
        height: calc(100vh - 341px);
        height: calc(100svh - 341px);
        min-height: 240px;
    }
}

/* the glass finder: its outline is cut by script (a notch above the tabs) */
.gx { position: relative; z-index: 3; margin: -84px clamp(16px, 3.2vw, 46px) 0; padding: 12px 20px 16px; }
.gx > * { position: relative; }
/* the glass is its own layer, so the shape can be cut without clipping the dropdown lists */
.gx > .gx-bg { position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); border-radius: 26px; }
.gx .gx-shape { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.gx-tabs { display: flex; gap: 10px; margin: 0 0 8px; }
.gx-tab { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 10px; background: rgba(255, 255, 255, .5); color: #12240f; font-size: .95rem; font-weight: 800; cursor: pointer; position: relative; transition: background .2s, color .2s; }
.gx-tab i { font-size: 1.15rem; }
.gx-tab.is-on { border-color: #2E6B1F; background: #2E6B1F; color: #fff; box-shadow: 0 4px 10px rgba(46, 107, 31, .3); }
.gx-tab.is-on::after { content: ""; position: absolute; bottom: -7px; inset-inline-start: 50%; margin-inline-start: -7px; border: 7px solid transparent; border-top-color: #2E6B1F; border-bottom: 0; }
.gx-panel[hidden] { display: none; }
.gx-head { margin: 0 0 8px 2px; }
.gx-head h2 { margin: 0; color: #1f4a14; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 800; line-height: 1.15; }
.gx-head p { margin: 2px 0 0; color: #3f5f35; font-size: .85rem; font-weight: 600; }
.gx-form { display: flex; align-items: flex-end; gap: 14px; }
.gx .f-row { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gx .f-row:has(#catField:not([hidden])) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gx .f-row:has(#partField:not([hidden])) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gx .field { min-width: 0; }
.gx .field > span { display: block; margin: 0 0 4px 2px; color: #12240f; font-size: .76rem; font-weight: 800; line-height: 1.2; }
.gx select, .gx .bdd-btn { width: 100%; height: 48px; border: 1px solid #dfe6e0; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); color: #12240f; font-weight: 700; }
.gx select { padding: 0 12px; font-size: .95rem; }
.gx select:disabled, .gx .bdd-btn:disabled { background: #f7f8f7; color: #6b776f; opacity: 1; }
.gx select:focus, .gx .bdd-btn[aria-expanded="true"] { border-color: #2E6B1F; box-shadow: 0 0 0 3px rgba(46, 107, 31, .15); outline: 0; }
.gx .f-act { display: block; flex: none; }
.gx .f-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px; border: 0; border-radius: 12px; background-color: #2E6B1F; background-image: linear-gradient(180deg, #388a22, #2E6B1F); color: #fff; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 14px rgba(46, 107, 31, .3); cursor: pointer; }
.gx .f-go:disabled { opacity: .6; cursor: not-allowed; }
.gx-pn { align-items: center; }
.gx-pn-in { flex: 1; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border: 1px solid #dfe6e0; border-radius: 12px; background: #fff; margin: 0; }
.gx-pn-in i { font-size: 1.3rem; color: #12240f; }
.gx-pn-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .98rem; font-weight: 700; color: #12240f; }
.gx-pn-in:focus-within { border-color: #2E6B1F; box-shadow: 0 0 0 3px rgba(46, 107, 31, .15); }

/* category tiles */
.cx { padding: 14px clamp(16px, 3.2vw, 46px) 0; }
.cx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.cx-head h2 { margin: 0; position: relative; padding-bottom: 6px; color: #1f4a14; font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 900; }
.cx-head h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 44px; height: 4px; border-radius: 3px; background: #2E6B1F; }
.cx-head a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.cx-head a:hover { color: var(--accent); }
[dir="rtl"] .cx-head a i { transform: scaleX(-1); }
.cx-wrap { position: relative; }
.cx-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.cx-row::-webkit-scrollbar { display: none; }
.cx-tile { flex: 0 0 calc((100% - 8 * 12px) / 9 * .8); min-width: 84px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 0 6px 8px; border: 1px solid transparent; border-radius: 16px; background: linear-gradient(180deg, #d9f0dc 0%, #eef8ef 55%, #f7fcf7 100%); color: var(--ink); text-decoration: none; scroll-snap-align: start; transition: border-color .2s; }
.cx-tile:hover { border-color: var(--accent); }
:root[data-theme="dark"] .cx-tile { background: linear-gradient(180deg, #1f3a26 0%, #182c1e 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cx-tile { background: linear-gradient(180deg, #1f3a26 0%, #182c1e 100%); } }
.cx-tile img { width: 78px; height: 62px; object-fit: contain; mix-blend-mode: multiply; }
.cx-tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 800; text-align: center; }
.cx-nav { position: absolute; top: 50%; margin-top: -22px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.cx-nav[hidden] { display: none; }
.cx-nav.prev { inset-inline-start: -10px; }
.cx-nav.next { inset-inline-end: -10px; }
[dir="rtl"] .cx-nav { transform: scaleX(-1); }

@media (max-width: 900px) {
    .gx-form { flex-direction: column; align-items: stretch; }
    .gx .f-row, .gx .f-row:has(#catField:not([hidden])), .gx .f-row:has(#partField:not([hidden])) { grid-template-columns: 1fr; }
    .gx .f-act, .gx .f-go { width: 100%; }
}
@media (max-width: 760px) {
    .gx { margin: -26px 12px 0; padding: 10px 12px 14px; }
    .gx-tab { flex: 1; justify-content: center; padding: 0 10px; font-size: .85rem; }
    .gx-tab i { display: none; }
    .cx { padding-inline: 12px; }
    .cx-tile { flex-basis: 22.4%; min-width: 77px; }
}
.gx-tab { white-space: nowrap; }
@media (max-width: 760px) { .gx-tab { font-size: .78rem; padding: 0 6px; } }

.gx .bdd-list { background: #fff; }
/* the categories line up with the sections below them */
/* categories and the four promises take the finder's side margins */
.cx { padding-inline: clamp(16px, 3.2vw, 46px); }
@media (max-width: 760px) { .cx { padding-inline: 12px; } }
/* the notch above the finder lets the slider's arrows and dots through (only the tabs and the panel take clicks) */
.gx { pointer-events: none; }
.gx-tab, .gx-panel { pointer-events: auto; }
/* slider arrows + dots sit above the finder that lies over the banner's bottom edge */
#storeView .hx .ads:not(.ads-compact) .ad-nav { bottom: 78px; }
#storeView .hx .ads:not(.ads-compact) .ad-dots { bottom: calc(78px + clamp(30px, 3vw, 38px) / 2 - 3px); }
@media (max-width: 760px) {
    #storeView .hx .ads:not(.ads-compact) .ad-dots { bottom: 44px; }
}
/* tablets: the whole banner shows (a fixed height would crop its text) */
@media (min-width: 761px) and (max-width: 1100px) {
    #storeView .hx .ads:not(.ads-compact) .ads-track { height: auto !important; aspect-ratio: 3 / 1 !important; min-height: 0; }
}
@media (min-width: 761px) and (max-width: 1100px) { .gx { margin-top: -46px; } }

/* the four promises (sizes as in the design sample) */
.fs { display: flex; align-items: center; margin: 18px clamp(16px, 3.2vw, 46px) 0; min-height: 64px; border-radius: 20px; background: linear-gradient(90deg, #eef7ef, #f6faf6); }
.fs-item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 6px 12px; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.3; text-align: center; }
.fs-item + .fs-item { border-inline-start: 1.5px solid #bcd3c0; }
.fs-ic { width: 40px; height: 40px; flex-shrink: 0; color: #2E6B1F; }
@media (max-width: 1100px) {
    .fs { flex-wrap: wrap; }
    .fs-item { flex: 1 1 50%; gap: 12px; font-size: 16px; padding: 10px 8px; }
    .fs-item + .fs-item { border-inline-start: 0; }
}
@media (max-width: 760px) { .fs-item { font-size: 14px; gap: 8px; } .fs-ic { width: 32px; height: 32px; } }
@media (max-width: 760px) { .fs { margin-inline: 12px; } }
/* the buttons keep their own height when the finder stacks (the base rule's flex-basis made the part-number one tall) */
.gx .f-go { flex: none; }
.gx-pn-in input { border: 0 !important; box-shadow: none !important; background: transparent !important; height: 100%; padding: 0; border-radius: 0; }

/* the active finder tab: a soft light sweeps across it, it lifts on hover, pops when chosen, and its icon nudges */
.gx-tab { transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.gx-tab:hover { transform: translateY(-2px); }
.gx-tab.is-on { background-image: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .34) 50%, transparent 65%); background-size: 280% 100%; background-repeat: no-repeat; background-position: 130% 0; animation: gxPop .35s ease, gxShine 3.6s ease-in-out 1s infinite; }
.gx-tab.is-on i { animation: gxNudge 3.6s ease-in-out 1s infinite; }
.gx-tab.is-on::after { animation: gxPoint 1.6s ease-in-out infinite; }
@keyframes gxShine { 0% { background-position: 130% 0; } 45%, 100% { background-position: -30% 0; } }
@keyframes gxPop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes gxNudge { 0%, 70%, 100% { transform: translateX(0); } 78% { transform: translateX(3px); } 86% { transform: translateX(-2px); } 94% { transform: translateX(1px); } }
@keyframes gxPoint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .gx-tab.is-on, .gx-tab.is-on i, .gx-tab.is-on::after { animation: none; } .gx-tab:hover { transform: none; } }
.gx-pn-in input, .gx-pn-in input:focus, .gx-pn-in input:focus-visible { outline: 0 !important; border: 0 !important; box-shadow: none !important; }

/* desktop: the finder lies fully over the slider's bottom (it takes no height of its own), so the slider can be taller
   and the categories and the four promises still fit the first screen */
@media (min-width: 1101px) {
    #storeView .hx .ads:not(.ads-compact) .ads-track {
        height: calc(100vh - 382px);
        height: calc(100svh - 382px);
    }
    .gx { position: absolute; left: clamp(16px, 3.2vw, 46px); right: clamp(16px, 3.2vw, 46px); bottom: 22px; margin: 0; }
    #storeView .hx .ads:not(.ads-compact) .ad-nav { bottom: 196px; }
    #storeView .hx .ads:not(.ads-compact) .ad-dots { bottom: calc(196px + clamp(30px, 3vw, 38px) / 2 - 3px); }
}

/* the finder's dropdowns: the site's own font (Arabic too), bold, and a bit bigger */
.gx select, .gx .bdd-btn, .gx .bdd-list, .gx .bdd-list li, .gx .bdd-list small, .gx .blogo-text, .gx .f-go, .gx .gx-pn-in input, .gx .gx-tab, .gx .field > span { font-family: var(--f-body); }
.gx select, .gx .bdd-btn { height: 54px; font-size: 1.08rem; font-weight: 700; }
.gx .gx-pn-in, .gx .f-go { height: 54px; }
.gx .gx-pn-in input { font-size: 1.08rem; font-weight: 700; }
.gx .bdd-n { font-weight: 700; }
.gx .bdd-list li { padding: 10px 12px; font-size: 1.08rem; font-weight: 700; }
.gx .bdd-list small { font-size: .9rem; font-weight: 600; }
.gx .bdd-list .blogo.xs { width: 54px; height: 36px; }
.gx .blogo-text { font-size: .95rem; font-weight: 800; }
.gx .field > span { font-size: .85rem; }

.stk { padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; margin: 12px 0; text-align: start; }
.stk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--accent-soft); }
.stk-head small { display: block; font-size: 12px; color: var(--ink-2); }
.stk-head strong { display: block; font-size: 20px; line-height: 1.35; color: var(--accent-ink); }
.stk-num button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.stk-num button:hover { border-color: var(--accent); }
.stk-num button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stk-note { margin: 0; padding: 10px 20px; background: #fff4d6; color: #6b4a00; font-size: 14px; font-weight: 600; }
.stk-steps { list-style: none; margin: 0; padding: 22px 8px 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stk-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 4px; }
.stk-steps li + li::before { content: ""; position: absolute; top: 20px; inset-inline-end: calc(50% + 22px); width: calc(100% - 44px); height: 3px; border-radius: 3px; background: var(--line); }
.stk-steps li.done + li.done::before { background: var(--accent); }
.stk-dot { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--surface); border: 2px solid var(--line); color: var(--ink-2); }
.stk-steps li.done .stk-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.stk-steps li.now .stk-dot { box-shadow: 0 0 0 6px var(--accent-soft); }
.stk-text b { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.stk-text small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stk-steps li.done .stk-text b { color: var(--ink); }
.stk-steps li.now .stk-text b { color: var(--accent-ink); font-weight: 800; }
@media (max-width: 640px) {
    .stk-head { padding: 14px 16px; }
    .stk-num { width: 100%; }
    .stk-num button { width: 100%; justify-content: space-between; }
    .stk-steps { display: block; padding: 16px; }
    .stk-steps li { flex-direction: row; align-items: center; gap: 14px; text-align: start; padding: 0; min-height: 66px; }
    .stk-steps li:last-child { min-height: 42px; }
    .stk-steps li { align-items: flex-start; }
    .stk-steps li + li::before { top: -21px; inset-inline-start: 20px; inset-inline-end: auto; width: 3px; height: 18px; }
    .stk-text { padding-top: 3px; }
    .stk-text b { font-size: 14px; }
}
.track-panel .track-head { margin-bottom: 4px; }
.track-panel .stk .track-steps { margin: 0; padding: 22px 8px 18px; }
.track-panel .track-sum { max-width: none; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; border: 0; border-radius: 0; }
.track-panel .track-sum > div { flex-direction: column; justify-content: flex-start; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.track-panel .track-sum dt { font-size: 12px; }
.track-panel .track-sum dd { text-align: start; font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.track-panel .mo-delivered { margin: 0 0 12px; }
.track-panel [hidden] { display: none !important; }
@media (max-width: 640px) { .track-panel .track-sum { grid-template-columns: minmax(0, 1fr); } }
