/* ===== Base spacing ===== */
.newslist-page{ padding: 24px 0; }

/* ===== GRID 70/30 ===== */
.newslist-grid{
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 28px;
  align-items: start;
}

/* Quan trọng: để không tràn nội dung trong grid */
.newslist-main,
.newslist-side{ min-width: 0; }

/* Responsive: xuống 1 cột */
@media (max-width: 992px){
  .newslist-grid{ grid-template-columns: 1fr; }
}

/* ===== Common section wrapper ===== */
.nl-section{ margin-bottom: 22px; }
.nl-section:last-child{ margin-bottom: 0; }

/* ===== Common title + divider ===== */
.nl-title{
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #111;
}
.nl-title--center{
  text-align: center;
  line-height: 1.25;
}

.nl-divider{
  width: 56px;
  height: 3px;
  background: #c4161c;
  margin: 10px 0 12px;
}
.nl-divider--sm{
  width: 46px;
  margin: 10px 0 10px;
}

/* ===== Section: Dealhot (card style) ===== */
.nl-section--dealhot{
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.04);
}
.nl-section--dealhot .nl-title{
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f3f3;
}

/* Dealhot layout 50/50 inside */
.dealhot{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch; /* 2 cột stretch theo chiều cao hàng */
}
@media (max-width: 992px){
  .dealhot{ grid-template-columns: 1fr; align-items: start; }
}

/* LEFT feature */
.dealhot-feature{
  height: 100%;
  display: flex;
  flex-direction: column;
}
.dealhot-feature__img img{
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
@media (max-width: 992px){
  .dealhot-feature__img img{ height: 240px; }
}

.dealhot-feature__cat{
  margin-top: 10px;
  color: #8a8a8a;
  font-size: 13px;
}

.dealhot-feature__title{
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 1.35;
}
.dealhot-feature__title a{ color: #111; text-decoration: none; }
.dealhot-feature__title a:hover{ text-decoration: underline; }

.dealhot-feature__desc{
  margin: 0;
  color: #333;
  line-height: 1.6;
  font-size: 14px;
}

/* RIGHT list */
.dealhot-side{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Item: GRID 2 cột - ảnh cao bằng body */
.dealhot-item{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% img - 50% text */
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e9e9e9;

  align-items: stretch; /* để 2 ô cùng cao */
}
.dealhot-item:first-child{ padding-top: 0; }
.dealhot-item:last-child{ border-bottom: none; padding-bottom: 0; }

/* wrapper ảnh phải stretch theo chiều cao item */
.dealhot-item__img{
  align-self: stretch;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

/* img ăn full height wrapper => bằng chiều cao body */
.dealhot-item__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0; /* radius để ở wrapper */
}

.dealhot-item__body{
  display: flex;
  flex-direction: column;
}

.dealhot-item__title{
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.dealhot-item__title a{ color: #111; text-decoration: none; }
.dealhot-item__title a:hover{ text-decoration: underline; }

.dealhot-item__desc{
  margin: 0;
  color: #333;
  line-height: 1.5;
  font-size: 13px;
}

@media (max-width: 992px){
  .dealhot-item{ grid-template-columns: 160px 1fr; }
}

/* ===== Section: Fashion ===== */
.nl-section--fashion{
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.04);
}

.nl-section--fashion .nl-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f3f3;
  margin-bottom: 14px;
}
.nl-section--fashion .nl-title{ margin: 0; }

.nl-section--fashion .nl-navbtns{
  display: flex;
  gap: 8px;
}
.nl-section--fashion .nl-navbtn{
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: #c4161c;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* 2 item ngang */
.fashion-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 992px){
  .fashion-row{ grid-template-columns: 1fr; }
}

.fashion-item{
  border: 1px solid #f2f2f2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.fashion-item__img img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
@media (max-width: 992px){
  .fashion-item__img img{ height: 200px; }
}

.fashion-item__title{
  margin: 12px 14px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.fashion-item__title a{ color: #111; text-decoration: none; }
.fashion-item__title a:hover{ text-decoration: underline; }

.nl-section--fashion .nl-divider--sm{ margin: 10px 14px; }

.fashion-item__desc{
  margin: 0 14px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

/* ===== Sidebar 30% ===== */
.nl-sidebar{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.press-card{
  width: 100%;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.04);
}

.press-card .nl-title{ margin: 0 0 12px; }

.press-item__img{
  display: block;
  border-radius: 10px;
  overflow: hidden;
}
.press-item__img img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
@media (max-width: 992px){
  .press-item__img img{ height: 210px; }
}

.press-item__title{
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.press-item__title a{ color: #111; text-decoration: none; }
.press-item__title a:hover{ text-decoration: underline; }

.press-card .nl-divider--sm{ margin: 10px 0 10px; }

.press-item__desc{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

/* =========================
   MOBILE FIXES
========================= */

/* Tablet trở xuống */
@media (max-width: 768px){
  .newslist-page{ padding: 14px 0; }
  .newslist-grid{ gap: 16px; }

  .nl-section--dealhot,
  .nl-section--fashion,
  .press-card{
    padding: 14px;
    border-radius: 10px;
  }

  /* Ảnh feature nhỏ lại */
  .dealhot-feature__img img{ height: 200px; }

  /* Fashion: 1 cột sớm hơn */
  .fashion-row{ grid-template-columns: 1fr; }
  .fashion-item__img img{ height: 180px; }

  /* Nút điều hướng: nhỏ hơn */
  .nl-section--fashion .nl-navbtn{
    width: 30px; height: 30px;
    border-radius: 8px;
    font-size: 16px;
  }
}

/* Mobile */
@media (max-width: 576px){
  /* Dealhot: ép 1 cột */
  .dealhot{ grid-template-columns: 1fr; gap: 14px; }

  /* TẮT stretch 2 cột trên mobile */
  .dealhot,
  .dealhot-feature,
  .dealhot-side{ align-items: initial; height: auto; }

  .dealhot-item{
    grid-template-columns: 110px 1fr; /* ảnh nhỏ - text lớn */
    gap: 12px;
    padding: 12px 0;
  }

  /* Mobile: ảnh cố định để gọn (nếu muốn ảnh = text thì bỏ block này) */
  .dealhot-item__img{ height: auto; }
  .dealhot-item__img img{
    height: 80px;
  }

  .dealhot-item__title{ font-size: 14px; }
  .dealhot-item__desc{ font-size: 12.5px; }

  .press-item__img img{ height: 180px; }
}

/* ===== News Tabs (fixed) ===== */
.news-tabs{
  position: fixed;
  left: 0; right: 0;
  top: var(--header-h, 0px);
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 6px 18px rgba(17,24,39,.06);
}

.news-tabs__inner{
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.news-tabs__inner::-webkit-scrollbar{ display:none; }

.news-tabs__item{
  flex: 0 0 auto;
  padding: 10px 14px;
  color: #333;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 1px solid #eee;
  background: transparent;
}
.news-tabs__item:last-child{ border-right: 0; }

.news-tabs__item.is-active{
  color: #c4161c;
  border-bottom: 2px solid #c4161c;
}

/* Chừa khoảng trên cho content vì tabs fixed */
.newslist-page{
  padding-top: calc(24px + var(--news-tabs-h, 44px));
}
@media (max-width: 768px){
  .newslist-page{
    padding-top: calc(14px + var(--news-tabs-h, 44px));
  }
}

.fashion-row{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.fashion-item{
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.fashion-row::-webkit-scrollbar{ display:none; }