/* =========================================
   HERO BỘ SƯU TẬP (CẬP NHẬT CHUẨN THIẾT KẾ)
   ========================================= */
.cc-hero {
  position: relative; height: 560px; margin-top: 80px;
  background-color: var(--color-primary); display: flex; align-items: center; overflow: hidden;
}
.cc-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.cc-hero__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }

/* Nền chéo cắt chéo từ trái qua */
.cc-hero__shape {
  position: absolute; top: 0; left: 0; bottom: 0; width: 45%;
  background-color: var(--color-primary);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%); z-index: 2;
}

.cc-hero__inner { position: relative; z-index: 3; display: flex; width: 100%; height: 100%; }

/* --- CỘT TRÁI --- */
.cc-hero__left { 
  width: 45%; 
  color: var(--color-white); 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  padding-right: 40px; 
}

.breadcrumb { font-size: 13px; margin-bottom: 24px; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: rgba(255,255,255,0.9); text-decoration: none; }
.breadcrumb .current { color: var(--color-white); font-weight: 600; }

.cc-hero__subtitle { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; opacity: 0.9; }
.cc-hero__title { font-size: clamp(36px, 4vw, 48px); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.cc-hero__desc { font-size: 15px; line-height: 1.6; opacity: 0.85; margin-bottom: 32px; }

/* Cụm icon tính năng */
.cc-hero__features { 
  display: flex; 
  gap: 40px; 
  margin-bottom: 40px;
  /* Đã bỏ border-top như thiết kế */
}
.feat-item-col { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center;
  gap: 12px; 
  font-size: 12px; 
  font-weight: 500; 
  line-height: 1.4; 
  opacity: 0.9;
}
.feat-item-col .icon { width: 28px; height: 28px; flex-shrink: 0; }

.cc-hero__actions { display: flex; align-items: center; gap: 16px; }

/* --- CỘT PHẢI --- */
.cc-hero__right { flex: 1; position: relative; }

.cc-hero__quote {
  position: absolute; top: 15%; left: 35%; 
  font-family: 'Playfair Display', serif; /* Font có chân cho quote */
  font-size: 32px; font-style: italic; color: var(--color-white); 
  line-height: 1.4; text-align: center;
}
.quote-line {
  width: 60px;
  height: 1px;
  background-color: rgba(255,255,255,0.6);
  margin: 16px auto 0; /* Căn giữa line dưới text */
}

.cc-hero__color-label {
  position: absolute; bottom: 24px; right: 24px; 
  text-align: right;
  color: var(--color-white); font-size: 13px; letter-spacing: 1px;
  margin-right: -150px;
}
.cc-hero__color-label strong { font-size: 16px; display: block; margin-top: 4px; }

/* =========================================
   TEXTURE CÔNG NGHỆ
   ========================================= */
.cc-texture { background-size: cover; background-position: center; position: relative; color: var(--color-white); padding: 80px 0; }
.cc-texture::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(139,78,61,0.9) 0%, rgba(139,78,61,0.4) 100%); }
.cc-texture__inner { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.cc-texture__content { width: 45%; }
.cc-texture__content .subtitle { font-size: 13px; font-weight: 700; margin-bottom: 12px; opacity: 0.9; }
.cc-texture__content .title { font-size: 28px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.cc-texture__content .desc { font-size: 15px; opacity: 0.9; line-height: 1.6; }

.cc-texture__list { width: 40%; display: flex; flex-direction: column; gap: 32px; }
.t-item { display: flex; align-items: center; gap: 20px; }
.t-icon { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.t-icon .icon { width: 24px; height: 24px; }
.t-text { font-size: 14px; opacity: 0.9; }
.t-text strong { font-size: 16px; font-weight: 700; color: #FFF; display: block; margin-bottom: 4px; }

/* =========================================
   LƯỚI 18 MÀU (Tương tác Focus/Hover)
   ========================================= */
.color-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px 16px; margin-top: 32px; }
.color-item {
  background: none; border: none; padding: 0; text-align: left; cursor: pointer;
  transition: transform 0.3s ease; position: relative;
}
/* Hiệu ứng nổi bọt khi hover/focus */
.color-item:hover, .color-item:focus-visible {
  transform: translateY(-6px); outline: none;
}
.color-item:focus-visible .c-swatch {
  box-shadow: 0 0 0 3px var(--color-white), 0 0 0 5px var(--color-primary);
}
.c-swatch { width: 100%; aspect-ratio: 4/3; border-radius: 4px; margin-bottom: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); transition: box-shadow 0.3s; }
.color-item:hover .c-swatch { box-shadow: 0 12px 24px rgba(0,0,0,0.15); }
.c-info { font-size: 14px; color: var(--color-text); line-height: 1.4; }
.c-info strong { display: block; font-weight: 700; margin-bottom: 2px; }
.c-info span { font-size: 12px; color: #777; }

/* =========================================
   BẢNG PHỐI MÀU (3 Thẻ)
   ========================================= */
.palette-combo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.combo-card { background: var(--color-white); border-radius: 12px; overflow: hidden; border: 1px solid var(--color-border); }
.combo-card__img { width: 100%; height: 220px; object-fit: cover; }
.combo-card__body { padding: 24px; }
.combo-card__title { font-size: 16px; font-weight: 700; color: var(--color-primary); margin-bottom: 8px; }
.combo-card__desc { font-size: 14px; color: #666; }
.combo-circles { display: flex; }
.combo-circles .circle { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--color-white); margin-left: -8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.combo-circles .circle:first-child { margin-left: 0; }
.btn-circle-sm { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--color-border); background: #FFF; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--color-primary); transition: 0.2s; }
.btn-circle-sm:hover { background: var(--color-primary); color: #FFF; }

/* =========================================
   ỨNG DỤNG KHÔNG GIAN (Ảnh nền)
   ========================================= */
.space-card-img {
  position: relative; height: 280px; border-radius: 12px; overflow: hidden; display: block; text-decoration: none; color: var(--color-white);
}
.space-card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.space-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); }
.space-card-img:hover img { transform: scale(1.05); }
.sc-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 24px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; }
.sc-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.sc-title .icon { width: 20px; height: 20px; }
.sc-desc { font-size: 14px; opacity: 0.9; }
/* =========================================
   LƯỚI 3 CỘT (ỨNG DỤNG KHÔNG GIAN)
   ========================================= */
.space-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
  margin-top: 20px;
}

/* --- Responsive Lưới 3 cột --- */
@media (max-width: 991px) {
  .space-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 767px) {
  .space-grid { 
    grid-template-columns: 1fr; 
  }
}

/* =========================================
   HƯỚNG DẪN KỸ THUẬT
   ========================================= */
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--color-border); padding-top: 32px; }
.guide-item .g-icon { width: 48px; height: 48px; border-radius: 50%; background: #F1F3F5; display: flex; align-items: center; justify-content: center; color: var(--color-primary); margin-bottom: 16px; }
.guide-item .g-icon .icon { width: 24px; height: 24px; }
.guide-item h4 { font-size: 15px; font-weight: 700; color: var(--color-primary); margin-bottom: 8px; }
.guide-item p { font-size: 13.5px; color: #555; line-height: 1.5; }

/* =========================================
   MODAL CHI TIẾT MÀU SẮC
   ========================================= */
.c-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: 0.3s;
}
.c-modal[aria-hidden="false"] { opacity: 1; visibility: visible; }
.c-modal__overlay { position: absolute; inset: 0; background: rgba(17,27,87,0.8); backdrop-filter: blur(4px); }

.c-modal__box {
  position: relative; background: var(--color-white); width: 90%; max-width: 800px;
  border-radius: 16px; overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  transform: translateY(20px); transition: 0.3s; z-index: 2;
}
.c-modal[aria-hidden="false"] .c-modal__box { transform: translateY(0); }

.c-modal__close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  background: #F1F3F5; border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 10; transition: 0.2s;
}
.c-modal__close:hover { background: #E2E6EA; }

.c-modal__grid { display: grid; grid-template-columns: 1fr 1fr; }
.c-modal__swatch { width: 100%; height: 100%; min-height: 400px; }
.c-modal__info { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }

.c-modal__collection { font-size: 12px; font-weight: 700; color: #777; margin-bottom: 12px; letter-spacing: 1px; }
.c-modal__name { font-size: 32px; font-weight: 700; color: var(--color-primary); margin-bottom: 8px; }
.c-modal__code { font-size: 18px; color: #555; margin-bottom: 32px; font-family: monospace; }
.c-modal__actions { display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid #EEE; padding-bottom: 24px; margin-bottom: 24px; }

/* Bảng phối mini */
.c-modal__palette p { font-size: 13px; color: #666; margin-bottom: 12px; font-weight: 600; }
.selected-colors { display: flex; gap: 12px; min-height: 40px; }
.s-circle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.s-circle.empty { border: 1px dashed #CCC; background: transparent; box-shadow: none; }

/* Responsive */
@media (max-width: 1199px) {
  .cc-hero__shape { width: 55%; clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%); }
  .cc-hero__left { width: 55%; }
  .color-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
  .cc-hero { height: auto; padding: 60px 0; }
  .cc-hero__shape { width: 100%; clip-path: none; background: linear-gradient(to right, rgba(17,27,87,1) 40%, rgba(17,27,87,0) 100%); }
  .cc-hero__inner { flex-direction: column; gap: 40px; }
  .cc-hero__left, .cc-hero__right { width: 100%; padding: 0; }
  .cc-hero__quote { position: relative; top: 0; left: 0; font-size: 24px; margin-bottom: 20px; }
  
  .cc-texture__inner { flex-direction: column; gap: 40px; }
  .cc-texture__content, .cc-texture__list { width: 100%; }
  
  .color-grid { grid-template-columns: repeat(3, 1fr); }
  .palette-combo-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  
  .c-modal__grid { grid-template-columns: 1fr; }
  .c-modal__swatch { min-height: 200px; }
  .c-modal__info { padding: 32px 24px; }
}
@media (max-width: 767px) {
  .color-grid { grid-template-columns: repeat(2, 1fr); }
  .palette-combo-grid, .guide-grid { grid-template-columns: 1fr; }
  .cc-hero__features { flex-direction: column; }
}