:root{
  --brand:#2B7FFF;           /* xanh dương tươi như bảng màu sơn */
  --brand-2:#7C4DFF;         /* tím ánh xanh nhấn */
  --accent:#FF6F61;          /* san hô ấm - CTA */
  --ink:#101828;
  --muted:#6B7280;
  --bg:#0B1020;              /* nền tối sang */
  --card:#12172A;
  --ring: 0 0 0 3px rgba(43,127,255,.35);
}

*{ box-sizing: border-box }
html,body{ margin:0; padding:0; background:var(--bg); color:#E5E7EB; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif }
a{ color:inherit; text-decoration:none }
img{ max-width:100%; display:block }

.container{ width:min(1100px, 92vw); margin:0 auto }

.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(15,20,40,0.8); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav .row{ display:flex; align-items:center; justify-content:space-between; padding:12px 0 }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.5px }
.brand img{ width:38px; height:38px }
.menu a{ padding:10px 14px; border-radius:10px }
.menu a:hover{ background:rgba(255,255,255,.06) }
.menu .cta{ background: linear-gradient(135deg, var(--accent), var(--brand)); color:#fff; font-weight:600 }
.menu-toggle{ display:none; }

@media (max-width: 900px){
  .menu{ display:none; }
  .menu-toggle{ display:block; background:transparent; border:1px solid rgba(255,255,255,.15); color:#fff; padding:8px 12px; border-radius:10px }
  .drawer{ position:fixed; inset:0; background:rgba(0,0,0,.5); display:none }
  .drawer .panel{
    background: var(--card); width:80%; max-width:360px; height:100%; padding:20px;
    box-shadow: 0 10px 40px rgba(0,0,0,.5)
  }
  .drawer.open{ display:flex; }
}

.hero{
  position:relative; overflow:hidden;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(43,127,255,.35), transparent),
              radial-gradient(1000px 500px at 90% 10%, rgba(124,77,255,.28), transparent);
}
.hero .grid{
  display:grid; grid-template-columns: 1.2fr 1fr; gap:30px; align-items:center; padding:56px 0 24px;
}
.hero h1{ font-size: clamp(28px, 4vw, 52px); line-height:1.1; margin:0 0 14px; }
.hero p{ color:#B8C0CC; font-size: clamp(14px, 2vw, 18px) }
.hero .cta-row{ display:flex; gap:12px; margin-top:18px }
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:12px 16px; border-radius:12px; border:1px solid rgba(255,255,255,.1);
  transition:transform .1s ease; will-change: transform;
}
.btn:active{ transform: translateY(1px) }
.btn.primary{ background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; border:0; font-weight:600 }
.btn.ghost{ background: rgba(255,255,255,.06) }
.tag{ display:inline-block; padding:6px 10px; border-radius:999px; background:rgba(255,255,255,.06); color:#BFD6FF; font-weight:600; font-size:12px }

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px; padding:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px }
@media (max-width: 900px){ .hero .grid{ grid-template-columns: 1fr } .grid-3{ grid-template-columns: 1fr } }

.section{ padding:36px 0 }
.h2{ font-size:26px; margin:0 0 16px }
.muted{ color:#A9B1C6 }

.input, select, textarea{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid rgba(255,255,255,.08);
  background:#0D1327; color:#E5E7EB; outline:none;
}
.input:focus, select:focus, textarea:focus{ box-shadow: var(--ring) }

.table{ width:100%; border-collapse: collapse; }
.table th, .table td{ padding:10px; border-bottom: 1px dashed rgba(255,255,255,.08); text-align:left; }
.badge{ display:inline-block; padding:4px 8px; border-radius:999px; background:rgba(255,255,255,.08); font-size:12px }

.footer{
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 36px; padding: 26px 0; color:#C7D2FE;
}

.kicker{ color:#87B3FF; letter-spacing:.2em; font-weight:700; text-transform:uppercase; font-size:12px }

/* ------ FIX: Drawer hidden ở desktop, chỉ mở khi có .open ------ */
.drawer{ 
  display:none; 
  position:fixed; 
  inset:0; 
  background:rgba(0,0,0,.5);
}
.drawer .panel{
  background: var(--card); 
  width:80%; 
  max-width:360px; 
  height:100%; 
  padding:20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5)
}
.drawer.open{ display:flex; }

/* Mobile menu toggle chỉ hiện ở <=900px */
@media (max-width: 900px){
  .menu{ display:none; }
  .menu-toggle{ display:block; background:transparent; border:1px solid rgba(255,255,255,.15); color:#fff; padding:8px 12px; border-radius:10px }
}

/* Chips filter */
.chips{ display:flex; gap:8px; flex-wrap:wrap }
.chip{ padding:8px 12px; border:1px solid rgba(255,255,255,.12); border-radius:999px; cursor:pointer; user-select:none }
.chip.active{ background:linear-gradient(135deg,var(--brand),var(--brand-2)); border-color:transparent }

/* Sticky filter bar */
.sticky-filters{
  position:sticky; top:64px; z-index:40;
  background:rgba(15,20,40,0.8); backdrop-filter: blur(10px);
  padding:8px; border:1px solid rgba(255,255,255,.08); border-radius:12px;
}

/* Skeleton loader */
.skeleton{ 
  border-radius:12px; height:180px; 
  background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1), rgba(255,255,255,.05)); 
  background-size: 200% 100%; animation: shimmer 1.2s infinite; 
}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
/* ====== Advisor Pro UI ====== */
.stepper{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 16px}
.step{padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.12)}
.step.active{background:linear-gradient(135deg,var(--brand),var(--brand-2));border-color:transparent}
.layout{
  display:grid;grid-template-columns:1.2fr .8fr;gap:16px
}
@media (max-width: 900px){ .layout{ grid-template-columns: 1fr } }

