:root{
  /* ===== Theme ===== */
  --bg:#d6d9de;            /* NỀN XÁM TRƠN (GIỐNG BẠN MUỐN) */
  --surface:#f5f6f8;       /* nền khối lớn */
  --card:#ffffff;          /* nền card */
  --text:#0f172a;
  --muted:#64748b;
  --line:rgba(15,23,42,.10);

  --primary:#0f172a;       /* đen sang */
  --accent:#0b84ff;        /* xanh */
  --danger:#dc2626;

  --shadow:0 18px 46px rgba(15,23,42,.10);
  --shadow2:0 10px 26px rgba(15,23,42,.08);
  --radius:18px;

  --cta-h:86px;

  /* polish */
  --ring: 0 0 0 4px rgba(11,132,255,.18);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);

  /* NỀN XÁM TRƠN */
  background: var(--bg);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button, input, select, textarea{ font: inherit; }
:focus-visible{ outline: none; box-shadow: var(--ring); border-radius: 12px; }

.container{
  width:min(1180px, 92%);
  margin:0 auto;
}

/* ===== Header ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:50;

  /* nhìn “pro” trên nền xám */
  background: rgba(245,246,248,.82);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
}

/* --- Brand (tương thích cả kiểu cũ & kiểu mới) --- */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0; /* tránh cố định */
}

/* kiểu cũ */
.brand-mark{
  width:44px;height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, #0f172a, #334155);
  color:#fff;
  font-weight:950;
  flex: 0 0 auto;
}
.brand-text{ display:flex; flex-direction:column; gap:2px; }
.brand-name{ font-weight:950; letter-spacing:.2px; line-height:1.1; }
.brand-slogan{ font-size:13px; color:var(--muted); line-height:1.2; font-weight:800; }

/* kiểu logo mới */
.brand-logo{ display:flex; align-items:center; gap:14px; }
.brand-type{ display:flex; flex-direction:column; gap:4px; }
.brand-title{
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
  line-height: 1;
  font-size: 22px;
}
.brand-tagline{
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.2;
}
.brand-icon{
  width: 64px;
  height: 48px;
  flex: 0 0 auto;
  stroke: var(--text);
  stroke-width: 4;
  fill: none;
  opacity: .92;
}
.brand-icon .win{
  fill: var(--text);
  opacity: .16;
  stroke: none;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav-link{
  color:var(--muted);
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid transparent;
  background: transparent;
  white-space:nowrap;
  font-weight:900;
}
.nav-link:hover{
  color:var(--text);
  border-color:var(--line);
  background: rgba(255,255,255,.65);
}
.nav-cta{
  color:#fff;
  background: var(--primary);
  border-color: rgba(15,23,42,.25);
  box-shadow: 0 10px 24px rgba(15,23,42,.14);
}

/* ===== Main ===== */
.site-main{
  padding:18px 0 40px;
  padding-bottom:calc(40px + var(--cta-h));
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius: 14px;
  font-weight: 900;
  border:1px solid var(--line);
  background: rgba(255,255,255,.88);
  color:var(--text);
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover{
  background:#fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15,23,42,.10);
}
.btn-primary{
  background: var(--accent);
  color:#fff;
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(11,132,255,.24);
}
.btn-primary:hover{ filter: brightness(.96); }
.btn-ghost{
  background: rgba(255,255,255,.72);
}

/* ===== Hero ===== */
.page-hero{
  border:1px solid var(--line);
  background: rgba(255,255,255,.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
}
.page-hero h1{
  margin:0;
  font-size: 28px;
  letter-spacing: -0.4px;
}
.page-hero p{
  margin:8px 0 0;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.65;
  font-weight: 700;
}
.hero-right{ display:flex; gap:10px; flex-wrap:wrap; }

/* ===== FILTER TABS ===== */
.filter-tabs{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.filter-tab{
  border:1px solid var(--line);
  background: rgba(255,255,255,.86);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  overflow:hidden;
}
.filter-tab > summary{
  list-style:none;
  cursor:pointer;
  padding:10px 12px;
  font-weight:950;
  color:var(--text);
  display:flex;
  align-items:center;
  gap:10px;
}
.filter-tab > summary::-webkit-details-marker{ display:none; }
.filter-panel{
  padding:10px 12px 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  background: rgba(245,246,248,.55);
}
.filter-chip{
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  font-weight:950;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.filter-chip:hover{ transform: translateY(-1px); }
.filter-chip.active{
  background: var(--accent);
  border-color: var(--accent);
  color:#fff;
}

/* ===== HOME BANNER ===== */
.banner{
  margin-top:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* banner lớn hơn + tự co giãn đẹp */
.banner-stage{
  position:relative;
  height: clamp(340px, 42vw, 560px);
  background:#0b0f1a;
}
.banner-track{
  display:flex;
  height:100%;
  transition:transform .45s ease;
  will-change:transform;
  touch-action:pan-y;
}
.banner-slide{
  flex:0 0 100%;
  height:100%;
  position:relative;
}
/* ===== HOME BANNER (KHÔNG KHOẢNG TRỐNG - CROP OK) ===== */
.banner-stage{
  position:relative;
  height: clamp(360px, 40vw, 560px);
  background:#111827; /* nền dự phòng */
}

.banner-slide img{
  width:100%;
  height:100%;
  object-fit:cover;         /* FULL KHUNG - KHÔNG TRỐNG */
  object-position:center;   /* canh giữa */
  background:#111827;
}

.banner-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(15,23,42,.70), rgba(15,23,42,0) 62%);
  pointer-events:none;
}
.banner-content{
  position:absolute;
  left:18px;
  bottom:18px;
  z-index:2;
  color:#fff;
  max-width:min(560px, 86%);
}
.banner-title{
  margin:0;
  font-size: 30px;
  font-weight: 950;
  letter-spacing:-.4px;
}
.banner-sub{
  margin:8px 0 0;
  opacity:.92;
  line-height:1.55;
  font-weight:700;
}
.banner-btns{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.banner-nav{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
}
.banner-arrow{
  pointer-events:auto;
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(15,23,42,.55);
  color:#fff;
  font-size:26px;
  font-weight:950;
  display:grid;
  place-items:center;
  cursor:pointer;
  user-select:none;
  transition: background .15s ease, transform .15s ease;
}
.banner-arrow:hover{ background: rgba(15,23,42,.78); transform: translateY(-50%) scale(1.02); }
.banner-arrow.prev{ left:12px; }
.banner-arrow.next{ right:12px; }
.banner-dots{
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  display:flex;
  gap:7px;
  z-index:4;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(15,23,42,.25);
  backdrop-filter: blur(8px);
}
.banner-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  border:0;
  background: rgba(255,255,255,.55);
  cursor:pointer;
  transition: width .15s ease, background .15s ease;
}
.banner-dot.active{
  background:#fff;
  width:18px;
}

/* ===== Listing grid ===== */
.apt-grid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}
@media (max-width:980px){
  .apt-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:640px){
  .apt-grid{ grid-template-columns:1fr; }
}

/* ===== Card ===== */
.apt-card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow2);
  transition: transform .18s ease, box-shadow .18s ease;
}
.apt-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15,23,42,.14);
}

