/* =====================================================================
   POG.VN – B4 HERO TRANG CHỦ
   Markup: template-parts/hero-banner.php · Dữ liệu: inc/hero.php
   Lưu ý: thanh cam kết (06-benefits) kéo lên đè mép dưới hero ~26px → hero chừa padding dưới.
   Cập nhật: 2026-11-17 (B4). Chỉ dùng biến --pog-*.
   ===================================================================== */
.pog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 92% 8%, rgba(var(--pog-navy-rgb), 0.07) 0%, transparent 60%),
    radial-gradient(50% 60% at 4% 100%, rgba(var(--pog-primary-rgb), 0.08) 0%, transparent 65%),
    linear-gradient(180deg, var(--pog-white) 0%, var(--pog-bg-soft) 100%);
  font-family: var(--pog-font);
}
/* Họa tiết chấm mờ – hiện đại, nhẹ */
.pog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(var(--pog-navy-rgb), 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  opacity: 0.6;
}

.pog-hero__inner {
  max-width: var(--pog-container);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--pog-gutter) clamp(72px, 7vw, 96px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 64px);
}

/* ---------- Nội dung bên trái ---------- */
.pog-hero__content {
  max-width: 580px;
}
.pog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(var(--pog-navy-rgb), 0.12);
  border-radius: var(--pog-radius-full);
  background: var(--pog-white);
  box-shadow: var(--pog-shadow-sm);
  color: var(--pog-navy);
  font-size: 12.5px;
  font-weight: var(--pog-fw-bold);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.pog-hero__eyebrow-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pog-primary);
  box-shadow: 0 0 0 4px rgba(var(--pog-primary-rgb), 0.15);
}

.pog-hero__title {
  margin: 0 0 18px;
  color: var(--pog-dark);
  font-size: clamp(2.125rem, 0.6rem + 3.6vw, 3.5rem); /* 34 → 56px (đạt 56px ở ~1290px) */
  font-weight: var(--pog-fw-black);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.pog-hero__title span {
  display: block;
}
.pog-hero__title-accent {
  color: var(--pog-primary);
}
.pog-hero__title-accent::first-letter {
  text-transform: uppercase;
}

.pog-hero__lead {
  max-width: 500px;
  margin: 0 0 28px;
  color: var(--pog-gray);
  font-size: clamp(15px, 0.9rem + 0.2vw, 17px);
  line-height: 1.65;
}

/* Nút */
.pog-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.pog-hero__ctas .pog-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pog-hero__cta {
  box-shadow: 0 10px 24px rgba(var(--pog-primary-rgb), 0.28);
}
.pog-hero__cta svg {
  transition: transform var(--pog-transition-fast);
}
.pog-hero__cta:hover svg {
  transform: translateX(3px);
}
/* Nút ưu đãi: viền + chữ cam thương hiệu, rê chuột → nền cam */
.pog-hero__cta-alt {
  background: var(--pog-white);
  border-color: var(--pog-primary);
  color: var(--pog-primary);
}
.pog-hero__cta-alt svg {
  color: var(--pog-primary);
}
.pog-hero__cta-alt:hover {
  border-color: var(--pog-primary);
  background: var(--pog-primary);
  color: var(--pog-white);
}
.pog-hero__cta-alt:hover svg {
  color: var(--pog-white);
}

/* Số liệu */
.pog-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pog-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0 24px;
  border-left: 1px solid var(--pog-border-strong);
}
.pog-hero__stats li:first-child {
  padding-left: 0;
  border-left: 0;
}
.pog-hero__stats b {
  color: var(--pog-primary);
  font-size: 24px;
  font-weight: var(--pog-fw-black);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.pog-hero__stats span {
  color: var(--pog-gray);
  font-size: 13px;
  font-weight: var(--pog-fw-medium);
}

/* ---------- Ảnh bên phải ---------- */
.pog-hero__media {
  position: relative;
  padding: 0 0 24px 24px;
}
/* Khối màu trang trí phía sau ảnh */
.pog-hero__media::before {
  content: "";
  position: absolute;
  top: 28px;
  right: -18px;
  bottom: 0;
  left: 52px;
  z-index: 0;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--pog-cream) 0%, var(--pog-primary-light) 100%);
  transform: rotate(3deg);
}
.pog-hero__frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 1200 / 896;
  border-radius: 28px;
  background: var(--pog-bg-soft);
  box-shadow: 0 30px 60px -20px rgba(var(--pog-dark-rgb), 0.35);
}
.pog-hero__frame picture,
.pog-hero__frame img {
  display: block;
  width: 100%;
  height: 100%;
}
.pog-hero__frame img {
  object-fit: cover;
}

