/* Trang chi tiết sản phẩm: bổ sung nhỏ trên khung gốc của conceptb.vn (chủ web 30/10/2026 – giữ form gốc). */

/* Chọn bộ mã màu 6D / 5D / 3D / ver2024 trong tab Bảng màu: dùng đúng kiểu thanh tab "Thông số kỹ thuật / Giới thiệu / Lưu ý thi công" */
.site-single-product .tabs-warp .product-color-sets {
  max-width: 72rem;
  margin: 0 auto 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.site-single-product .tabs-warp .product-color-sets .nav-item {
  width: auto;
  min-width: 0;
}
/* Nhãn ver2024 dài hơn, có khổ màn hình chỉ riêng nó xuống 2 dòng: 4 nút vẫn cao bằng nhau, chữ ở giữa */
.site-single-product .tabs-warp .product-color-sets .nav-link {
  min-height: 4.4rem;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 575px) {
  .site-single-product .tabs-warp .product-color-sets .nav-link {
    padding: 0.6rem 0.4rem;
    font-size: 1.3rem;
    line-height: 1.25;
  }
}
.site-single-product .tabs-warp .product-color-sets__desc {
  margin: 0 0 3.2rem;
  color: #2f3338;
  font-size: 1.5rem;
  line-height: 1.6;
  text-align: center;
}

/* Điện thoại xếp 2 cột (bản gốc 1 cột): đủ vùng bấm và không phải cuộn quá dài với 36–72 mã */
@media (max-width: 479px) {
  .site-single-product .tabs-warp .product-color .list-color {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 2rem 1.6rem;
  }
}

/* Khung chi tiết mã màu: ảnh ô màu vuông cắt theo đúng tỉ lệ ảnh tấm của bản gốc (900:615), khung không cao gấp rưỡi */
.site-single-product .tabs-warp .product-color .group-color .box-full-color .color-standard-detail__main-image img {
  aspect-ratio: 900 / 615;
  object-fit: cover;
}

/* Ô khối đúng 200px trên máy tính: theme chia 1fr ra 199,75px, trình duyệt co ảnh đi 1px và làm mờ khoảng nửa số khối dù file đúng cỡ */
@media (min-width: 1200px) {
  .site-single-product .tabs-warp .product-color .list-color {
    grid-template-columns: repeat(4, 200px);
    column-gap: calc((100% - 800px) / 3);
  }
}

/* Khối mã màu vuông vức (chủ web 31/10/2026): theme bo khung 2rem, cắt mất góc của khối */
.site-single-product .tabs-warp .product-color .list-color .item__thumbnail {
  border-radius: 0;
}
/* Bóng khi rê chuột / đang chọn bám theo hình khối: bóng của khung (theme), khi hết bo góc, thành một vạch thẳng dưới chân khối.
   .item không cắt phần tràn: khối 3D sát mép trái ô, bóng bị cắt thành một đường dọc */
.site-single-product .tabs-warp .product-color .list-color .item {
  overflow: visible;
}
.site-single-product .tabs-warp .product-color .list-color .item.active .item__thumbnail,
.site-single-product .tabs-warp .product-color .list-color .item:hover .item__thumbnail {
  box-shadow: none;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

/* Ô màu dùng được bằng bàn phím */
.site-single-product .tabs-warp .product-color .list-color .item:focus-visible {
  /* !important: style-theme có *{outline:0!important}, giống cách làm trong _all.css */
  outline: 2px solid #c2410c !important;
  outline-offset: 2px;
}

/* Tab Công trình thực tế: dòng tên công trình + dòng "đang cập nhật" */
.site-single-product .tabs-warp .product-gallery-caption {
  margin: 0 0 2.4rem;
  color: #2f3338;
  font-size: 1.6rem;
  line-height: 1.6;
}
.site-single-product .tabs-warp .product-gallery-note {
  margin: 1.6rem 0 0;
  color: #2f3338;
  font-size: 1.6rem;
  line-height: 1.6;
  text-align: center;
}

/* Tab Quy trình thi công: liên kết tới sản phẩm trong câu chữ */
.site-single-product .tabs-warp .construction-process-product a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}
.site-single-product .tabs-warp .construction-process-product a:hover {
  color: #c2410c;
}