.apt-media{
  position:relative;
  display:block;
  height: 200px;
  background: #eef0f3;
}
.apt-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.apt-badge{
  position:absolute;
  left:12px;
  top:12px;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(15,23,42,.78);
  color:#fff;
  font-size:12px;
  font-weight:950;
  letter-spacing:.2px;
}
.apt-tag{
  position:absolute;
  right:12px;
  top:12px;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.92);
  color: var(--text);
  font-size:12px;
  font-weight:950;
  border:1px solid rgba(15,23,42,.10);
}

.apt-body{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.apt-title{
  margin:0;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: .1px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:46px;
}
.apt-desc{
  color: rgba(15,23,42,.82);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.apt-desc.is-muted{ color: var(--muted); }

.apt-foot{
  margin-top: 2px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.apt-price{
  font-weight: 950;
  color: var(--danger);
  font-size: 18px;
  letter-spacing:.2px;
}
.apt-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* ===== DETAIL PAGE ===== */
.detail-layout{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width:980px){
  .detail-layout{ grid-template-columns:1fr; }
}
.slider-wrap{
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding:12px;
}
.slider-stage{
  position:relative;
  border-radius: 14px;
  overflow:hidden;
  background:#eef0f3;
  border:1px solid var(--line);
}
.slider-stage img{
  width:100%;
  height: 420px;
  object-fit:cover;
  cursor: zoom-in;
}
@media (max-width:640px){
  .slider-stage img{ height: 320px; }
}
.slider-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.55);
  background: rgba(15,23,42,.55);
  color:#fff;
  font-size:26px;
  font-weight:950;
  cursor:pointer;
  display:grid;
  place-items:center;
  user-select:none;
}
.slider-btn:hover{ background: rgba(15,23,42,.78); }
.slider-btn.prev{ left:10px; }
.slider-btn.next{ right:10px; }

.slider-counter{
  position:absolute;
  left:10px;
  bottom:10px;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(15,23,42,.65);
  color:#fff;
  font-size:12px;
  font-weight:950;
}

.thumbs{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:8px;
}
@media (max-width:980px){
  .thumbs{ grid-template-columns:repeat(5, 1fr); }
}
@media (max-width:640px){
  .thumbs{ grid-template-columns:repeat(4, 1fr); }
}
.thumb{
  border-radius:12px;
  overflow:hidden;
  border:2px solid transparent;
  cursor:pointer;
  background:#eef0f3;
}
.thumb.active{ border-color: var(--accent); }
.thumb img{
  width:100%;
  height:70px;
  object-fit:cover;
}

.detail-card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding:14px;
}
.detail-price{
  font-weight: 950;
  color: var(--danger);
  font-size:22px;
}
.detail-desc{
  margin-top:10px;
  color: rgba(15,23,42,.86);
  line-height: 1.65;
  font-size:14px;
  font-weight: 700;
}

