/*
 * dbd-tokens.css - CSS tự viết của theme con, tách khỏi style.css ngày 26/10/2026 (EQVN)
 * Gồm: CSS reset + bộ token cũ (màu, cỡ chữ, khoảng cách, danh sách, nút) + các rule child override.
 * Nạp ngay TRƯỚC style.css (snippet #59 gắn làm phụ thuộc của child-style) để giữ đúng thứ tự cũ.
 * Bản gốc: style.css.bak-20261026 (dòng 8-17, 20-91, 107-108, 135-151, 158-269).
 * Lớp design system mới nằm ở dbd-design.css (nạp sau cùng).
 */

/* CSS RESET */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }
article, aside, details, figcaption, figure, footer, header, menu, nav, section { display: block; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: none; }
table { border-collapse: collapse; width:100%; }
td,th,tr{padding: 6px 12px;}
*{box-sizing: border-box;}
mark, ins{text-decoration: none;}
ul{list-style: none;}

/* =========================
   BRAND TOKENS
   ========================= */
:root {
  --color-primary:   #0A7A37;
  --color-secondary: #0FA523;
  --color-accent:    #FF8A00;
  --color-accent-2:  #E67A00;
  --color-text:      #333333;
  --color-text-weak: #666666;
  --color-bg:        #FAFAFA;
  --color-card:      #FFFFFF;
  --color-border:    #E0E0E0;
  --color-dark:      #1A1A1A;
  --color-heading:   var(--color-primary);
  --color-success:   #4CAF50;
  --color-error:     #E53935;
  --color-warning:   #FFC107;
  --color-info:      #2196F3;
  /* Type scale */
  --h1-d:36px; --h1-t:28px; --h1-m:24px;
  --h2-d:30px; --h2-t:24px; --h2-m:20px;
  --h3-d:24px; --h3-t:20px; --h3-m:18px;
  --h4-d:20px; --h4-t:18px; --h4-m:16px;
  --h5-d:18px; --h5-t:16px; --h5-m:15px;
  --h6-d:16px; --h6-t:15px; --h6-m:14px;
  --body-d:16px;    --body-t:15px;    --body-m:14px;
  --body-lg-d:18px; --body-lg-t:17px; --body-lg-m:16px;
  --caption-d:14px; --caption-t:13px; --caption-m:12px;
  /* Line-heights */
  --lh-tight: 1.3;
  --lh-h:     1.3;
  --lh-h2:    1.25;
  --lh-body:  1.6;
  --lh-cap:   1.5;
  /* Spacing */
  --mb-h1:24px; --mb-h2:20px; --mb-h3:16px;
  --mb-h4:12px; --mb-h5:10px; --mb-h6:8px;
  --mb-paragraph-d: 16px;
  --mb-paragraph-t: 16px;
  --mb-paragraph-m: 16px;
  --ls-tight:  0.5px;
  --ls-0:      0;
  --ws-strong: 2px;
  --ws-weak:   1.2px;
  /* Lists */
  --list-indent-d:   12px;
  --list-indent-m:   12px;
  --list-gap:        8px;
  --list-top-attach: 8px;
  --list-bottom:     16px;
  /* Buttons */
  --btn-radius:  8px;
  --btn-pad-d-y: 12px; --btn-pad-d-x: 24px;
  --btn-pad-t-y: 10px; --btn-pad-t-x: 20px;
  --btn-pad-m-y: 8px;  --btn-pad-m-x: 16px;
  /* Tabs */
  --tab-border: #E6E9F0;
  --tab-bg:     #F8FAFC;
}

/* =========================
   BASIC STYLES — BODY
   ========================= */
/* child override: system font + brand bg/color */
body {
  background:  var(--color-bg) !important;
  color:       var(--color-text) !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
  font-size:   var(--body-d);
  line-height: var(--lh-body);
}

