/* Same font bytes as the Inter face embedded in SHENDE_demo. */
@font-face {
  font-family: "Shende Demo Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/shende-demo-inter.woff2) format("woff2");
}
/* SHENDE_demo Inter body text; retain the existing display heading faces. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/montserrat-latin-ext-variable.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/montserrat-latin-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --demo-body-type: "Shende Demo Inter", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --text-type: var(--demo-body-type);
  --brand-type: var(--text-type);
}
body { font-family: var(--text-type); }
body :is(button, input, select, textarea) { font-family: var(--text-type); }
body .service-toggle .service-symbol { font-family: var(--text-type); }
/* Restore the original Arial / Arial Black heading faces and page-specific weights.
   Keep these variables local so paragraph, navigation and button fonts stay intact. */
body :is(main h1, main h2:not(#catalog-results-title), .site-home .product-information > h3) {
  --text-type: Arial, sans-serif;
  --brand-type: "Shende Square", "Arial Black", Arial, sans-serif;
}


/* Unify supporting copy and controls, including page-specific hard-coded faces.
   Keep heading descendants and the homepage material display title untouched.
   Icon fonts remain on their own spans and pseudo-elements. */
body :is(p,a,address,li,dt,dd,label,input,textarea,select,button,summary,figcaption,small,td,th,legend,caption,output,option,h3,h4,h5,h6):not(:where(h1 *,h2 *,.site-home .product-information > h3,.site-home .product-information > h3 *)) {
  font-family: var(--demo-body-type) !important;
}
body.site-contact #main-content,
body.site-contact #main-content .contact-directory-card > span,
body :is(.sd-privacy-notice,.contact-form-errors,.contact-privacy-content) {
  font-family: var(--demo-body-type) !important;
}
/* These existing large drawer/table titles previously used Montserrat. */
body :is(#catalog-drawer-title,#v2-table-title) {
  --text-type: "Montserrat", Arial, sans-serif;
  --brand-type: var(--text-type);
}


/* Retain the local display face for legacy references; current display headings use Inter. */
@font-face {
  font-family: 'Shende Heading Montserrat';
  src: url('../assets/fonts/shende-heading-montserrat-550.woff2') format('woff2');
  font-style: normal;
  font-weight: 550;
  font-display: swap;
}
body[data-heading-font="montserrat"] { --shende-heading-size: 48px; }
body[data-heading-font="montserrat"] main h1:not(:where(.site-about .shende-banner-title, .site-service .shende-banner-title)),
body[data-heading-font="montserrat"] main h2:not(#catalog-results-title),
body.site-home[data-heading-font="montserrat"] #home.hero-cinematic h1,
body.site-home[data-heading-font="montserrat"] .product-information > h3 {
  font-family: var(--demo-body-type) !important;
  font-size: 40px !important;
  font-weight: 550 !important;
  line-height: 1.2 !important;
  letter-spacing: 0;
}
body.site-products[data-heading-font="montserrat"] .catalog-hero h1,
body.site-product[data-heading-font="montserrat"] main :is(h1, h2:not(#catalog-results-title)) {
  font-size: var(--shende-heading-size) !important;
}
/* The V2 hero's former oversized background label becomes a readable heading above its image. */
body.pd-aupo-v2[data-heading-font="montserrat"] .v2-product-stage { display: flex; flex-direction: column; gap: 24px; height: auto; padding-block: 24px 28px; }
body.pd-aupo-v2[data-heading-font="montserrat"] .v2-product-stage h1 { position: relative; color: #102c43; }
body.pd-aupo-v2[data-heading-font="montserrat"] .v2-product-stage .pd-gradient-heading { --pd-title-start: #102c43; }
@media(max-width:1100px){body[data-heading-font="montserrat"]{--shende-heading-size:40px}}
@media(max-width:760px){body[data-heading-font="montserrat"]{--shende-heading-size:32px}}

/* Listing variants and the contact banner retain their existing size and weight. */
body.site-products .catalog-hero h1,
body.site-contact #main-content .ct-banner h1 {
  font-family: var(--demo-body-type) !important;
  letter-spacing: 0;
}


/* Homepage display headings use initial capitals. */
body.site-home :is(main h1, main h2:not(#catalog-results-title), .product-information > h3) {
  text-transform: capitalize;
}


/* Product detail display headings use initial capitals. */
body.site-product #main-content :is(h1, h2) {
  text-transform: capitalize;
}
