/* ViralNexa shared typography system — Customer, Seller, Delivery and Admin */
:root {
  --vn-font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --vn-text-xs: 12px;
  --vn-text-sm: 13px;
  --vn-text-base: 15px;
  --vn-text-lg: 18px;
  --vn-heading-sm: 18px;
  --vn-heading-md: 22px;
  --vn-heading-lg: 28px;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.theme-customer,
body.theme-seller,
body.theme-delivery,
body.theme-admin {
  font-family: var(--vn-font-family) !important;
  font-size: var(--vn-text-base) !important;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Standard content text across all four panels. */
body.theme-customer :is(p, label, li, td, th, input, select, textarea, button),
body.theme-seller :is(p, label, li, td, th, input, select, textarea, button),
body.theme-delivery :is(p, label, li, td, th, input, select, textarea, button),
body.theme-admin :is(p, label, li, td, th, input, select, textarea, button) {
  font-family: var(--vn-font-family) !important;
}
body.theme-customer :is(p, label, li, td, th),
body.theme-seller :is(p, label, li, td, th),
body.theme-delivery :is(p, label, li, td, th),
body.theme-admin :is(p, label, li, td, th) {
  font-size: var(--vn-text-base) !important;
  line-height: 1.55 !important;
}
body.theme-customer :is(input, select, textarea),
body.theme-seller :is(input, select, textarea),
body.theme-delivery :is(input, select, textarea),
body.theme-admin :is(input, select, textarea) {
  font-size: 15px !important;
  line-height: 1.4 !important;
}
body.theme-customer :is(button, .btn, .button),
body.theme-seller :is(button, .btn, .button),
body.theme-delivery :is(button, .btn, .button),
body.theme-admin :is(button, .btn, .button) {
  font-size: 14px !important;
  line-height: 1.35 !important;
}
body.theme-customer :is(h1, .page-title),
body.theme-seller :is(h1, .page-title),
body.theme-delivery :is(h1, .page-title),
body.theme-admin :is(h1, .page-title) {
  font-size: clamp(24px, 2.2vw, 28px) !important;
  line-height: 1.2 !important;
}
body.theme-customer :is(h2), body.theme-seller :is(h2),
body.theme-delivery :is(h2), body.theme-admin :is(h2) {
  font-size: 20px !important; line-height: 1.3 !important;
}
body.theme-customer :is(h3), body.theme-seller :is(h3),
body.theme-delivery :is(h3), body.theme-admin :is(h3) {
  font-size: 17px !important; line-height: 1.35 !important;
}
/* Small helper text stays readable without making it compete with body copy. */
body.theme-customer small:not(.vn-home *), body.theme-seller small,
body.theme-delivery small, body.theme-admin small,
body.theme-customer .muted:not(.vn-home *), body.theme-seller .muted,
body.theme-delivery .muted, body.theme-admin .muted {
  font-size: 12px !important; line-height: 1.45 !important;
}
/* Header controls are intentionally compact, but consistent between panels. */
.topbar nav a { font-size: 13px !important; }
.vn-header-search input { font-size: 14px !important; }
.vn-header-search button { font-size: 13px !important; }
/* Homepage product/category cards have dense layouts; enforce a readable floor. */
body.theme-customer .vn-home :is(.vn-product h3, .vn-product-category, .vn-category, .vn-price, .vn-product .vn-btn, .vn-banner p, .vn-benefits) {
  font-size: max(11px, 1em) !important;
}
body.theme-customer .vn-home .vn-product h3 { font-size: 13px !important; line-height: 1.35 !important; }
body.theme-customer .vn-home .vn-category { font-size: 11px !important; }
body.theme-customer .vn-home .vn-product-category { font-size: 11px !important; }
body.theme-customer .vn-home .vn-price { font-size: 14px !important; }
body.theme-customer .vn-home .vn-product .vn-btn { font-size: 12px !important; }
@media (max-width: 600px) {
  body.theme-customer, body.theme-seller, body.theme-delivery, body.theme-admin { font-size: 15px !important; }
  body.theme-customer :is(p, label, li, td, th),
  body.theme-seller :is(p, label, li, td, th),
  body.theme-delivery :is(p, label, li, td, th),
  body.theme-admin :is(p, label, li, td, th) { font-size: 14px !important; }
  body.theme-customer :is(input, select, textarea),
  body.theme-seller :is(input, select, textarea),
  body.theme-delivery :is(input, select, textarea),
  body.theme-admin :is(input, select, textarea) { font-size: 16px !important; }
  body.theme-customer :is(h1, .page-title), body.theme-seller :is(h1, .page-title),
  body.theme-delivery :is(h1, .page-title), body.theme-admin :is(h1, .page-title) { font-size: 24px !important; }
  body.theme-customer :is(h2), body.theme-seller :is(h2),
  body.theme-delivery :is(h2), body.theme-admin :is(h2) { font-size: 18px !important; }
  body.theme-customer :is(h3), body.theme-seller :is(h3),
  body.theme-delivery :is(h3), body.theme-admin :is(h3) { font-size: 16px !important; }
}
