/*
Theme Name: Bentrecorp
Theme URI: https://wp.bentrecorp.vn
Description: Child theme cua Astra cho website Bentrecorp - "Tinh Hoa Ben Tre". Chua toan bo design system, bien mau/typography thuong hieu va tuy bien rieng cua du an. Khong sua Astra core.
Author: Bentrecorp
Template: astra
Version: 1.0.0
Text Domain: bentrecorp
*/

/* ==========================================================================
   1. DESIGN TOKENS — mau sac, typography, khoang cach, bo goc, shadow
   ========================================================================== */
:root {
  /* Mau thuong hieu — xem CLAUDE.md muc 3 */
  --bt-blue-dark: #0B3D3A;
  --bt-blue-dark-rgb: 11, 61, 58;
  --bt-green: #3E7C4A;
  --bt-green-rgb: 62, 124, 74;
  --bt-white: #FFFFFF;
  --bt-gold: #C9A24B;
  --bt-gold-rgb: 201, 162, 75;

  /* Mau trung tinh ho tro */
  --bt-ink: #16211F;          /* van ban chinh, tuong phan cao tren nen trang */
  --bt-ink-soft: #4A5A56;     /* van ban phu */
  --bt-mist: #F4F7F5;         /* nen section xen ke, giu cam giac thoang */
  --bt-line: #E1E8E4;         /* duong vien nhe */
  --bt-danger: #B3261E;       /* thong bao loi form */

  /* Typography — system font stack, ho tro day du dau tieng Viet, khong tai font ngoai */
  --bt-font: "Segoe UI", "Be Vietnam Pro", "Inter", "Helvetica Neue", Arial, sans-serif;
  --bt-h1: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --bt-h2: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --bt-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem);
  --bt-body: 1rem;
  --bt-lh: 1.65;

  /* Khoang cach chuan (8px base) */
  --bt-space-xs: 0.5rem;
  --bt-space-sm: 1rem;
  --bt-space-md: 1.5rem;
  --bt-space-lg: 2.5rem;
  --bt-space-xl: 4rem;
  --bt-space-2xl: 6rem;

  /* Bo cuc */
  --bt-radius: 12px;
  --bt-radius-sm: 8px;
  --bt-shadow: 0 4px 20px rgba(11, 61, 58, 0.08);
  --bt-shadow-hover: 0 8px 28px rgba(11, 61, 58, 0.14);
  --bt-container: 1200px;
  --bt-transition: 180ms ease;
}

/* ==========================================================================
   2. NEN TANG
   ========================================================================== */
body {
  font-family: var(--bt-font);
  color: var(--bt-ink);
  line-height: var(--bt-lh);
  background: var(--bt-white);
}

h1, h2, h3, h4, .bt-h1, .bt-h2, .bt-h3 {
  color: var(--bt-blue-dark);
  font-weight: 700;
  line-height: 1.25;
}
h1, .bt-h1 { font-size: var(--bt-h1); }
h2, .bt-h2 { font-size: var(--bt-h2); }
h3, .bt-h3 { font-size: var(--bt-h3); }

a { color: var(--bt-green); transition: color var(--bt-transition); }
a:hover { color: var(--bt-blue-dark); }

