/* ຕະຫຼາດອາໄຫຼ່ລົດຢູ່ລາວ · Lao Auto Parts Market — design system shared by the buyer app, Seller Center and Admin (base taken from the owner's SokViak system).
   Colours and shapes follow the Quick Enterprise website: green, ink, the green→yellow→orange→red gradient,
   pill buttons, soft round cards. Big touch targets; keyboard focus always visible. */
/* Lao text is always Phetsarath OT (the owner's rule; the standard font of Lao government documents). The face only
   covers the Lao letters (unicode-range), so English, numbers and prices keep the phone's own system font. It comes
   first in every font list: a phone or Windows "Lao UI" font must never be picked for Lao. An installed copy is used
   when there is one, otherwise the bundled file is downloaded once (the service worker keeps it). */
@font-face { font-family: 'PS Lao'; src: local('Phetsarath OT'), local('PhetsarathOT'), url('/shared/fonts/PhetsarathOT.ttf') format('truetype'); font-weight: 400; font-display: swap; unicode-range: U+0E80-0EFF, U+200B; }
@font-face { font-family: 'PS Lao'; src: local('Phetsarath OT Bold'), local('PhetsarathOT-Bold'), url('/shared/fonts/PhetsarathOT-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; unicode-range: U+0E80-0EFF, U+200B; }

:root {
  --font: 'PS Lao', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'PS Lao', ui-monospace, Consolas, monospace;
  /* text, links and button fills use shades that pass WCAG AA (4.5:1) on white, the page and the soft tints — read outdoors in sun;
     the bright brand colours stay in the logo, the top bar and the gradients (--brand-green #1DA82A, --brand-orange #FA5E05) */
  --green: #15801F; --green-hi: #147A1E; --soft: #E9F8EA; --ink: #0E1036; --ink-2: #33475B; --muted: #5E6C7D;
  --brand-green: #1DA82A; --brand-orange: #FA5E05;
  --yellow: #FFD500; --orange: #BF4A06; --red: #D03437; --purple: #6A4CE0; --blue: #2F6FEB; --teal: #0E9F9A; --pink: #E0457B;
  --cream: #FFFBE6; --bg: #F6F8FB; --surface: #fff; --line: rgba(14, 16, 54, .12); --line-2: rgba(14, 16, 54, .2);
  --grad: linear-gradient(90deg, #21BD2E, #E8B800 45%, #FA5E05 75%, #D03437);
  --radius: 18px; --radius-s: 12px; --pill: 999px;
  --shadow: 0 24px 60px -24px rgba(14, 16, 54, .28); --shadow-s: 0 6px 18px -8px rgba(14, 16, 54, .25);
  --focus: #FFB020; --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
/* icons are small unless a component gives them a size */
svg { width: 20px; height: 20px; flex: none; vertical-align: middle; }
/* two-tone keyboard focus ring (amber inside, ink outside, as GOV.UK does): at least 3:1 on white, the green top bar and dark bands (WCAG 2.2) */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: 0 0 0 6px var(--ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 10px; top: 8px; z-index: 3000; background: var(--focus); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .center { text-align: center; } .right { text-align: right; }
.grow { flex: 1; } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .stack > * + * { margin-top: 12px; }
.num { font-variant-numeric: tabular-nums; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 10px; letter-spacing: -.01em; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 17px; }
p { margin: 0 0 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; font-size: 20px; text-decoration: none !important; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .en { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; color: var(--muted); line-height: 1; margin-top: 2px; }
.brand .lo { display: block; line-height: 1.05; }
/* the laopart.com word mark: "lao" in the text colour, "part" in the logo's rainbow, ".com" grey. On the green bars the
   rainbow would vanish, so there "part" is the logo's yellow. */
.wm { font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.wm-b { background: linear-gradient(90deg, #1DA82A, #E0A800 35%, #FA5E05 65%, #D03437); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.wm-c { font-weight: 600; font-size: .62em; letter-spacing: 0; color: #6b7688; }
.site-foot .wm-b, .auth .art .wm-b, #titlebar .wm-b { background-image: linear-gradient(90deg, #2ED13C, #FFC400 35%, #FF7A1A 65%, #FF5A5D); }
.site-foot .wm-c, .auth .art .wm-c, #titlebar .wm-c { color: #9aa0c8; }
.topbar .wm-b, .c-top .wm-b { background: none; color: #FFD84D; -webkit-text-fill-color: #FFD84D; }
.topbar .wm-c, .c-top .wm-c { color: rgba(255, 255, 255, .82); }
.brand .en.tg { letter-spacing: 0; font-size: 11.5px; font-weight: 700; }
.site-foot .brand .en.tg, .auth .art .brand .en.tg { color: #C9D2E3; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px; border-radius: var(--pill); border: 1.5px solid var(--line-2);
  background: #fff; color: var(--ink); font-weight: 650; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform .08s, box-shadow .15s, background .15s; }
.btn:hover { box-shadow: var(--shadow-s); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-hi); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.danger { color: var(--red); border-color: rgba(208, 52, 55, .45); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { min-height: 34px; padding: 5px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
/* text buttons look like links, but the finger target is at least 24px (WCAG 2.5.8): padding grows it, the negative margin keeps the layout */
.linkbtn { background: none; border: 0; padding: 4px 3px; margin: -4px -3px; min-width: 30px; color: var(--green); cursor: pointer; font-weight: 600; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.on { background: #FFF0F0; border-color: rgba(208, 52, 55, .4); color: var(--red); }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field > label, .label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 5px; }
.field .hint { display: block; color: var(--muted); font-size: 13px; margin: -3px 0 6px; }
.field .err { display: block; color: var(--red); font-weight: 650; font-size: 13px; margin-bottom: 5px; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--red); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], input[type=month], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-s); background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(33, 189, 46, .15); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin-bottom: 8px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-input { position: relative; }
.chip-input input { position: absolute; opacity: 0; }
.chip-input span { display: inline-block; padding: 7px 14px; border-radius: var(--pill); border: 1.5px solid var(--line-2); cursor: pointer; font-size: 14px; background: #fff; }
.chip-input input:checked + span { background: var(--soft); border-color: var(--green); color: #12701b; font-weight: 650; }
.chip-input input:focus-visible + span { outline: 3px solid var(--focus); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.error-box { border: 1.5px solid rgba(208, 52, 55, .5); background: #FFF3F3; color: #8c1d20; padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 14px; font-weight: 600; }
.ok-box { border: 1.5px solid rgba(33, 189, 46, .5); background: var(--soft); color: #11621a; padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 14px; font-weight: 600; }
.info-box { border: 1.5px solid rgba(232, 184, 0, .6); background: var(--cream); color: #6b5300; padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 14px; }

/* ---------- cards, badges ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.pad-s { padding: 14px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 700; background: #EEF1F5; color: var(--ink-2); white-space: nowrap; }
.badge.green { background: var(--soft); color: #12701b; } .badge.red { background: #FFE9E9; color: #b0262a; } .badge.orange { background: #FFF0E5; color: #b84400; }
.badge.yellow { background: var(--cream); color: #7a5f00; } .badge.purple { background: #EFEBFF; color: #4f34c4; } .badge.blue { background: #E8F0FF; color: #1d55c8; } .badge.ink { background: var(--ink); color: #fff; }
.badge.urgent { background: var(--red); color: #fff; } .badge.featured { background: var(--grad); color: #fff; }
.avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 20px; flex: none; overflow: hidden; background: var(--green); border: 1px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.avatar.round { border-radius: 50%; }
.avatar.lg { width: 84px; height: 84px; font-size: 32px; border-radius: 20px; }
.avatar.sm { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty svg { width: 54px; height: 54px; margin: 0 auto 8px; opacity: .6; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--soft); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- job card ---------- */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.job-card { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.job-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.job-card.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.job-card .top { display: flex; gap: 12px; align-items: center; padding-right: 84px; }
.job-card .co { font-size: 13.5px; color: var(--ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-card .when { font-size: 12px; color: var(--muted); }
.job-card .title { font-size: 17px; font-weight: 800; line-height: 1.35; margin: 0; }
.job-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--ink-2); }
.job-card .meta span { display: inline-flex; gap: 5px; align-items: center; }
.job-card .meta svg { width: 16px; height: 16px; opacity: .75; }
.job-card .salary { font-weight: 800; color: #12701b; }
.job-card .badges { position: absolute; top: 14px; right: 14px; display: flex; gap: 4px; flex-direction: column; align-items: flex-end; }
.job-row { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; color: var(--ink); text-decoration: none !important; }
.job-row:hover { box-shadow: var(--shadow-s); }
.job-row + .job-row { margin-top: 10px; }

/* ---------- category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.tile svg { width: 40px; height: 40px; }
.tile b { font-size: 14.5px; line-height: 1.35; }
.tile .n { font-size: 12.5px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.section.alt { background: #fff; }
.section.ink { background: var(--ink); color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }

/* ---------- toasts, dialogs ---------- */
#toasts { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 4000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--pill); box-shadow: var(--shadow); font-weight: 600; max-width: 90vw; }
.toast.err { background: var(--red); } .toast.ok { background: var(--green); }
.modal-back { position: fixed; inset: 0; background: rgba(14, 16, 54, .5); z-index: 3500; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius); padding: 22px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; box-shadow: var(--shadow); }
.modal.wide { max-width: 860px; }
.modal h2 { font-size: 20px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }

/* ---------- tables (apps) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #FAFBFD; white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; }

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { border-radius: var(--radius); padding: 16px; color: #fff; position: relative; overflow: hidden; }
.stat b { display: block; font-size: 28px; line-height: 1.1; font-weight: 800; }
.stat span { font-size: 13.5px; opacity: .92; }
.stat.green { background: linear-gradient(135deg, #15801F, #0f6e19); } .stat.orange { background: linear-gradient(135deg, #BF4A06, #A8262A); }
.stat.purple { background: linear-gradient(135deg, #6A4CE0, #4f34c4); } .stat.ink { background: linear-gradient(135deg, #2A2E6E, #0E1036); }
.stat.red { background: linear-gradient(135deg, #D03437, #A8262A); } .stat.teal { background: linear-gradient(135deg, #0A7A76, #075e5a); }
.stat.yellow { background: linear-gradient(135deg, #FFE14D, #E8B800); color: var(--ink); }
a.stat { text-decoration: none !important; }

/* ---------- progress ---------- */
.progress { height: 10px; border-radius: var(--pill); background: #E9EDF2; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: var(--pill); }

/* ---------- "sell with us" guide ---------- */
.guide-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: step; }
.guide-steps li { counter-increment: step; position: relative; padding-left: 52px; }
.guide-steps li::before { content: counter(step); position: absolute; left: 14px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
details.card summary { cursor: pointer; list-style-position: inside; }

/* ---------- compare: same part number, other shops ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
table.compare th { text-align: left; font-size: 12px; color: var(--muted, #667); padding: 8px 10px; background: #F6F8FA; white-space: nowrap; }
table.compare td { padding: 8px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
table.compare tr.here td { background: #F1FBF2; }

/* ---------- address book: tap-to-use cards at checkout ---------- */
.addr-picks { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scroll-snap-type: x mandatory; }
.addr-pick { flex: 0 0 210px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 2px; text-align: left; background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 8px 10px; cursor: pointer; color: var(--ink); text-decoration: none; font: inherit; }
.addr-pick span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-pick.on { border-color: var(--green); box-shadow: 0 0 0 2px rgba(29, 168, 42, .18); }
.addr-pick.add { flex-basis: 120px; align-items: center; justify-content: center; border-style: dashed; }
.addr-card { display: flex; gap: 10px; align-items: flex-start; }
.addr-card .grow { min-width: 0; }

/* ---------- printable papers (quotation, invoice, receipt) ---------- */
.paper { background: #fff; color: #111; max-width: 800px; margin: 0 auto; padding: 36px 40px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.paper .ph { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-bottom: 3px solid transparent; border-image: var(--grad) 1; padding-bottom: 14px; margin-bottom: 18px; }
.paper .doc-title { text-align: right; }
.paper .doc-title h1 { font-size: 24px; margin: 0; }
.paper .doc-title .no { font-weight: 800; font-size: 16px; }
.paper .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.paper .parties h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #555; }
.paper table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.paper th { background: #F2F4F7; text-align: left; padding: 8px; font-size: 12.5px; border: 1px solid #d9dde3; }
.paper td { padding: 8px; border: 1px solid #d9dde3; vertical-align: top; }
.paper td.num, .paper th.num { text-align: right; white-space: nowrap; }
.paper .totals { margin-left: auto; width: 320px; max-width: 100%; }
.paper .totals td { border: 0; border-bottom: 1px solid #e3e6ea; }
.paper .totals tr.grand td { font-weight: 800; font-size: 16px; border-bottom: 3px double #333; }
.paper .words { font-style: italic; margin: 6px 0 14px; }
.paper .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 46px; text-align: center; }
.paper .sign div { border-top: 1px dotted #777; padding-top: 6px; }
.paper .stamp { display: inline-block; border: 3px solid var(--green); color: var(--green); font-weight: 900; font-size: 22px; padding: 4px 16px; border-radius: 10px; transform: rotate(-8deg); letter-spacing: .1em; }
.paper .stamp.red { border-color: var(--red); color: var(--red); }
@media (max-width: 640px) {
  .paper { padding: 16px 12px; font-size: 13px; }
  .paper .ph { flex-direction: column; } .paper .doc-title { text-align: left; } .paper .doc-title h1 { font-size: 20px; }
  .paper .parties { grid-template-columns: 1fr; gap: 10px; }
  .paper table { display: block; overflow-x: auto; }
  .paper .totals { display: table; width: 100%; }
  .modal { padding: 16px 12px; }
}
.paper-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }

@media print {
  body { background: #fff !important; }
  body.printing > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  .paper { border: 0; padding: 0; max-width: none; }
  .no-print { display: none !important; }
  @page { size: A4; margin: 14mm; }
}
#print-area { display: none; }

/* ================= public website ================= */
.site-head { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a { color: var(--ink); font-weight: 650; padding: 8px 11px; border-radius: var(--pill); text-decoration: none; white-space: nowrap; font-size: 14.5px; }
.site-nav a:hover, .site-nav a.on { background: var(--soft); color: #12701b; }
.head-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.lang-btn { border: 1px solid var(--line-2); background: #fff; border-radius: var(--pill); padding: 6px 12px; cursor: pointer; font-weight: 700; font-size: 13px; }
.menu-btn { display: none; }
@media (max-width: 1180px) {
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .menu-btn { display: inline-grid; }
  .head-actions .hide-m { display: none; }
}

/* hero with the search box */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 400px at 85% -10%, #FFF3B0 0, transparent 60%), radial-gradient(900px 400px at 0% 110%, #DDF7E0 0, transparent 60%), #fff; padding: 40px 0 34px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.15; margin-bottom: 10px; }
.hero .lead { font-size: 17px; color: var(--ink-2); max-width: 680px; }
.searchbox { margin-top: 20px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 10px; display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 8px; border: 1px solid var(--line); }
.searchbox input, .searchbox select { border: 0; background: var(--bg); min-height: 52px; }
.searchbox .btn { min-height: 52px; padding: 0 28px; font-size: 16px; }
@media (max-width: 760px) { .searchbox { grid-template-columns: 1fr; } }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; }
.hero-stats b { font-size: 24px; display: block; line-height: 1.1; }
.hero-stats span { color: var(--muted); font-size: 13.5px; }

/* coloured slides */
.slides { position: relative; border-radius: 26px; overflow: hidden; min-height: 210px; }
.slide { position: absolute; inset: 0; padding: 30px 34px; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 8px; opacity: 0; transition: opacity .6s; background-size: cover; background-position: center; }
.slide.on { opacity: 1; position: relative; }
.slide h3 { font-size: clamp(20px, 3vw, 30px); margin: 0; max-width: 640px; }
.slide p { max-width: 640px; opacity: .95; margin: 0 0 8px; }
.slide .btn { align-self: flex-start; background: #fff; color: var(--ink); border-color: #fff; }
.slide.blue { background-image: linear-gradient(120deg, #0E1036, #2F6FEB); } .slide.green { background-image: linear-gradient(120deg, #128a1d, #21BD2E 60%, #9ACD1C); }
.slide.orange { background-image: linear-gradient(120deg, #D03437, #FA5E05 55%, #FFB000); } .slide.purple { background-image: linear-gradient(120deg, #3a1fa8, #6A4CE0 60%, #B07CFF); }
.slide.pink { background-image: linear-gradient(120deg, #a3195b, #E0457B); } .slide.teal { background-image: linear-gradient(120deg, #075e5a, #0E9F9A 60%, #21C7BF); }
.slide.red { background-image: linear-gradient(120deg, #8c1d20, #D03437); }
.slide::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; border: 46px solid rgba(255, 255, 255, .12); pointer-events: none; }
.dots { position: absolute; bottom: 12px; right: 18px; display: flex; gap: 6px; z-index: 2; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; padding: 0; }
.dots button.on { background: #fff; width: 26px; border-radius: 6px; }

/* search page */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.filters { position: sticky; top: 84px; }
.filters h3 { font-size: 14px; margin: 16px 0 8px; }
.filters h3:first-child { margin-top: 0; }
@media (max-width: 900px) { .search-layout { grid-template-columns: 1fr; } .filters { position: static; } .filters.collapsed .fbody { display: none; } }
.pager { display: flex; gap: 6px; justify-content: center; margin: 22px 0; flex-wrap: wrap; }

/* job page */
.job-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.job-layout > * { min-width: 0; }   /* a wide table scrolls inside its column instead of pushing the side box off screen */
@media (max-width: 900px) { .job-layout { grid-template-columns: 1fr; } }
.job-head { display: flex; gap: 16px; align-items: flex-start; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 16px 0; }
.fact { background: var(--bg); border-radius: var(--radius-s); padding: 10px 12px; }
.fact small { display: block; color: var(--muted); font-size: 12px; }
.fact b { font-size: 14.5px; }
.prose { white-space: pre-line; }
.apply-bar { position: sticky; top: 84px; }

/* posts */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; transition: box-shadow .15s; }
.post-card:hover { box-shadow: var(--shadow); }
.post-card .cover { aspect-ratio: 16 / 9; background: var(--grad); display: grid; place-items: center; color: #fff; overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .cover svg { width: 56px; height: 56px; opacity: .9; }
.post-card .body { padding: 14px 16px; }
.post-card .cover.k-event { background: linear-gradient(120deg, #6A4CE0, #E0457B); } .post-card .cover.k-tip { background: linear-gradient(120deg, #0E9F9A, #21BD2E); }
.post-card .cover.k-activity { background: linear-gradient(120deg, #FA5E05, #FFD500); } .post-card .cover.k-news { background: linear-gradient(120deg, #0E1036, #2F6FEB); }

/* footer */
.site-foot { background: var(--ink); color: #c9cde6; padding: 40px 0 90px; margin-top: 40px; }
.site-foot a { color: #fff; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-foot h4 { color: #fff; margin: 0 0 8px; }
.site-foot .brand { color: #fff; }
.site-foot .brand .en { color: #9aa0c8; }
.site-foot ul { list-style: none; padding: 0; margin: 0; } .site-foot li { margin-bottom: 6px; }
.site-foot .bar { height: 4px; background: var(--grad); border-radius: 4px; margin-bottom: 26px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

/* ================= apps (seeker, employer) ================= */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-bar { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--line); }
.app-bar .in { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 0 16px; max-width: 1280px; margin: 0 auto; }
.app-bar .who { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.app-bar .who .name { font-weight: 650; font-size: 14px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-body { flex: 1; display: grid; grid-template-columns: 240px 1fr; max-width: 1280px; width: 100%; margin: 0 auto; }
.side-nav { padding: 18px 10px; border-right: 1px solid var(--line); position: sticky; top: 62px; height: calc(100vh - 62px); overflow: auto; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-weight: 650; text-decoration: none; margin-bottom: 2px; position: relative; }
.side-nav a svg { width: 26px; height: 26px; flex: none; }
.side-nav a:hover { background: #F0F3F7; }
.side-nav a.on { background: var(--soft); color: #12701b; }
.side-nav .cnt, .tabbar .cnt { margin-left: auto; background: var(--red); color: #fff; border-radius: var(--pill); font-size: 11px; font-weight: 800; padding: 0 7px; line-height: 18px; }
.main { padding: 22px 22px 100px; min-width: 0; }
.page-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title h1 { font-size: 24px; margin: 0; }
.page-title .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tabbar { display: none; }
@media (max-width: 860px) {
  .app-body { grid-template-columns: 1fr; }
  .side-nav { display: none; }
  .main { padding: 16px 14px 100px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -16px rgba(14, 16, 54, .3); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 650; color: var(--muted); text-decoration: none; padding: 4px 2px; position: relative; border-radius: 10px; }
  .tabbar a svg { width: 26px; height: 26px; }
  .tabbar a.on { color: #12701b; background: var(--soft); }
  .tabbar .cnt { position: absolute; top: 0; right: 18%; margin: 0; }
  .app-bar .who .name { display: none; }
  .page-title h1 { font-size: 21px; }
}
/* the two big doors on the sign-in screens */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .art { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth .art::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid transparent; background: var(--grad) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .9; }
.auth .art > * { position: relative; z-index: 1; }
.auth .art::after { z-index: 0; right: -170px !important; bottom: -170px !important; opacity: .55 !important; }
.auth .art h1 { font-size: 36px; } .auth .art .brand { color: #fff; } .auth .art .brand .en { color: #9aa0c8; }
.auth .form { padding: 40px 24px; display: flex; align-items: center; justify-content: center; background: #fff; }
.auth .form > div { width: 100%; max-width: 440px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .art { padding: 28px 22px; } .auth .art h1 { font-size: 24px; } .auth .art::after { width: 220px; height: 220px; border-width: 40px; right: -80px; bottom: -90px; } }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 6px; border-radius: 4px; background: #E3E8EE; }
.steps i.on { background: var(--green); }
.list-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.list-card > .item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.list-card > .item:last-child { border-bottom: 0; }
.list-card > .item .t { font-weight: 700; }
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.pipeline .col { background: #EEF2F6; border-radius: 14px; padding: 10px; min-height: 120px; }
.pipeline .col h4 { margin: 0 0 8px; font-size: 13px; display: flex; justify-content: space-between; }
.pipeline .appl { background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 8px; border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.pipeline .appl:hover { box-shadow: var(--shadow-s); }
.install-tip { display: flex; gap: 12px; align-items: center; background: var(--cream); border: 1px solid rgba(232, 184, 0, .5); border-radius: var(--radius-s); padding: 10px 14px; margin-bottom: 16px; }
.install-tip svg { width: 30px; height: 30px; flex: none; }
.price-big { font-size: 34px; font-weight: 900; line-height: 1.1; }

/* ================= Lao Auto Parts Market additions ================= */
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .parts-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }
.part-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.part-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.part-card .pic { aspect-ratio: 1 / 1; background: linear-gradient(135deg, #F1F4F8, #E6EBF1); display: grid; place-items: center; overflow: hidden; }
.part-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.part-card .pic svg { width: 56px; height: 56px; opacity: .4; }
.part-card .body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.part-card .title { font-weight: 650; font-size: 14px; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.part-card .pn { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.part-card .price { font-size: 17px; font-weight: 900; color: #D03437; margin-top: auto; }
.part-card .price s { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.part-card .shop { font-size: 12px; color: var(--ink-2); display: flex; gap: 4px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.part-card .shop svg, .part-card .tiny svg { width: 13px; height: 13px; opacity: .7; }
.part-card .tags { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.part-card .oos { position: absolute; inset: 0; background: rgba(255, 255, 255, .55); }
.vbadge { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--green); color: #fff; font-size: 10px; font-weight: 900; }
.stars { color: #A87E00; letter-spacing: 1px; white-space: nowrap; font-size: 13px; }
.stars .n { color: var(--muted); font-size: 11.5px; letter-spacing: 0; margin-left: 3px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #e3e7ee; font-size: 14px; }
.kv:last-child { border-bottom: 0; } .kv b { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* a name in the left column (part title, shop) wraps on a narrow phone instead of pushing the buttons off screen */
.kv > div:first-child { min-width: 0; } .kv > div:first-child > b { white-space: normal; overflow-wrap: anywhere; }
a.back { display: inline-block; padding: 5px 0; }
.mono { font-family: var(--mono); }

/* app shell: top search bar + bottom tab bar on phones (Shopee / Lazada pattern) */
.topbar { position: sticky; top: 0; z-index: 1000; background: linear-gradient(90deg, #0f6e19, #15801F); color: #fff; }
.topbar .in { max-width: var(--wrap); margin: 0 auto; padding: 8px 14px; display: flex; gap: 10px; align-items: center; }
.topbar .brand { color: #fff; } .topbar .brand .en { color: #fff; } .topbar .brand svg { width: 32px; height: 32px; }
.topbar .brand .lo { font-size: 17px; } .topbar .brand .en { letter-spacing: .08em; font-size: 9.5px; }
@media (max-width: 1100px) { .topbar .brand .lo { font-size: 15px; } .topbar .brand .en { display: none; } }
.topbar form { flex: 1; display: flex; background: #fff; border-radius: 12px; overflow: hidden; min-width: 0; }
.topbar .back-btn { font-size: 22px; font-weight: 700; line-height: 1; }
.courier-box { background: var(--bg); border-radius: 12px; padding: 12px 12px 4px; margin-bottom: 12px; }
.tile.tile-all { border-color: var(--green); background: var(--soft); }
.co-line { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; margin: 6px 0; }
.co-del { border: 0; background: var(--bg); color: var(--red); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-weight: 700; flex: none; }
.pdp-incart { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 10px; font-size: 14px; color: #12701b; font-weight: 600; }
.pdp-incart .linkbtn { color: var(--red); font-weight: 600; }
.co-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--bg); display: grid; place-items: center; }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; }
.topbar form input { border: 0 !important; min-height: 42px; box-shadow: none !important; border-radius: 0; color: var(--ink); background: #fff; }   /* the bar's white text colour must not reach the white search box */
.topbar form button { border: 0; background: var(--orange); color: #fff; padding: 0 16px; cursor: pointer; }
.topbar .ic { position: relative; color: #fff; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); border: 0; cursor: pointer; flex: none; }
.topbar .ic .cnt { position: absolute; top: -3px; right: -3px; background: #FFD500; color: var(--ink); font-size: 10.5px; font-weight: 900; border-radius: 99px; padding: 0 5px; line-height: 16px; }
.topbar .lang-btn { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.4); }
.carbar { background: #0E1036; color: #fff; }
.carbar .in { max-width: var(--wrap); margin: 0 auto; padding: 1px 14px; display: flex; gap: 8px; align-items: center; font-size: 13.5px; overflow-x: auto; white-space: nowrap; }
.carbar .in svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 400px) { .carbar .lbl { display: none; } } /* small phones: car name + "parts that fit" link stay on screen */
.carbar a, .carbar button { color: #FFD500; background: none; border: 0; cursor: pointer; font-weight: 700; padding: 5px 2px; }
.carbar a.home-link { display: inline-flex; align-items: center; gap: 5px; color: #fff; background: rgba(255,255,255,.14); border-radius: 99px; padding: 4px 12px 4px 9px; margin: 3px 0; text-decoration: none; }
.carbar a.home-link:hover { background: rgba(255,255,255,.24); }
.carbar .sep { width: 1px; height: 18px; background: rgba(255,255,255,.25); flex: none; margin: 0 4px; }
.mtabs { display: none; }
.buy-bar, .show-m-price { display: none; }
@media (max-width: 860px) {
  .topbar .brand .lo, .topbar .brand .en, .hide-m { display: none !important; }
  .mtabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #fff; border-top: 1px solid var(--line); padding: 4px 2px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -16px rgba(14,16,54,.3); }
  .mtabs a { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; font-weight: 650; color: var(--muted); text-decoration: none; padding: 4px 2px; position: relative; }
  .mtabs a svg { width: 24px; height: 24px; } .mtabs a.on { color: #12701b; }
  .mtabs .cnt { position: absolute; top: 0; right: 22%; background: var(--red); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 800; padding: 0 5px; line-height: 16px; }
  body { padding-bottom: 64px; }
  .site-foot { display: none; }
  /* product page: sticky buy bar above the tab bar; price shown under the title; a smaller box when there is no photo */
  .buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 999; background: #fff; border-top: 1px solid var(--line); padding: 8px 12px; gap: 8px; align-items: center; box-shadow: 0 -8px 20px -14px rgba(14,16,54,.35); }
  .buy-bar b { font-size: 18px; color: #D03437; } .buy-bar .btn { min-height: 46px; } .buy-bar .btn.orange { padding: 9px 22px; }
  .has-buy-bar { padding-bottom: 72px; }
  .show-m-price { display: block !important; margin: 4px 0 8px; }
  .gallery .main-pic:not(:has(img)) { aspect-ratio: 16 / 7; }
}
.vpick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 760px) { .vpick { grid-template-columns: 1fr 1fr; } }
.finder { background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.finder .tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; }
.finder .tabs button { flex: 1; border: 0; background: none; padding: 11px 12px; font-weight: 700; cursor: pointer; white-space: nowrap; display: flex; gap: 6px; align-items: center; justify-content: center; color: var(--ink-2); font-size: 13.5px; }
.finder .tabs button.on { background: #fff; color: #12701b; box-shadow: inset 0 -3px 0 var(--green); }
.finder .fb { padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.finder .list-card .item { flex-wrap: wrap; }
@media (max-width: 560px) {
  .finder .tabs button { flex-direction: column; gap: 2px; font-size: 11.5px; padding: 8px 4px; white-space: normal; text-align: center; line-height: 1.25; }
  .finder .list-card .item .grow { flex-basis: calc(100% - 48px); }
  .finder .list-card .item .btn { flex: 1; }
}
.finder select, .finder input { min-height: 46px; background: var(--bg); border-color: transparent; }
.fitbox { border-radius: 12px; padding: 10px 12px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.fitbox.fits { background: var(--soft); color: #12701b; } .fitbox.check { background: var(--cream); color: #7a5f00; } .fitbox.no { background: #FFE9E9; color: #b0262a; }
.gallery .main-pic { aspect-ratio: 1 / 1; border-radius: 16px; background: linear-gradient(135deg, #F1F4F8, #E6EBF1); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.gallery .main-pic img { width: 100%; height: 100%; object-fit: contain; background: #fff; } .gallery .main-pic svg { width: 110px; height: 110px; opacity: .35; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gallery .thumbs button { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #fff; }
.gallery .thumbs button.on { border-color: var(--green); } .gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { position: sticky; top: 120px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--pill); overflow: hidden; }
.qty button { width: 38px; height: 40px; border: 0; background: #fff; font-size: 18px; cursor: pointer; }
.qty input { width: 52px; text-align: center; border: 0 !important; min-height: 40px !important; padding: 0 !important; box-shadow: none !important; }
.fit-list { display: flex; flex-wrap: wrap; gap: 6px; } .fit-list span { background: var(--bg); border: 1px solid var(--line); border-radius: var(--pill); padding: 3px 10px; font-size: 12.5px; }
.cart-shop { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.cart-shop > h3 a { display: inline-block; padding: 4px 0; }
.cart-shop > h3 { margin: 0; padding: 7px 14px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.cart-line { display: grid; grid-template-columns: 60px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; } .cart-line.na { opacity: .55; }
.cart-line .thumb { width: 60px; height: 60px; border-radius: 10px; background: var(--bg); overflow: hidden; display: grid; place-items: center; } .cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 52px 1fr auto; row-gap: 6px; }
  .cart-line > :nth-child(2) { grid-column: 2 / 4; }
  .cart-line .qty { grid-column: 2; justify-self: start; } .cart-line .right { grid-column: 3; text-align: right; }
  .cart-line .thumb { width: 52px; height: 52px; }
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 12px 20px; font-size: 13.5px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.timeline li::after { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); } .timeline li:last-child::after { display: none; }
.order-steps { display: flex; gap: 4px; margin: 10px 0 14px; }
.order-steps div { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); }
.order-steps div i { display: block; height: 6px; border-radius: 4px; background: #E3E8EE; margin-bottom: 4px; }
.order-steps div.on { color: #12701b; font-weight: 700; } .order-steps div.on i { background: var(--green); }
.order-steps div.now i { background: repeating-linear-gradient(45deg, var(--green) 0 8px, #3cbf2e 8px 16px); }
.order-steps small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
@media (max-width: 560px) { .order-steps { gap: 3px; } .order-steps div { font-size: 10.5px; min-width: 0; overflow-wrap: anywhere; } .order-steps small { font-size: 9.5px; } }
.next-box { display: flex; gap: 10px; align-items: flex-start; background: #F2F7FF; border: 1px solid #CFE0FF; color: #1d3f7a; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14.5px; }
.next-box svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.row.nowrap { flex-wrap: nowrap; gap: 8px; } .row.nowrap > input { flex: 1; min-width: 0; }
.scan-btn { flex: none; min-height: 44px; }
#netbar { position: fixed; left: 0; right: 0; top: 0; z-index: 3000; background: #33475B; color: #fff; text-align: center; font-size: 13.5px; font-weight: 650; padding: 7px 12px calc(7px); }
#netbar.ok { background: var(--green); }
/* order list on phones: a long status badge wraps instead of squeezing the order number */
.list-card > .item > .right { max-width: 42%; flex: none; } .list-card > .item > .right .badge { white-space: normal; text-align: center; line-height: 1.25; }
.list-card > .item .t { overflow-wrap: anywhere; }
.qr-img { display: grid; justify-items: center; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.qr-img svg { width: min(240px, 70vw); height: auto; }
.sponsored { background: #FFFBEA; border: 1px solid #F2E2A0; border-radius: 14px; padding: 8px 10px 10px; margin-bottom: 12px; }
.sponsored .tiny { margin-bottom: 6px; }
.part-card { position: relative; }
.ad-tag { position: absolute; top: 8px; right: 8px; z-index: 2; background: #33475B; color: #fff; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 6px; }
/* parcel label: 100 × 150 mm thermal / A6; only the label prints */
.print-label { width: 100%; max-width: 380px; margin: 0 auto; border: 2px dashed #000; padding: 10px; background: #fff; color: #000; font-size: 14px; }
/* only while a label is on screen: other pages (receipts) print normally */
@page label { size: 100mm 150mm; margin: 4mm; }
@media print {
  body:has(.print-label) * { visibility: hidden !important; }
  body:has(.print-label) .print-label, body:has(.print-label) .print-label * { visibility: visible !important; }
  .print-label { page: label; position: fixed; left: 0; top: 0; max-width: none; border: 0; }
}
.shop-banner { height: 140px; border-radius: 16px; background: linear-gradient(120deg, #0E1036, #1DA82A 70%, #FFD500); overflow: hidden; }
.shop-banner img { width: 100%; height: 100%; object-fit: cover; }
.chat { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow: auto; padding: 8px; background: var(--bg); border-radius: 12px; }
.chat .m { max-width: 78%; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.chat .m.mine { align-self: flex-end; background: var(--soft); border-color: #b9e4bd; }
.chat .m small { display: block; color: var(--muted); font-size: 11px; }
.qrbox { font-family: var(--mono); font-size: 12px; word-break: break-all; background: #fff; border: 2px dashed var(--line-2); padding: 12px; border-radius: 12px; }
.breadcrumb { font-size: 12.5px; color: var(--muted); margin: 8px 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .breadcrumb a { color: var(--ink-2); display: inline-block; padding: 4px 0; }
.filters .show-m { display: none; }
@media (max-width: 900px) { .filters .show-m { display: inline-flex !important; margin-bottom: 8px; } }
.list-card > a.item:hover { background: #f6fbf6; }
[hidden] { display: none !important; }
/* product page header (Lazada / Shopee layout) */
.pdp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; padding: 20px; }
.pdp .gallery { position: sticky; top: 80px; }
.pdp-title { font-size: 24px; line-height: 1.35; margin: 0 0 8px; font-weight: 700; overflow-wrap: anywhere; }
.pdp-meta { gap: 10px; flex-wrap: wrap; align-items: center; } .pdp-meta a { text-decoration: none; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; background: #FFF6F6; border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.pdp-price b { font-size: 34px; font-weight: 900; color: #D03437; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pdp-price s { color: var(--muted); font-size: 15px; }
.pdp-off { background: #FFE5E8; color: #D0103A; font-weight: 800; font-size: 13px; border-radius: 6px; padding: 2px 7px; }
.pdp-codes { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.pdp-codes > div { border: 1.5px solid var(--line-2); border-radius: 10px; padding: 6px 12px; background: #fff; }
.pdp-codes small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; } .pdp-codes b { font-size: 15px; }
.pdp-rows { display: grid; gap: 14px; margin: 14px 0; }
.pdp-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
.pdp-row .k { color: var(--muted); font-size: 14px; padding-top: 4px; }
.pdp-line { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; font-size: 14.5px; }
.pdp-line > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--muted); }
.pdp-prov { width: auto; max-width: 100%; min-height: 34px; padding: 4px 30px 4px 10px; font-size: 14px; }
.pdp-buy { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 10px; align-items: stretch; margin-top: 8px; }
.pdp-buy .btn { min-height: 52px; font-size: 16px; font-weight: 800; justify-content: center; }
.pdp-now { background: #fff; color: var(--orange); border: 2px solid var(--orange); }
.pdp-cart { background: var(--orange); color: #fff; border: 2px solid var(--orange); }
.pdp-cart:hover { background: #cf4f0a; } .pdp-now:hover { background: #FFF4EC; }
.pdp-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; min-width: 56px; }
.pdp-icon svg { width: 24px; height: 24px; } .pdp-icon.on { color: #D0103A; } .pdp-icon.on svg { fill: currentColor; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 14px; padding: 12px; }
  .pdp .gallery { position: static; }
  .pdp-title { font-size: 19px; } .pdp-price b { font-size: 28px; }
  .pdp-row { grid-template-columns: 1fr; gap: 4px; } .pdp-row .k { padding: 0; font-weight: 700; color: var(--ink-2); }
  .pdp-buy { grid-template-columns: auto auto; justify-content: start; } .pdp-buy .btn { display: none; }   /* phones: the sticky bar at the bottom buys */
}
/* product reviews */
.rv-head { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; margin: 6px 0 10px; }
.rv-score { text-align: center; } .rv-score .big { font-size: 40px; font-weight: 900; line-height: 1; color: var(--ink); }
.rv-bars { display: grid; gap: 4px; }
.rv-bar { display: grid; grid-template-columns: 30px 1fr 30px; gap: 8px; align-items: center; background: none; border: 0; padding: 2px 0; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink-2); text-align: left; }
.rv-bar .track { height: 8px; background: #EEF1F5; border-radius: 99px; overflow: hidden; } .rv-bar .fill { display: block; height: 100%; background: #E8A000; border-radius: 99px; }
.rv-fit { background: #EAF7EB; color: #12701b; border-radius: 10px; padding: 8px 12px; font-size: 14px; margin-bottom: 10px; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { border: 1.5px solid var(--line-2); background: #fff; border-radius: var(--pill); padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; min-height: 34px; color: var(--ink-2); }
.chip.on { background: var(--soft); border-color: var(--green); color: #12701b; font-weight: 700; }
.rv-sort { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: 6px 0; }
.rv-sort select { width: auto; min-height: 36px; padding: 4px 30px 4px 10px; font-size: 13px; }
.rv-item { border-top: 1px solid var(--line); padding: 12px 0; }
.rv-item .row { flex-wrap: wrap; }
.rv-veh { font-size: 13px; color: var(--ink-2); margin-top: 4px; } .rv-veh svg { width: 15px; height: 15px; vertical-align: -3px; }
.fit-yes { color: #12701b; font-weight: 700; } .fit-no { color: var(--red); font-weight: 700; }
.rv-text { margin: 6px 0; white-space: pre-line; overflow-wrap: anywhere; }
.rv-pics { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.rv-pics button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.rv-pics img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
/* checkout: car + old-part photos */
.photo-req { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); }
.kpi b { font-size: 24px; font-weight: 650; line-height: 1.15; color: var(--ink); }
.chart-wrap { position: relative; margin-top: 8px; }
.chart-wrap rect:focus { outline: none; }
.chart-wrap rect:focus-visible { outline: 2px solid var(--focus); }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; pointer-events: none; white-space: nowrap; }
.chart-tip b { font-weight: 650; }
.qa-item { padding: 10px 0; border-top: 1px solid var(--line); }
.qa-q, .qa-a { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: start; }
.qa-q > b, .qa-a > b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; background: #e8f0fe; color: #1f4fbf; }
.qa-a { margin-top: 6px; }
.qa-a > b { background: #e9f7ec; color: #12701b; }
.qa-a.wait > b { background: #f2f2f2; color: #888; }
.qa-search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; margin: 6px 0 4px; }
.qa-search input { border: 0; flex: 1; min-width: 0; min-height: 40px; background: transparent; outline: none; font: inherit; }
.qa-search input:focus-visible { box-shadow: none; } .qa-search:focus-within { outline: 3px solid var(--focus); box-shadow: 0 0 0 6px var(--ink); }
.qa-ask { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.qa-ask select { min-height: 40px; flex: 1; min-width: 0; }
.voucher-box { padding: 8px 0 10px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
/* flash sale: the tag on cards, the strip on the product page, the home row */
.sale-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #FFE9E9; color: #b0262a; font-size: 12px; font-weight: 800; }
.flash-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: linear-gradient(90deg, #A8262A, #BF4A06); color: #fff; font-weight: 700; margin: 8px 0; }
.flash-strip .cd { font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .22); padding: 2px 8px; border-radius: 6px; }
.flash-strip .small { color: #fff; opacity: .92; font-weight: 600; }
.flash-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flash-head .cd { font-variant-numeric: tabular-nums; background: #D03437; color: #fff; padding: 2px 8px; border-radius: 6px; font-weight: 700; }
/* buy it again: the part card with when it was bought and a one-tap add underneath */
.again-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.again-item .part-card { flex: 1; }
.again-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
/* frequently bought together: thumbnails joined by "+", one tick line per part, total + "add all" */
.bt-pics { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.bt-pic { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.bt-pic img { width: 100%; height: 100%; object-fit: cover; }
.bt-plus { font-size: 20px; color: var(--muted, #6b7280); }
.bt-line { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.bt-line input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.bt-line a { display: inline-block; padding: 3px 0; }
.bt-price { white-space: nowrap; }
.bt-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; font-size: 17px; }
.bt-foot .btn { margin-left: auto; }
@media (max-width: 600px) { .bt-pic { width: 56px; height: 56px; } .bt-foot .btn { width: 100%; justify-content: center; } }
/* My garage rows: the vehicle, then its buttons (a row of their own on phones) */
.garage-item { flex-wrap: wrap; }
.garage-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 600px) { .garage-acts { width: 100%; } }
/* maintenance schedule rows: text left, "parts that fit" + "done" right; stacked under the text on phones */
.svc-item { align-items: flex-start; }
/* "Fitted it?" on a received order */
.svc-card { margin-bottom: 14px; border-left: 4px solid var(--green, #21BD2E); }
.svc-picks { display: grid; gap: 6px; margin: 8px 0 10px; }
.svc-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .svc-item { flex-wrap: wrap; } .svc-acts { width: 100%; justify-content: flex-start; } }
/* shop page: follow button above the reply / fit rates — right on wide screens, a left-aligned row on phones */
.shop-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
@media (max-width: 600px) { .shop-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; text-align: left; width: 100%; } .shop-side .btn { width: 100%; justify-content: center; } }
.voucher-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 10px; border: 1px dashed #FA5E05; border-radius: 8px; background: #fff6f0; color: #a83c00; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; margin: 4px 0; }
.voucher-chip svg { width: 15px; height: 15px; }
.voucher-in { gap: 6px; margin-top: 6px; }
.voucher-in input { flex: 1; min-width: 0; min-height: 40px; text-transform: uppercase; }
.code-check:empty { display: none; }
.code-check { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.code-check.ok { background: #eefaf0; border-color: #9bd3a4; }
.code-check.bad { background: #fff4f2; border-color: #f0a8a0; }
.code-check p { margin: 0 0 6px; }
.code-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; border-top: 1px solid rgba(0, 0, 0, .06); }
.photo-pick { margin: 8px 0; padding: 8px; border-radius: 10px; }
.photo-pick.need { background: #fff1f0; outline: 2px solid var(--red); }
.pic-x { position: relative; display: inline-block; }
.rv-pics .pic-x button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: #222; color: #fff; font-size: 13px; line-height: 24px; cursor: pointer; }
.rv-reply { background: #F6F8FB; border-left: 3px solid var(--green); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; margin: 6px 0; }
.linkbtn.on { color: #12701b; font-weight: 700; }
.star-input { display: inline-flex; gap: 2px; }
.star-input button { background: none; border: 0; font-size: 32px; line-height: 1; color: #E8A000; opacity: .25; cursor: pointer; padding: 2px; min-width: 40px; min-height: 40px; }
.star-input button.on { opacity: 1; }
.rv-form-line { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.rv-form-line .row { flex-wrap: wrap; align-items: center; }
.thumb-s { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
@media (max-width: 520px) { .rv-head { grid-template-columns: 96px 1fr; gap: 10px; } .rv-score .big { font-size: 32px; } }
