/* R03 – sửa lỗi hiển thị trên nền giao diện baseline lovingveganfood.vn */
/* Menu máy tính không bị xuống 2 dòng */
@media (min-width: 1024px) {
  .header .nav, .header .nav * { white-space: nowrap; }
  .header .nav { gap: 14px !important; font-size: 15px; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .header .nav { gap: 8px !important; font-size: 14px; }
}

/* ===== R04 – HERO chuẩn cho mọi trang (theo bố cục trang chủ) ===== */
.lv-hero { position: relative; background: var(--cream); overflow: hidden; min-height: clamp(380px, 34vw, 540px); display: flex; align-items: center; }
.lv-hero__anh { position: absolute; inset: 0 0 0 auto; width: 66%; }
.lv-hero__anh img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.lv-hero__anh::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--cream) 0%, rgba(247,243,231,.92) 14%, rgba(247,243,231,.55) 34%, rgba(247,243,231,0) 58%); }
.lv-hero__chu { position: relative; z-index: 1; width: 100%; padding-top: 48px; padding-bottom: 48px; }
.lv-hero__chu > * { max-width: 560px; }
.lv-hero__chu h1 { margin-bottom: 18px; }
.lv-hero__bc { margin-bottom: 18px; font-size: 13px; }
.lv-hero__phu { font-weight: 700; color: var(--gold); letter-spacing: 1px; margin: -6px 0 10px; }
.lv-hero__dan { font-size: 17px; line-height: 1.65; }
/* Ảnh bao bì sản phẩm: giữ nguyên hình, không cắt */
.lv-hero--sp .lv-hero__anh { width: 52%; }
.lv-hero--sp .lv-hero__anh img { object-fit: contain; padding: 28px 0; }
.lv-hero--sp .lv-hero__anh::after { background: linear-gradient(90deg, var(--cream) 0%, rgba(247,243,231,0) 30%); }
/* Ảnh chân dung: giữ đầu người trong khung */
.lv-hero--chan-dung .lv-hero__anh { width: 46%; }
.lv-hero--chan-dung .lv-hero__anh img { object-position: center 18%; }
@media (max-width: 860px) {
  .lv-hero { display: block; min-height: 0; }
  .lv-hero__anh { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 10; }
  .lv-hero--sp .lv-hero__anh, .lv-hero--chan-dung .lv-hero__anh { width: 100%; aspect-ratio: 4 / 3; }
  .lv-hero__anh::after, .lv-hero--sp .lv-hero__anh::after { background: linear-gradient(180deg, rgba(247,243,231,0) 55%, var(--cream) 100%); }
  .lv-hero__chu { padding-top: 8px; padding-bottom: 36px; }
  .lv-hero__chu > * { max-width: none; }
}

/* ===== Hiệu ứng chạy chữ khi mở trang ===== */
@keyframes lvVao { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lvChu { from { opacity: 0; transform: translateY(.45em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lvAnh { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.lv-hero__anh img { animation: lvAnh 1.1s ease-out both; }
[data-lv-buoc], #main [data-loving-home-entry-step] { animation: lvVao .7s cubic-bezier(.2,.7,.2,1) both; }
[data-lv-buoc]:nth-child(1), #main [data-loving-home-entry-step]:nth-child(1) { animation-delay: .05s; }
[data-lv-buoc]:nth-child(2), #main [data-loving-home-entry-step]:nth-child(2) { animation-delay: .2s; }
[data-lv-buoc]:nth-child(3), #main [data-loving-home-entry-step]:nth-child(3) { animation-delay: .9s; }
[data-lv-buoc]:nth-child(4), #main [data-loving-home-entry-step]:nth-child(4) { animation-delay: 1.15s; }
[data-lv-buoc]:nth-child(5) { animation-delay: 1.35s; }
.lv-tu { display: inline-block; animation: lvChu .55s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  [data-lv-buoc], #main [data-loving-home-entry-step], .lv-tu, .lv-hero__anh img { animation: none !important; }
}

/* ===== TC-04: chuyển ngôn ngữ Tiếng Việt | English ===== */
.lv-ngon-ngu { display: inline-flex; gap: 8px; align-items: center; }
.lv-ngon-ngu a { color: inherit; opacity: .8; text-decoration: none; }
.lv-ngon-ngu a:hover { opacity: 1; text-decoration: underline; }
.lv-ngon-ngu b { font-weight: 700; }
.lv-nhap { background: #ae9259; color: #fff; text-align: center; font-size: 13px; padding: 6px 12px; }
.lv-nhap a { color: #fff; text-decoration: underline; margin-left: 8px; }