/* Accessibility: khong bao gio xoa focus outline, chi lam dep */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--bt-gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bt-blue-dark);
  color: var(--bt-white);
  padding: var(--bt-space-xs) var(--bt-space-sm);
  z-index: 100000;
  border-radius: 0 0 var(--bt-radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   3. LAYOUT / SECTION
   ========================================================================== */
.bt-section {
  padding: var(--bt-space-2xl) var(--bt-space-sm);
}
.bt-section--mist { background: var(--bt-mist); }
.bt-container {
  max-width: var(--bt-container);
  margin: 0 auto;
}
.bt-section-title {
  text-align: center;
  max-width: 860px;
  margin: 0 auto var(--bt-space-lg);
}
.bt-section-title h2 {
  text-wrap: balance;
  line-height: 1.25;
}
.bt-eyebrow {
  display: inline-block;
  color: var(--bt-green);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: var(--bt-space-xs);
}

/* ==========================================================================
   4. HERO
   ========================================================================== */
.bt-hero {
  position: relative;
  background: linear-gradient(160deg, var(--bt-blue-dark) 0%, #124F49 100%);
  color: var(--bt-white);
  padding: var(--bt-space-2xl) var(--bt-space-sm);
  overflow: hidden;
}
.bt-hero__inner {
  max-width: var(--bt-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--bt-space-xl);
  align-items: center;
}
.bt-hero h1 { color: var(--bt-white); }
.bt-hero__slogan {
  color: var(--bt-gold);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin-bottom: var(--bt-space-xs);
}
.bt-hero__media img,
.bt-hero__media svg {
  width: 100%;
  height: auto;
  border-radius: var(--bt-radius);
}
@media (max-width: 782px) {
  .bt-hero__inner { grid-template-columns: 1fr; text-align: center; }
}

/* ==========================================================================
   4b. FULL BANNER + CAPABILITY BAR (trang chu)
   ========================================================================== */
.bt-full-banner { line-height: 0; }
.bt-full-banner img { width: 100%; height: auto; display: block; max-height: 640px; object-fit: cover; object-position: center; }
.bt-capability-bar {
  display: grid;
  gap: var(--bt-space-md);
  grid-template-columns: repeat(4, 1fr);
  background: var(--bt-blue-dark);
  border-radius: var(--bt-radius);
  padding: var(--bt-space-lg) var(--bt-space-md);
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--bt-shadow-hover);
}
.bt-capability-item { text-align: center; color: var(--bt-white); }
.bt-capability-item h3 { color: var(--bt-gold); font-size: 1.02rem; margin-bottom: 0.35rem; }
.bt-capability-item p { color: rgba(255,255,255,0.85); font-size: 0.88rem; margin: 0; }
@media (max-width: 782px) {
  .bt-capability-bar { grid-template-columns: repeat(2, 1fr); margin-top: 0; border-radius: 0; }
}

/* ==========================================================================
   5. BUTTON
   ========================================================================== */
.bt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--bt-radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--bt-transition), box-shadow var(--bt-transition), background var(--bt-transition);
  border: 2px solid transparent;
  cursor: pointer;
}
.bt-btn:focus-visible { outline-offset: 3px; }
.bt-btn--primary {
  background: var(--bt-green);
  color: var(--bt-white);
}
.bt-btn--primary:hover { background: var(--bt-blue-dark); color: var(--bt-white); transform: translateY(-1px); }
.bt-btn--secondary {
  background: transparent;
  border-color: var(--bt-white);
  color: var(--bt-white);
}
.bt-btn--secondary:hover { background: rgba(255,255,255,0.12); }
.bt-btn--outline {
  background: transparent;
  border-color: var(--bt-green);
  color: var(--bt-green);
}
.bt-btn--outline:hover { background: var(--bt-green); color: var(--bt-white); }
.bt-btn--gold {
  background: var(--bt-gold);
  color: var(--bt-blue-dark);
}
.bt-btn--gold:hover { background: #B8923F; }

/* ==========================================================================
   6. CARD / PRODUCT CARD / NEWS CARD
   ========================================================================== */
.bt-grid {
  display: grid;
  gap: var(--bt-space-md);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.bt-card {
  background: var(--bt-white);
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius);
  overflow: hidden;
  box-shadow: var(--bt-shadow);
  transition: box-shadow var(--bt-transition), transform var(--bt-transition);
  display: flex;
  flex-direction: column;
}
.bt-card:hover { box-shadow: var(--bt-shadow-hover); transform: translateY(-2px); }
.bt-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--bt-mist); }
.bt-card__media img { width: 100%; height: 100%; object-fit: cover; }
.bt-card__body { padding: var(--bt-space-md); flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.bt-card__title { font-size: 1.1rem; color: var(--bt-blue-dark); font-weight: 700; }
.bt-card__meta { color: var(--bt-ink-soft); font-size: 0.85rem; }

.bt-product-card .bt-card__media { aspect-ratio: 1/1; }
.bt-news-card .bt-card__meta { color: var(--bt-green); font-weight: 600; }

/* Card SP tren /san-pham/: toan card click duoc qua "stretched link" (mot
   the <a> phu inset:0 nam duoi anh/tieu de), rieng cac nut CTA duoc dat
   position:relative + z-index cao hon de van bam duoc doc lap. */
.bt-product-card {
  position: relative;
  cursor: pointer;
}
.bt-card__stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.bt-card__stretched-link:focus-visible {
  outline: 2px solid var(--bt-gold);
  outline-offset: -2px;
}
.bt-card__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--bt-blue-dark);
  margin: 0;
}
.bt-card__cta {
  position: relative;
  z-index: 2;
  display: inline-block;
  text-align: center;
  padding: 0.6rem 1.1rem;
  border-radius: var(--bt-radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.bt-card__cta--buy {
  background: var(--bt-green);
  color: var(--bt-white);
  align-self: flex-start;
  margin-top: 0.2rem;
}
.bt-card__cta--buy:hover { background: var(--bt-blue-dark); color: var(--bt-white); transform: translateY(-1px); }
.bt-card__cta-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.3rem;
}
.bt-card__cta--detail {
  background: var(--bt-white);
  color: var(--bt-green);
  border: 2px solid var(--bt-green);
  padding: calc(0.6rem - 2px) calc(1.1rem - 2px);
}
.bt-card__cta--detail:hover { background: var(--bt-green); color: var(--bt-white); }
.bt-card__cta--quote {
  background: transparent;
  color: var(--bt-blue-dark);
  border: 2px solid var(--bt-line);
  padding: calc(0.6rem - 2px) calc(1.1rem - 2px);
}
.bt-card__cta--quote:hover { border-color: var(--bt-gold); color: var(--bt-gold); }

/* ==========================================================================
   7. STAT ROW
   ========================================================================== */
.bt-stats {
  display: grid;
  gap: var(--bt-space-md);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}
.bt-stat__number {
  font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem);
  font-weight: 800;
  color: var(--bt-green);
  display: block;
}
.bt-stat__label { color: var(--bt-ink-soft); }

