/* =========================================
   HERO MÀU SẮC (CHUẨN ẢNH THIẾT KẾ)
   ========================================= */
.colors-hero {
  position: relative; 
  height: 520px; /* Tăng chút chiều cao cho thoáng */
  margin-top: 80px;
  background-color: var(--color-primary); 
  display: flex; 
  align-items: center; 
  overflow: hidden;
}

.page-hero__bg { 
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; 
}
.page-hero__bg-img { 
  width: 100%; height: 100%; object-fit: cover; object-position: right center; 
}

/* Lớp cắt chéo bên trái (Đỉnh rộng hơn đáy) */
.colors-hero__shape {
  position: absolute; 
  top: 0; left: 0; bottom: 0; 
  width: 55%; /* Chiếm 55% màn hình */
  background-color: var(--color-primary);
  /* Tọa độ: Góc trái trên -> Góc phải trên -> Góc phải dưới hơi lùi vào -> Góc trái dưới */
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%); 
  z-index: 2;
}

.page-hero__inner { 
  position: relative; 
  z-index: 3; 
  display: flex; 
  width: 100%;
  height: 100%;
}

/* --- CỘT TRÁI --- */
.colors-hero__left { 
  width: 55%; 
  color: var(--color-white); 
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 40px;
}

.colors-hero__subtitle { 
  font-size: 12px; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  margin-bottom: 12px; 
  opacity: 0.9; 
}

.colors-hero__title { 
  font-size: clamp(32px, 4vw, 42px); 
  font-weight: 700; 
  line-height: 1.2; 
  margin-bottom: 16px; 
}

.colors-hero__desc { 
  font-size: 15px; 
  line-height: 1.6; 
  opacity: 0.85; 
  margin-bottom: 32px; 
}

.colors-hero__actions { 
  display: flex; 
  gap: 16px; 
  margin-bottom: 40px; 
}

/* --- THÔNG SỐ (BADGES) --- */
.colors-hero__badges { 
  display: flex; 
  gap: 32px; 
  border-top: 1px solid rgba(255,255,255,0.15); /* Đường line mờ bên trên nếu cần */
  padding-top: 24px;
}

.ch-badge { 
  display: flex; 
  align-items: center; /* Căn giữa icon và khối text */
  gap: 12px; 
}

.ch-badge .icon { 
  width: 28px; 
  height: 28px; 
  flex-shrink: 0; 
}

.ch-badge__text {
  display: flex;
  flex-direction: column;
}

.ch-badge__text strong { 
  font-size: 16px; 
  font-weight: 700; 
  line-height: 1.2;
}

.ch-badge__text small { 
  font-size: 12px; 
  opacity: 0.8; 
  font-weight: 400; 
  margin-top: 2px;
}

/* --- CỘT PHẢI --- */
.colors-hero__right { 
  flex: 1; 
  position: relative; /* Dùng để neo các text tuyệt đối */
}

/* Chữ in trên tường */
.colors-hero__quote { 
  position: absolute;
  top: 50%;
  left: 30%; /* Điều chỉnh cho khớp mảng tường trống trong ảnh */
  transform: translateY(-50%);
  font-size: 22px; 
  font-weight: 300; /* Font mỏng */
  line-height: 1.4; 
  letter-spacing: 1px;
  color: var(--color-white);
}

/* Slogan góc phải dưới */
.colors-hero__slogan { 
  position: absolute;
  bottom: 32px;
  right: -150px;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.slogan-line {
  width: 32px;
  height: 2px;
  background-color: var(--color-white);
  margin-bottom: 8px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1199px) {
  .colors-hero__shape { clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%); width: 60%; }
  .colors-hero__left { width: 60%; }
  .colors-hero__quote { left: 15%; font-size: 18px; }
}

