/* ==========================================================================
   NBi-COFFEE — OFFICIAL MULTI-PAGE WEBSITE DESIGN SYSTEM
   "Chất Việt – Cho vị thế Việt" | Công ty Cổ phần Công nghệ Thực phẩm Đất Việt
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-ivory: #FAF6EE;
  --bg-cream: #F2EAE0;
  --bg-sand: #E6DAC8;
  --bg-white: #FFFFFF;
  --bg-espresso: #15100D;
  --bg-roast: #211813;
  --bg-roast-card: #2B201A;

  /* Typography Colors (WCAG AA/AAA Verified) */
  --text-main: #18120F;
  --text-body: #3E3028;
  --text-muted: #635046;
  --text-on-dark: #FAF6EE;
  --text-on-dark-sub: #DBCDBB;

  /* Brand Accents */
  --gold-dark: #8C6210;
  --gold-main: #B58322;
  --gold-bright: #DEB456;
  --gold-pale: #F7EDD4;
  --emerald-dark: #0D5C46;
  --emerald-bright: #34D399;
  --emerald-pale: #E6F5F0;
  --crimson: #9E1B1B;
  --crimson-pale: #FCE8E8;
  --cyan-tech: #0284C7;

  /* Borders & Shadows */
  --border-light: #E2D6C3;
  --border-gold: rgba(181, 131, 34, 0.35);
  --border-dark: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 4px 14px rgba(24, 18, 15, 0.06);
  --shadow-md: 0 12px 32px rgba(24, 18, 15, 0.10);
  --shadow-lg: 0 24px 56px rgba(24, 18, 15, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Font Stacks — 100% Arial & Variants Across All Devices */
  --font-serif: Arial, "Arial Black", "Helvetica Neue", Helvetica, sans-serif;
  --font-display: Arial, "Arial Black", "Helvetica Neue", Helvetica, sans-serif;
  --font-sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: Arial, "Arial Narrow", "Helvetica Neue", Helvetica, sans-serif;

  /* Layout */
  --container-max: 1340px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-ivory);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-synthesis: weight style;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
td,
th,
label,
input,
select,
textarea,
button,
code,
pre,
strong,
em {
  font-family: var(--font-sans);
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. TOP UTILITY BAR & STICKY MULTI-PAGE HEADER
   ========================================================================== */

.utility-bar {
  background-color: var(--bg-espresso);
  color: var(--text-on-dark-sub);
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border-dark);
  padding: 7px 0;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.utility-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(222, 180, 86, 0.16);
  color: var(--gold-bright);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(222, 180, 86, 0.35);
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.utility-links a {
  color: var(--text-on-dark-sub);
  font-weight: 500;
}

.utility-links a:hover {
  color: var(--gold-bright);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 246, 238, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 16px rgba(24, 18, 15, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-espresso);
  border: 1.5px solid var(--gold-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.brand-mark span {
  font-family: var(--font-sans);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-on-dark-sub);
  margin-top: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-body);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--gold-dark);
  background: rgba(181, 131, 34, 0.08);
}

.nav-link.active {
  color: var(--bg-espresso);
  background: var(--gold-pale);
  border: 1px solid var(--border-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.action-btn:hover {
  border-color: var(--gold-main);
  background: var(--gold-pale);
}

.cart-btn {
  background: var(--bg-espresso);
  color: var(--text-on-dark);
  border-color: var(--bg-espresso);
}

.cart-btn:hover {
  background: var(--gold-dark);
  color: var(--bg-white);
  border-color: var(--gold-dark);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold-bright);
  color: var(--bg-espresso);
  font-size: 0.76rem;
  font-weight: 800;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ==========================================================================
   2. BREADCRUMBS & PAGE HEADERS (STANDARD MULTI-PAGE WEBSITE)
   ========================================================================== */

.breadcrumb-bar {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  font-size: 0.86rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--text-body);
  font-weight: 500;
}

.breadcrumb-list a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb-current {
  color: var(--gold-dark);
  font-weight: 700;
}

.page-hero {
  background: linear-gradient(135deg, var(--bg-espresso) 0%, var(--bg-roast) 60%, #2F2118 100%);
  color: var(--text-on-dark);
  padding: 56px 0;
  border-bottom: 2px solid var(--border-gold);
  position: relative;
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.page-hero-grid>*,
.home-hero-grid>*,
.pdp-grid>*,
.b2b-split>*,
.form-grid>*,
.demo-locked>*,
.products-grid>*,
.strengths-grid>*,
.timeline-grid>*,
.trust-grid>*,
.footer-grid>* {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(222, 180, 86, 0.16);
  color: var(--gold-bright);
  border: 1px solid rgba(222, 180, 86, 0.4);
  max-width: 100%;
  flex-wrap: wrap;
}

.eyebrow-light {
  background: var(--gold-pale);
  color: var(--gold-dark);
  border: 1px solid var(--border-gold);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: var(--text-on-dark);
}

.page-hero p {
  font-size: 1.06rem;
  color: var(--text-on-dark-sub);
  max-width: 680px;
  margin-bottom: 24px;
}

.page-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid rgba(222, 180, 86, 0.4);
  box-shadow: var(--shadow-lg);
}

.page-hero-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* ==========================================================================
   3. BUTTONS, BADGES & COMMON UI ELEMENTS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #C89328 0%, #9E6F12 100%);
  color: #FFFFFF;
  border: 1px solid #B58322;
  box-shadow: 0 6px 20px rgba(181, 131, 34, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #D6A134 0%, #8A5F0D 100%);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--bg-espresso);
  color: var(--text-on-dark);
  border: 1px solid var(--bg-espresso);
}

.btn-dark:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--text-main);
}