/* ==========================================================================
   8. CTA BLOCK
   ========================================================================== */
.bt-cta {
  background: var(--bt-green);
  color: var(--bt-white);
  border-radius: var(--bt-radius);
  padding: var(--bt-space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--bt-space-md);
}
.bt-cta h2, .bt-cta h3 { color: var(--bt-white); margin: 0; }
.bt-cta--gold { background: var(--bt-gold); color: var(--bt-blue-dark); }
.bt-cta--gold h2, .bt-cta--gold h3 { color: var(--bt-blue-dark); }

/* ==========================================================================
   9. FORM
   ========================================================================== */
.bt-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--bt-blue-dark);
}
.bt-form input,
.bt-form textarea,
.bt-form select {
  width: 100%;
  padding: 0.75em 1em;
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius-sm);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: var(--bt-space-sm);
}
.bt-form .bt-required { color: var(--bt-danger); }

/* ==========================================================================
   10. BREADCRUMB / PAGINATION / EMPTY STATE
   ========================================================================== */
.bt-breadcrumb {
  font-size: 0.85rem;
  color: var(--bt-ink-soft);
  margin-bottom: var(--bt-space-sm);
}
.bt-breadcrumb a { color: var(--bt-ink-soft); text-decoration: underline; }
.bt-breadcrumb a:hover { color: var(--bt-green); }

.bt-pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: var(--bt-space-lg); }
.bt-pagination a, .bt-pagination span {
  padding: 0.5em 0.9em;
  border-radius: var(--bt-radius-sm);
  border: 1px solid var(--bt-line);
  color: var(--bt-ink);
  text-decoration: none;
}
.bt-pagination .current { background: var(--bt-green); color: var(--bt-white); border-color: var(--bt-green); }

.bt-empty-state {
  text-align: center;
  padding: var(--bt-space-2xl) var(--bt-space-sm);
  color: var(--bt-ink-soft);
}

/* ==========================================================================
   11. PLACEHOLDER ANH
   ========================================================================== */
.bt-placeholder-note {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--bt-danger);
  background: #FBEAE9;
  padding: 0.2em 0.6em;
  border-radius: 4px;
}

/* ==========================================================================
   12. TIMELINE (Cau chuyen Bentrecorp)
   ========================================================================== */
