:root {
  --bg: #ffffff;
  --surface: #f5f4f0;        /* xám xi măng rất nhạt */
  --line: #e8e5de;
  --ink: #17191c;            /* nhựa đường */
  --ink-2: #565c63;
  --ink-3: #8f949a;
  --asphalt: #1d2024;
  --yellow: #ffc20e;         /* vàng công trường */
  --yellow-2: #ffd447;
  --orange: #e8590c;         /* cam gạch – giá bán */
  --green: #2f9e44;
  --radius: 10px;
  --display: "Barlow Condensed", "Be Vietnam Pro", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--topbar-h, 120px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 6px; text-decoration: none; font-weight: 800; font-size: 15px; letter-spacing: .2px;
}
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .85); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Header: logo + tìm kiếm + hotline ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 1px 0 var(--line), 0 4px 16px rgba(20, 22, 25, .05); }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 8px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); font: 800 22px/1 var(--display);
}
.logo-text { font: 800 23px/1 var(--display); letter-spacing: .6px; }
.logo-text b { color: var(--orange); }
.hotline {
  display: flex; align-items: center; gap: 8px; text-decoration: none; background: var(--ink); color: #fff;
  border-radius: 6px; padding: 6px 12px 6px 10px;
}
.hotline svg { color: var(--yellow); width: 18px; height: 18px; }
.hotline small { display: block; font-size: 10.5px; color: #b9bdc2; line-height: 1.1; }
.hotline b { font-size: 15px; line-height: 1.2; }
@media (max-width: 420px) { .hotline small { display: none; } }

.search {
  order: 3; flex: 1 1 100%; display: flex; align-items: center; gap: 8px; margin: 0;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 0 4px 0 12px; color: var(--ink-3);
}
.search:focus-within { border-color: var(--yellow); background: #fff; box-shadow: 0 0 0 3px rgba(255, 194, 14, .25); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; height: 42px; font-size: 16px; color: var(--ink); }
.search-btn { flex: none; border: 0; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px; height: 34px; padding: 0 14px; border-radius: 6px; cursor: pointer; }
.search-btn:hover { background: var(--yellow-2); }
@media (min-width: 760px) {
  .topbar-inner { flex-wrap: nowrap; gap: 24px; padding-top: 0; padding-bottom: 0; height: 70px; }
  .search { order: 0; flex: 1 1 auto; max-width: 640px; }
  .search input { height: 44px; }
}

/* ---------- Hero ảnh xưởng ---------- */
.hero { position: relative; color: #fff; background: var(--asphalt); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media .slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1s ease; }
.hero-media .slide-bg {
  position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(26px) brightness(.55) saturate(1.1);
  transform: scale(1.04); animation: kb 12s ease-out forwards;
}
/* ảnh chính: hiện đủ, không cắt nội dung */
.hero-media .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
@media (min-width: 900px) {
  .hero-media .slide img { left: auto; width: 62%; object-position: right center; }
}
.hero-media .slide.on { opacity: 1; }
@keyframes kb { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15, 17, 20, .88) 0%, rgba(15, 17, 20, .65) 45%, rgba(15, 17, 20, .15) 100%),
              linear-gradient(0deg, rgba(15, 17, 20, .55), transparent 40%);
}
/* Khi chưa có ảnh xưởng: nền nhựa đường + ảnh sản phẩm */
.hero.no-photo .hero-media {
  background:
    radial-gradient(ellipse at 80% 40%, rgba(255, 194, 14, .16), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
    var(--asphalt);
}
.hero.no-photo .hero-media img {
  position: absolute; right: -40px; bottom: 30px; width: 58%; max-width: 560px; border-radius: 12px;
  transform: rotate(-4deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); opacity: .9;
}
.hero.no-photo .ph-note {
  position: absolute; right: 16px; bottom: 60px; max-width: 60%; text-align: right; font-size: 12px; background: rgba(255, 255, 255, .12);
  border: 1px dashed rgba(255, 255, 255, .4); border-radius: 6px; padding: 4px 8px; color: #ddd;
}

.hero-inner { position: relative; padding-top: 34px; padding-bottom: 56px; min-height: 400px; display: flex; flex-direction: column; justify-content: center; }
.hero-kicker {
  margin: 0 0 12px; align-self: flex-start; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink); background: var(--yellow); padding: 4px 10px; border-radius: 4px;
}
.hero h1 { font: 800 44px/0.98 var(--display); text-transform: uppercase; letter-spacing: .5px; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.hero h1 span { color: var(--yellow); }
.hero-sub { margin: 14px 0 0; max-width: 460px; font-size: 15px; color: #e3e5e8; }
.hero-sub b { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-badges { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; }
.hero-badges li { display: flex; align-items: center; gap: 7px; }
.hero-badges li::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317191c' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; }
.hero-caption { position: absolute; right: 16px; bottom: 18px; font-size: 12.5px; color: #e0e0e0; background: rgba(0, 0, 0, .35); padding: 3px 9px; border-radius: 4px; }
.hero-caption:empty { display: none; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 6px; }
.hero-dots button { width: 22px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255, 255, 255, .4); cursor: pointer; }
.hero-dots button[aria-current="true"] { background: var(--yellow); }

@media (max-width: 599px) {
  .hero::before { background: linear-gradient(180deg, rgba(15, 17, 20, .55) 0%, rgba(15, 17, 20, .78) 55%, rgba(15, 17, 20, .9) 100%); }
  .hero-inner { min-height: 0; padding-top: 26px; padding-bottom: 48px; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 14px; }
  .hero-cta .btn { flex: 1; padding: 0 12px; }
  .hero-badges { display: none; }
  .hero.no-photo .hero-media img { width: 62%; right: -50px; top: 30px; bottom: auto; opacity: .45; }
  .hero.no-photo .ph-note { display: none; }
  .hero-caption { display: none; }
  .hero-dots { bottom: 18px; }
}
@media (min-width: 900px) {
  .hero-inner { min-height: 500px; padding-bottom: 64px; }
  .hero h1 { font-size: 72px; }
  .hero-sub { font-size: 17px; max-width: 520px; }
  .hero-caption { bottom: 22px; right: max(16px, calc((100vw - 1200px) / 2 + 16px)); }
  .hero-dots { bottom: 30px; }
}

/* ---------- Danh mục: hàng chip dính trên điện thoại, cột trái trên máy tính ---------- */
.shop { padding-bottom: 34px; }
.sidebar {
  position: sticky; top: var(--topbar-h, 112px); z-index: 20; background: #fff;
  margin: 0 -16px; border-bottom: 1px solid var(--line);
}
.sidebar h2, .side-call { display: none; }
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 4px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; text-align: left; white-space: nowrap;
}
.cat-img { width: 34px; height: 34px; border-radius: 6px; overflow: hidden; background: var(--surface); flex: none; position: relative; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-img .all {
  position: absolute; inset: 0; display: grid; place-items: center; background: var(--ink); color: var(--yellow);
  font: 800 17px/1 var(--display);
}
.cat-text { display: flex; flex-direction: column; line-height: 1.2; }
.cat-name { font-size: 13.5px; font-weight: 700; }
.cat-count { font-size: 11.5px; color: var(--ink-3); }
.cat[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); }
.cat[aria-pressed="true"] .cat-count { color: var(--ink); }

@media (min-width: 900px) {
  .shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 26px; }
  .sidebar {
    top: calc(var(--topbar-h, 70px) + 16px); margin: 0; border: 1px solid var(--line); border-top: 4px solid var(--yellow);
    border-radius: 12px; overflow-y: auto; max-height: calc(100vh - var(--topbar-h, 70px) - 32px);
  }
  .sidebar h2 { display: block; font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: .4px; padding: 14px 16px 8px; }
  .cats { flex-direction: column; gap: 2px; overflow: visible; padding: 0 8px 8px; }
  .cat { height: auto; padding: 7px 8px; border: 0; gap: 12px; white-space: normal; }
  .cat:hover { background: var(--surface); }
  .cat[aria-pressed="true"] { background: var(--yellow); }
  .cat-img { width: 46px; height: 46px; }
  .cat-name { font-size: 14.5px; }
  .cat-count { font-size: 12.5px; }
  .side-call { display: block; text-decoration: none; background: var(--ink); color: #fff; padding: 12px 16px 14px; }
  .side-call small { display: block; color: #b9bdc2; font-size: 12.5px; }
  .side-call b { color: var(--yellow); font: 800 26px/1.1 var(--display); letter-spacing: .5px; }
}

/* ---------- Danh sách sản phẩm ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 0; }
@media (min-width: 900px) { .toolbar { padding-top: 0; } .products .group:first-of-type { padding-top: 14px; } }
.result { margin: 0; font-size: 14px; color: var(--ink-2); }
.result b { color: var(--ink); }
.sort select { height: 36px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 6px; font-size: 13.5px; font-weight: 600; }

.group { padding-top: 22px; }
.group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.group-head h2 { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: .4px; position: relative; padding-left: 14px; }
.group-head h2::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 6px; background: var(--yellow); }
.group-head p { margin: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.group-head p b { color: var(--orange); }
@media (min-width: 900px) { .group-head h2 { font-size: 32px; } }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { gap: 16px; } }
@media (min-width: 1140px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column; cursor: pointer; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: 0 10px 28px rgba(20, 22, 25, .12); transform: translateY(-2px); border-color: transparent; }
.card-media { position: relative; background: var(--surface); }
.card-img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; }
.badge {
  position: absolute; top: 0; left: 0; background: var(--orange); color: #fff;
  font: 800 16px/1 var(--display); padding: 6px 9px 5px; border-bottom-right-radius: 8px;
}
.card-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-size: 14.5px; font-weight: 700; line-height: 1.35; margin: 0; }
.card-price { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.price { color: var(--orange); font-weight: 800; font-size: 18px; line-height: 1.25; }
.old { color: var(--ink-3); text-decoration: line-through; font-size: 12.5px; }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.card:hover::after { transform: scaleX(1); }
.empty { text-align: center; color: var(--ink-2); padding: 36px 12px; background: var(--surface); border-radius: var(--radius); margin-top: 16px; }

/* ---------- Về xưởng ---------- */
.about { background: var(--surface); padding: 36px 0 40px; }
.about-inner { display: grid; gap: 20px; }
@media (min-width: 900px) { .about-inner { grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; } }
.eyebrow { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); }
.about h2 { font: 800 32px/1 var(--display); text-transform: uppercase; }
.about-text > p:not(.eyebrow) { color: var(--ink-2); font-size: 15px; margin: 12px 0 0; }
.about-text b { color: var(--ink); }
.stats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats li { background: #fff; border-radius: 8px; border-top: 4px solid var(--yellow); padding: 10px 10px 12px; }
.stats b { display: block; font: 800 26px/1.05 var(--display); color: var(--ink); text-transform: uppercase; }
.stats span { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.3; margin-top: 2px; }
@media (max-width: 420px) { .stats b { font-size: 21px; } }
.facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; }
.facts:empty { display: none; }
.facts li { display: flex; gap: 8px; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery-grid:empty { display: none; }
.gallery-grid > :first-child { grid-column: 1 / -1; }
.shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #e6e2da; cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery-grid > :first-child img { aspect-ratio: 16 / 9; }
.shot:hover img { transform: scale(1.04); }
.shot .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 13px; font-weight: 600; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
}
.ph {
  aspect-ratio: 4 / 3; display: grid; place-content: center; gap: 4px; text-align: center; padding: 10px;
  border: 2px dashed #cbc6bb; border-radius: var(--radius); color: var(--ink-3); font-size: 12.5px; background: #fff;
}
.gallery-grid > .ph:first-child { aspect-ratio: 16 / 9; }
.ph b { color: var(--ink-2); font-size: 14px; }

/* ---------- Footer: liên hệ 4 cột ---------- */
.footer { background: #fff; border-top: 6px solid var(--yellow); font-size: 15px; color: var(--ink-2); }
.footer-grid { display: grid; gap: 30px; padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.1fr .9fr 1fr 1.1fr; gap: 32px; } }
.fcol h2 { font: 800 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .5px; color: var(--ink); margin-bottom: 14px; }
.fcol h2.mt { margin-top: 24px; }
.fcol p { margin: 0 0 12px; line-height: 1.6; }
.fcol p b { color: var(--ink); }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--orange); }
.f-phone { display: inline-block; margin-top: 4px; font: 800 28px/1.1 var(--display); letter-spacing: .5px; color: var(--orange) !important; }
.flinks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.flinks.arrow a::before { content: "» "; color: var(--orange); font-weight: 800; }
.f-about { font-size: 14px; }

.quote { display: grid; gap: 10px; background: var(--surface); border: 2px dashed #d3cec3; border-radius: 10px; padding: 14px; }
.quote label { display: grid; gap: 4px; }
.quote label span { font-size: 13px; font-weight: 700; color: var(--ink); }
.quote input, .quote textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; padding: 10px 12px; font-size: 16px; resize: vertical;
}
.quote input:focus, .quote textarea:focus { outline: 0; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 194, 14, .25); }
.quote .btn { border: 0; cursor: pointer; width: 100%; }
.quote-msg { margin: 0; font-size: 13.5px; color: var(--green); font-weight: 600; }
.quote-msg.err { color: var(--orange); }
.quote-msg a { color: inherit; text-decoration: underline; }
.quote .btn:disabled { opacity: .6; cursor: wait; }

