/* ==========================================================================
   Yêu Hạt Coffee Traceability v1.1.0 — Premium Full-Width Passport UI
   Đồng bộ 100% bộ nhận diện yeuhat.vn (#011e46, #1b2f5d, Be Vietnam Pro)
   + Khắc phục triệt để xung đột CSS của theme Flatsome
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FULL-SCREEN BREAKOUT CHO TRANG TRUY XUẤT (Flatsome & WordPress Themes)
   -------------------------------------------------------------------------- */
body.yh-trace-page {
  background-color: #ffffff !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
}

body.yh-trace-page #wrapper,
body.yh-trace-page #main {
  overflow: visible !important;
}

body.yh-trace-page #main,
body.yh-trace-page #content,
body.yh-trace-page .page-wrapper,
body.yh-trace-page .site-main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: #ffffff !important;
  max-width: 100% !important;
}

body.yh-trace-page #content > .row-main,
body.yh-trace-page .page-wrapper > .row,
body.yh-trace-page .page-wrapper > .row-main {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.yh-trace-page #content > .row-main > .col,
body.yh-trace-page #content > .row-main > .col > .col-inner,
body.yh-trace-page .page-wrapper > .row > .col,
body.yh-trace-page .page-wrapper > .row > .col > .col-inner,
body.yh-trace-page article,
body.yh-trace-page .entry-content,
body.yh-trace-page .page-inner {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS & HARD RESETS (CHỐNG XUNG ĐỘT THEME FLATSOME)
   -------------------------------------------------------------------------- */
.yh-trace-app {
  --yh-primary: #011e46;
  --yh-primary-soft: #1b2f5d;
  --yh-primary-deep: #001330;
  --yh-gold: #ad7a3d;
  --yh-gold-text: #8c5a20;
  --yh-gold-light: #e0be89;
  --yh-green: #2d6a4f;
  --yh-canvas: #f4f6fa;
  --yh-paper: #ffffff;
  --yh-cream: #f6f8fb;
  --yh-ink: #262626;
  --yh-muted: #5c6878;
  --yh-line: #e4e9f0;
  --yh-shadow: 0 14px 38px rgba(1, 30, 70, 0.08);
  --yh-radius: 18px;
  --yh-font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  font-family: var(--yh-font) !important;
  color: var(--yh-ink);
  line-height: 1.6;
  font-size: 15.5px;
  background-color: #ffffff;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow-x: clip;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.yh-trace-app *,
.yh-trace-app *::before,
.yh-trace-app *::after {
  box-sizing: border-box;
}

.yh-trace-app a {
  text-decoration: none;
  color: inherit;
}

.yh-trace-app img {
  max-width: 100%;
  display: block;
}

/* Gỡ bỏ style ép buộc của Flatsome trên Headings */
.yh-trace-app h1,
.yh-trace-app h2,
.yh-trace-app h3,
.yh-trace-app h4 {
  font-family: var(--yh-font) !important;
  width: auto !important;
  max-width: none !important;
  margin-top: 0 !important;
  letter-spacing: -0.015em;
  text-transform: none;
}

/* Gỡ bỏ style ép buộc của Flatsome trên Buttons */
.yh-trace-app button {
  font-family: var(--yh-font) !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.yh-trace-app button:hover,
.yh-trace-app button:focus {
  box-shadow: none !important;
  outline: none;
}

/* Ẩn widget bong bóng cũ trên trang /truy-xuat chính để không che bản đồ */
body.yh-trace-page #yhr-traceability,
body.yh-trace-page #yh-traceability {
  display: none !important;
}

/* Gỡ gạch chân chấm bi của plugin Glossary bên trong giao diện truy xuất */
.yh-trace-app .yh-glossary-term {
  border-bottom: none !important;
  text-decoration: none !important;
  color: inherit !important;
  font-weight: inherit !important;
}

/* Container nội dung trung tâm */
.yh-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .yh-container {
    padding: 0 16px;
  }
}

/* ==========================================================================
   3. TOP BAR (Full-width, logo không bị cắt, nút VI | EN căn chuẩn)
   ========================================================================== */
.yh-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--yh-line);
}