.bt-timeline { position: relative; margin: 0 auto; max-width: 760px; }
.bt-timeline::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bt-line);
}
.bt-timeline__item { position: relative; padding-left: 3rem; margin-bottom: var(--bt-space-lg); }
.bt-timeline__item::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.3rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--bt-gold);
  border: 3px solid var(--bt-white);
  box-shadow: 0 0 0 2px var(--bt-gold);
}
.bt-timeline__year { color: var(--bt-green); font-weight: 700; }

/* ==========================================================================
   13. RESPONSIVE BREAKPOINTS CHUAN (dong bo voi Astra: 921 / 768 / 544)
   ========================================================================== */
@media (max-width: 921px) {
  .bt-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 544px) {
  .bt-section { padding: var(--bt-space-xl) var(--bt-space-xs); }
  .bt-cta { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   14. HEADER "Header chinh" (Elementor, post #4886) — header chinh thuc
   duy nhat cua site (header Astra da bi tat qua filter astra_header_display).
   Chi style bang CSS scoped chat vao class cua widget nay — khong dung CSS
   toan cuc, khong sua file plugin/Elementor.
   ========================================================================== */
#tahefobu-header {
  --ta-sticky-top: 0px;
  box-sizing: border-box;
  width: 100%;
}
/* Ep position:sticky that su (mot vai CSS khac tren site dung selector ID
   co do dac hieu cao hon .ta-sticky-header cua plugin, ghi de ve "relative"). */
#tahefobu-header.ta-sticky-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999;
}
#tahefobu-header.ta-sticky-active {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
}
#tahefobu-header * { box-sizing: border-box; }

/* Container chinh: logo trai - menu giua - CTA phai (flex tu JSON, CSS chi tinh chinh). */
#tahefobu-header .elementor-element-0923314.e-con {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  min-height: 64px;
  transition: padding var(--bt-transition, 0.2s ease), box-shadow var(--bt-transition, 0.2s ease), background-color var(--bt-transition, 0.2s ease);
}

/* Logo. */
#tahefobu-header .elementor-element-2e71bf2 .tahefobu-site-logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
}

/* Menu ngang — mau thuong hieu, khoang cach can doi, khong tran ngang. */
#tahefobu-header .elementor-element-4eafbd4 { flex: 1 1 auto; min-width: 0; }
#tahefobu-header .elementor-element-4eafbd4 ul.hfe-nav-menu__layout-horizontal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#tahefobu-header a.hfe-menu-item {
  color: var(--bt-blue-dark);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--bt-radius-sm, 6px);
  transition: color var(--bt-transition, 0.2s ease), background-color var(--bt-transition, 0.2s ease);
}
#tahefobu-header a.hfe-menu-item:hover,
#tahefobu-header a.hfe-menu-item:focus-visible,
#tahefobu-header .current-menu-item > a.hfe-menu-item {
  color: var(--bt-green);
  background-color: rgba(var(--bt-green-rgb), 0.08);
}

/* CTA "Yeu cau bao gia" — vang chi dung diem nhan, khong hieu ung nang. */
#tahefobu-header .bt-header-cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 20px;
  padding: 0.65em 1.4em;
  background: var(--bt-gold);
  color: var(--bt-blue-dark);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--bt-radius-sm, 6px);
  text-decoration: none;
  transition: background-color var(--bt-transition, 0.2s ease), transform var(--bt-transition, 0.2s ease);
}
#tahefobu-header .bt-header-cta:hover,
#tahefobu-header .bt-header-cta:focus-visible {
  background: #B8923F;
  color: var(--bt-white);
  transform: translateY(-1px);
}

/* Nut hamburger (mobile). */
#tahefobu-header .hfe-nav-menu__toggle {
  color: var(--bt-blue-dark);
  min-width: 44px;
  min-height: 44px;
}

/* Trang thai sau khi cuon qua nguong nho (class "bt-scrolled" do script rieng
   cua child theme dat — xem bentrecorp_header_scroll_script() trong
   functions.php, khong phu thuoc class ta-sticky-active cua plugin vi JS goc
   khong luon them class do khi position:sticky da tu nhien hoat dong):
   nen trang gan tuyet doi, shadow rat nhe, giam nhe chieu cao + logo. */