.section-card{ background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.06);border-radius:14px;padding:14px }

.swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
@media (max-width:900px){ .swatches{grid-template-columns:repeat(3,1fr)} }
.swatch{border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,.12);cursor:pointer}
.swatch .chip{height:64px}
.swatch .meta{padding:8px;font-size:12px;display:flex;flex-direction:column;gap:2px}
.swatch.active{outline:2px solid var(--brand)}
.palette-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}

.badge.radio{cursor:pointer}
.badge.radio.active{background:linear-gradient(135deg,var(--brand),var(--brand-2));border-color:transparent}

.table-rooms{width:100%;border-collapse:collapse}
.table-rooms th,.table-rooms td{padding:8px;border-bottom:1px dashed rgba(255,255,255,.08)}
/* ====== Advisor Pro: Preview & Moodboard ====== */
.preview-wrap{ display:grid; grid-template-columns: 1fr 1fr; gap:12px }
@media (max-width: 900px){ .preview-wrap{ grid-template-columns: 1fr } }
.preview-card{ border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:10px; background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02)); }
.preview-scene{ width:100%; aspect-ratio:16/9; border-radius:10px; overflow:hidden; border:1px solid rgba(255,255,255,.1) }

.moodboard{ display:grid; grid-template-columns: repeat(3, 1fr); gap:10px }
@media (max-width: 900px){ .moodboard{ grid-template-columns: repeat(2, 1fr) } }
.mood-img{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:10px; border:1px solid rgba(255,255,255,.1) }

.note-price{ margin-top:8px; font-size:.9rem; color:var(--muted); }
/* ====== Loading & Skeleton ====== */
.badge.loading { opacity:.85; pointer-events:none }
.badge.loading::after{
  content:''; display:inline-block; width:14px; height:14px; margin-left:6px;
  border-radius:50%; border:2px solid rgba(255,255,255,.6); border-top-color: transparent;
  animation: spin .9s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg) } }

.skeleton-tile{
  border-radius:10px; height:120px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06));
  background-size: 200% 100%; animation: shimmer 1.2s infinite;
  border:1px solid rgba(255,255,255,.1);
}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