.yh-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 10px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.yh-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.yh-brand-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--yh-primary);
  color: var(--yh-gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Logo dạng hình chữ nhật ngang (VD: 1024x540 của Yêu Hạt) — hiển thị trọn vẹn, không cắt chữ */
.yh-brand-logo-box.has-img {
  width: auto;
  height: 44px;
  padding: 6px 12px;
  background: var(--yh-primary);
  border-radius: 10px;
}

.yh-brand-logo-box.has-img img {
  width: auto;
  height: 100%;
  max-width: 148px;
  object-fit: contain;
}

.yh-brand-name-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--yh-primary);
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.yh-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.yh-topbar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yh-ink);
}

.yh-topbar-nav a {
  transition: color 0.18s;
}

.yh-topbar-nav a:hover {
  color: var(--yh-primary);
}

.yh-icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--yh-line);
  background: #ffffff;
  color: var(--yh-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.yh-icon-circle-btn:hover {
  border-color: var(--yh-primary);
  background: var(--yh-primary);
  color: #ffffff;
}

/* Pill chuyển ngôn ngữ VI | EN gọn đẹp, căn giữa tuyệt đối */
.yh-lang-switch {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 3px;
  border-radius: 999px;
  background: #f1f4f9;
  border: 1px solid var(--yh-line);
  gap: 2px;
}

.yh-trace-app .yh-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px;
  border: none !important;
  background: transparent !important;
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--yh-muted) !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.yh-trace-app .yh-lang-btn.active {
  background: var(--yh-primary) !important;
  color: #ffffff !important;
}

@media (max-width: 780px) {
  .yh-topbar-nav { display: none; }
  .yh-topbar-inner { padding: 10px 16px; }
  .yh-brand-name-text { font-size: 13.5px; }
}

@media (max-width: 480px) {
  .yh-brand-name-text { display: none; }
}

/* ==========================================================================
   4. HERO PASSPORT BANNER (FULL-SCREEN EDGE-TO-EDGE)
   ========================================================================== */
.yh-hero {
  position: relative;
  width: 100%;
  background-color: var(--yh-primary);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 44px 0 0;
  overflow: hidden;
}

.yh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(1, 20, 48, 0.84) 0%,
    rgba(1, 30, 70, 0.72) 52%,
    rgba(27, 47, 93, 0.62) 100%
  );
  z-index: 1;
}

.yh-hero.yh-hero-pattern {
  background-image:
    radial-gradient(circle at 80% 25%, rgba(45, 106, 79, 0.3), transparent 50%),
    radial-gradient(circle at 18% 85%, rgba(173, 122, 61, 0.22), transparent 45%),
    linear-gradient(135deg, var(--yh-primary-deep) 0%, var(--yh-primary) 55%, var(--yh-primary-soft) 100%);
}

.yh-hero-inner {
  position: relative;
  z-index: 2;
}

.yh-hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 36px;
}

/* Product bag showcase card — Pure white */
.yh-bag-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 24px 52px rgba(0, 12, 32, 0.34);
}

.yh-bag-stage {
  background: #f6f8fb;
  border-radius: 12px;
  padding: 22px 16px;
  min-height: 274px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.yh-bag-stage img {
  max-height: 250px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.yh-bag-card:hover .yh-bag-stage img {
  transform: scale(1.03);
}

.yh-bag-caption {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--yh-muted);
}

.yh-bag-caption:hover {
  color: var(--yh-primary);
}

/* Mockup bao bì mặc định khi chưa gắn ảnh */
.yh-bag-placeholder {
  width: 176px;
  height: 224px;
  border-radius: 12px 12px 16px 16px;
  background: linear-gradient(165deg, #ffffff 0%, #eef2f7 100%);
  border: 1.5px solid #dce3ee;
  box-shadow: 0 12px 24px rgba(1, 30, 70, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 14px;
  color: var(--yh-primary);
}

.yh-bag-placeholder::before {
  content: "";
  display: block;
  height: 5px;
  border-radius: 99px;
  background: var(--yh-gold);
}

.yh-bag-ph-brand {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--yh-gold-text);
}

.yh-bag-ph-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.32;
  color: var(--yh-primary);
}

.yh-bag-ph-lot {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  background: var(--yh-primary);
  color: var(--yh-gold-light);
  border-radius: 6px;
  letter-spacing: 0.4px;
}

/* Hero Right Column */
.yh-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--yh-gold-light);
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.yh-hero-title {
  margin: 0 0 12px !important;
  font-size: clamp(26px, 3.8vw, 42px) !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  color: #ffffff !important;
}