.fmap { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 10px; background: var(--surface); }
.footer-bottom { background: var(--asphalt); color: #8b9097; font-size: 12.5px; padding: 14px 0; }
@media (max-width: 899px) { .footer-bottom .wrap { padding-right: 84px; } }

/* ---------- Nút nổi gọi điện (nhảy) ---------- */
.fab {
  position: fixed; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; flex-direction: column; gap: 14px;
}
.fab-btn {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  text-decoration: none; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  animation: jump 2.4s ease-in-out infinite;
}
.fab-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1;
  animation: ring 2.4s ease-out infinite;
}
.fab-call { background: var(--orange); }
.fab-call svg { width: 26px; height: 26px; animation: shake 2.4s ease-in-out infinite; }
.fab-btn:hover { filter: brightness(1.08); }
@keyframes jump {
  0%, 30%, 100% { transform: translateY(0); }
  10% { transform: translateY(-12px); }
  18% { transform: translateY(0); }
  24% { transform: translateY(-5px); }
}
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 60%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes shake { 0%, 30%, 100% { transform: rotate(0); } 5%, 15% { transform: rotate(-15deg); } 10%, 20% { transform: rotate(15deg); } }
@media (min-width: 900px) { .fab { right: 22px; bottom: 26px; } .fab-btn { width: 60px; height: 60px; } }

