/* ============================================================
   PLEI ROASTERY — EDITORIAL DARK THEME
   File: assets/css/editorial.css
   Nạp SAU main.css. Toàn bộ style bọc trong body.theme-editorial
   nên KHÔNG ảnh hưởng các trang khác (chỉ trang chủ gắn class này).
   ============================================================ */

body.theme-editorial{
  /* Bảng màu editorial (espresso / ember / gold) */
  --ed-bg:#140E0A;
  --ed-bg2:#1B130D;
  --ed-panel:#221812;
  --ed-line:rgba(240,231,214,.12);
  --ed-cream:#F2E9DA;
  --ed-dim:#A99B86;
  --ed-muted:#7C7060;
  --ed-ember:#E0692C;
  --ed-gold:#D8A94B;
  --ed-serif:"Fraunces",Georgia,serif;
  --ed-sans:"Be Vietnam Pro",system-ui,-apple-system,"Segoe UI",sans-serif;

  /* Ghi đè biến của header/footer cũ → header tự chuyển sang tông espresso
     (các inline style trong header.php dùng var(--forest), var(--sand-warm)…) */
  --forest:#0F0A07;
  --sand-warm:#1B130D;
  --sand-border:rgba(240,231,214,.12);
  --dk-3:#A99B86;
  --dk-acc:#D8A94B;

  background:var(--ed-bg);
  color:var(--ed-cream);
  font-family:var(--ed-sans);
  -webkit-font-smoothing:antialiased;
}

body.theme-editorial a{color:inherit}
body.theme-editorial img{max-width:100%}