.yh-hero-subtitle {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.84);
  max-width: 620px;
}

.yh-roast-date-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.yh-roast-date-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.yh-roast-date-val {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--yh-gold-light);
  letter-spacing: 0.4px;
  line-height: 1;
}

.yh-lot-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.yh-lot-code-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.yh-lot-code-text strong {
  color: #ffffff;
  font-size: 17px;
  letter-spacing: 0.4px;
  margin-left: 4px;
}

.yh-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12.5px;
  font-weight: 700;
  color: #e6f7ee;
}

.yh-status-pill-blend {
  background: rgba(224, 190, 137, 0.2);
  border-color: rgba(224, 190, 137, 0.45);
  color: var(--yh-gold-light);
}

.yh-hero-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin: 0 0 18px;
}

.yh-hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.yh-hero-meta-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 4px;
}

.yh-hero-meta-val {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

/* Thanh Anchor Quick-Nav full-width dưới chân Hero */
.yh-anchor-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 19, 48, 0.42);
}

.yh-anchor-list {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.yh-anchor-list::-webkit-scrollbar { display: none; }

.yh-anchor-link {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  transition: color 0.15s;
}

.yh-anchor-link:hover {
  color: var(--yh-gold-light);
}

@media (max-width: 840px) {
  .yh-hero { padding-top: 28px; }
  .yh-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .yh-bag-card {
    max-width: 300px;
    margin: 0 auto;
  }
  .yh-hero-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .yh-anchor-list {
    padding: 12px 16px;
    gap: 18px;
  }
}

/* ==========================================================================
   5. FULL-PAGE BLURRED BACKGROUND CANVAS + PURE WHITE ARTICLES / CARDS
   ========================================================================== */
.yh-page-canvas {
  position: relative;
  width: 100%;
  overflow: clip;
  background-color: var(--yh-canvas);
}

/* Khung dẫn sticky giữ ảnh nền luôn đúng kích thước 100vh (khớp tỷ lệ 16:9 ảnh gốc, hiển thị FULL không bị kéo phóng hay cắt mép) */
.yh-page-bg-track {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.yh-page-bg-blur {
  position: sticky;
  top: 0;
  width: calc(100% + 12px);
  margin-left: -6px;
  height: 100vh;
  max-height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(2.5px) saturate(1.06);
  pointer-events: none;
}

/* Lớp phủ sáng nhẹ giúp ảnh Nam Ban hiện rõ nét nhưng vẫn làm nổi bật thẻ trắng */
.yh-page-bg-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.30) 0%,
    rgba(248, 250, 252, 0.38) 50%,
    rgba(255, 255, 255, 0.44) 100%
  );
  pointer-events: none;
}

.yh-page-canvas-inner {
  position: relative;
  z-index: 2;
}

.yh-main-stack {
  padding: 32px 0 54px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Thẻ / Article nội dung: Nền TRẮNG TINH (#ffffff) */
.yh-card {
  background: var(--yh-paper);
  border: 1px solid rgba(1, 30, 70, 0.09);
  border-radius: var(--yh-radius);
  padding: 28px 30px;
  box-shadow: var(--yh-shadow);
}

@media (max-width: 640px) {
  .yh-main-stack { padding: 20px 0 38px; gap: 16px; }
  .yh-card {
    padding: 20px 18px;
    border-radius: 14px;
  }
}

.yh-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.yh-section-title {
  margin: 0 !important;
  font-size: clamp(20px, 2.3vw, 25px) !important;
  font-weight: 800 !important;
  color: var(--yh-primary) !important;
  line-height: 1.25 !important;
}

.yh-section-note {
  font-size: 13px;
  color: var(--yh-muted);
}

.yh-gold-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--yh-gold-text);
  margin-bottom: 6px;
}

/* ==========================================================================
   6. CHI TIẾT & NGUỒN DỮ LIỆU LÔ (MỞ SẴN HIỂN THỊ LUÔN)
   ========================================================================== */
.yh-accordion-card {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.yh-trace-app .yh-accordion-trigger {
  width: 100% !important;
  background: #ffffff !important;
  border: none !important;
  padding: 22px 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px;
  cursor: pointer;
  text-align: left !important;
  color: var(--yh-primary) !important;
}

.yh-accordion-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.yh-accordion-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--yh-primary);
}