#tahefobu-header.ta-sticky-header .elementor-element-0923314.e-con {
  background-color: rgba(255, 255, 255, 0.97) !important;
}
#tahefobu-header.bt-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
#tahefobu-header.bt-scrolled .elementor-element-0923314.e-con {
  min-height: 56px;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
#tahefobu-header.bt-scrolled .elementor-element-2e71bf2 .tahefobu-site-logo img {
  height: 38px !important;
  width: 38px !important;
}
.ta-header-spacer { width: 100%; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  #tahefobu-header .elementor-element-0923314.e-con { padding-left: 20px !important; padding-right: 20px !important; }
}
@media (max-width: 767px) {
  #tahefobu-header .elementor-element-0923314.e-con {
    padding-left: 16px !important;
    padding-right: 16px !important;
    min-height: 56px;
  }
  #tahefobu-header .elementor-element-2e71bf2 .tahefobu-site-logo img { height: 36px; }
  #tahefobu-header .bt-header-cta {
    margin-left: 10px;
    padding: 0.5em 0.9em;
    font-size: 0.82rem;
  }
  /* Menu mobile: dropdown/off-canvas cua plugin da xu ly hien/an; chi chinh
     khoang cach bam va tranh tran ngang. */
  #tahefobu-header a.hfe-menu-item,
  #tahefobu-header a.hfe-sub-menu-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  #tahefobu-header nav.hfe-dropdown,
  #tahefobu-header nav.hfe-dropdown-expandible {
    max-width: 100vw;
    overflow-x: hidden;
  }
}
@media (max-width: 400px) {
  #tahefobu-header .bt-header-cta { display: none; }
}

.bt-blog-index-title {
  max-width: var(--ast-normal-container-width, 1200px);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  color: var(--bt-blue-dark);
}

/* ==========================================================================
   15. FOOTER (Astra native builder) — style thuong hieu Bentrecorp de dong bo
   voi Header. Khong doi cau truc HTML cua Astra (4 cot + below-footer), chi
   ap mau/khoang cach/typography theo bo mau da chot o CLAUDE.md.
   ========================================================================== */
