/*
Theme Name: Cửa hàng Tinbanxe
Description: Storefront theme for Tinbanxe verified showrooms.
Version: 1.0.0
Text Domain: cuahang
*/
:root { --ink:#082642; --blue:#1265e5; --orange:#ff684d; --muted:#657487; --line:#e5ebf2; --bg:#f7f9fc; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:#162437; font:15px/1.5 Arial,sans-serif; }
a { color:inherit; text-decoration:none; }
.wrap { width:min(1200px,calc(100% - 32px)); margin:auto; }
.site-header { height:82px; background:linear-gradient(115deg,#062440,#071524); color:#fff; }
.header-inner { height:100%; display:flex; align-items:center; justify-content:space-between; gap:32px; }
.brand,.footer-brand { color:#fff; font-size:22px; font-weight:800; letter-spacing:.4px; }
.brand span,.footer-brand span { color:var(--orange); }
.nav { display:flex; gap:30px; font-size:13px; font-weight:700; }
.nav a:first-child { color:#ff765e; }
.header-cta { border:1px solid #fff; border-radius:6px; padding:10px 15px; font-size:13px; font-weight:700; }
.hero { height:402px; position:relative; background:linear-gradient(90deg,rgba(2,18,35,.64),rgba(2,18,35,.12)),var(--hero-image,linear-gradient(120deg,#082b49,#0f5d93)) center/cover no-repeat; }
.hero-copy { max-width:540px; padding-top:112px; color:#fff; }
.hero h1 { margin:0 0 12px; font-size:42px; line-height:1.08; }
.hero p { max-width:480px; margin:0; font-size:17px; }
.search-panel { position:relative; display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin:-38px auto 54px; padding:16px; border-radius:9px; background:#fff; box-shadow:0 6px 24px #173b5b22; }
.search-panel select,.search-panel input { width:100%; height:52px; padding:0 12px; border:1px solid var(--line); border-radius:6px; color:#4b5969; background:#fff; }
.search-panel button { height:52px; border:0; border-radius:6px; background:var(--blue); color:#fff; font-weight:800; cursor:pointer; }
.section-title { margin:0 0 8px; color:var(--ink); font-size:27px; text-align:center; }
.accent { width:48px; height:2px; margin:0 auto 30px; background:var(--orange); }
.result-meta { display:flex; align-items:center; justify-content:space-between; margin:0 0 16px; color:var(--muted); }
.grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.vehicle { overflow:hidden; border:1px solid var(--line); border-radius:6px; background:#fff; box-shadow:0 2px 7px #1d3c5b10; }
.vehicle img { display:block; width:100%; aspect-ratio:1.42; object-fit:cover; background:#e8eef4; }
.vehicle-body { padding:12px; }
.vehicle h3 { min-height:38px; margin:0 0 7px; font-size:14px; line-height:1.35; }
.price { margin-bottom:7px; color:var(--blue); font-size:17px; font-weight:800; }
.spec { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); min-height:24px; color:#526174; font-size:11px; font-weight:700; line-height:1.3; }
.spec span { min-width:0; padding:0 4px; overflow:hidden; border-right:1px solid #dce4ed; text-align:center; white-space:nowrap; text-overflow:ellipsis; }
.spec span:first-child { padding-left:0; }.spec span:last-child { padding-right:0; border-right:0; }
.actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:12px; }
.actions .btn { width:100%; }
.vehicle-photo { position:relative; display:block; }
.sold-badge { position:absolute; top:10px; left:10px; padding:5px 11px; border-radius:4px; background:var(--orange); color:#fff; font-size:12px; font-weight:800; letter-spacing:.4px; box-shadow:0 2px 6px #1d3c5b33; }
.vehicle.is-sold .vehicle-photo img { filter:grayscale(1); opacity:.62; }
.vehicle.is-sold .price { color:var(--muted); text-decoration:line-through; }
.vehicle.is-sold .actions { grid-template-columns:1fr; }
/* Trang Giới thiệu / Liên hệ */
.page-hero { height:260px; }
.page-section { padding:34px 0 60px; }
.page-subtitle { margin:36px 0 16px; color:var(--ink); font-size:21px; }
.page-body { line-height:1.75; color:#334155; }
.page-body h2 { color:var(--ink); font-size:21px; margin:26px 0 12px; }
.page-body h3 { color:var(--ink); font-size:17px; margin:20px 0 10px; }
.page-body p { margin:0 0 14px; }
.page-body img { max-width:100%; height:auto; border-radius:6px; }
.page-body ul,.page-body ol { margin:0 0 14px; padding-left:22px; }
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; }
.gallery-grid img { display:block; width:100%; aspect-ratio:1.42; object-fit:cover; border-radius:6px; background:#e8eef4; }
.info-card { margin-top:30px; padding:22px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.info-card h2 { margin:0 0 14px; color:var(--ink); font-size:19px; }
.info-card p { margin:0 0 9px; color:#475569; }
.info-card a { color:var(--blue); }
.actions-inline { display:flex; flex-wrap:wrap; gap:9px; margin-top:16px; }
.actions-inline .btn { min-width:132px; }
.contact-grid { display:grid; grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr); gap:28px; align-items:start; }
.contact-grid .info-card { margin-top:0; }
.map-embed { overflow:hidden; border:1px solid var(--line); border-radius:8px; }
.map-embed iframe { display:block; width:100%; border:0; }
@media (max-width:760px){ .contact-grid { grid-template-columns:1fr; } .page-hero { height:190px; } }
.btn { display:inline-flex; align-items:center; justify-content:center; padding:9px 12px; border-radius:4px; font-size:12px; font-weight:700; }
.btn-primary { background:var(--blue); color:#fff; }
.btn-outline { border:1px solid var(--blue); color:var(--blue); }
.empty { grid-column:1/-1; padding:44px; border:1px dashed #b9c9d8; border-radius:8px; background:#fff; color:var(--muted); text-align:center; }
.benefits { margin-top:60px; background:linear-gradient(110deg,#082b49,#03172b); color:#fff; }
.benefit-inner { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; padding:30px 0; }
.benefit { display:flex; align-items:flex-start; gap:13px; padding:0 18px; border-right:1px solid #4c667b; }
.benefit:last-child { border:0; }
.benefit-icon { font-size:30px; }.benefit h3 { margin:0 0 5px; font-size:14px; }.benefit p { margin:0; color:#d2dce6; font-size:12px; }
.site-footer { padding:42px 0 22px; background:#03192e; color:#d4e0eb; }
.footer-grid { display:grid; grid-template-columns:1.3fr 1.6fr 1fr; gap:30px; }.footer-grid h3 { margin:0 0 12px; color:#fff; font-size:14px; }.footer-grid p { margin:6px 0; font-size:13px; }
.footer-bottom { margin-top:28px; padding-top:18px; border-top:1px solid #27445d; color:#9db0c2; font-size:12px; text-align:center; }
.notice { width:min(900px,calc(100% - 32px)); margin:22px auto 0; padding:12px 15px; border-radius:6px; background:#fff3df; color:#87530c; }
@media (max-width:850px) { .header-inner{gap:15px}.nav{gap:14px}.header-cta{display:none}.hero{height:330px}.hero-copy{padding-top:85px}.hero h1{font-size:32px}.search-panel{grid-template-columns:repeat(2,1fr);margin-top:-24px}.grid{grid-template-columns:repeat(2,1fr)}.benefit-inner,.footer-grid{grid-template-columns:1fr}.benefit{padding:0 0 18px;border-right:0;border-bottom:1px solid #4c667b}.nav{font-size:11px} }
@media (max-width:520px) { .wrap{width:min(100% - 22px,1200px)}.site-header{height:64px}.brand{font-size:17px}.nav a:not(:first-child){display:none}.hero{height:280px}.hero-copy{padding-top:65px}.hero h1{font-size:29px}.search-panel{grid-template-columns:1fr;margin-bottom:38px}.grid{grid-template-columns:1fr}.section-title{font-size:22px} }
.vehicle-breadcrumb{padding:28px 0 16px;color:#697586;font-size:14px}.vehicle-breadcrumb a{color:#1464dd}.vehicle-breadcrumb span{margin-right:8px}.vehicle-detail-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:36px;padding:16px 0 42px}.vehicle-main-image{width:100%;height:500px;object-fit:cover;border-radius:8px;background:#edf1f5}.vehicle-thumb-grid{display:flex;gap:10px;overflow:auto;margin-top:12px}.vehicle-thumb-grid a{display:block;flex:0 0 94px}.vehicle-thumb-grid img{display:block;width:94px;height:70px;object-fit:cover;border-radius:4px}.vehicle-detail-info{border:1px solid #e4e9f0;border-radius:8px;padding:28px;height:max-content}.vehicle-detail-info h1{margin:0;color:#102d4b;font-size:29px;line-height:1.35}.vehicle-detail-price{color:#1261de;font-size:28px;font-weight:800;margin:18px 0}.vehicle-detail-specs{display:flex;flex-wrap:wrap;gap:9px}.vehicle-detail-specs span{background:#f1f5f9;border-radius:4px;padding:8px 10px;color:#475569;font-size:14px}.vehicle-contact{margin-top:28px;padding-top:22px;border-top:1px solid #e5e7eb}.vehicle-contact h2,.vehicle-description h2{color:#102d4b;margin:0 0 14px;font-size:20px}.vehicle-contact p{color:#586778;line-height:1.6}.vehicle-description{padding:0 0 55px;max-width:920px;line-height:1.75;color:#334155}.vehicle-not-found{padding:72px 0;text-align:center}.vehicle-not-found h1{color:#102d4b}@media (max-width:700px){.vehicle-breadcrumb{padding:22px 18px 8px}.vehicle-detail-grid{grid-template-columns:1fr;gap:18px;padding:8px 18px 28px}.vehicle-main-image{height:280px}.vehicle-detail-info{padding:20px}.vehicle-detail-info h1{font-size:23px}.vehicle-description{padding:0 18px 38px}.vehicle-thumb-grid a{flex-basis:76px}.vehicle-thumb-grid img{width:76px;height:58px}}