.btn-outline:hover {
  background: var(--text-main);
  color: var(--bg-white);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
  border: 1.5px solid rgba(222, 180, 86, 0.55);
}

.btn-outline-light:hover {
  background: var(--gold-bright);
  color: var(--bg-espresso);
  border-color: var(--gold-bright);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.section {
  padding: 76px 0;
}

.section-cream {
  background-color: var(--bg-cream);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-dark {
  background-color: var(--bg-espresso);
  color: var(--text-on-dark);
}

.section-header {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-header-left {
  margin: 0 0 40px;
  text-align: left;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.35vw, 2.1rem);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: inherit;
}

.section-desc {
  font-size: 1.04rem;
  color: var(--text-body);
}

.section-dark .section-desc {
  color: var(--text-on-dark-sub);
}

/* ==========================================================================
   4. HOME HERO & TRUST STRIP
   ========================================================================== */

.home-hero {
  background: radial-gradient(circle at 80% 20%, rgba(181, 131, 34, 0.22), transparent 45%),
    linear-gradient(135deg, #130E0B 0%, #221813 55%, #1A130F 100%);
  color: var(--text-on-dark);
  padding: 64px 0 72px;
  border-bottom: 2px solid var(--border-gold);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  color: var(--text-on-dark);
}

.home-hero h1 .highlight-gold {
  color: var(--gold-bright);
  display: block;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-on-dark-sub);
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
}

.hero-pill strong {
  display: block;
  color: var(--gold-bright);
  font-size: 0.94rem;
  margin-bottom: 2px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-showcase {
  position: relative;
}

.hero-main-card {
  background: var(--bg-roast-card);
  border: 1.5px solid rgba(222, 180, 86, 0.45);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-main-card img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.hero-card-caption {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(21, 16, 13, 0.92);
  border-top: 1px solid rgba(222, 180, 86, 0.25);
}

.hero-card-caption h2 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 2px;
}

.hero-card-caption p {
  font-size: 0.84rem;
  color: var(--text-on-dark-sub);
}

.trust-strip {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
  box-shadow: var(--shadow-sm);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-ivory);
  border: 1px solid var(--border-light);
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--gold-pale);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  border: 1px solid var(--border-gold);
}

.trust-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.3;
}

.trust-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   5. CORE STRENGTHS & TECHNOLOGY CARDS
   ========================================================================== */

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strength-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-main);
}

.strength-card-wide {
  grid-column: span 2;
}

.strength-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--bg-espresso);
}

.strength-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strength-code {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(21, 16, 13, 0.88);
  color: var(--gold-bright);
  border: 1px solid rgba(222, 180, 86, 0.5);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.strength-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.strength-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.strength-body h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.34;
  margin-bottom: 10px;
  color: var(--text-main);
}

.strength-body p {
  font-size: 0.94rem;
  color: var(--text-body);
  margin-bottom: 16px;
  flex: 1;
}

.strength-metrics {
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--emerald-dark);
}

/* ==========================================================================
   6. PRODUCT CATALOG, FILTER BAR & PRODUCT CARDS
   ========================================================================== */

.catalog-toolbar {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--bg-ivory);
  color: var(--text-body);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--gold-main);
  color: var(--gold-dark);
}