.site-footer {
  background: var(--bt-blue-dark);
  color: rgba(255, 255, 255, 0.86);
}
.site-footer .widget-title {
  color: var(--bt-white);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.site-footer .widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--bt-gold);
}
.site-footer .site-primary-footer-wrap {
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}
.site-footer .site-footer-section p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.7;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus {
  color: var(--bt-gold);
}
.bt-footer-brand .bt-footer-slogan {
  color: var(--bt-gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}
.bt-footer-brand .bt-footer-desc {
  max-width: 42ch;
}
.site-footer .menu-menu-footer-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.site-footer .menu-menu-footer-container a {
  font-size: 0.92rem;
}
.bt-footer-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
}
.site-footer .ast-footer-social-1-wrap {
  margin-top: 0.5rem;
}
.site-below-footer-wrap {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.site-below-footer-wrap .ast-footer-copyright p,
.site-below-footer-wrap .ast-builder-html-element p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive — Astra tu chuyen 4 cot -> 2 cot (tablet) -> 1 cot xep chong
   (mobile) qua class co san (ast-footer-row-tablet-stack/mobile-stack); chi
   can chinh khoang cach/canh le cho khop voi cac breakpoint 768/375. */
@media (max-width: 921px) {
  .site-footer .site-primary-footer-wrap {
    padding-top: 2.75rem;
    padding-bottom: 1.5rem;
  }
  .site-footer .site-footer-section {
    padding-bottom: 1.75rem;
  }
}
@media (max-width: 544px) {
  .site-footer .site-primary-footer-wrap {
    padding-top: 2.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .site-below-footer-wrap {
    padding: 0 1.25rem;
    text-align: center;
  }
  .site-below-footer-wrap .site-footer-below-section-1,
  .site-below-footer-wrap .site-footer-below-section-2 {
    text-align: center;
    justify-content: center;
  }
}

html, body { overflow-x: hidden; max-width: 100%; }

/* ==========================================================================
   16. COFFEE SPLIT CARDS — "Ca phe hoa tan say lanh" / "say phun" trinh bay
   thanh 2 the rieng biet tren cung 1 trang chi tiet (khong doi URL, khong
   dung cham Header). Anh chiem ty le lon (~58%) trong the, bo goc nhe, ten
   tieng Anh nho, CTA ro rang, dong chieu cao.
   ========================================================================== */
.bt-coffee-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 1rem;
}
.bt-coffee-card {
  display: flex;
  flex-direction: column;
  background: var(--bt-white);
  border-radius: var(--bt-radius);
  overflow: hidden;
  border: 1px solid var(--bt-line);
  box-shadow: 0 6px 24px rgba(11, 61, 58, 0.08);
  height: 100%;
  scroll-margin-top: 100px;
}
.bt-coffee-card__media {
  aspect-ratio: 6 / 5;
  overflow: hidden;
  background: var(--bt-mist);
}
.bt-coffee-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bt-coffee-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bt-coffee-card__eyebrow-en {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bt-gold);
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.bt-coffee-card__title {
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--bt-blue-dark);
  margin: 0 0 0.65rem;
}
.bt-coffee-card__desc {
  color: var(--bt-ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 1.35rem;
  flex: 1;
}
.bt-coffee-card__ctas {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .bt-coffee-cards {
    grid-template-columns: 1fr;
  }
  .bt-coffee-card__media {
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   17. SERVICE BLOCK — noi dung + anh minh hoa xen ke (trang Dich vu)
   ========================================================================== */
.bt-service-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.bt-service-block--rev .bt-service-block__media {
  order: -1;
}
.bt-service-block__media {
  border-radius: var(--bt-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 6px 24px rgba(11, 61, 58, 0.08);
}
.bt-service-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  .bt-service-block {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .bt-service-block--rev .bt-service-block__media {
    order: 0;
  }
}

/* ==========================================================================
   18. VIDEO EMBED — YouTube responsive (16:9), khong autoplay co tieng
   ========================================================================== */
.bt-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--bt-radius);
  overflow: hidden;
  background: var(--bt-mist);
  box-shadow: 0 6px 24px rgba(11, 61, 58, 0.08);
}
.bt-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.bt-video-embed__caption {
  margin: 0.6rem 0 0;
  color: var(--bt-ink-soft);
  font-size: 0.9rem;
  text-align: center;
}
.bt-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
@media (max-width: 767px) {
  .bt-video-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   19. FOOTER SOCIAL ICONS + BADGE BO CONG THUONG
   ========================================================================== */
.bt-footer-social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.bt-footer-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--bt-white);
  transition: background 0.15s ease, transform 0.15s ease;
}
.bt-footer-social__icon:hover {
  background: var(--bt-gold);
  transform: translateY(-2px);
}
.bt-footer-social__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.bt-bct-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--bt-radius-sm);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.bt-bct-badge:hover {
  border-color: var(--bt-gold);
  color: var(--bt-white);
}
.bt-bct-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .bt-footer-social__icon {
    width: 34px;
    height: 34px;
  }
}

/* ==========================================================================
   20. FLOATING CART ICON — nut gio hang co dinh, khong dung vao Header
   Elementor da khoa (post 4886)
   ========================================================================== */