/* ────────── HEADER (ghi đè tông sáng → tối) ────────── */
body.theme-editorial .header-topbar{background:#0F0A07 !important;border-bottom:1px solid var(--ed-line)}
body.theme-editorial .header-main{
  background:var(--ed-bg2) !important;
  border-bottom:1px solid var(--ed-line) !important;
}
body.theme-editorial .logo-main{color:var(--ed-cream) !important;font-family:var(--ed-serif)}
body.theme-editorial .logo-sub{color:var(--ed-gold) !important}

/* Ô tìm kiếm */
body.theme-editorial .header-search .form-control{
  background:rgba(240,231,214,.06);
  border:1px solid var(--ed-line);
  color:var(--ed-cream);
}
body.theme-editorial .header-search .form-control::placeholder{color:var(--ed-muted)}
body.theme-editorial .header-search .form-control:focus{
  border-color:var(--ed-ember);
  box-shadow:none;
  background:rgba(240,231,214,.08);
}
body.theme-editorial .btn-search{
  background:var(--ed-ember);
  color:#160f0a;
  border:none;
}
body.theme-editorial .btn-search:hover{background:#f0783a;color:#160f0a}

/* Icon giỏ hàng / menu */
body.theme-editorial .header-action-btn,
body.theme-editorial .cart-btn,
body.theme-editorial .btn-menu{color:var(--ed-cream) !important}
body.theme-editorial .header-action-btn:hover,
body.theme-editorial .cart-btn:hover{color:var(--ed-gold) !important}
body.theme-editorial .cart-count{background:var(--ed-ember);color:#160f0a}
/* Nút menu mobile: bỏ nền sáng mặc định → tông tối */
body.theme-editorial .btn-menu{
  background:rgba(240,231,214,.06) !important;
  border:1px solid var(--ed-line) !important;
}
body.theme-editorial .btn-menu:hover{
  background:rgba(224,105,44,.15) !important;
  border-color:var(--ed-ember) !important;
  color:var(--ed-ember) !important;
}

/* Thanh điều hướng */
body.theme-editorial .site-nav{
  background:var(--ed-bg) !important;
  border-bottom:1px solid var(--ed-line);
}
body.theme-editorial .site-nav .nav-link{color:var(--ed-dim) !important}
body.theme-editorial .site-nav .nav-link:hover{color:var(--ed-cream) !important}
body.theme-editorial .dropdown-nav{
  background:var(--ed-panel) !important;
  border:1px solid var(--ed-line);
  box-shadow:0 18px 50px rgba(0,0,0,.5);
}
body.theme-editorial .dropdown-nav a{color:var(--ed-dim) !important}
body.theme-editorial .dropdown-nav a:hover{
  background:rgba(224,105,44,.12) !important;
  color:var(--ed-cream) !important;
}

/* Menu mobile */
body.theme-editorial .mobile-menu{background:var(--ed-bg2) !important;color:var(--ed-cream)}
body.theme-editorial .mobile-menu a{color:var(--ed-dim) !important}
body.theme-editorial .mobile-menu a:hover{color:var(--ed-cream) !important}
body.theme-editorial .mobile-menu-title{color:var(--ed-cream)}

/* ────────── FOOTER (giữ tối, chỉnh về tông espresso) ────────── */
body.theme-editorial .site-footer{
  background:linear-gradient(180deg,#0F0A07 0%,#0A0705 100%) !important;
}
body.theme-editorial .footer-heading{color:var(--ed-gold);border-bottom-color:var(--ed-line)}

/* ────────── NÚT / TIÊU ĐỀ CHUNG ────────── */
body.theme-editorial .ed-eyebrow{
  font-size:11px;letter-spacing:.32em;text-transform:uppercase;
  color:var(--ed-ember);font-weight:700;
}
body.theme-editorial .ed-btn{
  display:inline-flex;align-items:center;gap:.5rem;font-weight:700;font-size:14px;
  letter-spacing:.02em;padding:14px 26px;border-radius:999px;cursor:pointer;
  border:1.5px solid transparent;transition:.18s;text-decoration:none;line-height:1;
}
body.theme-editorial .ed-btn-solid{background:var(--ed-ember);color:#160f0a}
body.theme-editorial .ed-btn-solid:hover{background:#f0783a;color:#160f0a;transform:translateY(-2px)}
body.theme-editorial .ed-btn-ghost{border-color:rgba(240,231,214,.35);color:var(--ed-cream)}
body.theme-editorial .ed-btn-ghost:hover{border-color:var(--ed-ember);color:var(--ed-ember)}

body.theme-editorial .ed-section{padding:64px 0}
body.theme-editorial .ed-bg-base{background:var(--ed-bg)}
body.theme-editorial .ed-bg-alt{background:var(--ed-bg2);border-top:1px solid var(--ed-line);border-bottom:1px solid var(--ed-line)}
body.theme-editorial .ed-shead{
  display:flex;justify-content:space-between;align-items:flex-end;
  gap:16px;margin-bottom:32px;flex-wrap:wrap;
}
body.theme-editorial .ed-shead h2{
  font-family:var(--ed-serif);font-weight:600;
  font-size:clamp(26px,3.6vw,40px);letter-spacing:-.01em;margin:8px 0 0;
  color:var(--ed-cream);text-wrap:balance;
}
body.theme-editorial .ed-shead h2 em{font-style:italic;color:var(--ed-gold)}
body.theme-editorial .ed-more{font-size:13px;font-weight:600;color:var(--ed-gold);white-space:nowrap;text-decoration:none}
body.theme-editorial .ed-more:hover{color:var(--ed-ember)}

/* ────────── HERO ────────── */
body.theme-editorial .ed-hero{
  position:relative;overflow:hidden;
  background:radial-gradient(120% 90% at 80% 0%,#2A1A10 0%,var(--ed-bg) 60%);
}
body.theme-editorial .ed-hero-inner{
  display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;
  padding:70px 0 60px;
}
body.theme-editorial .ed-h1{
  font-family:var(--ed-serif);font-weight:600;
  font-size:clamp(38px,6vw,72px);line-height:1.03;letter-spacing:-.02em;
  margin:16px 0 18px;color:var(--ed-cream);text-wrap:balance;
}
body.theme-editorial .ed-h1 em{font-style:italic;color:var(--ed-gold)}
body.theme-editorial .ed-lead{font-size:17px;color:var(--ed-dim);max-width:48ch;margin:0 0 28px;line-height:1.7}
body.theme-editorial .ed-cta{display:flex;gap:14px;flex-wrap:wrap}
body.theme-editorial .ed-trust{display:flex;gap:22px;flex-wrap:wrap;margin-top:30px;font-size:13px;color:var(--ed-dim)}
body.theme-editorial .ed-trust b{color:var(--ed-cream);font-weight:600}

body.theme-editorial .ed-showcase{position:relative;min-height:420px;display:grid;place-items:center}
body.theme-editorial .ed-bagcard{
  position:relative;width:min(360px,80%);aspect-ratio:4/5;border-radius:18px;
  background:linear-gradient(160deg,#2A1E14,#150E09);border:1px solid var(--ed-line);
  box-shadow:0 30px 70px rgba(0,0,0,.5);display:grid;place-items:center;
}
body.theme-editorial .ed-bagcard svg{width:56%}
/* Ảnh thật từ admin (nếu có) */
body.theme-editorial .ed-shots{display:flex;gap:14px;align-items:flex-end;position:relative;z-index:2}
body.theme-editorial .ed-shot{border-radius:14px;overflow:hidden;border:1px solid rgba(216,169,75,.2);box-shadow:0 16px 48px rgba(0,0,0,.4);transition:.3s}
body.theme-editorial .ed-shot img{display:block;width:100%;height:auto}
body.theme-editorial .ed-shot-l{width:210px;transform:rotate(-3deg) translateY(10px)}
body.theme-editorial .ed-shot-c{width:250px;z-index:2}
body.theme-editorial .ed-shot-r{width:200px;transform:rotate(3deg) translateY(15px)}
body.theme-editorial .ed-shot:hover{transform:none}

body.theme-editorial .ed-float{
  position:absolute;background:rgba(28,20,14,.92);border:1px solid var(--ed-line);
  border-radius:12px;padding:10px 14px;font-size:12px;box-shadow:0 10px 30px rgba(0,0,0,.4);z-index:4;
}
body.theme-editorial .ed-float b{display:block;color:var(--ed-cream);font-weight:700;font-size:13px}
body.theme-editorial .ed-float .s{color:var(--ed-muted);font-size:11px}
body.theme-editorial .ed-f1{top:14px;right:0}
body.theme-editorial .ed-f2{bottom:26px;left:-6px;background:var(--ed-gold);color:#160f0a;border:none}
body.theme-editorial .ed-f2 b{color:#160f0a}
body.theme-editorial .ed-f3{top:34%;left:-14px;border-color:rgba(224,105,44,.4)}
body.theme-editorial .ed-f3 span{color:var(--ed-ember);font-weight:700;font-size:11px;letter-spacing:.14em}

/* ────────── STORY / TẠI SAO CHỌN ────────── */
body.theme-editorial .ed-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
body.theme-editorial .ed-feat .ed-ic{font-size:22px}
body.theme-editorial .ed-feat h4{font-family:var(--ed-serif);font-weight:600;font-size:19px;margin:12px 0 6px;color:var(--ed-cream)}
body.theme-editorial .ed-feat p{color:var(--ed-dim);font-size:14px;margin:0;line-height:1.65}

/* ────────── GEAR / THIẾT BỊ ────────── */
body.theme-editorial .ed-gear{
  display:grid;grid-template-columns:1.2fr .8fr;gap:0;
  border:1px solid var(--ed-line);border-radius:20px;overflow:hidden;background:var(--ed-panel);
}
body.theme-editorial .ed-gear-l{padding:40px}
body.theme-editorial .ed-gear-l h3{font-family:var(--ed-serif);font-weight:600;font-size:26px;margin:10px 0 12px;color:var(--ed-cream)}
body.theme-editorial .ed-gear-l p{color:var(--ed-dim);font-size:14px;max-width:46ch;margin:0 0 22px;line-height:1.7}
body.theme-editorial .ed-gear-r{background:linear-gradient(160deg,#2A1E14,#150E09);display:grid;place-items:center;min-height:220px}

/* ────────── BLOG ────────── */
body.theme-editorial .ed-post-card{
  background:var(--ed-panel);border:1px solid var(--ed-line);border-radius:14px;
  overflow:hidden;transition:.2s;height:100%;display:block;text-decoration:none;
}
body.theme-editorial .ed-post-card:hover{border-color:rgba(216,169,75,.4);transform:translateY(-3px)}
body.theme-editorial .ed-post-thumb{aspect-ratio:16/9;overflow:hidden}
body.theme-editorial .ed-post-thumb img{width:100%;height:100%;object-fit:cover}
body.theme-editorial .ed-post-body{padding:20px}
body.theme-editorial .ed-post-k{
  font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--ed-ember);font-weight:700;
}
body.theme-editorial .ed-post-body h3{
  font-family:var(--ed-serif);font-weight:600;font-size:17px;line-height:1.3;
  margin:10px 0 8px;color:var(--ed-cream);
}
body.theme-editorial .ed-post-body p{
  color:var(--ed-dim);font-size:13.5px;margin:0;line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

/* ────────── CTA CUỐI ────────── */
body.theme-editorial .ed-cta-final{
  background:radial-gradient(120% 120% at 50% 0%,#2A1A10,var(--ed-bg));
  text-align:center;border-top:1px solid var(--ed-line);
}
body.theme-editorial .ed-cta-final h2{font-family:var(--ed-serif);font-weight:600;font-size:clamp(28px,4vw,44px);margin:0 0 10px;color:var(--ed-cream)}
body.theme-editorial .ed-cta-final h2 em{font-style:italic;color:var(--ed-gold)}
body.theme-editorial .ed-cta-final p{color:var(--ed-dim);margin:0 0 26px}

/* ────────── THẺ SẢN PHẨM (product-card.php) → tông tối ────────── */
body.theme-editorial .product-card{
  background:var(--ed-panel);
  border:1px solid var(--ed-line);
  border-radius:16px;overflow:hidden;
  display:flex;flex-direction:column;height:100%;transition:.2s;
}
body.theme-editorial .product-card:hover{transform:translateY(-4px);border-color:rgba(224,105,44,.4)}
body.theme-editorial .product-card-img-wrap{
  display:block;position:relative;
  background:radial-gradient(120% 120% at 30% 15%,#2A1E14,#140E09);
  border-bottom:1px solid var(--ed-line);
}
body.theme-editorial .product-card-img{aspect-ratio:1/1;object-fit:cover;width:100%}
body.theme-editorial .product-card-body{padding:15px 15px 17px;display:flex;flex-direction:column;gap:6px;flex:1;background:var(--ed-panel)}
body.theme-editorial .product-category-tag{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--ed-muted);font-weight:700}
body.theme-editorial .product-card-name a{font-family:var(--ed-serif);font-weight:600;font-size:17px;line-height:1.2;color:var(--ed-cream);text-decoration:none}
body.theme-editorial .product-card-name a:hover{color:var(--ed-gold)}
body.theme-editorial .product-weight{color:var(--ed-dim) !important}
body.theme-editorial .product-card-price{margin-top:auto}
body.theme-editorial .product-card-price .price-current{font-family:var(--ed-serif);font-weight:600;font-size:18px;color:var(--ed-gold)}
body.theme-editorial .product-card-price .price-original{color:var(--ed-muted);text-decoration:line-through;font-size:13px;margin-left:6px}

/* Badge */
body.theme-editorial .product-badge{
  position:absolute;top:12px;left:12px;z-index:3;
  font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:4px 9px;border-radius:6px;
}
body.theme-editorial .badge-hot,body.theme-editorial .badge-sale{background:var(--ed-ember);color:#160f0a}
body.theme-editorial .badge-new{background:var(--ed-gold);color:#160f0a}

/* Nút thêm giỏ / tư vấn */
body.theme-editorial .product-card .btn-add-to-cart{
  margin-top:10px;background:transparent;color:var(--ed-cream);
  border:1.5px solid rgba(240,231,214,.25);border-radius:9px;padding:10px;
  font-size:13px;font-weight:600;transition:.15s;
}
body.theme-editorial .product-card .btn-add-to-cart:hover{
  background:var(--ed-ember);border-color:var(--ed-ember);color:#160f0a;
}
/* Nút overlay "+" trên ảnh */
body.theme-editorial .product-card-overlay .btn-add-cart{
  background:var(--ed-ember);color:#160f0a;border:none;
}
body.theme-editorial .product-card-overlay .btn-add-cart:hover{background:#f0783a}

/* ────────── RESPONSIVE ────────── */
@media(max-width:900px){
  body.theme-editorial .ed-hero-inner{grid-template-columns:1fr;padding:48px 0}
  body.theme-editorial .ed-showcase{min-height:340px}
}
@media(max-width:820px){
  body.theme-editorial .ed-grid3{grid-template-columns:1fr}
  body.theme-editorial .ed-gear{grid-template-columns:1fr}
  /* Ẩn ô trang trí (icon máy) trên mobile — tránh mảng đen trống lớn */
  body.theme-editorial .ed-gear-r{display:none}
  body.theme-editorial .ed-gear-l{padding:28px}
}
@media(max-width:520px){
  body.theme-editorial .ed-section{padding:44px 0}
  body.theme-editorial .ed-trust{gap:14px}
}
:root:has(body.theme-editorial) :focus-visible{outline:2px solid var(--ed-ember);outline-offset:2px}
@media(prefers-reduced-motion:reduce){body.theme-editorial *{transition:none !important}}

/* ============================================================
   SITE-WIDE — phủ theme editorial cho MỌI trang (nạp qua header.php)
   ============================================================ */

/* Ánh xạ lại biến main.css: nền sáng -> tối, chữ tối -> sáng.
   Giữ --forest (navy) cho các NỀN tối/nút vốn đã tối. */
body.theme-editorial{
  --sand:#17100B; --sand-warm:#1B130D; --sand-deep:#221812;
  --sand-border:rgba(240,231,214,.12); --sage-border:rgba(240,231,214,.12);
  --sage-pale:#1B130D; --copper-pale:#221812;
  --ink:#F2E9DA; --ink-mid:#C9BCA6; --ink-muted:#A99B86;
}

/* Chrome dùng chung */
body.theme-editorial .breadcrumb-bar{background:var(--ed-bg2)!important;border-bottom:1px solid var(--ed-line)!important}
body.theme-editorial .breadcrumb-bar a{color:var(--ed-dim)}
body.theme-editorial .breadcrumb-item,
body.theme-editorial .breadcrumb-item.active{color:var(--ed-muted)}
body.theme-editorial .breadcrumb-item+.breadcrumb-item::before{color:var(--ed-muted)}

body.theme-editorial .filter-title,
body.theme-editorial .checkout-section-title,
body.theme-editorial .section-title{color:var(--ed-cream)}
body.theme-editorial .filter-list li a{color:var(--ed-dim);border-bottom-color:var(--ed-line)}
body.theme-editorial .filter-list li a:hover,
body.theme-editorial .filter-list li a.active{color:var(--ed-gold)}

/* Form */
body.theme-editorial .form-control,
body.theme-editorial .form-select{background:rgba(240,231,214,.06);border:1px solid var(--ed-line);color:var(--ed-cream)}
body.theme-editorial .form-control::placeholder{color:var(--ed-muted)}
body.theme-editorial .form-control:focus,
body.theme-editorial .form-select:focus{background:rgba(240,231,214,.09);border-color:var(--ed-ember);color:var(--ed-cream);box-shadow:none}
body.theme-editorial .input-group-text{background:var(--ed-panel);border-color:var(--ed-line);color:var(--ed-dim)}

/* Card bootstrap */
body.theme-editorial .card{background:var(--ed-panel);border:1px solid var(--ed-line);color:var(--ed-cream)}
body.theme-editorial .card-header,
body.theme-editorial .card-footer{background:rgba(240,231,214,.04);border-color:var(--ed-line)}

/* Pagination */
body.theme-editorial .page-link{background:var(--ed-panel);color:var(--ed-cream);border-color:var(--ed-line)}
body.theme-editorial .page-link:hover{background:rgba(224,105,44,.15);color:var(--ed-cream);border-color:var(--ed-ember)}
body.theme-editorial .page-item.active .page-link{background:var(--ed-ember)!important;border-color:var(--ed-ember)!important;color:#160f0a}

/* Buttons bootstrap/custom */
body.theme-editorial .btn-outline-secondary{color:var(--ed-dim);border-color:var(--ed-line)}
body.theme-editorial .btn-outline-secondary:hover{background:var(--ed-ember);border-color:var(--ed-ember);color:#160f0a}
body.theme-editorial .btn-dark{background:var(--ed-ember);border-color:var(--ed-ember);color:#160f0a}
body.theme-editorial .btn-dark:hover{background:#f0783a;border-color:#f0783a;color:#160f0a}
body.theme-editorial .btn-primary-cc,
body.theme-editorial .btn-primary{background:var(--ed-ember);border:none;color:#160f0a}
body.theme-editorial .btn-primary-cc:hover,
body.theme-editorial .btn-primary:hover{background:#f0783a;color:#160f0a}

/* Helpers */
body.theme-editorial .text-muted{color:var(--ed-muted)!important}
body.theme-editorial .text-dark,
body.theme-editorial .text-body{color:var(--ed-cream)!important}
body.theme-editorial .bg-white,
body.theme-editorial .bg-light{background:var(--ed-panel)!important}
body.theme-editorial hr{border-color:var(--ed-line)}

/* Bảng (tài khoản / theo dõi đơn / đặt hàng) */
body.theme-editorial .table{color:var(--ed-cream);--bs-table-bg:transparent;--bs-table-color:var(--ed-cream);--bs-table-striped-color:var(--ed-cream)}
body.theme-editorial .table>:not(caption)>*>*{border-color:var(--ed-line);background-color:transparent}
body.theme-editorial .table thead th{color:var(--ed-dim)}

/* ── Ép NỀN SÁNG inline -> nền tối (CSS !important thắng inline style) ── */
body.theme-editorial [style*="background:#fff" i],
body.theme-editorial [style*="background: #fff" i],
body.theme-editorial [style*="background:#EFF5F1" i],
body.theme-editorial [style*="background:#FAF7F2" i],
body.theme-editorial [style*="background: #FAF7F2" i],
body.theme-editorial [style*="background:#FAF3E8" i],
body.theme-editorial [style*="background: #FAF3E8" i],
body.theme-editorial [style*="background:#F5ECD7" i],
body.theme-editorial [style*="background:#f5ece0" i],
body.theme-editorial [style*="background:#eee" i],
body.theme-editorial [style*="background:#E5DED3" i],
body.theme-editorial [style*="background: #E5DED3" i],
body.theme-editorial [style*="background:var(--sand" i],
body.theme-editorial [style*="background:var(--sage-pale" i]{
  background:var(--ed-panel)!important;
}

/* ── Ép CHỮ TỐI inline -> sáng ── */
body.theme-editorial [style*="color:var(--forest" i],
body.theme-editorial [style*="color:var(--ink)" i],
body.theme-editorial [style*="color:#0F2419" i],
body.theme-editorial [style*="color:#16213E" i],
body.theme-editorial [style*="color:#0E1A33" i],
body.theme-editorial [style*="color:#1A0E00" i],
body.theme-editorial [style*="color:#1A1628" i]{
  color:var(--ed-cream)!important;
}
/* Chữ phụ (muted) inline -> dim */
body.theme-editorial [style*="color:#7A7590" i],
body.theme-editorial [style*="color:#7A7060" i],
body.theme-editorial [style*="color:#4A5E50" i],
body.theme-editorial [style*="color:#7A8C80" i],
body.theme-editorial [style*="color:var(--ink-muted" i]{
  color:var(--ed-dim)!important;
}

/* ============================================================
   OVERRIDE các class trong <style> nội trang (không phải inline)
   — chỗ gây chữ tối trên nền tối / box nền sáng.
   ============================================================ */

/* Tiêu đề / chữ bị chìm -> sáng */
body.theme-editorial .post-title,
body.theme-editorial .post-title a,
body.theme-editorial .product-detail-name,
body.theme-editorial .policy-section-title,
body.theme-editorial .faq-q,
body.theme-editorial .tl-title,
body.theme-editorial .philosophy-block h4,
body.theme-editorial .big-quote,
body.theme-editorial .qty-num,
body.theme-editorial .qty-input,
body.theme-editorial .nav-tabs-product .nav-link.active{
  color:var(--ed-cream) !important;
}
body.theme-editorial .qty-btn{color:var(--ed-cream) !important}
body.theme-editorial .nav-tabs-product .nav-link{color:var(--ed-dim) !important}
body.theme-editorial .nav-tabs-product .nav-link.active{border-bottom-color:var(--ed-ember) !important}
body.theme-editorial .nav-tabs-product{border-bottom-color:var(--ed-line) !important}
body.theme-editorial .meta-row{color:var(--ed-dim) !important;border-bottom-color:var(--ed-line) !important}
body.theme-editorial .meta-label{color:var(--ed-muted) !important}

/* Box nền sáng -> nền tối */
body.theme-editorial .post-card-sm,
body.theme-editorial .post-img-wrap,
body.theme-editorial .cart-item,
body.theme-editorial .cart-img,
body.theme-editorial .qty-wrap,
body.theme-editorial .sum-box,
body.theme-editorial .product-main-img,
body.theme-editorial .quantity-control,
body.theme-editorial .policy-tabs,
body.theme-editorial .policy-section,
body.theme-editorial .svc-card-main,
body.theme-editorial .pricing-box,
body.theme-editorial .partner-logo,
body.theme-editorial .value-card,
body.theme-editorial .commit-item{
  background:var(--ed-panel) !important;
  border-color:var(--ed-line) !important;
}
body.theme-editorial .post-card-sm{border:1px solid var(--ed-line) !important}
body.theme-editorial .qty-btn:hover{background:rgba(224,105,44,.15) !important}

/* Pill danh mục bài viết / nút biến thể -> tông tối */
body.theme-editorial .post-cat-tag{background:var(--ed-ember) !important;color:#160f0a !important;border:none !important}
body.theme-editorial .btn-variant{
  background:var(--ed-panel) !important;
  border:1.5px solid var(--ed-line) !important;
  color:var(--ed-cream) !important;
}
body.theme-editorial .btn-variant:hover,
body.theme-editorial .btn-variant.active{
  background:var(--ed-ember) !important;
  border-color:var(--ed-ember) !important;
  color:#160f0a !important;
}
body.theme-editorial .cat-pill{background:var(--ed-panel) !important;border-color:var(--ed-line) !important;color:var(--ed-dim) !important}
body.theme-editorial .cat-pill:hover,
body.theme-editorial .cat-pill.active{background:var(--ed-ember) !important;border-color:var(--ed-ember) !important;color:#160f0a !important}
body.theme-editorial .policy-tab.active{background:var(--ed-ember) !important;color:#160f0a !important}

/* ============================================================
   FIX NÚT & TAG (phát hiện qua kiểm tra tương phản tự động)
   ============================================================ */

/* Nút outline custom (.btn-outline-cc) — trước bị chữ đen trên nền tối */
body.theme-editorial .btn-outline-cc{
  color:var(--ed-cream) !important;
  border-color:rgba(240,231,214,.35) !important;
  background:transparent !important;
}
body.theme-editorial .btn-outline-cc:hover{
  background:var(--ed-ember) !important;
  border-color:var(--ed-ember) !important;
  color:#160f0a !important;
}
body.theme-editorial .text-primary-cc,
body.theme-editorial .section-label{color:var(--ed-gold) !important}

/* Tag dịch vụ (.svc-tag) — trước đồng-trên-đồng, chìm */
body.theme-editorial .svc-tag{
  background:rgba(224,105,44,.16) !important;
  color:var(--ed-gold) !important;
}
body.theme-editorial .svc-hero,
body.theme-editorial .svc-card-header,
body.theme-editorial .svc-card-body{background:var(--ed-panel) !important;border-color:var(--ed-line) !important}

/* Nút nền ĐỒNG / VÀNG: luôn để CHỮ TỐI cho rõ.
   Dùng 2 thuộc tính [background][color] để đặc hiệu cao hơn quy tắc flip chữ tối→sáng. */
body.theme-editorial [style*="background:#D4956A" i][style*="color" i],
body.theme-editorial [style*="background: #D4956A" i][style*="color" i],
body.theme-editorial [style*="background:#D4A84B" i][style*="color" i],
body.theme-editorial [style*="background: #D4A84B" i][style*="color" i],
body.theme-editorial [style*="background:#C8963C" i][style*="color" i],
body.theme-editorial [style*="background: #C8963C" i][style*="color" i]{
  color:#160f0a !important;
}
/* FOOTER: khôi phục chữ tối trên nút vàng (đừng để blanket-flip thành kem) */
body.theme-editorial .site-footer [style*="color:#0E1A33" i],
body.theme-editorial .site-footer [style*="color:#0F2419" i]{color:#0E1A33 !important}
/* Chữ tên liên hệ trong footer -> sáng hơn */
body.theme-editorial .site-footer [style*="color:#9B8B6E" i]{color:var(--ed-dim) !important}

/* ============================================================
   FIX TIÊU ĐỀ MẶC ĐỊNH — main.css đặt h1..h6 = var(--forest) (tối)
   => trên nền tối bị chìm. Đưa về kem. Không !important để giữ được
   các tiêu đề cố ý tô màu (gold/ember) qua inline.
   ============================================================ */
body.theme-editorial h1,
body.theme-editorial h2,
body.theme-editorial h3,
body.theme-editorial h4,
body.theme-editorial h5,
body.theme-editorial h6{color:var(--ed-cream)}

/* Các rule tiêu đề đặc hiệu/!important trong main.css */
body.theme-editorial .section-newsletter h3{color:var(--ed-cream) !important}
body.theme-editorial .section-newsletter p{color:var(--ed-dim) !important}
body.theme-editorial .why-item h5,
body.theme-editorial .post-card-title,
body.theme-editorial .post-card-title a,
body.theme-editorial .cart-mini-header,
body.theme-editorial .plei-cat-name,
body.theme-editorial .product-card .product-name,
body.theme-editorial .product-card .card-title{color:var(--ed-cream)}
/* Nền newsletter (main.css var(--sage-pale)) đã map tối; đảm bảo tách khối */
body.theme-editorial .section-newsletter{background:var(--ed-bg2) !important;border-color:var(--ed-line) !important}

/* Biến --cream (không định nghĩa trong main.css) dùng làm NỀN sáng ở trang giới thiệu
   -> định nghĩa tối để hộp .big-quote không còn nền kem sáng. */
body.theme-editorial{--cream:#221812;--parchment:#221812}
body.theme-editorial .big-quote{background:var(--ed-panel) !important;color:var(--ed-cream) !important}
body.theme-editorial [style*="background:var(--cream" i],
body.theme-editorial [style*="background: var(--cream" i]{background:var(--ed-panel) !important}

/* Thẻ bài viết liên quan (.post-card) trong trang chi tiết bài viết + link đọc thêm */
body.theme-editorial .post-card{background:var(--ed-panel) !important;border-color:var(--ed-line) !important}
body.theme-editorial .post-read-more{color:var(--ed-gold) !important}
body.theme-editorial .post-meta{color:var(--ed-dim) !important}
body.theme-editorial .sidebar-widget{background:var(--ed-panel) !important;border-color:var(--ed-line) !important}

/* ============================================================
   QUICKLINK DANH MỤC (trang chủ)
   ============================================================ */
body.theme-editorial .ed-quick{
  display:grid;grid-template-columns:repeat(6,1fr);gap:14px;
}
body.theme-editorial .ed-quick-card{
  display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;
  background:var(--ed-panel);border:1px solid var(--ed-line);border-radius:14px;
  padding:20px 12px;text-decoration:none;transition:.2s;
}
body.theme-editorial .ed-quick-card:hover{
  transform:translateY(-4px);border-color:rgba(224,105,44,.45);
  box-shadow:0 14px 34px rgba(0,0,0,.4);
}
body.theme-editorial .ed-quick-ic{
  width:48px;height:48px;border-radius:12px;display:grid;place-items:center;
  background:radial-gradient(120% 120% at 30% 15%,#2A1E14,#140E09);
  border:1px solid var(--ed-line);color:var(--ed-gold);font-size:1.25rem;
}
body.theme-editorial .ed-quick-card:hover .ed-quick-ic{color:var(--ed-ember)}
body.theme-editorial .ed-quick-name{
  font-family:var(--ed-serif);font-weight:600;font-size:14px;color:var(--ed-cream);line-height:1.2;
}
body.theme-editorial .ed-quick-go{font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--ed-muted);text-transform:uppercase}
body.theme-editorial .ed-quick-card:hover .ed-quick-go{color:var(--ed-gold)}
@media(max-width:900px){body.theme-editorial .ed-quick{grid-template-columns:repeat(3,1fr)}}
@media(max-width:520px){body.theme-editorial .ed-quick{grid-template-columns:repeat(2,1fr);gap:10px}}

/* ============================================================
   TINH CHỈNH v2 — gọn gàng hơn (phản hồi Anh Tài)
   ============================================================ */

/* 1) Khối "Thiết bị & Setup quán": bỏ ô trang trí trống bên phải */
body.theme-editorial .ed-gear{grid-template-columns:1fr !important}
body.theme-editorial .ed-gear-r{display:none !important}
body.theme-editorial .ed-gear-l{padding:30px 32px}
@media(max-width:520px){body.theme-editorial .ed-gear-l{padding:24px}}

/* 2) "Từ vườn đến ly": mobile 2 cột, gọn hơn */
@media(max-width:820px){
  body.theme-editorial .ed-grid3{grid-template-columns:1fr 1fr !important;gap:20px 16px}
  body.theme-editorial .ed-feat .ed-ic{font-size:19px}
  body.theme-editorial .ed-feat h4{font-size:14px;margin:8px 0 4px;line-height:1.25}
  body.theme-editorial .ed-feat p{font-size:11.5px;line-height:1.5}
}

/* 3) Thẻ sản phẩm: thanh gọn hơn */
body.theme-editorial .product-card{border-color:rgba(240,231,214,.08)}
body.theme-editorial .product-card-body{padding:12px 13px 14px;gap:5px}
body.theme-editorial .product-category-tag{font-size:9.5px;letter-spacing:.16em;color:var(--ed-muted)}
body.theme-editorial .product-card-name a{font-size:15px;line-height:1.25}
body.theme-editorial .product-weight{display:none !important}     /* bỏ dòng 250g/500g/1kg cho gọn */
body.theme-editorial .product-card-price .price-current{font-size:16px}
body.theme-editorial .product-card .btn-add-to-cart{
  margin-top:8px;padding:7px 10px;font-size:12px;border-radius:8px;
  border-color:rgba(240,231,214,.16);
}
body.theme-editorial .product-card .btn-add-to-cart i{font-size:.9em}

/* Nút "Xem chi tiết" thay cho Thêm vào giỏ trên thẻ (xem rồi mới đặt) */
body.theme-editorial .product-card .btn-view{
  margin-top:8px;display:flex;align-items:center;justify-content:center;gap:.4rem;
  background:transparent;color:var(--ed-cream);text-decoration:none;
  border:1.5px solid rgba(240,231,214,.16);border-radius:8px;
  padding:8px 10px;font-size:12.5px;font-weight:600;transition:.15s;
}
body.theme-editorial .product-card .btn-view:hover{
  background:var(--ed-ember);border-color:var(--ed-ember);color:#160f0a;
}

/* ============================================================
   THẺ SẢN PHẨM PHẲNG — tối giản (tham khảo RitaVõ / BuiCoffee)
   Bỏ "bo khối": không nền/viền panel, ảnh làm chủ đạo, chữ dưới nền trong suốt.
   ============================================================ */
body.theme-editorial .product-card{
  background:transparent !important;border:none !important;border-radius:0;
  overflow:visible;box-shadow:none !important;
}
body.theme-editorial .product-card:hover{transform:none;box-shadow:none !important;border-color:transparent !important}
body.theme-editorial .product-card-img-wrap{
  border-radius:12px;overflow:hidden;border:1px solid rgba(240,231,214,.10);
  display:block;transition:.2s;
}
body.theme-editorial .product-card:hover .product-card-img-wrap{border-color:rgba(224,105,44,.4)}
body.theme-editorial .product-card-img{transition:transform .45s}
body.theme-editorial .product-card:hover .product-card-img{transform:scale(1.04)}
body.theme-editorial .product-card-body{background:transparent !important;padding:12px 2px 0 !important;gap:4px}
body.theme-editorial .product-card-name a{font-size:15px}
body.theme-editorial .product-card-price .price-current{font-size:16px}
/* "Xem chi tiết" -> link chữ mảnh, không viền */
body.theme-editorial .product-card .btn-view{
  margin-top:5px !important;padding:0 !important;border:none !important;background:none !important;
  color:var(--ed-gold) !important;justify-content:flex-start !important;width:auto !important;
  font-size:12.5px;box-shadow:none !important;
}
body.theme-editorial .product-card .btn-view:hover{background:none !important;color:var(--ed-ember) !important;transform:none}

/* Dải "Câu chuyện Plei" — dẫn dắt tìm hiểu trước khi tới sản phẩm */
body.theme-editorial .ed-band{max-width:720px;margin:0 auto;text-align:center}
body.theme-editorial .ed-band .ed-eyebrow{display:block;margin-bottom:12px}
body.theme-editorial .ed-band h2{font-family:var(--ed-serif);font-weight:600;font-size:clamp(26px,3.8vw,40px);
  color:var(--ed-cream);letter-spacing:-.01em;margin:0 0 16px;text-wrap:balance}
body.theme-editorial .ed-band h2 em{font-style:italic;color:var(--ed-gold)}
body.theme-editorial .ed-band p{color:var(--ed-dim);font-size:16px;line-height:1.85;margin:0 0 24px}