.yh-accordion-lot-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--yh-gold-text);
  background: #f6f8fb;
  border: 1px solid var(--yh-line);
  padding: 2px 10px;
  border-radius: 999px;
}

.yh-accordion-chevron {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f4f6fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--yh-primary);
  transition: transform 0.25s ease, background 0.2s;
  flex-shrink: 0;
}

.yh-accordion-card.is-open .yh-accordion-chevron {
  transform: rotate(180deg);
}

.yh-accordion-body {
  display: none;
  padding: 0 30px 26px;
}

.yh-accordion-card.is-open .yh-accordion-body {
  display: block;
}

.yh-kv-list {
  border-top: 1px solid var(--yh-line);
  margin-bottom: 18px;
}

.yh-kv-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--yh-line);
  font-size: 14.5px;
  align-items: center;
}

.yh-kv-key {
  color: var(--yh-muted);
  font-weight: 500;
}

.yh-kv-val {
  color: var(--yh-primary);
  font-weight: 700;
}

@media (max-width: 640px) {
  .yh-trace-app .yh-accordion-trigger { padding: 18px !important; }
  .yh-accordion-body { padding: 0 18px 20px; }
  .yh-kv-row { grid-template-columns: 1fr; gap: 3px; padding: 10px 0; }
}

.yh-green-lot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: #f4f7fb;
  border: 1px solid #d9e2ef;
  padding: 4px 10px;
  border-radius: 8px;
  margin: 2px 6px 4px 0;
  font-size: 13px;
  color: var(--yh-primary);
}

.yh-green-lot-cert {
  background: #e5f3eb;
  color: var(--yh-green);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 99px;
}

/* Callout info strip */
.yh-callout {
  background: #f5f7fb;
  border-left: 4px solid var(--yh-gold);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13.5px;
  color: #334155;
  margin-top: 10px;
}

/* ==========================================================================
   7. STEPPER: HÀNH TRÌNH LÔ CÀ PHÊ
   ========================================================================== */
.yh-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 6px;
}

.yh-step-top {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.yh-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e5f3eb;
  color: var(--yh-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.yh-step-line {
  flex: 1;
  height: 1.5px;
  background: var(--yh-line);
  margin-left: 10px;
}

.yh-step-item:last-child .yh-step-line {
  display: none;
}

.yh-step-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--yh-primary);
  margin-bottom: 3px;
}

.yh-step-sub {
  font-size: 13px;
  color: var(--yh-muted);
}

@media (max-width: 580px) {
  .yh-stepper {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .yh-step-line { display: none; }
}

/* ==========================================================================
   8. FLAVOR & BREWING CARD
   ========================================================================== */
.yh-flavor-desc {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--yh-ink);
  max-width: 820px;
}

.yh-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.yh-flavor-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  background: #eaf3ee;
  color: #1f543c;
  font-size: 13.5px;
  font-weight: 700;
}

.yh-brew-box {
  background: #f5f7fb;
  border: 1px solid var(--yh-line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--yh-ink);
}

.yh-brew-label {
  font-weight: 800;
  color: var(--yh-primary);
  white-space: nowrap;
  padding-top: 3px;
}

.yh-brew-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yh-brew-chip-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d5dfec;
  color: var(--yh-primary);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .yh-brew-box {
    flex-direction: column;
    gap: 4px;
  }
}

.yh-text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--yh-primary);
  transition: color 0.15s;
}

.yh-text-link:hover {
  color: var(--yh-gold-text);
}

/* ==========================================================================
   9. CERTIFICATION BANNER (Yêu Hạt Brand Deep Navy Gradient)
   ========================================================================== */
.yh-cert-banner {
  background: linear-gradient(135deg, var(--yh-primary) 0%, #0d2b57 55%, var(--yh-primary-soft) 100%);
  color: #ffffff;
  border-radius: var(--yh-radius);
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 26px;
  align-items: center;
  box-shadow: var(--yh-shadow);
}

.yh-cert-seal {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f9f0de 0%, #dbb883 100%);
  border: 4px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--yh-primary);
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.yh-cert-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.yh-cert-seal-code {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.yh-cert-seal-sub {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 3px;
}

.yh-cert-title {
  margin: 0 0 12px !important;
  font-size: clamp(20px, 2.3vw, 24px) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.28 !important;
}

.yh-cert-code-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(224, 190, 137, 0.45);
  border-radius: 10px;
  padding: 7px 14px;
  margin-bottom: 12px;
}

.yh-cert-code-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--yh-gold-light);
}

