/* ==========================================================================
   iShineLux — Western Editorial Typography Layer
   Loaded LAST so it overrides the legacy "myFirstFont" (Raleway-Medium) lock.

   Design system
     Display face : Montserrat  (geometric grotesque — headings, nav, buttons)
     Text face    : Inter       (neutral, highly legible — body, specs, UI)

   The legacy build applied  font-family:myFirstFont!important  to  *  which
   flattened every element to a single 500 weight — no hierarchy at all.
   This layer restores a real type scale, adds editorial tracking rules, and
   leaves every layout metric (widths, flex, columns, gaps) untouched.
   ========================================================================== */

:root{
  --ff-display: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ff-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --tr-tight:   -0.022em;   /* large headings: optically tight        */
  --tr-wide:     0.085em;   /* nav / buttons: tracked caps            */
  --tr-wider:    0.15em;    /* eyebrow labels: wide tracking          */
}

/* ---------- 1. Base face replacement ------------------------------------- */
/* Keep specificity low (0,0,2) so every rule further down — and every class
   rule in the legacy sheets — can still win. */
html, body, body *{
  font-family: var(--ff-body) !important;
  text-rendering: optimizeLegibility;
}
/* Icon glyph faces must survive the swap (class beats element selector). */
.iconfont, .iconfont::before, .iconfont::after{ font-family: "iconfont" !important; }
.swiper-button-next::after, .swiper-button-prev::after{ font-family: swiper-icons !important; }

body{
  font-weight: 450;          /* variable Inter: slightly sturdier than 400 */
  letter-spacing: 0.004em;
}

/* ---------- 2. Display hierarchy ---------------------------------------- */
/* Scoped with body to outrank the base rule above. */
body h1, body h2, body h3, body h4, body h5, body h6,
body .f-s28, body .f-s22, body .f-s18,
body .footer3 h4, body .footer3 h3,
body .footer-t-l dl dt,
body .jtsj,
body .cpzx-l h3{
  font-family: var(--ff-display) !important;
}
h1{ font-weight: 800; letter-spacing: var(--tr-tight); line-height: 1.08; }
h2{ font-weight: 800; letter-spacing: var(--tr-tight); line-height: 1.12; }
h3{ font-weight: 700; letter-spacing: var(--tr-tight); line-height: 1.18; }
h4, h5, h6{ font-family: var(--ff-display) !important; font-weight: 700; letter-spacing: -0.012em; }

.f-s28{ font-weight: 700; letter-spacing: var(--tr-tight); line-height: 1.15; }
.f-s22{ font-weight: 700; letter-spacing: -0.018em; line-height: 1.2; }
.f-s18{ font-weight: 600; letter-spacing: -0.01em; }
.f-s16{ font-weight: 450; letter-spacing: 0; }

/* Big section wordmarks (PRODUCTS / PROJECTS ...) */
.cpzx-l h3{
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

/* Section eyebrow block */
.tc2 h4{
  font-family: var(--ff-display) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tr-wider);
  font-size: 13px;
  line-height: 1.5;
}
.tc2 p{
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.006em;
  font-weight: 400;
}

/* ---------- 3. Body copy rhythm ----------------------------------------- */
p, li, dd, label{ line-height: 1.75; }
p{ letter-spacing: 0.004em; }

/* Product cards — display face for titles, readable body underneath */
.cpzx-r2 h3{
  font-family: var(--ff-display) !important;
  font-weight: 700;
  letter-spacing: -0.014em;
}
.cpzx-r2 p, .cpzx-r2 h2{
  font-size: 14.5px;
  line-height: 1.7;
  letter-spacing: 0.004em;
  color: #565656;
}
/* all in-page CTA buttons share one voice */
.cpzx-r2 h4 a,
.a1, .a2, .xwzx-b2, a.inquiry{
  font-family: var(--ff-display) !important;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  font-size: 12.5px;
}

/* section category tabs (Company News / Industry News / ...) */
.spzx-t p, .spzx-t p a{
  font-family: var(--ff-display) !important;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 12.5px;
}

/* home page product index (left column) — keep natural case, just re-face */
.cpzx-l p a{
  font-family: var(--ff-display) !important;
  font-weight: 500;
  letter-spacing: 0.015em;
  font-size: 14px;
}

/* generic product/card titles */
.hg2, .hg3, .tp > p, .r-b .tp > p{
  font-family: var(--ff-display) !important;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.45;
}

