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: 400;
    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: 500;
    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: 500;
    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: 500;
    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: 500;
}
.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: 500;
}
.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: 500;
    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: 500;
    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: 500;
    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: 500;
    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: 500;
    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 {
    background: var(--hero);
    color: #fff;
}
.hero-in {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 16px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 48px;
    align-items: center;
}
.hero-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}
.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;
}
.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    line-height: 1.15;
    margin: 0;
}
.hero p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.75;
    color: #d3dfd0;
    max-width: 36em;
}
.finder {
    background: var(--surface);
    color: var(--ink);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow);
}
.f-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px;
    gap: 12px;
}
.finder select {
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--bg);
    color: var(--ink);
    width: 100%;
}
.finder select:disabled {
    opacity: 0.55;
}
.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: 500;
}
.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) {
    .hero-in {
        grid-template-columns: 1fr;
    }
    .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;
    }
    .hero-in {
        padding-top: 32px;
    }
    .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;
}
.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 search 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 1fr;
        grid-template-areas: "logo tools" "search search" "loc 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.76rem;
    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: 500;
    }
    .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: 400;
}
.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: 500;
    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: 500;
}
.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: 500;
    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: 500;
}
.pm-spec dd {
    margin: 0;
    font-weight: 500;
    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: 500;
    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: 500;
    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: 500;
}
.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;
}

#catalog .ctile {
    min-height: 260px;
}


/* ---------- 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: edge to edge, square corners, directly under the category bar ---------- */
.ads-in {
    padding: 0;
}
.ads-track {
    border-radius: 0;
}

/* ---------- 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: 500;
    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: 90px;
    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: 500;
}
/* 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: 90px;
}
.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: 500;
}
.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: 90px;
}
.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: 90px;
    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: 90px;
    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: #b23a2e;
    border-color: #b23a2e;
    color: #fff;
}
.add.js-cart-toggle.in-cart i {
    font-size: 14px;
}
.pd-add.js-cart-toggle.in-cart {
    background: transparent;
    color: #b23a2e;
    border: 1px solid #b23a2e;
}

/* 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: 500;
    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: 500;
    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: 400;
}
.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: 500;
}
.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: 500;
    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-pending { background: #fff4d6; color: #8a6100; }
.order-confirmed { background: #e3efff; color: #1d4f91; }
.order-processing { background: #ece6ff; color: #54389c; }
.order-shipped { background: #dff4f7; color: #11636e; }
.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;
    inset-block-end: 24px;
    inset-inline-end: 24px;
    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: 16px;
        inset-inline-end: 16px;
        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 {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--ink-2);
}
.co-earn i,
.co-points-note i {
    color: #d49b00;
}
.co-earn b {
    color: var(--accent);
}
.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; }
}