.yh-cert-code-val {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.yh-cert-desc {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
}

.yh-cert-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.yh-cta-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--yh-gold);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.18s;
}

.yh-cta-gold:hover {
  background: #966730;
  transform: translateY(-1px);
}

.yh-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.18s;
}

.yh-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 720px) {
  .yh-cert-banner {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .yh-cert-seal {
    width: 88px;
    height: 88px;
  }
}

/* ==========================================================================
   10. ORIGIN MAP & REAL FARM PHOTOS
   ========================================================================== */
.yh-map-frame-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--yh-line);
  background: #eef2f7;
  height: 300px;
  margin-bottom: 10px;
}

.yh-map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.yh-map-caption-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--yh-muted);
  margin-bottom: 16px;
}

.yh-region-info-bar {
  background: #f5f7fb;
  border: 1px solid var(--yh-line);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.yh-region-info-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--yh-gold-text);
  margin-bottom: 2px;
}

.yh-region-info-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--yh-primary);
}

.yh-region-info-meta {
  font-size: 13.5px;
  color: var(--yh-muted);
}

.yh-farm-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.yh-farm-photo-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  border: 1px solid var(--yh-line);
  background: #0d1f3a;
}

.yh-farm-photo-card.is-wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.yh-farm-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.yh-farm-photo-card:hover img {
  transform: scale(1.04);
}

.yh-photo-watermark {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(1, 30, 70, 0.55);
  padding: 4px 9px;
  border-radius: 6px;
}

.yh-photo-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 14px 12px;
  background: linear-gradient(to top, rgba(1, 20, 48, 0.84), transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
}

.yh-photo-zoom-tag {
  font-size: 11.5px;
  opacity: 0.9;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .yh-farm-photo-grid { grid-template-columns: 1fr; }
  .yh-farm-photo-card.is-wide { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   11. ORIGIN FLAVOR ARCHIVE & 6-AXIS CUPPING RADAR (DARK BRAND CARD)
   ========================================================================== */
.yh-cupping-card {
  background: linear-gradient(155deg, var(--yh-primary-deep) 0%, var(--yh-primary) 52%, var(--yh-primary-soft) 100%);
  color: #ffffff;
  border-radius: var(--yh-radius);
  padding: 30px 32px;
  box-shadow: var(--yh-shadow);
}

.yh-cupping-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.yh-cupping-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--yh-gold-light);
  margin-bottom: 6px;
}

.yh-cupping-title {
  margin: 0 !important;
  font-size: clamp(21px, 2.8vw, 28px) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  letter-spacing: 0.3px;
}

.yh-cupping-badge {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.yh-season-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 22px;
}

.yh-trace-app .yh-season-tab {
  min-width: 120px;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  text-align: left !important;
  cursor: pointer;
  transition: all 0.2s;
}

.yh-season-tab strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.yh-season-tab span {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.78;
  margin-top: 2px;
}

.yh-trace-app .yh-season-tab.active {
  background: var(--yh-gold-light) !important;
  border-color: var(--yh-gold-light) !important;
  color: var(--yh-primary-deep) !important;
}

.yh-season-tab.active span {
  opacity: 0.85;
}

.yh-cupping-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

.yh-score-subcard {
  background: rgba(0, 14, 38, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yh-score-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1.5px solid rgba(224, 190, 137, 0.5);
  box-shadow: inset 0 0 28px rgba(224, 190, 137, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  text-align: center;
}

.yh-score-ring-lbl {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: rgba(255, 255, 255, 0.74);
}

.yh-score-ring-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--yh-gold-light);
  line-height: 1.1;
  margin: 4px 0;
}

.yh-score-ring-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.yh-score-event {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--yh-gold-light);
  margin-bottom: 6px;
}

.yh-score-variety {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.yh-score-loc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.76);
}

/* Radar chart container — Pure White */
.yh-radar-subcard {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.yh-radar-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  overflow: visible;
}