/* Thẻ "Bán chạy nhất" */
.pog-hero__best {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(330px, 80%);
  padding: 10px 14px 10px 10px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--pog-shadow-lg);
  color: var(--pog-dark);
  text-decoration: none;
  transition: transform var(--pog-transition-base), box-shadow var(--pog-transition-base);
}
.pog-hero__best:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(var(--pog-dark-rgb), 0.18);
  color: var(--pog-dark);
}
.pog-hero__best img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--pog-bg-soft);
}
.pog-hero__best-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pog-hero__best-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pog-primary);
  font-size: 11.5px;
  font-weight: var(--pog-fw-bold);
}
.pog-hero__best-tag svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}
.pog-hero__best-name {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: var(--pog-fw-bold);
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pog-hero__best-price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  color: var(--pog-primary);
  font-size: 14px;
  font-weight: var(--pog-fw-black);
}
.pog-hero__best-price ins {
  order: -1;
  text-decoration: none;
}
.pog-hero__best-price del {
  color: var(--pog-gray-light);
  font-size: 12px;
  font-weight: var(--pog-fw-medium);
}
.pog-hero__best-price .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* Nhãn cam kết (cam thương hiệu) */
.pog-hero__chip {
  position: absolute;
  top: 20px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--pog-radius-full);
  background: var(--pog-primary);
  box-shadow: 0 10px 24px rgba(var(--pog-primary-rgb), 0.35);
  color: var(--pog-white);
  font-size: 12.5px;
  font-weight: var(--pog-fw-bold);
  white-space: nowrap;
}
.pog-hero__chip svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Xuất hiện nhẹ nhàng (không áp cho ảnh để không làm chậm LCP) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pog-hero__content > * {
    animation: pogHeroUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .pog-hero__content > :nth-child(2) { animation-delay: 0.05s; }
  .pog-hero__content > :nth-child(3) { animation-delay: 0.1s; }
  .pog-hero__content > :nth-child(4) { animation-delay: 0.15s; }
  .pog-hero__content > :nth-child(5) { animation-delay: 0.2s; }
  .pog-hero__best,
  .pog-hero__chip {
    animation: pogHeroPop 0.6s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}
@keyframes pogHeroUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pogHeroPop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* =====================================================================
   KHỔ MÀN HÌNH
   ===================================================================== */
/* Laptop nhỏ: cột chữ hẹp → tiêu đề nhỏ lại để giữ 2 dòng */
@media (min-width: 993px) and (max-width: 1200px) {
  .pog-hero__title {
    font-size: 40px;
  }
  .pog-hero__stats li {
    padding: 0 16px;
  }
  .pog-hero__stats b {
    font-size: 21px;
  }
}

/* Tablet & điện thoại: xếp dọc, chữ trước – ảnh sau */
@media (max-width: 992px) {
  .pog-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 64px;
  }
  .pog-hero__content {
    max-width: 640px;
  }
  .pog-hero__eyebrow {
    margin-bottom: 14px;
  }
  .pog-hero__lead {
    margin-bottom: 22px;
  }
  .pog-hero__ctas {
    margin-bottom: 24px;
  }
  .pog-hero__media {
    max-width: 640px;
  }
}

@media (max-width: 560px) {
  .pog-hero::before {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
  }
  .pog-hero__ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .pog-hero__ctas .pog-btn {
    min-height: 48px;
    padding: 0 12px;
    font-size: 14.5px;
  }
  .pog-hero__ctas .pog-btn svg {
    width: 16px;
    height: 16px;
  }
  .pog-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .pog-hero__stats li {
    padding: 0 10px;
  }
  .pog-hero__stats b {
    font-size: 20px;
  }
  .pog-hero__stats span {
    font-size: 12px;
    line-height: 1.35;
  }
  .pog-hero__media {
    padding: 0 0 18px 10px;
  }
  .pog-hero__media::before {
    top: 18px;
    right: -8px;
    left: 30px;
    border-radius: 24px;
  }
  .pog-hero__frame {
    border-radius: 22px;
  }
  .pog-hero__best {
    width: min(290px, 88%);
    padding: 8px 12px 8px 8px;
    border-radius: 16px;
  }
  .pog-hero__best img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }
  .pog-hero__chip {
    top: 12px;
    right: 10px;
    padding: 6px 11px;
    font-size: 11.5px;
  }
}

@media (max-width: 360px) {
  .pog-hero__title {
    font-size: 28px;
  }
  .pog-hero__ctas {
    grid-template-columns: 1fr;
  }
  .pog-hero__stats span {
    font-size: 11px;
  }
}