.filter-tab.active {
  background: var(--bg-espresso);
  color: var(--gold-bright);
  border-color: var(--bg-espresso);
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.input-field,
.select-field,
textarea {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-ivory);
  color: var(--text-main);
  font-size: 0.9rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.input-field:focus,
.select-field:focus,
textarea:focus {
  outline: 2px solid var(--gold-main);
  background: var(--bg-white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.products-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-main);
}

.product-thumb {
  position: relative;
  height: 220px;
  background: var(--bg-espresso);
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg-espresso);
  color: var(--gold-bright);
  border: 1px solid rgba(222, 180, 86, 0.5);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.product-segment-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-main);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--text-main);
}

.product-title a:hover {
  color: var(--gold-dark);
}

.product-subtitle {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-specs-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.spec-pill {
  background: var(--bg-ivory);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-body);
  font-weight: 500;
}

.product-lot-line {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--emerald-dark);
  background: var(--emerald-pale);
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.product-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-block {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--crimson);
}

.price-unit {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   7. PRODUCT DETAIL PAGE (PDP)
   ========================================================================== */

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.pdp-gallery {
  position: sticky;
  top: 100px;
}

.pdp-main-image {
  background: var(--bg-espresso);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
}

.pdp-main-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pdp-thumb-btn {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  height: 82px;
  background: var(--bg-espresso);
  opacity: 0.75;
  transition: all 0.2s ease;
}

.pdp-thumb-btn.active,
.pdp-thumb-btn:hover {
  border-color: var(--gold-main);
  opacity: 1;
}

.pdp-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.pdp-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.pdp-price-box {
  background: var(--bg-white);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.pdp-price-main {
  font-size: 2rem;
  font-weight: 800;
  color: var(--crimson);
}

.pdp-price-old {
  font-size: 1.05rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.variant-group {
  margin-bottom: 22px;
}

.variant-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.variant-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.variant-btn {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: var(--bg-white);
  text-align: left;
  transition: all 0.2s ease;
}

.variant-btn.active {
  border-color: var(--gold-dark);
  background: var(--gold-pale);
}

.variant-btn strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
}

.variant-btn span {
  font-size: 0.8rem;
  color: var(--crimson);
  font-weight: 700;
}

.pdp-buy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
}

.qty-btn {
  width: 42px;
  height: 46px;
  font-size: 1.2rem;
  font-weight: 700;
}

.qty-input {
  width: 52px;
  height: 46px;
  text-align: center;
  border: none;
  font-weight: 700;
  background: transparent;
}

.flavor-bars {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
}

.flavor-bar-row {
  margin-bottom: 12px;
}

.flavor-bar-row:last-child {
  margin-bottom: 0;
}

.flavor-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.flavor-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-cream);
  overflow: hidden;
}

.flavor-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.spec-table th,
.spec-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  font-size: 0.92rem;
}