/* ---------- 4. Navigation (uppercase, tracked) --------------------------- */
.head-c-r-l > ul > li > a{
  font-family: var(--ff-display) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tr-wide);
  font-size: 13px;
}
.head-c-r-l-b2 dl h3{
  font-family: var(--ff-display) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
}
.head-c-r-l-b2 dl dd,
.head-c-r-l-b2 dl dd a{
  font-size: 12.5px;
  letter-spacing: 0.008em;
  line-height: 1.65;
}
.head-c-r-l-t a{
  font-family: var(--ff-display) !important;
  font-weight: 600;
  letter-spacing: 0.012em;
  font-size: 16px;
  white-space: nowrap;
}
.menu a, .menu li a{
  font-family: var(--ff-display) !important;
  font-weight: 600;
  letter-spacing: 0.03em;
}
/* Mobile drawer level-1 items */
.navigation .t a, .kj li .t a{
  font-family: var(--ff-display) !important;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 13px;
}

/* ---------- 5. Buttons & form controls ---------------------------------- */
button,
input[type="submit"],
input[type="button"],
.tp2 input,
.sousou3 .input2,
a.more,
.more{
  font-family: var(--ff-display) !important;
  font-weight: 600;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  font-size: 12.5px;
  transition: background-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}
button:hover,
input[type="submit"]:hover,
.tp2 input:hover{
  transform: translateY(-1px);
}
input, textarea, select{
  font-family: var(--ff-body) !important;
  letter-spacing: 0.008em;
}
input::placeholder, textarea::placeholder{
  font-family: var(--ff-body) !important;
  letter-spacing: 0.012em;
  opacity: .85;
}

/* ---------- 6. Footer ---------------------------------------------------- */
.footer-t-l dl dt{
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}
.footer-t-l dl dd, .footer-t-l dl dd a{
  line-height: 1.85;
  letter-spacing: 0.008em;
  font-size: 13.5px;
}
.footer3 h3{ font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; }
.footer3 h4{ font-weight: 800; letter-spacing: var(--tr-tight); line-height: 1.15; }

/* ---------- 7. Data / spec tables --------------------------------------- */
table, td, th{
  font-family: var(--ff-body) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.006em;
}
table th{
  font-family: var(--ff-display) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- 8. Phone / numbers align ------------------------------------ */
a[href^="tel:"], .tel, .phone{
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* ---------- 9. Breadcrumb ----------------------------------------------- */
.lon .cont a{
  font-family: var(--ff-display) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.085em;
  font-size: 11.5px;
}
.lon .cont a i{ letter-spacing: 0; }

/* ---------- 9b. Contact block alignment --------------------------------- */
/* Legacy markup pairs an icon <i><img></i> with a <span>; because the icons
   have different intrinsic widths the text baseline never lines up. Turn the
   row into a flex grid with a fixed icon column. */
p:has(> i > img[src*="/lxwm-"]){
  display: flex;
  align-items: flex-start;
  column-gap: 12px;
  line-height: 1.72;
  margin-bottom: 12px;
}
p:has(> i > img[src*="/lxwm-"]) > i{
  flex: 0 0 18px;
  width: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3px;
}
p:has(> i > img[src*="/lxwm-"]) > i img{
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  opacity: .95;
}

/* The legacy mail icon (lxwm-5.png) is a dead 404 upstream — draw it in CSS. */
p:has(> i > img[src*="lxwm-5"]) > i{
  position: relative;
  padding-top: 3px;
}
p:has(> i > img[src*="lxwm-5"]) > i img{ display: none; }
p:has(> i > img[src*="lxwm-5"]) > i::before{
  content: "";
  display: block;
  width: 16px;
  height: 12px;
  border: 1.5px solid #417aff;
  border-radius: 2px;
  box-sizing: border-box;
}
p:has(> i > img[src*="lxwm-5"]) > i::after{
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-left: 1.5px solid #417aff;
  border-bottom: 1.5px solid #417aff;
  transform: translateX(-50%) rotate(-45deg);
}
p:has(> i > img[src*="/lxwm-"]) > span{
  flex: 1 1 auto;
  letter-spacing: 0.006em;
}

/* ---------- 10. Narrow screens: kill the horizontal overflow ------------- */
@media (max-width: 768px){
  /* Product category index on the home page wraps instead of running
     off the right edge of the viewport. */
  .cpzx-l p{
    display: flex;
    flex-wrap: wrap;
    line-height: 1.4 !important;
    column-gap: 16px;
    row-gap: 6px;
    padding-right: 14px;
  }
  .cpzx-l p a{
    display: inline-block !important;
    width: auto !important;
  }
  /* Body copy stays legible at small sizes */
  .cpzx-r2 p, .cpzx-r2 h2{ font-size: 14px; line-height: 1.7; }
  .navigation .t a, .kj li .t a{ font-size: 13px; }
}
