/**
 * Khối mô tả sản phẩm / bài trên storefront phải cùng họ chữ và cỡ với UI
 * (Arial ~15px), không dùng cỡ bài báo và heading serif lớn.
 */

:root {
  --giasy-content-font: "Be Vietnam Pro", Arial, Helvetica, "Segoe UI", Roboto, sans-serif;
  --giasy-content-size: 15px;
  --giasy-content-leading: 1.65;
  --giasy-content-h1: 20px;
  --giasy-content-h2: 18px;
  --giasy-content-h3: 16px;
  --giasy-content-h4: 15px;
}

html.storefront-root .product-description-content,
html.storefront-root .product-long-form,
.product-description-content,
.product-long-form {
  font-family: var(--giasy-content-font) !important;
  font-size: var(--giasy-content-size) !important;
  line-height: var(--giasy-content-leading) !important;
  font-weight: 400 !important;
}

html.storefront-root .product-description-content :where(p, div, span),
.product-description-content :where(p, div, span) {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

html.storefront-root.unified-site #root .product-description-content :where(h1, h2, h3, h4, h5, h6),
.product-description-content :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--giasy-content-font) !important;
}

html.storefront-root .product-description-content,
.product-description-content {
  overflow: visible !important;
}

html.storefront-root .product-description-content ul,
.product-description-content ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0.35em 0 0.9em !important;
}

html.storefront-root .product-description-content ol,
.product-description-content ol {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0.35em 0 0.9em !important;
  counter-reset: giasy-desc;
}

html.storefront-root .product-description-content li,
.product-description-content li {
  display: block !important;
  position: relative !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  margin: 0.28em 0 !important;
  padding-left: 1.15em !important;
}

html.storefront-root .product-description-content ul > li::before,
.product-description-content ul > li::before {
  content: "•" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: #269db1 !important;
  font-weight: 700 !important;
  font-size: 1.05em !important;
  line-height: 1.55 !important;
}

html.storefront-root .product-description-content ol > li,
.product-description-content ol > li {
  counter-increment: giasy-desc;
}

html.storefront-root .product-description-content ol > li::before,
.product-description-content ol > li::before {
  content: counter(giasy-desc) "." !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: #269db1 !important;
  font-weight: 700 !important;
  font-size: 0.92em !important;
}

html.storefront-root .product-description-content li p,
.product-description-content li p {
  display: inline !important;
  margin: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

html.storefront-root .product-description-content table,
.product-description-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0.75em 0 1.15em !important;
  font-size: 15px !important;
  background: #fff !important;
  border: 1px solid #d5e4ea !important;
  border-radius: 8px;
  overflow: hidden;
}

html.storefront-root .product-description-content thead th,
html.storefront-root .product-description-content th,
.product-description-content thead th,
.product-description-content th {
  font-family: var(--giasy-content-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: left !important;
  background: #f3f8fa !important;
  color: #111111 !important;
  padding: 7px 12px !important;
  border-bottom: 1px solid #e2eef2 !important;
}

html.storefront-root .product-description-content td,
.product-description-content td {
  font-family: var(--giasy-content-font) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  text-align: left !important;
  padding: 7px 12px !important;
  border-bottom: 1px solid #e4eef2 !important;
  color: #1e293b !important;
  vertical-align: top !important;
}

html.storefront-root .product-description-content td:first-child,
.product-description-content td:first-child {
  font-weight: 600 !important;
  width: 38%;
  color: #122033 !important;
}

html.storefront-root .product-description-content :where(h1),
.product-description-content :where(h1) {
  font-family: var(--giasy-content-font) !important;
  font-size: var(--giasy-content-h1) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 0.6em 0 0.35em !important;
}

html.storefront-root .product-description-content :where(h2),
.product-description-content :where(h2) {
  font-family: var(--giasy-content-font) !important;
  font-size: var(--giasy-content-h2) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 0.7em 0 0.35em !important;
}

html.storefront-root .product-description-content :where(h3),
.product-description-content :where(h3) {
  font-family: var(--giasy-content-font) !important;
  font-size: var(--giasy-content-h3) !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  margin: 0.65em 0 0.3em !important;
}

html.storefront-root .product-description-content :where(h4, h5, h6),
.product-description-content :where(h4, h5, h6) {
  font-family: var(--giasy-content-font) !important;
  font-size: var(--giasy-content-h4) !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  margin: 0.55em 0 0.25em !important;
}

html.storefront-root .product-description-content :where(strong, b),
.product-description-content :where(strong, b) {
  font-weight: 700 !important;
  font-size: inherit !important;
  font-family: inherit !important;
}

/* Badge giảm giá: chữ "Tiết kiệm" đen trên nền hồng nhạt, không dùng text-red-200 */
html.storefront-root .sf-discount-savings,
.sf-discount-savings,
html.storefront-root [class*="bg-red-500"] .text-red-200,
[class*="bg-red-500"] .text-red-200 {
  color: #111111 !important;
}