.spec-table th {
  width: 34%;
  background: var(--bg-cream);
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   8. COMPARISON TABLE, TIMELINE, TRACEABILITY & B2B CALCULATOR
   ========================================================================== */

.comparison-table-wrap {
  overflow-x: auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--bg-espresso);
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.comparison-table thead th.col-nbi {
  background: linear-gradient(135deg, #332414 0%, #1F160E 100%);
  color: var(--gold-bright);
  border-left: 2px solid var(--gold-main);
}

.comparison-table tbody td.col-nbi {
  background: #FCF8EE;
  border-left: 2px solid var(--gold-main);
  font-weight: 600;
  color: var(--text-main);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.timeline-card {
  background: var(--bg-roast-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.timeline-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.timeline-content {
  padding: 22px;
  flex: 1;
}

.timeline-step-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(222, 180, 86, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.34;
  color: var(--text-on-dark);
  margin-bottom: 6px;
}

.timeline-tech {
  font-size: 0.8rem;
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-on-dark-sub);
}

/* Lot Lookup Box */
.lot-lookup-box {
  background: var(--bg-white);
  border: 2px solid var(--gold-main);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.lot-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 24px;
}

.lot-chip {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-ivory);
}

.lot-chip.active,
.lot-chip:hover {
  background: var(--bg-espresso);
  color: var(--gold-bright);
  border-color: var(--bg-espresso);
}

.lot-result-card {
  background: var(--bg-ivory);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.lot-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.lot-meta-item {
  background: var(--bg-white);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.lot-meta-item span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.lot-meta-item strong {
  font-size: 0.92rem;
  color: var(--text-main);
}

/* B2B Calculator & Forms */
.b2b-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

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

.grid-3-responsive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.finder-card-responsive {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--bg-white);
  padding: 20px;
  border-radius: 14px;
  border: 2px solid var(--gold-main);
}

.card-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.form-group-full {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.calc-stat {
  background: var(--bg-espresso);
  color: var(--text-on-dark);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
}

.calc-stat span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-on-dark-sub);
  margin-bottom: 4px;
}

.calc-stat strong {
  font-size: 1.35rem;
  color: var(--gold-bright);
  font-family: var(--font-mono);
}

/* ==========================================================================
   9. CART DRAWER, MODALS & TOAST NOTIFICATIONS
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 8, 0.65);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--bg-white);
  z-index: 2001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  background: var(--bg-espresso);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-ivory);
}

.cart-item-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-row img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast {
  background: var(--bg-espresso);
  color: var(--text-on-dark);
  border-left: 4px solid var(--gold-bright);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
}

/* ==========================================================================
   10. MULTI-COLUMN CORPORATE FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-espresso);
  color: var(--text-on-dark-sub);
  padding: 64px 0 40px;
  border-top: 3px solid var(--gold-main);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-on-dark-sub);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.legal-disclaimer {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  font-size: 0.8rem;
  color: var(--text-on-dark-sub);
}

/* ==========================================================================
   10B. GEO, AI SEARCH CITATION BLOCKS & RESPONSIVE HELPERS
   ========================================================================== */

.geo-citation-box {
  background: var(--bg-white);
  border: 1.5px solid var(--border-gold);
  border-left: 5px solid var(--gold-main);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.geo-citation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-light);
}

.geo-citation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--gold-pale);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.geo-citation-box h2,
.geo-citation-box h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.geo-citation-lead {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 14px;
  line-height: 1.6;
}

.geo-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.geo-fact-item {
  background: var(--bg-ivory);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-width: 0;
}

.geo-fact-item dt {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.geo-fact-item dd {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.table-scroll-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: var(--gold-pale);
  border: 1px solid var(--border-gold);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS (PC, TABLET, MOBILE)
   ========================================================================== */

@media (max-width: 1180px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-ivory);
    border-bottom: 2px solid var(--gold-main);
    box-shadow: var(--shadow-lg);
    grid-template-columns: repeat(2, 1fr);
    padding: 16px 24px;
    gap: 8px;
  }

  .main-nav.open {
    display: grid;
  }

  .nav-link {
    padding: 11px 14px;
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
  }

  .products-grid,
  .products-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid,
  .geo-fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strengths-grid,
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strength-card-wide {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .home-hero-grid,
  .page-hero-grid,
  .pdp-grid,
  .b2b-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .pdp-gallery {
    position: static;
  }

  .lot-meta-grid {
    grid-template-columns: 1fr;
  }

  .table-scroll-hint {
    display: inline-flex;
  }
}

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

  .utility-left {
    display: none;
  }

  .utility-links {
    gap: 8px 12px;
    font-size: 0.74rem;
    justify-content: space-between;
    width: 100%;
  }

  .main-nav.open {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .brand-title {
    font-size: 1.16rem;
  }

  .brand-subtitle {
    font-size: 0.6rem;
  }

  .action-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-height: 40px;
  }

  .btn {
    min-height: 44px;
    padding: 12px 18px;
  }

  .btn-sm {
    min-height: 38px;
    padding: 8px 14px;
  }

  .hero-pills,
  .products-grid,
  .products-grid-3,
  .strengths-grid,
  .timeline-grid,
  .trust-grid,
  .geo-fact-grid,
  .variant-options,
  .form-grid,
  .calc-result-grid,
  .footer-grid,
  .grid-2-responsive,
  .grid-3-responsive,
  .finder-card-responsive {
    grid-template-columns: 1fr;
  }

  .strength-card-wide,
  .form-group-full {
    grid-column: span 1;
  }

  .home-hero,
  .page-hero {
    padding: 32px 0 40px;
  }

  .home-hero h1,
  .page-hero h1 {
    font-size: 1.62rem;
    line-height: 1.26;
    word-break: break-word;
  }

  .section-title {
    font-size: 1.42rem;
    line-height: 1.28;
  }

  .section {
    padding: 44px 0;
  }

  .hero-main-card img,
  .page-hero-media img,
  .pdp-main-image img {
    height: 260px;
  }

  .card-panel,
  .lot-lookup-box,
  .geo-citation-box {
    padding: 18px 16px;
  }

  .action-btn .hide-mobile {
    display: none;
  }
}


/* ==========================================================================
   LANDING PAGE ALL-IN-ONE — SPA SECTION SCROLL OFFSET & PRODUCT MODAL
   ========================================================================== */

section[id^="section-"] {
  scroll-margin-top: 84px;
}

.brand-mark small {
  font-family: var(--font-sans);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-on-dark-sub);
  margin-top: 2px;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--bg-espresso);
  background: var(--bg-espresso);
  color: var(--text-on-dark);
  transition: all 0.2s ease;
}

