/* Trang /cong-cu theo bản chốt sắp xếp v01 (16/11/2026). Chỉ nạp ở trang này.
   Màu chỉ dùng bảng quy chuẩn: #45140B #79200F #C89B3C #D8BF8A #EAD9BD #FDFBF6 #4F4234. */
.cc-trang [hidden]{display:none!important}
.cc-trang .cc-hero-in h1,.cc-trang .cc-dau h2,.cc-trang .cc-cuoi h2{text-wrap:balance}
.cc-trang .cc-chuyen{margin:0 0 1.2rem}
.cc-trang .cc-chuyen a.on{background:#C89B3C;color:#45140B;border-color:#C89B3C}
.cc-trang .cc-tim{margin-bottom:0}
.cc-tin{display:flex;flex-wrap:wrap;gap:6px 18px;margin:14px 0 0;font-size:14px;color:#EAD9BD}
.cc-tin span{white-space:nowrap}
.cc-tin span:last-child{white-space:normal}

/* Thanh "Đang xem" khi lọc theo chuyện */
.cc-loc{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:28px;padding-bottom:4px;font-size:15px;color:#4F4234;scroll-margin-top:70px}
.cc-loc b{color:#79200F}
.cc-loc-x{min-height:44px;padding:10px 18px;border:1px solid #D8BF8A;border-radius:999px;background:#FDFBF6;color:#79200F;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.cc-loc-x:hover{border-color:#C89B3C}

/* Lưới thẻ: dùng flex để hàng cuối lẻ thẻ thì canh giữa */
.cc-trang .cc-luoi{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;--cot:4}
.cc-trang .cc-luoi>.cc-the{flex:0 0 calc((100% - (var(--cot) - 1) * 18px) / var(--cot));min-width:0;box-sizing:border-box}
.cc-trang .cc-bat-dau .cc-luoi{--cot:3;max-width:960px;margin-inline:auto}
@media (max-width:1000px){.cc-trang .cc-luoi{--cot:3}}

/* Thẻ: bỏ chữ lặp "Mở công cụ", nút ghi việc cụ thể */
.cc-trang .cc-chan i{display:none}
.cc-trang .cc-luoi .cc-moi .cc-chan em{font-size:.8rem;padding:7px 16px}

/* Thẻ trong các nhóm thu gọn; 3 thẻ "Nên bắt đầu" giữ cỡ to. Từ 600px trở xuống dùng lưới 3 cột của v02. */
@media (min-width:601px){
.cc-trang .cc-phan:not(.cc-bat-dau) .cc-moi .cc-tron{width:84px;height:84px;margin:0 auto 6px}
.cc-trang .cc-phan:not(.cc-bat-dau) .cc-moi h3{font-size:16px;margin-bottom:4px}
.cc-trang .cc-phan:not(.cc-bat-dau) .cc-moi p{font-size:13.5px;line-height:1.5;margin-bottom:2px}
}
.cc-trang .cc-dau>div:only-child{max-width:none}

/* Khối mời đọc cùng giữa trang */
.cc-giua-p{max-width:620px;margin:-.8rem auto 1.4rem;color:#EAD9BD;text-wrap:balance}

/* Điện thoại: phần đầu dùng chung đến 640px; phần thẻ cũ chỉ còn cho khoảng 601-640px, dưới 600px theo v02 */
@media (max-width:640px){
  .top-cta{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;font-size:14px}
  header a.icon-btn[href$="/gio-hang"]:not(:has(.badge-dot)){display:none}
  header .icon-btn{min-width:44px;min-height:44px}
}
@media (min-width:601px) and (max-width:640px){
  #chat-noi{bottom:96px!important}
  .cc-trang .cc-chuyen{flex-wrap:wrap;overflow:visible;margin-inline:0;padding:0;gap:8px}
  .cc-trang .cc-chuyen a{min-height:44px;box-sizing:border-box;padding-top:6px;padding-bottom:6px;font-size:13.5px}
  .cc-trang .cc-luoi{--cot:2;gap:10px}
  .cc-trang .cc-luoi>.cc-the{flex-basis:calc((100% - 10px) / 2)}
  .cc-trang .cc-luoi .cc-moi{padding:10px 8px 12px}
  .cc-trang .cc-luoi .cc-moi p{display:block;-webkit-line-clamp:unset;overflow:visible}
  .cc-trang .cc-phan:not(.cc-bat-dau) .cc-moi .cc-tron{width:60px;height:60px}
  .cc-trang .cc-phan:not(.cc-bat-dau) .cc-moi h3{font-size:15px}
  .cc-trang .cc-phan:not(.cc-bat-dau) .cc-moi p{font-size:13px}
  .cc-trang .cc-bat-dau .cc-moi{outline:2px solid #C89B3C;outline-offset:-2px}
  .cc-trang .cc-bat-dau .cc-moi .cc-tron{width:72px;height:72px;margin:0 auto 6px}
  .cc-trang .cc-bat-dau .cc-moi h3{font-size:16px}
  .cc-trang .cc-bat-dau .cc-moi p{font-size:13px}
  .cc-trang .hn-than .cc-phan{padding-top:28px;padding-bottom:28px}
  .cc-trang .hn-than .cc-phan .cc-dau{margin-bottom:16px}
  .cc-giua .cc-cuoi-in{padding-top:36px;padding-bottom:36px}
}

/* =========================================================
   Bản sửa v02 (17/11/2026, anh Khôi duyệt). Gốc: trang-cong-cu-v02.css.
   Thêm tiền tố .cc-trang để thắng luật chung trong site.css; điện thoại là 600px trở xuống.
   ========================================================= */

/* 1. Thẻ công cụ: viền vàng ngoài 1,5px, viền kem trong 2px */
.cc-trang a.cc-the.cc-moi{
  border:1.5px solid #C89B3C;
  box-shadow:#FDFBF6 0 0 0 2px inset,#C89B3C 0 0 0 3px inset,rgba(138,102,32,.45) 0 14px 28px -16px;
}
.cc-trang .cc-luoi a.cc-the.cc-moi h3{color:#79200F}
.cc-trang .cc-luoi a.cc-the.cc-moi p{color:#4F4234}

/* 2. Nút đỏ trong thẻ */
.cc-trang .cc-luoi a.cc-the.cc-moi .cc-chan em{
  background:linear-gradient(180deg,#BB4218 0%,#79200F 48%,#5E180B 100%);
  color:#FDFBF6;border:1.5px solid #C89B3C;border-radius:999px;
  box-shadow:inset 0 1px 0 rgba(253,251,246,.45),inset 0 -2px 3px rgba(69,20,11,.45),0 0 0 2px #EAD9BD,0 4px 10px rgba(94,24,11,.35);
  font-weight:700;padding:7px 20px;text-shadow:0 1px 1px rgba(69,20,11,.6);
}
.cc-trang .cc-luoi a.cc-the.cc-moi .cc-chan em::after{content:" \203A";font-weight:700}
.cc-trang .cc-luoi a.cc-the.cc-moi:hover .cc-chan em{background:linear-gradient(180deg,#C89B3C 0%,#BB4218 30%,#79200F 100%)}

/* 3. Điện thoại (600px trở xuống): gọn, ít chữ */
@media (max-width:600px){
  /* Đầu trang */
  .cc-trang .cc-hero h1 + p.ab-lead{display:none}
  .cc-trang nav.cc-chuyen{display:grid;grid-template-columns:1fr 1fr;gap:8px;overflow:visible;margin-inline:0;padding:0}
  .cc-trang nav.cc-chuyen > a{justify-content:flex-start;text-align:left;font-size:12.5px;line-height:1.2;padding:6px 8px;gap:6px;min-height:42px;box-sizing:border-box}
  .cc-trang nav.cc-chuyen > a img{width:20px;height:20px;flex:0 0 20px}
  .cc-trang p.cc-tin{display:flex;gap:14px;justify-content:center}
  .cc-trang p.cc-tin span:nth-child(3){display:none}

  /* Câu giới thiệu dưới tên nhóm: ẩn, giữ số thứ tự và tên */
  .cc-trang .cc-phan .cc-dau p:not(.ab-kicker){display:none}
  .cc-trang .hn-than .cc-phan{padding-top:28px;padding-bottom:28px}
  .cc-trang .hn-than .cc-phan .cc-dau{margin-bottom:16px}
  .cc-giua .cc-cuoi-in{padding-top:36px;padding-bottom:36px}

  /* Lưới thẻ 3 cột: logo, tên, nút "Xem ›" */
  .cc-trang .cc-luoi,.cc-trang .cc-bat-dau .cc-luoi{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .cc-trang .cc-luoi > a.cc-the.cc-moi{
    width:auto;max-width:none;min-height:0;margin:0;padding:12px 6px;border-radius:14px;background-size:cover;outline:0;
    box-shadow:#FDFBF6 0 0 0 1.5px inset,#C89B3C 0 0 0 2.5px inset,0 8px 16px -10px rgba(138,102,32,.5);
  }
  .cc-trang .cc-luoi > a.cc-the.cc-moi img.cc-tron{width:62px;height:62px;margin:0 auto 6px}
  .cc-trang .cc-luoi > a.cc-the.cc-moi h3{
    font-size:13px;line-height:1.25;margin:0 0 8px;min-height:2.5em;
    display:flex;align-items:center;justify-content:center;text-shadow:0 0 4px #FDFBF6,0 0 2px #FDFBF6;
  }
  .cc-trang .cc-luoi > a.cc-the.cc-moi p,.cc-trang .cc-luoi > a.cc-the.cc-moi .cc-sen{display:none}
  .cc-trang .cc-luoi > a.cc-the.cc-moi .cc-chan{margin-top:auto}
  /* Chữ nút trên điện thoại thống nhất "Xem ›" (ẩn chữ dài, hiện chữ ngắn) */
  .cc-trang .cc-luoi > a.cc-the.cc-moi .cc-chan em{font-size:0;padding:6px 14px;white-space:nowrap}
  .cc-trang .cc-luoi > a.cc-the.cc-moi .cc-chan em::before{content:"Xem";font-size:12px;font-weight:700}
  .cc-trang .cc-luoi > a.cc-the.cc-moi .cc-chan em::after{font-size:12px}

  /* Nút chat nhỏ lại, sát góc; cuối trang chừa 70px */
  body:has(.cc-trang) .cn{--cn-b:calc(14px + env(safe-area-inset-bottom));right:10px}
  body:has(.cc-trang) .cn-nut{width:46px;height:46px}
  body:has(.cc-trang) .cn-nut svg{width:22px;height:22px}
  .cc-trang{padding-bottom:70px}

  /* Tên thương hiệu không dính nút tìm kiếm */
  body:has(.cc-trang) .brand-ten{font-size:16px;white-space:nowrap}
}