/* ===== Lightbox ===== */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(15,23,42,.70);
  z-index:9999;
  padding:16px;
}
.lightbox.open{ display:flex; }
.lightbox img{
  max-width:min(1200px, 96vw);
  max-height:86vh;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(255,255,255,.35);
  box-shadow:0 30px 90px rgba(0,0,0,.45);
  cursor: zoom-out;
}
.lb-btn{
  position:fixed;
  width:46px;
  height:46px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(15,23,42,.70);
  color:#fff;
  font-size:24px;
  font-weight:950;
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index:10000;
  user-select:none;
}
.lb-btn:hover{ background: rgba(15,23,42,.86); }
.lb-close{ top:14px; right:14px; }
.lb-prev{ left:14px; top:50%; transform:translateY(-50%); }
.lb-next{ right:14px; top:50%; transform:translateY(-50%); }

/* ===== Floating Zalo ===== */
.fab-zalo{
  position:fixed;
  right:16px;
  bottom:calc(var(--cta-h) + 14px);
  width:54px;
  height:54px;
  border-radius:999px;
  background: var(--accent);
  color:#fff;
  font-weight:950;
  display:grid;
  place-items:center;
  box-shadow:0 16px 32px rgba(11,132,255,.30);
  z-index:9998;
}
.fab-zalo:hover{ filter:brightness(.96); }

/* ===== Bottom CTA ===== */
.bottom-cta{
  position:fixed;
  left:0; right:0; bottom:0;
  background: rgba(245,246,248,.90);
  backdrop-filter: blur(10px);
  border-top:1px solid var(--line);
  z-index:9997;
}
.bottom-cta .container{
  min-height:var(--cta-h);
  padding:10px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.cta-left{ color:var(--muted); font-weight:900; }
.cta-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.cta-btn{
  padding:10px 14px;
  border-radius:14px;
  font-weight:950;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
}
.cta-zalo{ background: var(--accent); color:#fff; border-color: var(--accent); }
.cta-call{ background: var(--primary); color:#fff; border-color: rgba(15,23,42,.20); }

/* ===== Footer ===== */
.site-footer{
  margin-top:26px;
  border-top:1px solid var(--line);
  background: rgba(245,246,248,.86);
  backdrop-filter: blur(10px);
}
.footer-inner{
  padding:18px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer-left{ display:flex; flex-direction:column; gap:6px; }
.footer-brand{ display:flex; align-items:center; gap:10px; color:var(--text); font-weight:950; }
.footer-dot{ color:var(--muted); }
.footer-slogan{ color:var(--muted); font-weight:800; }
.footer-meta{ color:var(--muted); font-size:13px; font-weight:700; }
.footer-right{ display:flex; gap:12px; flex-wrap:wrap; }
.footer-link{
  color:var(--muted);
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  font-weight:900;
}
.footer-link:hover{ color:var(--text); background:#fff; }

/* ===== Responsive ===== */
@media (max-width:980px){
  .brand-title{ font-size: 18px; }
}
@media (max-width:640px){
  :root{ --cta-h:92px; }

  .header-inner{ padding:10px 0; }
  .brand-title{ font-size:16px; letter-spacing:.08em; }
  .brand-icon{ width: 52px; height: 40px; stroke-width: 4; }

  .page-hero{ padding:14px; }
  .page-hero h1{ font-size:24px; }

  .apt-media{ height:200px; }

  .btn{ padding:10px 12px; border-radius:12px; }
  .nav-link{ padding:8px 10px; border-radius:12px; }

  .bottom-cta .container{ justify-content:center; }
  .footer-inner{ align-items:flex-start; }
  .footer-brand{ flex-wrap:wrap; }
}
