/*
Theme Name: Haolinchen Production
Theme URI: https://haolinchen.com/
Author: Codex
Description: Haolinchen production theme combining the accepted visual system with dynamic WordPress and WooCommerce content.
Version: 1.0.7
Requires at least: 6.0
Text Domain: haolinchen
*/

html { overflow-x: clip; }
body.hln-fidelity-template { margin: 0; overflow-x: clip; }

@media (min-width: 901px) {
  .carousel .slide.product-art .slide-bg,
  .lhero .lhero-bg {
    background-size: auto 100% !important;
    background-position: right center !important;
    background-repeat: no-repeat !important;
    background-color: #080b11;
  }
}
@media (max-width: 900px) {
  .carousel .slide.product-art .slide-bg,
  .lhero .lhero-bg {
    background-size: cover !important;
    background-position: 72% center !important;
  }
}

/* Use the verified logo published on haolinchen.com across legacy templates. */
.logo .pawmark,
.logo .wm { display: none !important; }
.logo::before {
  content: "";
  display: block;
  width: 166px;
  height: 51px;
  background: url("assets/images/brand/haolinchen-official-logo.webp") center / contain no-repeat;
}

.cert-logos svg { display: none !important; }
.cert-logos .cll { font-size: 0 !important; }
.cert-logos .cll::after {
  content: "Compliance documents available by model and target market";
  font-size: 13px;
  line-height: 1.5;
  color: #d7dee7;
}

/* Carousel slides after the first use H2 while preserving the visual hierarchy. */
.slide h2.hero-title{font-family:'Poppins',Arial,sans-serif;font-size:clamp(34px,4.6vw,58px);font-weight:700;line-height:1.08;color:#fff;margin:0 0 20px;letter-spacing:0}
.slide h2.hero-title span{display:block}

.hln-global-header {
  position: relative;
  z-index: 1000;
  color: #eef3f8;
  background: #090f16;
  border-bottom: 1px solid rgba(213, 174, 79, .35);
  font-family: Arial, sans-serif;
}
.hln-global-header__inner {
  width: min(1440px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.hln-global-brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.hln-global-brand img { width: 166px; height: auto; display: block; }
.hln-global-nav { display: flex; align-items: center; justify-content: center; gap: 24px; flex: 1 1 auto; }
.hln-global-nav a { color: #dce3eb; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.hln-global-nav a:hover,
.hln-global-nav a:focus-visible { color: #e0ba63; }
.hln-global-quote,
.hln-global-mobile-nav__quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #151106;
  background: #ddb654;
  text-decoration: none;
  font-weight: 800;
  border-radius: 6px;
}
.hln-global-menu { display: none; width: 44px; height: 44px; border: 1px solid #3c4652; background: transparent; padding: 10px; cursor: pointer; }
.hln-global-menu span { display: block; height: 2px; margin: 5px 0; background: #fff; }
.hln-global-mobile-nav { display: none; padding: 12px 24px 24px; border-top: 1px solid #26303b; }
.hln-global-mobile-nav a { display: block; padding: 12px 0; color: #e8edf3; text-decoration: none; }

.hln-global-footer { padding: 58px 0 0; color: #c8d0da; background: #090f16; font-family: Arial, sans-serif; }
.hln-global-footer__inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.hln-global-footer__brand img { width: 180px; height: auto; }
.hln-global-footer p { max-width: 360px; line-height: 1.65; }
.hln-global-footer strong { display: block; margin-bottom: 14px; color: #fff; }
.hln-global-footer a,
.hln-global-footer span { display: block; margin: 10px 0; color: #aeb8c4; text-decoration: none; line-height: 1.45; overflow-wrap: anywhere; }
.hln-global-footer a:hover { color: #e0ba63; }
.hln-global-footer__bottom { margin-top: 42px; padding: 20px; border-top: 1px solid #252d37; color: #8e99a6; text-align: center; font-size: 13px; }

@media (max-width: 1180px) {
  .hln-global-nav { gap: 14px; }
  .hln-global-nav a { font-size: 13px; }
  .hln-global-quote { display: none; }
}
@media (max-width: 900px) {
  .hln-global-header__inner { width: min(100% - 32px, 1440px); min-height: 70px; }
  .hln-global-nav { display: none; }
  .hln-global-menu { display: block; margin-left: auto; }
  .hln-global-mobile-nav.is-open { display: block; }
  .hln-global-mobile-nav__quote { margin-top: 10px; color: #151106 !important; }
  .hln-global-footer__inner { grid-template-columns: 1fr 1fr; }
  .product-page .hero-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .product-page .hero-grid > * { min-width: 0; }
  .product-page .gallery-main,
  .product-page .thumbs,
  .product-page .terms { width: 100%; max-width: 100%; }
}
@media (max-width: 560px) {
  .hln-global-brand img { width: 142px; }
  .hln-global-footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .logo::before { width: 144px; height: 44px; }
}

@media (max-width: 640px) {
  .g2,
  .g3,
  .g4,
  .cert-grid,
  .fact-grid,
  .stats-dark { grid-template-columns: minmax(0, 1fr) !important; }
  .icard,
  .ic-txt,
  .cert-card,
  .g2 > *,
  .g3 > *,
  .g4 > * { min-width: 0; max-width: 100%; }
  .ic-txt,
  .icard h3,
  .icard p { overflow-wrap: anywhere; }
  .cert-card { overflow: hidden; }
  .cert-card img { max-width: 100%; height: auto; }
  .comp-table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .facility-text-grid,
  .wrap > [style*="display:grid"][style*="grid-template-columns:1fr 1fr"],
  .wrap > [style*="display:grid"][style*="grid-template-columns:repeat(3"],
  .wrap > [style*="display:grid"][style*="grid-template-columns:repeat(4"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .facility-text-grid > *,
  .wrap > [style*="display:grid"] > * { min-width: 0; max-width: 100%; }
}

@media (max-width: 640px) {
  .tc-body,.tc-sec,.tc-sec-inner{min-width:0!important;max-width:100%!important}
  .tc-table{width:100%!important;max-width:100%!important;table-layout:fixed!important}
  .tc-table th,.tc-table td{min-width:0!important;overflow-wrap:anywhere!important;word-break:break-word!important}
}