@media (max-width: 991px) {
  .colors-hero { height: auto; padding: 60px 0; }
  .colors-hero__shape { width: 100%; clip-path: none; background: linear-gradient(to right, rgba(17,27,87,1) 40%, rgba(17,27,87,0) 100%); }
  .page-hero__inner { flex-direction: column; gap: 40px; }
  .colors-hero__left, .colors-hero__right { width: 100%; padding: 0; }
  .colors-hero__quote { position: relative; top: 0; left: 0; transform: none; margin-bottom: 40px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
  .colors-hero__slogan { position: relative; bottom: 0; right: 0; margin-top: 24px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
}

@media (max-width: 767px) {
  .colors-hero__actions { flex-direction: column; }
  .colors-hero__badges { flex-direction: column; gap: 20px; }
}

/* =========================================
   KHÁM PHÁ NHANH BẢNG MÀU
   ========================================= */
.palette-scroll { overflow-x: auto; padding-bottom: 16px; margin-top: 32px; }
/* Ẩn thanh cuộn webkit cho đẹp */
.palette-scroll::-webkit-scrollbar { height: 6px; }
.palette-scroll::-webkit-scrollbar-thumb { background: #CCC; border-radius: 4px; }

.palette-list { display: flex; gap: 40px; width: max-content; }
.swatch-item { width: 100px; }
.swatch-color { width: 100%; height: 100px; border-radius: 8px; margin-bottom: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }
.swatch-info { font-size: 12px; color: #555; line-height: 1.4; }
.swatch-info strong { color: var(--color-text); font-size: 13px; }
.swatch-more {
  width: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #F8F9FA; border-radius: 8px; text-decoration: none; color: var(--color-primary); font-size: 12px; text-align: center; font-weight: 600;
}
.swatch-more-icon { font-size: 24px; font-weight: 300; margin-bottom: 8px; }

.color-palettes h2,
.color-collections h2,
.color-spaces h2,
.experience-info h2 {
  color: #000;
}

/* =========================================
   BỘ SƯU TẬP MÀU & CHỌN MÀU THEO KHÔNG GIAN
   ========================================= */
.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.collect-card { position: relative; height: 360px; border-radius: 12px; overflow: hidden; display: block; text-decoration: none; color: var(--color-white); }
.collect-card__img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.collect-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); }
.collect-card:hover .collect-card__img { transform: scale(1.05); }
.collect-card__content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 24px; z-index: 2; display: flex; flex-direction: column; }
.collect-card__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.collect-card__desc { font-size: 13px; opacity: 0.9; margin-bottom: 16px; }
.collect-card__btn { width: 32px; height: 32px; background: var(--color-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-primary); align-self: flex-start; }
.collect-card__btn .icon { width: 16px; height: 16px; }

/* Grid không gian (Dùng chung layout lưới 4 cột) */
.space-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.space-card { background: var(--color-white); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--color-text); box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: 0.3s; }
.space-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(17,27,87,0.1); }
.space-card__img-wrap img { width: 100%; height: 200px; object-fit: cover; }
.space-card__content { padding: 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.space-card__title { font-size: 16px; font-weight: 700; color: var(--color-primary); margin-bottom: 4px; }
.space-card__desc { font-size: 13px; color: #666; }
.btn-circle { width: 32px; height: 32px; border: 1px solid var(--color-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-primary); }

/* =========================================
   CÔNG CỤ TRẢI NGHIỆM MÀU (Slider Before/After)
   ========================================= */
.experience-tool { background: #EFEFEF; padding: 80px 0; }
.experience-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 60px; align-items: center; }
.experience-info .subtitle { font-size: 13px; font-weight: 700; color: var(--color-primary); margin-bottom: 12px; }
.tool-features { display: flex; gap: 24px; border-top: 1px solid #DDD; padding-top: 24px; }
.feat { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--color-primary); }
.feat .icon { width: 20px; height: 20px; }

/* Slider Container */
.experience-demo { position: relative; background: var(--color-white); padding: 24px; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.demo-room-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.demo-room-tabs button { padding: 6px 16px; border: none; background: transparent; font-size: 14px; font-weight: 600; color: #777; cursor: pointer; border-radius: 20px; transition: 0.2s; }
.demo-room-tabs button.active { background: #F1F3F5; color: var(--color-primary); }

.compare-container { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; cursor: ew-resize; user-select: none; }
.compare-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.compare-layer--after { width: 50%; border-right: 2px solid var(--color-white); z-index: 2; }
.compare-img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }

/* KỸ THUẬT LỚP MÀU TƯỜNG (Masking Layer) */
.wall-color-layer { width: 100%; height: 100%; position: absolute; inset: 0; transition: background-color 0.3s ease; }
.furniture-mask { position: relative; z-index: 2; /* Ảnh PNG trong suốt đè lên lớp màu */ }

.compare-badge { position: absolute; top: 16px; padding: 4px 12px; background: rgba(0,0,0,0.6); color: var(--color-white); font-size: 12px; border-radius: 4px; z-index: 3; pointer-events: none; }
.badge-before { right: 16px; }
.badge-after { left: 16px; }

/* Thanh kéo Slider */
.compare-handle { position: absolute; top: 0; bottom: 0; width: 40px; margin-left: -20px; z-index: 4; display: flex; align-items: center; justify-content: center; }
.handle-line { position: absolute; top: 0; bottom: 0; left: 19px; width: 2px; background: var(--color-white); box-shadow: 0 0 4px rgba(0,0,0,0.3); }
.handle-btn { position: relative; width: 36px; height: 36px; background: var(--color-white); border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; }

/* Swatches dướí Slider */
.demo-swatches { display: flex; flex-direction: column; align-items: center; margin-top: 24px; }
.swatches-list { display: flex; gap: 12px; background: var(--color-white); padding: 8px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.demo-color { width: 40px; height: 40px; border-radius: 4px; border: none; cursor: pointer; transition: transform 0.2s; position: relative; }
.demo-color.active { transform: scale(1.1); box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-primary); z-index: 2; }
.demo-color-name { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--color-primary); }

/* ========================= MÀU SẮC CỦA NĂM ========================= */
.color-of-year {
  background: #8CA086;
  padding: 80px 0;
}

.color-of-year .container {
  display: flex;
  align-items: center;
  gap: 50px; /* Tạo khoảng cách rộng rãi giữa 2 cột */
}

/* Cột trái (Chứa nội dung) */
.coy-left {
  flex: 0 0 38%; /* Cột trái chiếm khoảng 38% */
}

.coy-left .subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-dark, #fff);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.coy-left .heading-primary {
  font-size: 36px;
  color: var(--color-primary-dark, #fff);
  line-height: 1.2;
  margin-bottom: 20px;
}

.coy-left .desc {
  font-size: 15px;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Ép nút bấm thành màu đỏ chuẩn demo */
.coy-left .btn {
  background-color: #E31837 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 24px;
}
.coy-left .btn:hover {
  background-color: #c0142e !important;
}

/* Cột phải (Chứa ảnh) */
.coy-right {
  flex: 1; /* Chiếm phần diện tích còn lại */
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

.coy-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

/* Lớp chữ đè lên ảnh */
.coy-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 45%; /* Đẩy khối chữ sang nửa bên phải của bức ảnh */
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Căn giữa theo chiều dọc */
  background: transparent; /* Xóa gradient đen */
  color: #fff;
}

.coy-quote {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 24px;
}

.coy-author {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Reponsive cho Mobile/Tablet */
@media (max-width: 992px) {
  .color-of-year .container {
    flex-direction: column;
    gap: 30px;
  }
  .coy-left, .coy-right {
    flex: 1 1 100%;
    width: 100%;
  }
  .coy-overlay {
    left: 10%;
    padding: 30px;
    background: rgba(0,0,0,0.4); /* Thêm nền tối nhẹ cho mobile dễ đọc chữ */
  }
}

/* Responsive */
@media (max-width: 991px) {
  .page-hero__shape-left { width: 100%; clip-path: none; background: linear-gradient(to right, rgba(17,27,87,1) 40%, rgba(17,27,87,0) 100%); }
  .page-hero__inner { flex-direction: column; gap: 40px; }
  .page-hero__content-left, .page-hero__content-right { width: 100%; padding: 0; }
  .collection-grid, .space-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-grid { grid-template-columns: 1fr; }
  .color-of-year > .container { flex-direction: column; gap: 40px; }
  .coy-left, .coy-right { width: 100%; padding: 0; }
}
@media (max-width: 767px) {
  .collection-grid, .space-grid { grid-template-columns: 1fr; }
  .tool-features { flex-direction: column; gap: 12px; }
  .coy-quote { font-size: 24px; }
  .coy-overlay { left: 20px; right: 20px; text-align: center; }
}
