/* Trang phụ web bán hàng: chính sách, Góc film, bài viết, Film mới về.
   Đầu / chân trang, thẻ sản phẩm (.sp-the), nhãn khối (.nhan-khoi) và màu chung nằm ở /css/shop.css (phần 4).
   Màu ở đây đọc biến của shop.css, không có thì dùng đúng màu web cũ. */
.phu {
  --phu-chinh: var(--chinh, #0056DA);
  --phu-chinh-nhat: var(--xanh-nhat, #E5EFFD);
  --phu-nen: var(--xam, #F2F3F5);
  --phu-the: var(--trang, #FFFFFF);
  --phu-chu: var(--chu, #26292E);
  --phu-chu-phu: var(--chu-3, #666E7A);
  --phu-ke: var(--ke, #E4E7EB);
  --phu-gia: var(--gia, #ED685D);
  --phu-khung: calc(var(--khung, 920px) + 32px);
  margin: 0;
  background: var(--phu-nen);
}
.phu.phu-nen-trang { background: var(--phu-the); }
.phu {
  color: var(--phu-chu);
  font: 400 14px/1.6 var(--f, Inter, system-ui, sans-serif);
}
.phu-main { min-height: 50vh; padding: 0 0 48px; }
.phu-khung { max-width: var(--phu-khung); margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
:where(.phu) a { color: inherit; }

/* Vụn bánh mì */
.phu-vun { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 16px 0 12px; font-size: 13px; color: var(--phu-chu-phu); }
.phu-vun a { color: var(--phu-chinh); text-decoration: none; }
.phu-vun a:hover { text-decoration: underline; }
.phu-vun [aria-current] { color: var(--phu-chu); overflow-wrap: anywhere; }
.phu-vun-cach { color: var(--phu-chu-phu); }

/* Hộp trắng + chữ dài */
.phu-hop { background: var(--phu-the); border-radius: 8px; box-sizing: border-box; }
.phu-van { max-width: 860px; margin: 0 auto; padding: 28px 40px 36px; }
.phu-tieu-de { margin: 0 0 16px; font: 600 26px/1.3 Inter, system-ui, sans-serif; color: var(--phu-chu); }
.phu-noi-dung { font-size: 15px; line-height: 1.7; color: #3F454C; overflow-wrap: break-word; }
.phu-noi-dung h2 { font-size: 19px; line-height: 1.35; margin: 28px 0 8px; color: var(--phu-chu); }
.phu-noi-dung h3 { font-size: 16px; line-height: 1.4; margin: 24px 0 6px; color: var(--phu-chu); }
.phu-noi-dung p { margin: 0 0 12px; }
.phu-noi-dung ul { margin: 0 0 12px; padding-left: 22px; }
.phu-noi-dung li { margin: 4px 0; }
.phu-noi-dung a { color: var(--phu-chinh); }
.phu-noi-dung strong { color: var(--phu-chu); font-weight: 600; }
.phu-anh-bai { margin: 16px 0; }
.phu-anh-bai img { display: block; width: 100%; height: auto; border-radius: 6px; }

.phu-chinh-sach-khac { max-width: 860px; margin: 16px auto 0; padding: 20px 40px; }
.phu-chinh-sach-khac h2 { margin: 0 0 8px; font: 600 16px/1.3 Oswald, Inter, sans-serif; }
.phu-chinh-sach-khac ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.phu-chinh-sach-khac a { display: block; padding: 6px 0; color: var(--phu-chinh); text-decoration: none; }
.phu-chinh-sach-khac a:hover { text-decoration: underline; }

/* Tiêu đề khối, nút */
.phu-tieu-de-khoi { margin: 0; font: 600 20px/1.3 Oswald, Inter, sans-serif; color: var(--phu-chu); }
.phu-an-chu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.phu-nut-vien { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--phu-ke); border-radius: 18px; background: var(--phu-the); text-decoration: none; font-size: 13px; color: var(--phu-chu); white-space: nowrap; }
.phu-nut-vien:hover { border-color: var(--phu-chinh); color: var(--phu-chinh); }
.phu-chuyen-muc { display: block; font-size: 12px; color: var(--phu-chinh); text-decoration: none; }
.phu-chuyen-muc-xam { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 4px; background: var(--phu-nen); color: var(--phu-chu); }

/* Góc film */
.phu-goc { padding-top: 16px; }
.phu-goc-dau { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.phu-goc-luoi { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 20px; align-items: start; }
.phu-goc-nho { display: grid; gap: 14px; }
.phu-bai { display: block; text-decoration: none; color: var(--phu-chu); }
.phu-bai-anh { display: block; overflow: hidden; border-radius: 6px; background: var(--phu-ke); aspect-ratio: 16 / 9; }
.phu-bai-anh img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.phu-bai:hover .phu-bai-anh img { transform: scale(1.03); }
.phu-bai-chu { display: block; padding-top: 8px; }
.phu-bai-ten { display: block; margin-top: 2px; font-weight: 600; font-size: 15px; line-height: 1.4; }
.phu-bai:hover .phu-bai-ten { color: var(--phu-chinh); }
.phu-bai-lon .phu-bai-ten { font-size: 16px; }
.phu-bai-nho { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: start; }
.phu-bai-nho .phu-bai-chu { padding-top: 0; }
.phu-bai-nho .phu-bai-ten { font-size: 13px; }
.phu-bai-mo-ta { margin: 6px 0 0; font-size: 13px; color: var(--phu-chu-phu); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Tất cả bài viết */
.phu-loc-hang { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.phu-loc { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--phu-ke); background: var(--phu-the); text-decoration: none; font-size: 13px; }
.phu-loc[aria-current] { background: var(--phu-chinh); border-color: var(--phu-chinh); color: #fff; }
.phu-luoi-bai { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.phu-luoi-bai .phu-bai { background: var(--phu-the); border-radius: 8px; padding: 10px 10px 14px; }
.phu-trong { color: var(--phu-chu-phu); margin: 8px 0; }

/* Trang bài viết */
.phu-bai-dong { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--phu-ke); }
.phu-chia-se { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 4px; background: #22A45D; color: #fff; font: 500 13px Inter, sans-serif; cursor: pointer; }
.phu-chia-se:hover { background: #1C8C4F; }
.phu-lien-quan { max-width: 860px; margin: 28px auto 0; }
.phu-lien-quan .phu-tieu-de-khoi { margin-bottom: 14px; }
.phu-luoi-lien-quan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.phu-bao { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 10px 16px; border-radius: 6px; background: #26292E; color: #fff; font-size: 14px; }

/* Film mới về */
.phu-moi-ve { padding-top: 24px; }
.phu-moi-ve .tieude-khoi { margin-bottom: 16px; }
.phu-moi-ve-luoi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.phu-moi-ve-luoi > .sp-the { border-radius: 6px; border: 1px solid var(--phu-ke); }
.phu-moi-ve-luoi > .phu-lon { grid-column: span 2; }
/* Thẻ lớn như web cũ: ảnh phủ cả thẻ, chữ trắng trên nền tối dần (thẻ .sp-the của shop.css) */
.sp-the.phu-lon { position: relative; justify-content: flex-end; min-height: 280px; padding: 12px; overflow: hidden; background: #3F454C; color: #fff; }
.sp-the.phu-lon .sp-link { flex: 0 0 auto; position: static; }
.sp-the.phu-lon .sp-anh { position: absolute; inset: 0; aspect-ratio: auto; background: #fff; }
.sp-the.phu-lon .sp-anh img { object-fit: cover; }
.sp-the.phu-lon::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.85) 60%); pointer-events: none; }
.sp-the.phu-lon .sp-ten, .sp-the.phu-lon .sp-gia, .sp-the.phu-lon .sp-mua { position: relative; z-index: 1; }
.sp-the.phu-lon .sp-ten { color: #fff; font-weight: 600; font-size: 16px; min-height: 0; }
.sp-the.phu-lon .sp-mua { width: auto; align-self: flex-start; padding: 0 40px; }
.phu-moi-ve-luoi > .phu-trong { grid-column: 1 / -1; }
.phu-moi-ve-them { display: flex; justify-content: center; margin-top: 16px; }
.phu-moi-ve-them:empty { display: none; }
.phu-xem-them { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 24px; border: 1px solid var(--phu-ke); border-radius: 6px; background: var(--phu-the); color: var(--phu-chinh); text-decoration: none; font-weight: 500; }
.phu-xem-them:hover { border-color: var(--phu-chinh); }

/* Thẻ sản phẩm dự phòng (khi chưa có theSanPham của shop.css / khung.js) */

@media (max-width: 900px) {
  .phu-goc-luoi { grid-template-columns: 1fr 1fr; }
  .phu-goc-nho { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .phu-luoi-bai { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phu-moi-ve-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .phu-van { padding: 20px 16px 24px; }
  .phu-chinh-sach-khac { padding: 16px; }
  .phu-chinh-sach-khac ul { grid-template-columns: 1fr; }
  .phu-tieu-de { font-size: 22px; }
  .phu-noi-dung { font-size: 15px; }
  .phu-goc-luoi { grid-template-columns: 1fr; gap: 16px; }
  .phu-goc-nho { grid-template-columns: 1fr; }
  .phu-goc-luoi .phu-bai-vua { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
  .phu-goc-luoi .phu-bai-vua .phu-bai-chu { padding-top: 0; }
  .phu-goc-luoi .phu-bai-vua .phu-bai-ten { font-size: 13px; }
  .phu-luoi-bai { grid-template-columns: 1fr; }
  .phu-luoi-lien-quan { grid-template-columns: 1fr; gap: 14px; }
  .phu-luoi-lien-quan .phu-bai { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
  .phu-luoi-lien-quan .phu-bai-chu { padding-top: 0; }
  .phu-luoi-lien-quan .phu-bai-ten { font-size: 13px; }
  .phu-moi-ve-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