.bt-floating-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 52px;
  padding: 0 18px 0 16px;
  border-radius: 999px;
  background: var(--bt-green);
  color: var(--bt-white);
  box-shadow: 0 4px 14px rgba(11, 61, 58, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.bt-floating-cart:hover {
  background: var(--bt-blue-dark);
  transform: translateY(-2px);
  color: var(--bt-white);
}
.bt-floating-cart svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.bt-floating-cart__label {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.bt-floating-cart .bt-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bt-gold);
  color: var(--bt-blue-dark);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bt-green);
}
@media (max-width: 480px) {
  .bt-floating-cart {
    right: 12px;
    bottom: 12px;
    width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .bt-floating-cart__label {
    display: none;
  }
  .bt-floating-cart svg {
    width: 19px;
    height: 19px;
  }
}
/* Trang san pham co the mua truc tiep tren mobile: sticky bar (section 22)
   thay the nut noi de tranh trung UI. */
@media (max-width: 767px) {
  body.single-product .bt-floating-cart {
    display: none;
  }
}

/* ==========================================================================
   21. BUY BOX — nut Mua ngay / Them vao gio / Mua tren Shopee (trang chi
   tiet san pham va card danh sach) + o so luong dang stepper [-] [+]
   ========================================================================== */
form.cart {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 420px;
  margin-top: 0.75rem;
}
form.cart .quantity {
  order: 1;
}
.bt-buy-now-btn {
  order: 2;
}
form.cart .single_add_to_cart_button {
  order: 3;
}
.bt-shopee-secondary {
  order: 4;
}
.bt-buy-now-btn,
form.cart .single_add_to_cart_button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.95rem 1.4rem;
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--bt-radius-sm, 8px);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.bt-buy-now-btn {
  background: var(--bt-green);
  color: var(--bt-white);
}
.bt-buy-now-btn:hover {
  background: var(--bt-blue-dark);
  color: var(--bt-white);
  transform: translateY(-1px);
}
form.cart .single_add_to_cart_button {
  background: var(--bt-white);
  color: var(--bt-green);
  border: 2px solid var(--bt-green);
  padding: calc(0.95rem - 2px) calc(1.4rem - 2px);
}
form.cart .single_add_to_cart_button:hover {
  background: var(--bt-green);
  color: var(--bt-white);
}
.bt-shopee-secondary {
  align-self: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #757575;
  text-decoration: underline;
  margin-top: 0.1rem;
}
.bt-shopee-secondary:hover {
  color: var(--bt-gold);
}

/* Quantity stepper [-] [+] */
.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8d8d8;
  border-radius: var(--bt-radius-sm, 8px);
  width: fit-content;
  overflow: hidden;
}
.quantity .qty {
  width: 56px;
  height: 38px;
  text-align: center;
  border: none;
  -moz-appearance: textfield;
}
.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bt-qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: #f4f4f4;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  color: var(--bt-blue-dark);
  transition: background 0.15s ease, color 0.15s ease;
}
.bt-qty-btn:hover {
  background: var(--bt-gold);
  color: var(--bt-white);
}

/* CTA "Mua ngay" tren card danh sach san pham */
.bt-buy-now-btn--card {
  display: block;
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  text-align: center;
}

/* ==========================================================================
   22. STICKY BOTTOM PURCHASE BAR (mobile, chi trang san pham mua truc tiep)
   ========================================================================== */
.bt-sticky-buybar {
  display: none;
}
@media (max-width: 767px) {
  body.single-product {
    padding-bottom: 70px;
  }
  body.single-product .bt-sticky-buybar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    background: var(--bt-white);
    border-top: 1px solid #e2e2e2;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
  }
}
.bt-sticky-buybar__price {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--bt-blue-dark);
  font-size: 0.98rem;
  white-space: nowrap;
}
.bt-sticky-buybar__buynow {
  flex: 1;
  text-align: center;
  background: var(--bt-green);
  color: var(--bt-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.68rem 0.5rem;
  border-radius: var(--bt-radius-sm, 8px);
  text-decoration: none;
}
.bt-sticky-buybar__cart {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bt-blue-dark);
  border-radius: 50%;
  color: var(--bt-white);
}
.bt-sticky-buybar__cart .bt-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--bt-gold);
  color: var(--bt-blue-dark);
  border-radius: 999px;
  text-align: center;
}

/* ==========================================================================
   23. HEADER BRAND TEXT — chu "BENTRECORP" that/sac net canh logo, khong
   sua _elementor_data cua header da khoa (post 4886). Logo anh goc vuong
   4167x4167 (icon+chu long vao nhau) hien qua nho (~44-52px) khien chu
   khong doc duoc — chen span text that qua JS (xem functions.php) thay vi
   phu thuoc chu nam trong anh.
   ========================================================================== */
.bt-header-brand-text {
  display: inline-flex;
  align-items: center;
  margin-left: 0.6rem;
  font-family: 'Oxygen', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--bt-blue-dark);
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 480px) {
  .bt-header-brand-text {
    font-size: 0.95rem;
    margin-left: 0.4rem;
  }
}

/* ==========================================================================
   24. VIDEO FACADE — poster tinh + nut play, chi tai iframe YouTube that
   khi khach bam (tranh frame preview xau YouTube tu chon, cai thien toc do
   tai trang)
   ========================================================================== */
