:root {
  color-scheme: light;
  --navy: #101f36;
  --muted: #52637b;
  --blue: #154ff0;
  --blue-dark: #1040c7;
  --line: #deE6f1;
  --soft: #f2f6fb;
  --paper: #fff;
  --lime: #d4fb59;
  --page: min(1320px, calc(100% - 80px));
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  background: #fff;
  line-height: 1.5;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box }
body { margin: 0; min-width: 300px }
body:has(.site-footer) { min-height: 100vh; display: flex; flex-direction: column }
main { flex: 1; outline: none }
[hidden] { display: none !important }
h1,h2,h3,p { margin: 0 }
a { color: inherit; text-decoration: none }
button,input,select,textarea { font: inherit }
button { cursor: pointer }
button:disabled { opacity: .58; cursor: wait }
img { display: block; max-width: 100% }
svg { display: block; flex-shrink: 0 }
:focus-visible { outline: 3px solid #2665ff; outline-offset: 4px }
.sr-only,.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.skip:focus { position: fixed; z-index: 10; top: 8px; left: 8px; background: #fff; padding: 12px }
.wrap { width: var(--page); margin-inline: auto }
.site-header { background: #fff; border-bottom: 1px solid #edf1f7; position: sticky; top: 0; z-index: 5 }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 20px }
.identity { display: inline-flex; align-items: center; gap: 10px; width: fit-content }
.identity img { width: 43px; height: 43px }
.identity b { font-size: 23px; line-height: 1; letter-spacing: -.065em; font-weight: 850; font-style: italic }
.identity b span { color: var(--blue) }
.main-nav { display: flex; align-items: center; height: 100%; gap: 35px; color: #465773; font-weight: 650; font-size: .94rem }
.main-nav a { height: 100%; display: flex; align-items: center; position: relative; white-space: nowrap }
.main-nav a:hover,.main-nav a[aria-current] { color: var(--blue) }
.main-nav a[aria-current]::after { position: absolute; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; content: ""; bottom: 0; inset-inline: 0 }
.header-search { justify-self: end; display: flex; width: min(100%,270px); align-items: center; background: #edf4ff; border: 1px solid #bed1f0; border-radius: 8px; padding-left: 12px; color: #5a6d86 }
.header-search input { border: 0; outline: 0; background: transparent; min-width: 0; flex: 1; padding: 9px 9px 9px 0; font-size: 14px; color: var(--navy) }
.header-search input:focus-visible { outline: 0 }
.header-search:focus-within { outline: 2px solid var(--blue) }
.header-search button { border: 0; padding: 7px 9px 7px 0; background: none; color: var(--blue); order: -1 }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 448px; display: flex; align-items: stretch; margin-block: 24px 0; border-radius: 16px; background: #b9deff }
.hero-art { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; z-index: -2 }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#dbeeff 0%,#d9edff 19%,#d6ebffed 33%,#d6ebff00 57%) }
.hero-content { padding: 48px 0 48px clamp(28px,5.05vw,78px); max-width: 54%; align-self: center }
.eyebrow { color: #1248bd; text-transform: uppercase; font-weight: 800; letter-spacing: .135em; font-size: .78rem; display: inline-flex; align-items: center; gap: 9px }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--blue) }
.hero h1 { margin-block: 13px 15px; font-size: clamp(3.15rem,6vw,6rem); line-height: .98; font-weight: 900; letter-spacing: -.075em; color: #0c2042 }
.hero h1 span { color: #154ff0; white-space: nowrap }
.hero p { color: #263e63; max-width: 32ch; font-size: 1.06rem }
.action { display: inline-flex; font-weight: 750; gap: 10px; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 7px; background: var(--blue); color: #fff; line-height: 1.3; font-size: .94rem; text-align: center }
.action:hover { background: var(--blue-dark); color: #fff }
.action-light { background: #fff; color: var(--navy); border-color: var(--line) }
.action-tint { background: #eaf1ff; color: var(--blue); border-color: #d4e2ff }
.hero .action { margin-top: 24px; background: var(--lime); color: #152821; padding-inline: 17px }
.hero .action:hover { background: #e4ff8d }
.section { padding-block: 44px 50px }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 22px }
.section-title h2,.subhead h1,.detail h1,.admin h1 { font-size: clamp(1.9rem,4vw,3rem); line-height: 1.11; letter-spacing: -.058em; font-weight: 830 }
.section-title p,.subhead p { margin-top: 6px; color: var(--muted) }
.text-link { color: var(--blue); font-weight: 750; width: fit-content; text-underline-offset: 5px; white-space: nowrap }
.text-link:hover { text-decoration: underline }
#hang-xe,#lien-he { scroll-margin-top: 80px }
.brands-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px }
.brand-card { background: #fff; border: 1px solid var(--line); display: flex; gap: 13px; align-items: center; min-height: 79px; border-radius: 10px; padding: 10px 14px; font-weight: 770; font-size: .98rem; transition: background .18s,border-color .18s }
.brand-card:hover { background: #edf4ff; border-color: #aac3ff }
.brand-mark { height: 50px; width: 53px; border-radius: 8px; background: #f3f6fa; display: grid; place-items: center; flex: 0 0 auto; color: #19253a; overflow: hidden }
.brand-mark svg { width: 37px; height: 37px }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 5px }
.brand-mark .wordmark { color: #283349; text-align: center; font-weight: 850; font-size: .58rem; letter-spacing: -.035em; padding: 3px; line-height: 1.01 }
.brand-mark .initials { color: var(--blue); font-weight: 860 }
.brand-card .brand-name { min-width: 0; overflow-wrap: anywhere }
.featured { background: #f3f7fd; border-top: 1px solid #e8eff9 }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; gap: 17px }
.product-card { background: #fff; border: 1px solid var(--line); overflow: hidden; border-radius: 11px; display: flex; flex-direction: column; min-width: 0; transition: border-color .19s, transform .19s; }
.product-card:hover { border-color: #9bb8ff; transform: translateY(-3px) }
.product-image { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; background: #e7ebf0; color: #7791b6 }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply }
.product-image:has(img[src^="/api/photo/"]) img { mix-blend-mode: normal }
.product-meta { padding: 15px 16px 17px; display: grid; gap: 4px }
.product-meta small,.tag { color: #134bd7; font-weight: 760; font-size: .85rem }
.product-meta h3 { font-size: 1.08rem; line-height: 1.25; letter-spacing: -.019em; overflow-wrap: anywhere }
.product-meta p { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere }
.product-meta .card-code,.record-code { font-size: .86rem; font-weight: 730; color: #1645a4 }
.availability { display: inline-flex; width: fit-content; max-width: 100%; color: #155745; background: #e8f7ee; border-radius: 5px; padding: 3px 7px; font-size: .86rem; font-weight: 750 }
.site-footer { background: #101f36; color: #d9e6fa; padding: 35px 0 22px }
.footer-main { display: flex; justify-content: space-between; gap: 22px }
.site-footer .identity { color: white; margin-bottom: 10px }
.site-footer .identity b span { color: #a7c8ff }
.site-footer a:hover { color: white; text-decoration: underline }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; padding-top: 17px; border-top: 1px solid #34435b; margin-top: 24px; font-size: .9rem }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px }
.footer-contact { max-width: 43ch }
.site-footer .footer-contact h2 { font-size: 1.02rem; margin-bottom: 5px }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 11px; color: var(--muted); font-size: .9rem; padding-block: 18px }
.crumb a:hover { color: var(--blue) }
.crumb span:last-child { color: var(--navy); font-weight: 650 }
.subhead { background: #eaf3ff; border-radius: 14px; padding: 30px; display: flex; gap: 17px; align-items: center }
.subhead .brand-mark { background: #fff; height: 68px; width: 68px }
.catalog-content { padding-block: 25px 56px }
.filters { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; padding-bottom: 22px }
.field { min-width: 0; display: grid; gap: 5px; color: #34445e; font-size: .91rem; font-weight: 680 }
.field input,.field select,.field textarea { width: 100%; padding: 10px 12px; min-height: 44px; border: 1px solid #cfd9e9; border-radius: 7px; background: #fff; color: var(--navy); font-size: 1rem; font-weight: 450 }
.field input[type=checkbox] { min-height: auto; accent-color: var(--blue); width: 19px; height: 19px; margin: 2px 0 }
.field textarea { min-height: 112px; resize: vertical }
.field select { appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23566781' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 16px no-repeat }
.filters .field:first-child { flex: 1 1 260px; max-width: 380px }
.results-count { color: var(--muted); margin-bottom: 13px }
.empty,.loading { padding: 32px; color: var(--muted); background: var(--soft); border-radius: 10px; text-align: center }
.empty .action { margin-top: 12px }
.detail { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(26px,5.5vw,82px); padding-block: 6px 36px; align-items: start }
.detail .product-image { border-radius: 13px; aspect-ratio: 1.19; }
.detail .product-image img { object-fit: contain }
.thumbs,.photo-list { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap }
.thumb { background: #edf1f6; border: 1px solid var(--line); padding: 0; border-radius: 7px; overflow: hidden; width: 76px; height: 68px }
.thumb[aria-pressed=true] { border: 2px solid var(--blue) }
.thumb img { width: 100%; height: 100%; object-fit: contain }
.detail h1 { margin-block: 5px 13px }
.detail p { color: var(--muted) }
.oem-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; background: #edf4ff; border: 1px solid #d8e7fe; border-radius: 9px; padding: 13px 14px; margin-top: 13px }
.oem-panel span { display: block; color: #36517c; font-size: .88rem; font-weight: 700 }
.oem-panel strong { color: #142d5d; font-size: 1.04rem; overflow-wrap: anywhere }
.oem-panel button { min-height: 38px; padding: 7px 11px }
.copy-status:not(:empty) { margin-top: 5px; font-size: .9rem }
.part-contact { padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 9px; background: #f7faff }
.part-contact h2 { font-size: 1.03rem; letter-spacing: -.01em }
.part-contact .contact-links { margin-top: 8px }
.part-description { margin-top: 15px; overflow-wrap: anywhere }
.sample-note { font-size: .9rem; color: #4d5f78; padding: 8px 11px; background: #edf3ff; border-radius: 6px; margin-top: 17px }
.specs { margin: 23px 0; border-top: 1px solid var(--line) }
.specs > div { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0,1.3fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line) }
.specs dt { color: var(--muted) }
.specs dd { font-weight: 650; margin: 0; overflow-wrap: anywhere }
.more { padding-block: 15px 52px }
.admin { padding-block: 32px 55px }
.admin-intro { color: var(--muted); margin-top: 6px }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 24px 16px }
.admin-tabs button,.table-actions button,.photo-remove { border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--navy); padding: 6px 11px; font-weight: 680; min-height: 37px }
.admin-tabs button[aria-pressed=true],.table-actions button:hover { color: var(--blue); border-color: #9fbafb; background: #eff4ff }
.admin-card { border: 1px solid var(--line); border-radius: 12px; padding: clamp(13px,2.3vw,28px); margin-bottom: 17px }
.admin-card .section-title { align-items: center; margin-bottom: 12px }
.admin-card h2 { font-size: 1.35rem; letter-spacing: -.025em }
.admin-filters { padding: 6px 0 12px }
.record-code { display: block; overflow-wrap: anywhere }
.duplicate-oem { background: #fff5df; color: #613e0a; border-radius: 7px; padding: 9px 12px }
.duplicate-oem ul { margin-block: 3px 2px; padding-left: 21px }
.duplicate-oem a { text-decoration: underline; text-underline-offset: 3px }
.table-scroll { overflow: auto }
.record-table { width: 100%; border-collapse: collapse; text-align: left }
.record-table th,.record-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; min-width: 93px }
.record-table th { color: var(--muted); font-size: .88rem }
.record-table td:first-child { font-weight: 700; overflow-wrap: anywhere }
.table-actions { display: flex; gap: 6px }
.record-table td:last-child { width: 1%; white-space: nowrap }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 820px }
.full { grid-column: 1 / -1 }
.check { display: flex; gap: 8px; align-items: center }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap }
.form-message { font-weight: 650; color: #13604a }
.form-message.error { color: #a7202b }
.upload-help { font-size: .88rem; color: var(--muted) }
.photo-tile { display: grid; gap: 5px }
.photo-tile img { width: 76px; height: 65px; object-fit: cover; border-radius: 6px; background: var(--soft) }
.photo-remove { min-height: 29px; padding: 2px 6px; font-size: .8rem }
@media (max-width:1050px) {
  :root { --page: calc(100% - 48px) }
  .main-nav { gap: 23px }
  .hero { min-height: 410px }
  .brand-card { gap: 7px; padding: 8px }
  .brand-mark { width: 40px; height: 42px }
  .brand-mark svg { width: 31px; height: 31px }
}
@media (max-width:770px) {
  :root { --page: calc(100% - 32px) }
  .header-inner { min-height: auto; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding-top: 10px }
  .identity img { width: 35px; height: 35px }
  .identity b { font-size: 20px }
  .header-search { grid-row: 1; grid-column: 2; width: min(100%,205px) }
  .main-nav { grid-row: 2; grid-column: 1 / -1; gap: clamp(15px,5vw,30px); height: 36px }
  #hang-xe,#lien-he { scroll-margin-top: 100px }
  .hero { margin-top: 13px; min-height: 390px }
  .hero-content { max-width: 65%; padding-left: 22px }
  .hero h1 { font-size: clamp(2.72rem,9vw,4.7rem) }
  .hero-art { object-position: 58% 64% }
  .hero::before { background: linear-gradient(90deg,#dbeeff 0%,#d9edfff0 27%,#d6ebffad 49%,#d6ebff00 78%) }
  .brands-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px }
  .section { padding-block: 32px }
  .detail { grid-template-columns: 1fr; gap: 22px }
  .detail .product-image { max-height: 440px }
  .section-title { align-items: flex-start }
}
@media (max-width:480px) {
  .hero { display: block; min-height: 352px; border-radius: 12px }
  .hero-art { top: auto; bottom: 0; height: 56%; object-position: 83% 64% }
  .hero::before { background: linear-gradient(180deg,#dceeff 0%,#dceeff 43%,#dceeffc7 50%,transparent 68%) }
  .hero-content { max-width: none; padding: 17px 18px 0 }
  .hero h1 { font-size: clamp(2.45rem,10.5vw,3.05rem); margin-block: 0 9px }
  .hero p { font-size: .94rem }
  .hero .action { margin-top: 11px; min-height: 39px }
  .hero .eyebrow { display: none }
  #hang-xe { padding-top: 23px }
  .header-search { width: 100%; padding-left: 8px }
  .header-search input { font-size: 16px; padding-right: 4px }
  .header-search button { padding-right: 5px }
  .section-title:has(.text-link) { flex-wrap: wrap }
  .brands-grid { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .brand-card { min-height: 60px; font-size: .93rem; padding: 7px 9px }
  .product-meta { padding: 11px }
  .product-meta h3 { font-size: 1rem }
  .footer-main { flex-direction: column }
  .form-grid { grid-template-columns: 1fr }
  .subhead { padding: 16px }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; scroll-behavior: auto !important } }

/* Xe cũ */
.car-card .product-image { position: relative }
.car-status { display: inline-flex; width: fit-content; border-radius: 5px; padding: 3px 8px; font-size: .82rem; font-weight: 760; background: #e8f7ee; color: #155745 }
.car-card .car-status { position: absolute; top: 10px; left: 10px; box-shadow: 0 1px 4px rgba(16,31,54,.12) }
.car-status-deposit { background: #fff4d6; color: #7a5200 }
.car-status-sold { background: #eceff3; color: #4b5563 }
.car-price { color: #c2410c !important; font-weight: 800; font-size: 1.02rem !important }
.car-price-big { font-size: 1.6rem !important; letter-spacing: -.02em; margin: 6px 0 2px }
.sell-box { margin: 28px 0 8px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: 12px; background: linear-gradient(100deg,#0f2545,#154ff0); color: #fff }
.sell-box h2 { font-size: 1.25rem; letter-spacing: -.02em }
.sell-box p { color: #d6e2ff; margin-top: 4px }
.sell-box .action { background: var(--lime); color: var(--navy) }
.subhead .brand-mark svg { color: var(--blue) }
.main-nav { overflow-x: auto; scrollbar-width: none }
.sell-box .action.action-tint { background: #fff; color: #0068ff }