.cart-trigger:hover {
  background: var(--gold-dark);
  color: var(--bg-white);
  border-color: var(--gold-dark);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold-bright);
  color: var(--bg-espresso);
  font-size: 0.76rem;
  font-weight: 800;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(222, 180, 86, 0.14);
  border: 1px solid rgba(222, 180, 86, 0.4);
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.home-hero h1 span {
  color: var(--gold-bright);
  display: block;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card-frame {
  background: var(--bg-roast-card);
  border: 1.5px solid rgba(222, 180, 86, 0.45);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-card-frame img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.hero-floating-tag {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(21, 16, 13, 0.92);
  border-top: 1px solid rgba(222, 180, 86, 0.25);
}

.hero-floating-tag strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 2px;
}

.hero-floating-tag span {
  font-size: 0.82rem;
  color: var(--text-on-dark-sub);
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-metric {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-ivory);
  border: 1px solid var(--border-light);
}

.trust-metric strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.trust-metric span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  .main-nav.mobile-open {
    display: grid;
  }
  .trust-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .brand-sub {
    font-size: 0.58rem;
  }
  .cart-trigger {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  .cart-trigger-label {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .main-nav.mobile-open {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }
  .hero-highlights,
  .trust-strip-grid {
    grid-template-columns: 1fr;
  }
  .hero-card-frame img {
    height: 260px;
  }
  .hero-floating-tag {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pdp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 16, 13, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.pdp-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.pdp-modal {
  background: var(--bg-ivory);
  color: var(--text-main);
  width: 100%;
  max-width: 1020px;
  max-height: 90vh;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-espresso);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--border-dark);
}

.pdp-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0;
}

.pdp-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdp-modal-close:hover {
  background: var(--crimson);
}

.pdp-modal-body {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .pdp-modal-backdrop {
    padding: 10px;
  }
  .pdp-modal {
    max-height: 92vh;
    border-radius: 16px;
  }
  .pdp-modal-header {
    padding: 14px 16px;
  }
  .pdp-modal-body {
    padding: 16px;
  }
}

/* ==========================================================================
   ILLUSTRATIVE DEMO MODE & FLOATING TOAST NOTIFICATIONS
   ========================================================================== */
.demo-notice {
  display: inline-block;
  margin: 14px 0 6px;
  padding: 8px 16px;
  background: #fbf7ee;
  border: 1px solid #d4a359;
  border-left: 4px solid #b87c28;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: #6b4712;
  line-height: 1.45;
}

fieldset,
fieldset.demo-locked,
.demo-locked {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  opacity: 0.95;
}

fieldset.demo-locked input,
fieldset.demo-locked select,
fieldset.demo-locked textarea,
fieldset.demo-locked button,
.demo-locked input,
.demo-locked select,
.demo-locked textarea,
.demo-locked button {
  cursor: not-allowed;
}

button:disabled,
button[aria-disabled="true"],
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.72;
  cursor: not-allowed;
  box-shadow: none;
}

.nbi-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  max-width: 440px;
  padding: 14px 20px;
  background: #1e150f;
  color: #ffffff;
  border: 1px solid #d4a359;
  border-left: 5px solid #d4a359;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.nbi-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 600px) {
  .nbi-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* ==================================================================
   NEW SECTIONS: MADE BY VIETNAM HERO, CHIẾN LƯỢC 10 NĂM & QUÁN TÂN SƠN NHẤT
   ================================================================== */
.section-header-center {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 36px;
}

.section-header-center .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
}

.section-header-center .section-title {
  margin-bottom: 12px;
}

.section-header-center .section-desc {
  max-width: 780px;
  margin: 0 auto;
}

.center-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
}

