/* ================================================
   PRODUCT_NEWS.CSS
   Hanya berisi style spesifik halaman News.
   Semua shared classes (.reveal, .product-card,
   .products-grid, .qv-*, .btn-outline-ls, dsb.)
   sudah ada di component.css.
================================================ */


/* ================================================
   1. LOCAL VARIABLES
   --clr-sale dibawa juga ke sini (fallback) supaya
   QV modal & promo notes tetap konsisten warnanya
   kalau halaman ini di-load tanpa product_sale.css.
================================================ */
:root {
  --clr-sale: #c0392b;
}


/* ================================================
   2. NEWS HERO
   Struktur & naming disamakan dengan sale-hero
   (bukan pl-hero dari product_list) untuk konsistensi.
================================================ */
.news-hero {
  position: relative;
  background: linear-gradient(160deg, var(--cream-dark) 0%, var(--cream) 60%);
  overflow: hidden;
  margin-top: 72px;
}
.news-hero-inner {
  position: relative;
  padding: 48px 48px 40px;
}
.news-hero-wm {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 200px);
  font-weight: 300;
  color: rgba(117, 113, 89, 0.04);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.news-hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.news-hero-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--clr-accent);
  display: block;
  flex-shrink: 0;
}
.news-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.news-hero-accent {
  font-style: italic;
  color: var(--clr-accent);
}
.news-hero-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  max-width: 360px;
  position: relative;
  z-index: 1;
}


/* ================================================
   3. NEWS BODY & TOOLBAR
   Tanpa category chips (news-cats tidak ada) —
   toolbar lebih sederhana: count + sort + view toggle.
================================================ */
.news-body {
  padding: 40px 0 100px;
  background: var(--warm-white);
}

.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.news-count {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-count strong {
  color: var(--charcoal);
  font-weight: 500;
}

.news-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}


/* ================================================
   4. RESPONSIVE — News-specific overrides
   (Shared card/grid responsive ada di component.css)
================================================ */

/* ---- ≤1280px ---- */
@media (max-width: 1280px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
}

/* ---- ≤1024px ---- */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .js-view-4col { display: none; }
}

/* ---- ≤768px ---- */
@media (max-width: 768px) {
  .news-hero       { margin-top: 64px; }
  .news-hero-inner { padding: 32px 24px 32px; }
  .news-hero-title { font-size: clamp(32px, 8vw, 48px); margin-bottom: 12px; }
  .news-hero-desc  { font-size: 12px; max-width: 100%; }

  .news-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .news-toolbar-right { width: 100%; justify-content: flex-end; }
}

/* ---- ≤540px ---- */
@media (max-width: 540px) {
  .news-body       { padding: 24px 0 64px; }
  .news-hero-inner { padding: 28px 16px 28px; }
  .news-toolbar-right { gap: 6px; }
  .products-sort select { min-width: 120px; font-size: 9px; padding: 8px 30px 8px 10px; }
}

/* ---- ≤380px ---- */
@media (max-width: 380px) {
  .news-hero-inner { padding: 24px 14px 24px; }
  .news-hero-title { font-size: 30px; }
}