.yh-cupping-notes-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.yh-cupping-notes-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.yh-dark-pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #eef4fa;
  font-size: 13px;
  font-weight: 600;
}

.yh-cupping-disclaimer {
  border-left: 3px solid var(--yh-gold);
  padding: 8px 14px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 820px) {
  .yh-cupping-card { padding: 22px 18px; }
  .yh-cupping-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   12. FEEDBACK & LOT LOOKUP CARDS (PIXEL-ALIGNED INPUT + BUTTON)
   ========================================================================== */
.yh-trace-app .yh-primary-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  height: 48px !important;
  padding: 0 26px !important;
  border-radius: 12px !important;
  background: var(--yh-primary) !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}

.yh-trace-app .yh-primary-btn:hover {
  background: var(--yh-primary-soft) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.yh-lookup-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--yh-muted);
  margin-bottom: 10px;
}

.yh-lookup-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.yh-trace-app .yh-lookup-input {
  flex: 1;
  width: 100%;
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1.5px solid #cfd8e6 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  font-family: var(--yh-font) !important;
  font-size: 15.5px !important;
  font-weight: 600 !important;
  color: var(--yh-primary) !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.yh-trace-app .yh-lookup-input:focus {
  border-color: var(--yh-primary) !important;
  box-shadow: 0 0 0 3px rgba(1, 30, 70, 0.12) !important;
}

.yh-trace-app .yh-lookup-form .yh-primary-btn {
  height: 52px !important;
  padding: 0 30px !important;
  flex-shrink: 0;
}

.yh-lookup-helper {
  margin-top: 10px;
  font-size: 13px;
  color: var(--yh-muted);
}

@media (max-width: 600px) {
  .yh-lookup-form {
    flex-direction: column;
    align-items: stretch;
  }
  .yh-trace-app .yh-lookup-form .yh-primary-btn {
    width: 100% !important;
  }
}

/* ==========================================================================
   13. LANDING / NOT FOUND FULL-WIDTH HERO
   ========================================================================== */
.yh-landing-hero {
  position: relative;
  width: 100%;
  background-color: var(--yh-primary);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 64px 0 58px;
  text-align: center;
  overflow: hidden;
}

.yh-landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(1, 20, 48, 0.82) 0%,
    rgba(1, 30, 70, 0.7) 55%,
    rgba(27, 47, 93, 0.62) 100%
  );
  z-index: 1;
}

.yh-landing-hero h1 {
  color: #ffffff !important;
  font-size: clamp(26px, 3.8vw, 40px) !important;
  font-weight: 800 !important;
  margin: 0 0 12px !important;
  line-height: 1.2 !important;
}

.yh-landing-hero p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 640px;
  margin: 0 auto;
  font-size: 15.5px;
}

.yh-landing-card {
  max-width: 820px;
  width: 100%;
  margin: 12px auto 0;
}

.yh-notfound-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  color: #991b1b;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   14. OPTIONAL STANDALONE DARK FOOTER
   ========================================================================== */
.yh-trace-footer {
  width: 100%;
  background: linear-gradient(135deg, var(--yh-primary-deep) 0%, var(--yh-primary) 100%);
  color: rgba(255, 255, 255, 0.86);
  padding: 42px 0 26px;
}

.yh-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  margin-bottom: 24px;
}

.yh-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4px;
}

.yh-footer-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 12px;
}

.yh-footer-company h4 {
  margin: 0 0 10px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px;
}

.yh-footer-company p {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
}

.yh-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 720px) {
  .yh-footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   15. LIGHTBOX MODAL (Ảnh nông trại + Watermark)
   ========================================================================== */
.yh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(1, 20, 48, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.yh-lightbox.open {
  display: flex;
}

.yh-lightbox-inner {
  position: relative;
  max-width: 920px;
  width: 100%;
  text-align: center;
}

.yh-trace-app .yh-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  font-size: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
}

.yh-lightbox-img-wrap {
  position: relative;
  display: inline-block;
  border-radius: 14px;
  overflow: hidden;
  max-height: 78vh;
}

.yh-lightbox-img-wrap img {
  max-height: 76vh;
  width: auto;
  margin: 0 auto;
}

.yh-lightbox-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  transform: rotate(-22deg);
  user-select: none;
}

.yh-lightbox-caption {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 12px;
  font-size: 14px;
}