/* child override: brand selection color */
::selection { background: var(--color-secondary); color: #fff; text-shadow: none; }

/* =========================
   HEADINGS — child override
   ========================= */
h1, h2, h3, h4, h5, h6 {
  color:       var(--color-heading);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
  font-weight: 700;
  margin-top:  0 !important;
  line-height: var(--lh-tight);
}
h1 { font-size: var(--h1-d); margin: 0 0 var(--mb-h1); letter-spacing: var(--ls-tight); word-spacing: var(--ws-strong); }
h2 { font-size: var(--h2-d); margin: 0 0 var(--mb-h2); line-height: var(--lh-h);  letter-spacing: var(--ls-tight); word-spacing: var(--ws-strong); }
h3 { font-size: var(--h3-d); margin: 0 0 var(--mb-h3); line-height: var(--lh-h2); letter-spacing: var(--ls-0);     word-spacing: var(--ws-strong); }
h4 { font-size: var(--h4-d); margin: 0 0 var(--mb-h4); line-height: var(--lh-h2); letter-spacing: var(--ls-0);     word-spacing: var(--ws-weak); }
h5 { font-size: var(--h5-d); margin: 0 0 var(--mb-h5); line-height: var(--lh-h2); letter-spacing: var(--ls-0);     word-spacing: var(--ws-weak); }
h6 { font-size: var(--h6-d); margin: 0 0 var(--mb-h6); line-height: var(--lh-h2); letter-spacing: var(--ls-0);     word-spacing: var(--ws-weak); }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; text-decoration: none; font-family: inherit; }

/* =========================
   ARTICLE / POST BASE — child override
   ========================= */
article, .post {
  font-size:   var(--body-d);
  line-height: var(--lh-body);
  color:       var(--color-text);
}
article p, .post p {
  margin:      0 0 var(--mb-paragraph-d);
  font-size:   var(--body-d);
  line-height: var(--lh-body);
  color:       var(--color-text);
}
article strong, .post strong,
article b,      .post b      { font-weight: 700; }
article em, .post em,
article i,  .post i          { font-style: italic; }

small, .caption, figcaption {
  font-size:      var(--caption-d);
  line-height:    var(--lh-cap);
  letter-spacing: 0.2px;
  color:          var(--color-text-weak);
}
.body-large { font-size: var(--body-lg-d); line-height: var(--lh-body); }

/* =========================
   LINKS — child override
   ========================= */
article a:not(.wp-element-button),
.post    a:not(.wp-element-button) {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .2s ease;
}
article a:hover:not(.wp-element-button),
.post    a:hover:not(.wp-element-button) {
  color: var(--color-accent);
  text-decoration: underline;
}

/* =========================
   LISTS — chỉ giữ màu dấu chấm/số. Bỏ khối bố cục danh sách cũ ngày 27/10/2026
   (đẩy hàng thumbnail slider sản phẩm lên 8px, thêm thanh cuộn ngang). Danh sách trong nội dung do dbd-design.css lo.
   ========================= */
article ul li::marker, .post ul li::marker       { color: var(--color-primary); }
article ul ul li::marker, .post ul ul li::marker { color: var(--color-secondary); list-style-type: circle; }
article ol li::marker, .post ol li::marker       { color: var(--color-primary); font-weight: 600; }

/* =========================
   BUTTONS — child override
   ========================= */
.wp-element-button, .button, button, input[type="submit"] {
  font-family:   system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-weight:   600;
  line-height:   1.2;
  border-radius: var(--btn-radius);
}
.wp-element-button,
.button.primary, button.primary, input[type="submit"].primary {
  background: var(--color-primary); color: #fff;
  border: 1px solid var(--color-primary);
  padding: var(--btn-pad-d-y) var(--btn-pad-d-x);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.wp-element-button:hover,
.button.primary:hover, button.primary:hover, input[type="submit"].primary:hover {
  background: var(--color-secondary); border-color: var(--color-secondary); color: #fff;
}

/* =========================
   RESPONSIVE TYPOGRAPHY — child override
   ========================= */
@media (max-width: 1024px) {
  body, article, .post { font-size: var(--body-t); }
  article p, .post p   { margin-bottom: var(--mb-paragraph-t); font-size: var(--body-t); }
  h1 { font-size: var(--h1-t); } h2 { font-size: var(--h2-t); }
  h3 { font-size: var(--h3-t); } h4 { font-size: var(--h4-t); }
  h5 { font-size: var(--h5-t); } h6 { font-size: var(--h6-t); }
  .wp-element-button, .button, button:not(.dl-trigger), input[type="submit"] {
    padding: var(--btn-pad-t-y) var(--btn-pad-t-x);
  }
}
@media (max-width: 767px) {
  body, article, .post { font-size: var(--body-m); }
  article p, .post p   { margin-bottom: var(--mb-paragraph-m); font-size: var(--body-m); }
  h1 { font-size: var(--h1-m); } h2 { font-size: var(--h2-m); }
  h3 { font-size: var(--h3-m); } h4 { font-size: var(--h4-m); }
  h5 { font-size: var(--h5-m); } h6 { font-size: var(--h6-m); }
  .wp-element-button, .button, button:not(.dl-trigger), input[type="submit"] {
    padding: var(--btn-pad-m-y) var(--btn-pad-m-x);
  }
}
