/*
Theme Name: FOFUL – Hồ sơ chế tạo
Version: 1.0.5
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: foful
Description: Giao diện FOFUL theo thiết kế đã duyệt, dùng cùng plugin Nội dung và tư vấn FOFUL.
*/
.fo-native{padding-block:2rem}.fo-native img{max-width:100%;height:auto}.fo-native .wp-block-table{overflow:auto}.fo-notice{padding:1rem;background:#ebf5e9;border:1px solid #457547}
.fo-search-link{color:inherit;text-decoration:inherit}

/* Tinh chỉnh cân bằng phần đầu trang (Header & Menu chính) */
.editorial-header .masthead {
  min-height: 94px;
  padding-block: 8px;
}
.editorial-header .brand {
  gap: 12px;
}
.editorial-header .brand strong {
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(1.7rem, 2.9vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand-red-deep);
}
.editorial-header .brand small {
  font-size: clamp(0.88rem, 1.35vw, 1.02rem);
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
  letter-spacing: 0.01em;
}
.editorial-header .edition-visit {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.editorial-header .edition-visit:hover {
  border-color: var(--brand-red-deep);
  color: var(--brand-red-deep);
}
.editorial-header .top-actions {
  align-items: center;
  gap: 16px;
}
.editorial-header .top-actions .language-switch {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.editorial-header .top-actions .language-switch button {
  min-width: 36px;
  min-height: 34px;
  padding: 2px 5px;
  font-size: 0.82rem;
}
.editorial-header .edition-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 16px;
  border: 1.5px solid var(--brand-red-deep);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-red-deep);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.editorial-header .edition-contact:hover {
  background: var(--brand-red-deep);
  color: #fff;
}
.editorial-navigation .wrap {
  gap: clamp(16px, 2.5vw, 36px);
}
.editorial-navigation a,
.editorial-navigation .edition-nav-group summary {
  font-size: 1.06rem;
  font-weight: 700;
  min-height: 46px;
}

@media (max-width: 760px) {
  .editorial-header .masthead {
    min-height: 74px;
    padding-block: 6px;
    gap: 8px;
  }
  .editorial-header .edition-visit,
  .editorial-header .edition-contact {
    display: none;
  }
  .editorial-header .brand {
    gap: 8px;
    min-width: 0;
  }
  .editorial-header .brand img {
    width: clamp(42px, 11.5vw, 54px);
  }
  .editorial-header .brand strong {
    font-size: clamp(1.18rem, 5.2vw, 1.65rem);
  }
  .editorial-header .brand small {
    font-size: clamp(0.72rem, 3.2vw, 0.82rem);
    font-weight: 600;
    margin-top: 2px;
  }
  .editorial-header .top-actions {
    gap: 6px;
  }
  .editorial-header .top-actions .language-switch {
    padding: 0;
    border: 0;
    background: transparent;
    gap: 2px;
  }
  .editorial-header .top-actions .language-switch button {
    min-width: 36px;
    min-height: 44px;
    padding: 2px;
    font-size: 0.76rem;
  }
}


/* Khung ảnh/video trong mục "Bảo hành, bảo dưỡng và nâng cấp": tiêu đề + nội dung bên trái, khung bên phải (có video thì hiện video, không thì hiện ảnh) */
#chinh-sach .media-frame {
  min-width: 0;
}
#chinh-sach .media-frame-photo {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--media-bg);
}
#chinh-sach .media-frame-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
#chinh-sach .media-frame figcaption:empty {
  display: none;
}
#chinh-sach .media-frame-video {
  display: none;
}
#chinh-sach .media-frame:has(.product-video:not([data-embed-src=""])) .media-frame-photo {
  display: none;
}
#chinh-sach .media-frame:has(.product-video:not([data-embed-src=""])) .media-frame-video {
  display: block;
}

/* Luôn dùng nền sáng, không tự đổi màu theo chế độ tối của trình duyệt */
html:root {
  color-scheme: only light;
}