.center-grid-2 > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.video-placeholder-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0a08;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border: 2px solid var(--border-gold);
  cursor: pointer;
  display: block;
}

.video-placeholder-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.video-placeholder-wrap:hover img {
  transform: scale(1.03);
}

.play-btn-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(181, 131, 34, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.25s ease, background 0.25s ease;
  pointer-events: none;
}

.video-placeholder-wrap:hover .play-btn-circle {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--crimson);
}

.video-placeholder-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(18, 13, 10, 0.85);
  backdrop-filter: blur(8px);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(212, 163, 89, 0.45);
  pointer-events: none;
}

.video-badge-bar {
  background: rgba(18, 13, 10, 0.95);
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-on-dark-sub);
}

.video-badge-bar strong {
  color: var(--gold-bright);
}

.supplement-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.supplement-grid-4 > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.supplement-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-left: 4px solid var(--gold-bright);
  border-radius: 12px;
  padding: 16px 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.supplement-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.supplement-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.supplement-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-on-dark-sub);
  line-height: 1.48;
}

.supplement-card-light {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--crimson);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.supplement-card-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.supplement-card-light strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.supplement-card-light p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.48;
}

@media (max-width: 960px) {
  .center-grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .supplement-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================================================================
   COFFEE FINDER (CÔNG CỤ TƯ VẤN GU CÀ PHÊ 3 BƯỚC)
   ================================================================== */
.finder-box {
  background: radial-gradient(circle at 85% 15%, rgba(181, 131, 34, 0.25), transparent 50%),
    linear-gradient(135deg, #18120e 0%, #251b14 60%, #1a130f 100%) !important;
  border: 2px solid var(--border-gold) !important;
  border-radius: 20px !important;
  padding: 40px 36px !important;
  margin-top: 48px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28) !important;
  color: var(--text-on-dark) !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
}

.finder-box .eyebrow {
  display: inline-block !important;
  background: rgba(181, 131, 34, 0.22) !important;
  color: var(--gold-bright) !important;
  border: 1px solid rgba(212, 163, 89, 0.5) !important;
  border-radius: 20px !important;
  padding: 6px 14px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 12px !important;
}

.finder-box h3 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 10px !important;
  line-height: 1.3 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.finder-box .finder-desc {
  color: #e8e2dc !important;
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
  margin-bottom: 28px !important;
  max-width: 820px !important;
}

.finder-step {
  margin-bottom: 24px !important;
}

.finder-step label {
  display: block !important;
  font-weight: 700 !important;
  color: var(--gold-bright) !important;
  font-size: 1.02rem !important;
  margin-bottom: 12px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.finder-options {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.finder-opt {
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 20px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f5efe8 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 30px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.finder-opt:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: var(--gold-bright) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.finder-opt.active {
  background: linear-gradient(135deg, #d4a359 0%, #b58322 100%) !important;
  color: #1a120c !important;
  border-color: #ffd885 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(212, 163, 89, 0.5) !important;
  transform: translateY(-1px) !important;
}

.finder-static-note {
  margin-top: 24px !important;
}

.finder-static-note .demo-notice {
  background: rgba(181, 131, 34, 0.15) !important;
  border: 1px dashed rgba(212, 163, 89, 0.65) !important;
  color: #ffd885 !important;
  border-radius: 10px !important;
  padding: 12px 18px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

@media (max-width: 600px) {
  .finder-box {
    padding: 26px 20px !important;
  }
  .finder-opt {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}




/* ==================================================================
   BACK TO TOP BUTTON (NÚT BẤM NHỎ VỀ ĐẦU TRANG)
   ================================================================== */
.back-to-top-btn {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  z-index: 1500 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #241b14 0%, #17110c 100%) !important;
  color: var(--gold-bright, #ffd885) !important;
  border: 1.5px solid var(--border-gold, #c99846) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(14px) scale(0.9) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
  outline: none !important;
}

.back-to-top-btn svg {
  display: block;
  transition: transform 0.2s ease;
}

.back-to-top-btn:hover {
  background: linear-gradient(135deg, #d4a359 0%, #b58322 100%) !important;
  color: #17110c !important;
  border-color: #ffd885 !important;
  box-shadow: 0 6px 20px rgba(212, 163, 89, 0.5) !important;
  transform: translateY(-2px) scale(1.06) !important;
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

.back-to-top-btn.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 22px !important;
    right: 18px !important;
    width: 42px !important;
    height: 42px !important;
  }
}