.dim { opacity:.55; pointer-events:none }
/* ----- Title mới ----- */
.page-title {
  display: flex; gap: 12px; align-items: center;
  font-size: clamp(22px, 3.2vw, 34px);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.brand-badge {
  font-size: 12px; letter-spacing: .12em; font-weight: 700;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  color: #111;
}
.page-subtitle {
  margin: 6px 0 0; color: var(--muted, #666);
  max-width: 70ch;
}

/* ----- Card màu hiện đại ----- */
.color-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 0; padding-bottom: 100%; /* vuông */
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .2s ease;
  background: #eee;
  cursor: pointer;
  outline: none;
}
.color-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.10); }
.color-card:focus-visible { box-shadow: 0 0 0 3px rgba(41,98,255,.25), 0 6px 16px rgba(0,0,0,.12); }

.swatch-chip {
  position: absolute; inset: 0;
}

.color-info {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  transform: translateY(10px);
  opacity: 0;
  transition: all .18s ease;
}
.color-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.color-hex { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.color-actions {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 6px;
  opacity: 0; transform: translateY(-6px);
  transition: all .18s ease;
}

.color-card:hover .color-info,
.color-card.expanded .color-info,
.color-card:hover .color-actions,
.color-card.expanded .color-actions {
  opacity: 1; transform: translateY(0);
}

.icon-btn {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  transition: box-shadow .15s ease, transform .12s ease, background .15s ease;
}
.icon-btn:hover { background:#fff; box-shadow: 0 3px 10px rgba(0,0,0,.14); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; color: #222; }
.icon-btn.ok { background: #E6FFED; border-color: #B7F5C4; }

@media (hover: none) {
  /* Mobile: người dùng nhấn để mở .expanded; giữ mặc định ẩn để không rối */
  .color-card:hover .color-info,
  .color-card:hover .color-actions { opacity: 0; transform: translateY(10px); }
}

/* (tuỳ) Tối ưu grid cho card vuông */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
/* Grid cho thẻ sản phẩm */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

/* Card sản phẩm hiện đại */
.prod-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .2s ease;
  background: #fff;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.10); }

.prod-thumb {
  position: relative;
  background: linear-gradient(180deg, #fafafa, #f0f0f0);
  aspect-ratio: 4/3;
  display: grid; place-items: center;
}
.prod-thumb img { max-width: 90%; max-height: 85%; object-fit: contain; transition: opacity .2s ease; }
.prod-thumb.noimg { background: repeating-linear-gradient(45deg, #eee, #eee 8px, #f5f5f5 8px, #f5f5f5 16px); }

.prod-badges {
  position: absolute; left: 8px; top: 8px; display: flex; gap: 6px; flex-wrap: wrap;
}
.prod-actions {
  position: absolute; right: 8px; top: 8px; display: flex; gap: 6px;
  opacity: 0; transform: translateY(-6px); transition: all .18s ease;
}
.prod-card:hover .prod-actions { opacity: 1; transform: translateY(0); }

.prod-body { padding: 10px 12px 12px; }
.prod-name { font-weight: 600; line-height: 1.3; min-height: 2.6em; overflow: hidden; }
.price { font-weight: 700; }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  transition: box-shadow .15s ease, transform .12s ease, background .15s ease;
}
.icon-btn:hover { background:#fff; box-shadow: 0 3px 10px rgba(0,0,0,.14); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; color: #222; }
.icon-btn.ok { background: #E6FFED; border-color: #B7F5C4; }

/* Skeleton */
/* ----- Grid & Card sản phẩm (tăng độ tương phản chữ) ----- */
.grid-4 { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }

.prod-card {
  border-radius:14px; overflow:hidden; background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  transition:transform .15s ease, box-shadow .2s ease;
  display:flex; flex-direction:column;
  color:#1f2937; /* text trong card đậm hơn */
}
.prod-card:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.10); }

.prod-thumb { position:relative; background:linear-gradient(180deg,#fafafa,#f0f0f0); aspect-ratio:4/3; display:grid; place-items:center; }
.prod-thumb img { max-width:90%; max-height:85%; object-fit:contain; display:block; }

.prod-badges { position:absolute; left:8px; top:8px; display:flex; gap:6px; flex-wrap:wrap; }
.prod-actions { position:absolute; right:8px; top:8px; display:flex; gap:6px; opacity:0; transform:translateY(-6px); transition:all .18s ease; }
.prod-card:hover .prod-actions { opacity:1; transform:translateY(0); }

.prod-body { padding:10px 12px 12px; }
.prod-name { font-weight:700; line-height:1.3; color:#111827; min-height:2.6em; }
.subline { color:#4b5563; font-size:13px; }
.price { font-weight:800; color:#111827; }

.icon-btn {
  width:36px;height:36px; display:inline-grid; place-items:center;
  border-radius:10px; border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.95); cursor:pointer;
  transition:box-shadow .15s ease, transform .12s ease, background .15s ease;
}
.icon-btn:hover { background:#fff; box-shadow:0 3px 10px rgba(0,0,0,.14); transform:translateY(-1px); }
.icon-btn svg { width:18px; height:18px; color:#222; }
.icon-btn.ok { background:#E6FFED; border-color:#B7F5C4; }

/* Skeleton chỉ áp cho phần ảnh/line – không làm mờ chữ của card thật */
/* ===== Card layout mới ===== */
.grid-4 { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:16px; }

.prod-card { border-radius:16px; background:#fff; color:#111; overflow:hidden;
  box-shadow:0 2px 12px rgba(0,0,0,.06); display:flex; flex-direction:column;
  transition:transform .15s ease, box-shadow .2s ease; }
.prod-card:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(0,0,0,.12); }

.prod-thumb { position:relative; aspect-ratio:4/3; background:linear-gradient(180deg,#fafafa,#f1f1f1); display:grid; place-items:center; }
.prod-thumb img { max-width:92%; max-height:88%; object-fit:contain; display:block; }

.prod-badges { position:absolute; left:10px; top:10px; display:flex; gap:6px; }
.badge.ghost { background:rgba(255,255,255,.85); border:1px solid rgba(0,0,0,.08); }

.prod-body { padding:12px 14px 6px; }
.prod-name { font-weight:800; line-height:1.25; min-height:2.5em; color:#0f172a; }
.pill-row { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }

.pill { padding:4px 8px; border-radius:999px; font-size:12px; background:rgba(0,0,0,.045); border:1px solid rgba(0,0,0,.06); color:#111; }
.pill.muted { color:#475569; background:rgba(0,0,0,.03); }

.prod-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 14px 14px; }
.price { font-weight:900; color:#0b1220; }

.actions { display:flex; gap:8px; }
.icon-btn { width:38px; height:38px; display:grid; place-items:center; border-radius:12px;
  border:1px solid rgba(0,0,0,.08); background:#fff; cursor:pointer;
  transition:box-shadow .15s ease, transform .12s ease, background .15s ease; }
.icon-btn:hover { background:#fff; box-shadow:0 4px 14px rgba(0,0,0,.16); transform:translateY(-1px); }
.icon-btn svg { width:19px; height:19px; color:#1f2937; }
.icon-btn.phone { background:linear-gradient(180deg,#e8fff2,#dcffee); border-color:#c2f5d5; }
.icon-btn.ok { background:#E6FFED; border-color:#B7F5C4; }

/* Skeleton (không làm mờ chữ) */
.prod-card.skeleton .prod-thumb { background:repeating-linear-gradient(45deg,#eee,#eee 8px,#f6f6f6 8px,#f6f6f6 16px); }
.prod-card.skeleton .line { height:12px; background:#eee; border-radius:6px; margin-top:8px; }
.prod-card.skeleton .line.w60{width:60%}.prod-card.skeleton .line.w40{width:40%}.prod-card.skeleton .line.w30{width:30%}

/* ===== Modal Quick View mới ===== */
.modal.hidden { display:none; }
.modal { position:fixed; inset:0; z-index:2000; }

.modal-backdrop { position:absolute; inset:0; background:rgba(7,12,23,.56); backdrop-filter: blur(2px); }

.modal-dialog.qv {
  position:relative; margin:5vh auto; max-width:980px; background:#fff; color:#101828;
  border-radius:18px; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,.35);
  display:grid; grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 860px){ .modal-dialog.qv { grid-template-columns:1fr; margin:4vh 12px; } }

.modal-close { position:absolute; top:10px; right:12px; font-size:22px; border:0; background:transparent; cursor:pointer; z-index:2; }

.qv-hero { position:relative; min-height:360px; display:grid; place-items:center; background:#f7f7f9; }
.qv-hero-bg { position:absolute; inset:0;
  background: radial-gradient(120% 80% at 10% 10%, #eff6ff, #fff),
              conic-gradient(from 180deg at 60% 40%, #f0f9ff, #fff);
  opacity:.9;
}
.qv-hero img { position:relative; max-width:92%; max-height:92%; object-fit:contain; z-index:1; filter: drop-shadow(0 16px 40px rgba(0,0,0,.18)); }
.qv-hero-badges { position:absolute; left:14px; top:14px; display:flex; gap:6px; z-index:2; }

.qv-content { padding:18px; }
.qv-title { margin:0 0 6px; font-size:22px; line-height:1.25; font-weight:900; }
.qv-meta { color:#475569; font-size:14px; }

.price-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; margin-top:8px; }
.pg-item { border:1px solid rgba(0,0,0,.08); border-radius:12px; padding:10px; background:#fafafa; }
.pg-size { font-size:12px; color:#475569; }
.pg-price { font-weight:900; margin-top:4px; }

.btn.phone { display:inline-flex; align-items:center; gap:8px;
  background:linear-gradient(180deg,#22c55e,#16a34a); color:#fff; border:0; }
.btn.phone svg { width:18px; height:18px; color:#fff; }

/* Hero */
/* ===== HERO v2 (đẳng cấp) ===== */
.hero.hero-v2{
  background:
    radial-gradient(120% 120% at -10% -10%, #1b2a44 0%, #0b1220 50%),
    linear-gradient(160deg, #0b1220 0%, #0e1b2e 60%, #0b1220 100%);
  color:#fff;
}
.hero-grid{ display:grid; grid-template-columns: 1.1fr 1fr; gap:24px; padding:64px 0 36px; }
@media (max-width: 960px){ .hero-grid{ grid-template-columns:1fr; padding:48px 0 22px; } }
.hero-copy .hero-badge{
  display:inline-block; padding:6px 10px; border-radius:999px;
  background: rgba(255,255,255,.10); border:1px solid var(--line-2); color:#fff; font-size:12px; letter-spacing:.12em; font-weight:800;
}
.hero-copy h1{ font-size: clamp(26px, 5.2vw, 44px); line-height:1.15; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.hero-copy h1 .accent{ color:#7CF1E7; }
.hero-sub{ color: rgba(255,255,255,.88); margin:6px 0 8px; }
.hero-cta .btn{ box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.hero-cta .btn.ghost{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color:#fff; }
.hero-stats{ display:flex; gap:16px; flex-wrap:wrap; margin-top:10px; }
.hero-stats > div{ background: rgba(255,255,255,.06); border:1px solid var(--line-2); color:#e5e7eb; padding:10px 12px; border-radius:12px; }

/* hero visual */
.hero-visual{ position:relative; min-height:360px; }
.paint-waves{ position:absolute; inset:auto 0 0 0; width:100%; height:auto; }
.bucket{ position:absolute; right:10%; bottom:90px; width:180px; height:180px; transform:rotate(-6deg); }
.bucket-lid{ height:14px; border-radius:10px; background:#dfe6ee; border:1px solid rgba(0,0,0,.08); box-shadow:inset 0 2px 8px rgba(0,0,0,.12); }
.bucket-body{ height:146px; margin-top:6px; border-radius:16px; background:linear-gradient(180deg,#fff,#eef3f9); border:1px solid rgba(0,0,0,.08); box-shadow:0 14px 40px rgba(0,0,0,.25); }
.bucket-shadow{ position:absolute; bottom:-14px; left:18px; right:18px; height:14px; border-radius:50%; background:radial-gradient(closest-side, rgba(0,0,0,.25), transparent); filter:blur(4px); }
.hero-swatches{ position:absolute; right:0; bottom:0; display:flex; gap:10px; }
.hero-swatches span{ width:28px;height:28px;border-radius:8px;background:var(--c); border:1px solid rgba(255,255,255,.6); box-shadow:0 6px 18px rgba(0,0,0,.25); }

/* =============== CATEGORY CHIPS =============== */
.cat-chips{ display:flex; gap:10px; flex-wrap:wrap; }
.chip.big{ padding:10px 14px; font-weight:800; }

/* =============== PALETTE CALLOUT =============== */
.palette-callout{ background:linear-gradient(180deg,#F2F8FF 0%, #FFFFFF 60%); margin-top:28px; padding:24px 0; }
.palette-wrap{ display:grid; grid-template-columns: 1fr 1.2fr; gap:18px; align-items:center; }
@media (max-width: 960px){ .palette-wrap{ grid-template-columns:1fr; } }
.mini-palette .color-card{ box-shadow: var(--shadow); }

/* =============== PROCESS =============== */
.process{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin-top:10px; }
.process .step{ display:flex; gap:10px; padding:12px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow: var(--shadow); }
.process .num{ width:34px;height:34px; border-radius:10px; display:grid; place-items:center; font-weight:800; background:#0b1220; color:#fff; }

/* =============== TESTIMONIALS =============== */
.testi{ position:relative; display:grid; grid-template-columns:1fr; }
.testi .slide{
  display:none; grid-template-columns: 1.2fr 1fr; gap:16px; padding:14px;
  border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow: var(--shadow);
}
.testi .slide.active{ display:grid; }
.testi img{ width:100%; height:220px; object-fit:cover; border-radius:12px; }
.testi blockquote{ margin:0; font-size:16px; line-height:1.5; color:#0f172a; }
.testi .who{ color:#475569; margin-top:6px; }
.slider-ctrl .icon-btn{ width:38px;height:38px;border-radius:12px; }
@media (max-width: 900px){ .testi .slide{ grid-template-columns:1fr; } }

/* =============== CTA BAND =============== */
.cta-band{ margin-top:24px; background:linear-gradient(90deg,#0b1220,#102136 60%,#0b1220); color:#fff; }
.cta-wrap{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 0; }
.cta-wrap .btn.phone{ background:linear-gradient(180deg,#22c55e,#16a34a); color:#fff; border:0; }

/* =============== FOOTER =============== */
.footer{ margin:24px 0 28px; }
.footer .container{ text-align:center; color:#475569; }

/* =============== ACCESSIBILITY HOVERS =============== */
a,button{ transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease; }
a.btn:hover,button.btn:hover,.icon-btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }
.color-card:active,.prod-card:active{ transform: translateY(0); }

/* =============== MISC (shared across pages) =============== */
.sticky-filters{ position: sticky; top:62px; z-index:20; background:var(--panel-2); border-bottom:1px solid var(--line); padding:10px; }
.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip.radio.active{ background:#111827; color:#fff; border-color:#111827; }

/* optional dark page background (use if needed) */
/* body.dark { background: #0b1220; color:#e5e7eb; } */
/* ================== FIX #1: Tăng tương phản ở block "Bảng màu FORICH + AI" ================== */
.palette-callout{ color:#0f172a; }                      /* chữ đậm, dễ đọc trên nền sáng */
.palette-callout .muted{ color:#475569; }
.palette-callout .sec-title, 
.palette-callout .h2{ color:#0b1220; }                  /* tiêu đề đậm hơn */

.palette-callout .btn{ border-radius:12px; font-weight:700; }
.palette-callout .btn.primary{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff; border:0; box-shadow:0 8px 18px rgba(43,127,255,.25);
}
.palette-callout .btn.primary:hover{ filter:brightness(1.08); transform:translateY(-1px); }

.palette-callout .btn.ghost{
  background:#fff; color:var(--brand);
  border:1px solid rgba(43,127,255,.35);
}
.palette-callout .btn.ghost:hover{
  background:linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:0 6px 12px rgba(43,127,255,.15);
}

/* ================== FIX #2: Đặt vị trí nút điều hướng testimonial ================== */
/* ===== Testimonial arrows – center overlay, không phá layout ===== */
.testi{ position:relative; }
.testi .slider-ctrl{
  position:absolute; z-index:3;
  top:50%; left:-14px; right:-14px;         /* hơi “tràn” ra ngoài để không che nội dung */
  transform:translateY(-50%);
  display:flex; align-items:center; justify-content:space-between;
  pointer-events:none;                       /* không chặn vùng bấm khác */
}
.testi .slider-ctrl .icon-btn{
  pointer-events:auto;
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 12px 28px rgba(0,0,0,.28);
  color:#0b1220; font-weight:900; line-height:1;
}
.testi .slider-ctrl .icon-btn:hover{ transform:translateY(-1px); }
@media (max-width:900px){
  .testi .slider-ctrl{ left:4px; right:4px; }
  .testi .slider-ctrl .icon-btn{ width:38px; height:38px; }
}

/* ===== “Quy trình thi công & bảo hành” – tăng tương phản ===== */
.section .h2,
.process-title{ 
  color:#F5F8FF; 
  font-weight:900; 
  letter-spacing:-.01em;
  text-shadow:0 1px 0 rgba(255,255,255,.05), 0 10px 28px rgba(124,77,255,.10);
}

/* Card từng bước: nền sáng – chữ đậm, dễ đọc trên nền tối */
.process .step{
  background:linear-gradient(180deg,#ffffff,#F7FAFF);
  border:1px solid rgba(15,23,42,.10);
  color:#0b1220;
}
.process .step .num{
  width:36px;height:36px; border-radius:12px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff; font-weight:900;
  box-shadow:0 6px 16px rgba(43,127,255,.35);
}
.process .step h4, 
.process .step strong{ color:#0b1220; font-weight:800; }
.process .step p,
.process .step small{ color:#475569; }

/* ========= Mobile Optimizations: colors.html ========= */
.page-colors .page-title { row-gap: 6px; }
.page-colors .page-subtitle { font-size: 14px; }

/* Thanh lọc: xếp dọc, tối ưu chạm */
@media (max-width: 900px){
  .page-colors .sticky-filters .row{
    flex-direction: column;
    align-items: stretch !important;
  }
  .page-colors #q{ min-height: 44px; }
  .page-colors #birthYear,
  .page-colors #roomType{ min-height: 44px; }

  /* Biến layout 2 cột -> 1 cột, bỏ sticky ở aside */
  .page-colors #colorsShell{
    display: block !important;                 /* override inline grid */
    margin-top: 8px !important;
  }
  .page-colors #colorsShell > aside{
    position: static !important;               /* không sticky trên mobile */
    margin-top: 12px;
  }

  /* Grid màu: thẻ lớn hơn để dễ bấm */
  .page-colors #swatchGrid.grid-6{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 cột <=900px */
    gap: 10px;
  }
}
@media (max-width: 520px){
  .page-colors #swatchGrid.grid-6{
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 cột <=520px */
    gap: 10px;
  }
}

/* Card màu: tăng vùng chạm & cải thiện hành vi chạm trên mobile */
.page-colors .color-card{ border-radius: 16px; }
.page-colors .icon-btn{ width: 40px; height: 40px; }
@media (hover:none){
  .page-colors .color-info{ transform: translateY(0); opacity: 1; }
  .page-colors .color-actions{ transform: translateY(0); opacity: 1; }
}

/* AI Card & Moodboard: tối ưu cuộn, hình to hơn trên màn nhỏ */
.page-colors #aiCard #aiMoodboard{
  max-height: none !important;
  overflow: auto;
}
@media (max-width: 900px){
  .page-colors #aiCard #aiMoodboard{
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);     /* 2 cột ảnh/màu cho dễ xem */
    gap: 10px;
  }
}

/* Mini preview: tỉ lệ ổn định hơn */
.page-colors #miniPreview{
  height: auto !important;
  aspect-ratio: 3 / 1;                         /* giữ tỉ lệ trên mọi máy */
}

/* Thanh filter chips: tăng khoảng cách, wrap tốt hơn */
.page-colors .palette-toolbar{ gap: 6px; }
.page-colors .badge.radio{ padding: 6px 10px; }

/* ==== ROOM PREVIEW ==== */
.room-card { overflow: hidden; }
.room-gallery { display:flex; gap:8px; flex-wrap:wrap }
.room-thumb {
  width: 88px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  border:1px solid rgba(255,255,255,.10); cursor:pointer; position:relative;
}
.room-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.room-thumb.active { outline:2px solid var(--brand); }
.room-preview { border:1px solid rgba(255,255,255,.08); border-radius:14px; overflow:hidden; }
.room-canvas { width:100%; height:auto; display:block; background:#0b1220; }
.room-palette { display:grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap:8px; margin-top:8px; }
.room-chip {
  height:44px; border-radius:12px; border:1px solid rgba(255,255,255,.12); cursor:pointer;
}
.room-chip[title]{ position:relative }
.room-chip[title]::after{
  content:attr(title); position:absolute; left:8px; bottom:6px; font-size:11px;
  color:rgba(255,255,255,.92); text-shadow:0 1px 2px rgba(0,0,0,.35);
}
.hero-visual .hero-premium {
  width: 100%;
  height: auto;
  display: block;
  max-width: 640px;
  margin-inline: auto;
  /* blend và làm mượt ra nền */
  mix-blend-mode: lighten;
  background: transparent;
}
.hero-visual .hero-premium {
  filter: drop-shadow(0 0 40px rgba(124,77,255,.25))
          drop-shadow(0 0 60px rgba(43,127,255,.15));
}
/* ===== Labels đặt BÊN DƯỚI vùng so sánh ===== */
#modalBody {
  display: grid;
  grid-template-columns: 1.25fr 1fr; /* giữ bố cục 2 cột hiện tại */
  height: 100%;
  gap: 0;
}

.kv-wrap {
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto auto; /* so sánh / labels / zoom */
  gap: 10px;
  height: 100%;
}

.kv-labels {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f7f8fb;
  border: 1px solid rgba(0,0,0,.06);
  margin: 0 10px;
}
.kv-label {
  font-weight: 800;
  color: #0f172a;
}
.kv-spacer { flex: 1; border-bottom: 1px dashed rgba(0,0,0,.08); opacity: .7 }

/* Khe xem ảnh lớn khi click hình trong thư viện */
.kv-zoom {
  margin: 0 10px 6px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.kv-zoom.hidden { display: none; }
.kv-zoom img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 52vh;          /* tránh quá cao; vẫn cân đối popup */
  object-fit: contain;
  background: #fff;
}

/* Mobile: chuyển về 1 cột cho dễ xem */
@media (max-width: 960px) {
  #modalBody { grid-template-columns: 1fr; }
  .kv-wrap { grid-template-rows: minmax(260px, 1fr) auto auto; }
}
.prod-card { cursor: pointer; }
.prod-card .actions { cursor: default; }