.bt-video-facade {
  position: relative;
  cursor: pointer;
  border-radius: var(--bt-radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.bt-video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}
.bt-video-facade:hover img { opacity: 1; }
.bt-video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(11, 61, 58, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.bt-video-facade:hover .bt-video-facade__play {
  background: var(--bt-green);
  transform: translate(-50%, -50%) scale(1.08);
}
.bt-video-facade__play svg { width: 26px; height: 26px; margin-left: 4px; }
.bt-video-facade__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1.5rem 1.4rem;
  background: linear-gradient(to top, rgba(11, 61, 58, 0.88) 0%, rgba(11, 61, 58, 0) 100%);
  color: var(--bt-white);
  text-align: left;
}
.bt-video-facade__overlay-title {
  font-family: 'Oxygen', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.25rem;
  color: var(--bt-white);
}
.bt-video-facade__overlay-sub {
  font-size: 0.92rem;
  opacity: 0.92;
  margin: 0;
}
.bt-video-facade__brand {
  position: absolute;
  top: 14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(11, 61, 58, 0.55);
  color: var(--bt-white);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.bt-video-facade__play { top: 42%; }
@media (max-width: 480px) {
  .bt-video-facade__overlay { padding: 1.5rem 1rem 1rem; }
  .bt-video-facade__play { width: 56px; height: 56px; }
  .bt-video-facade__play svg { width: 20px; height: 20px; }
}

/* ==========================================================================
   25. ACCORDION — quy cach xuat khau rieng tung san pham (khong dung bang
   lon nhieu cot gay kho doc/keo ngang tren mobile)
   ========================================================================== */
.bt-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bt-accordion-item {
  background: var(--bt-white);
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius-sm);
  overflow: hidden;
}
.bt-accordion-summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--bt-blue-dark);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bt-accordion-summary::-webkit-details-marker { display: none; }
.bt-accordion-summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--bt-green);
  transition: transform 0.15s ease;
}
.bt-accordion-item[open] .bt-accordion-summary::after {
  transform: rotate(45deg);
}
.bt-accordion-body {
  padding: 0 1.2rem 1.2rem;
  border-top: 1px solid var(--bt-line);
  padding-top: 1rem;
}
.bt-packing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--bt-line);
  font-size: 0.92rem;
}
.bt-packing-row strong {
  color: var(--bt-blue-dark);
  min-width: 160px;
}
.bt-packing-row span {
  color: var(--bt-ink-soft);
}
.bt-spec-line {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bt-line);
  font-size: 0.9rem;
  color: var(--bt-blue-dark);
  font-weight: 600;
}
@media (max-width: 480px) {
  .bt-packing-row { flex-direction: column; gap: 0.15rem; }
  .bt-packing-row strong { min-width: auto; }
}

/* 26. CAY DUA — o anh cho tung goc chup, honest placeholder khi chua co anh that */
.bt-cay-dua-header {
  padding: 2.5rem 0 0.5rem;
  text-align: center;
}
.bt-cay-dua-header h1 { margin: 0.3rem 0; }
.bt-cay-dua-header p { margin-left: auto; margin-right: auto; }
.bt-cay-dua-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
.bt-cay-dua-photo-slot {
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--bt-line);
  border-radius: var(--bt-radius-sm);
  background: var(--bt-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1rem;
}
.bt-cay-dua-photo-slot--filled {
  position: relative;
  border-style: solid;
  border-color: var(--bt-line);
  padding: 0;
  justify-content: flex-end;
  overflow: hidden;
}
.bt-cay-dua-photo-slot--filled img { flex: 1; object-fit: cover; height: 100%; }
.bt-cay-dua-photo-slot--filled .bt-cay-dua-photo-label {
  position: absolute;
  margin: 0.5rem;
  background: rgba(11, 61, 58, 0.75);
  color: var(--bt-white);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
}
.bt-photo-pending {
  color: var(--bt-ink-soft);
  font-size: 0.9rem;
  font-style: italic;
}
.bt-cay-dua-photo-label {
  color: var(--bt-blue-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0;
}
.bt-cay-dua-photos--primary .bt-cay-dua-photo-slot {
  aspect-ratio: 1 / 1;
}
@media (min-width: 640px) {
  .bt-cay-dua-photos--primary .bt-cay-dua-photo-slot { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .bt-cay-dua-photos { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
}