/* ---------- Chi tiết sản phẩm ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden], .lightbox[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 22, 25, .6); }
.sheet-panel {
  position: relative; background: #fff; width: 100%; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 14px 14px 0 0; animation: up .22s ease-out; padding-bottom: env(safe-area-inset-bottom);
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-close {
  position: sticky; top: 10px; float: right; margin: 10px 10px -46px 0; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15); font-size: 18px; cursor: pointer;
}
.gallery { background: var(--surface); }
.gallery > img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.thumbs { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; }
.thumbs button { flex: none; border: 2px solid transparent; padding: 0; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--yellow); }
.thumbs img { width: 58px; height: 58px; object-fit: cover; }
.detail { padding: 14px 16px 22px; }
.d-cat { font-size: 12.5px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .6px; }
.detail h2 { font: 800 30px/1.05 var(--display); text-transform: uppercase; margin: 4px 0 8px; }
.d-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.d-price .price { font-size: 26px; }
.d-price .unit { font-size: 13px; color: var(--ink-2); width: 100%; }
.d-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0 18px; }
.btn-call { background: var(--orange); color: #fff; }
.d-desc { font-size: 15px; border-top: 1px solid var(--line); padding-top: 4px; }
.d-desc h3 {
  font: 800 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: .5px;
  margin: 18px 0 10px; display: flex; align-items: center; gap: 8px;
}
.d-desc h3::before { content: ""; width: 5px; height: 18px; background: var(--yellow); border-radius: 2px; }
.desc-intro { margin: 0 0 10px; color: var(--ink-2); font-size: 14.5px; }

/* bảng thông số dạng ô */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.spec-grid > div { background: var(--surface); border-radius: 8px; padding: 9px 12px; }
.spec-grid .wide { grid-column: 1 / -1; }
.spec-grid dt { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; }
.spec-grid dd { margin: 2px 0 0; font-weight: 700; font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips span { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; font-size: 13.5px; font-weight: 600; }

/* thang tải trọng A → E */
.loads { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.loads li { display: flex; gap: 12px; align-items: center; padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.load-badge {
  flex: none; width: 52px; height: 52px; border-radius: 8px; display: grid; place-content: center; text-align: center;
  font: 800 24px/0.9 var(--display); color: var(--ink);
  background: color-mix(in srgb, var(--yellow) calc(100% - var(--lv, 0) * 22%), var(--orange));
}
.load-badge small { display: block; font-size: 13px; font-weight: 700; }
.loads li:nth-child(n+4) .load-badge { color: #fff; }
.loads li:nth-child(5) .load-badge { background: var(--ink); color: var(--yellow); }
.load-body { min-width: 0; }
.load-body b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; }
.load-body span { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.load-body em { font-style: normal; font-size: 11.5px; font-weight: 800; background: var(--green); color: #fff; border-radius: 4px; padding: 1px 7px; }
.loads li.mine { border: 2px solid var(--green); background: #f0f9f2; }

/* danh sách ưu điểm */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.features svg, .promise svg {
  width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--yellow); color: var(--ink); stroke-width: 3.5; flex: none;
}
.features svg { margin-top: 1px; }

/* cam kết */
.promise { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; padding: 12px; background: var(--asphalt); border-radius: 10px; color: #fff; font-size: 13.5px; font-weight: 600; }
.promise span { display: flex; align-items: center; gap: 7px; }
.promise svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet-panel { max-width: 980px; border-radius: 14px; display: grid; grid-template-columns: 1.05fr 1fr; max-height: 88vh; }
  .sheet-close { position: absolute; top: 12px; right: 12px; float: none; margin: 0; }
  .detail { padding: 26px 26px 26px 22px; }
}

/* ---------- Lightbox ảnh xưởng ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(10, 12, 14, .92); display: grid; place-items: center; padding: 16px; }
.lightbox .sheet-close { position: absolute; top: 12px; right: 12px; float: none; margin: 0; }
.lightbox figure { margin: 0; max-width: 1100px; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #e6e6e6; text-align: center; margin-top: 10px; font-size: 14px; }

body.locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .hero-media .slide, .hero-media .slide-bg, .fab-btn, .fab-btn::before, .fab-call svg { animation: none; transition: none; } }
