/* Final shared details. Keep these overrides easy to adjust in any editor. */
:root { --qingxu-green: #1B211D; --qingxu-gold: #a88a5e; }
.brand-symbol { display: inline-block; width: 43px; height: 43px; flex: 0 0 43px; }
.brand-symbol img { width: 100%; height: 100%; }
.logo-copy strong { font-size: 17px; letter-spacing: .025em; }
.logo-copy small { font-size: 8px; letter-spacing: .1em; }
.logo-mark { background: transparent; border-radius: 0; }
.demo-price-alternative { display: block; margin-top: 5px; color: #766855; font-size: 11px; line-height: 1.65; }
.demo-shop-page .header-inner { gap: 20px; }
.demo-shop-page .logo-copy { font-size: 17px; }
.demo-dialog { border-radius: 7px; }
.demo-product, .category-card { transition: border-color .18s ease, box-shadow .18s ease; }
.demo-product:hover { border-color: #c9bba4; box-shadow: 0 12px 26px rgba(27, 33, 29, .05); }
.demo-product-index { letter-spacing: .035em; }
.category-intro { max-width: 620px; }
.category-heading > span, .catalog-side-note { overflow-wrap: anywhere; }
.home-page .header-cta { display: none; }
@media (max-width: 1120px) {
  .site-header .main-nav { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .site-header .header-inner {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "actions" "nav";
    align-items: center;
    gap: 4px 0;
    padding-block: 6px;
  }
  .site-header .header-inner > .logo-link {
    grid-area: brand;
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    padding-block: 0;
  }
  .site-header .main-nav {
    grid-area: nav;
    width: 100%;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
  }
  .site-header .main-nav.is-open { padding: 6px 0 10px; }
  .site-header .main-nav a { display: flex; min-height: 44px; align-items: center; padding: 10px 4px; }
  .site-header .header-actions {
    display: grid;
    grid-area: actions;
    width: 100%;
    grid-template-columns: 58px minmax(80px, 1fr) minmax(84px, 1fr) 44px;
    align-items: center;
    justify-content: stretch;
    gap: 4px;
    margin: 0;
  }
  .site-header .header-actions .demo-cart-link { grid-column: 1; width: 100%; min-width: 0; min-height: 44px; justify-content: center; gap: 3px; padding: 6px 3px; font-size: 11px; }
  .site-header .header-actions .language-control { grid-column: 2; width: 100%; min-width: 0; margin: 0; }
  .site-header .language-select { width: 100%; min-width: 0; max-width: none; min-height: 44px; padding: 7px 19px 7px 7px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
  .site-header .header-actions .demo-currency-control { grid-column: 3; width: 100%; min-width: 0; margin: 0; }
  .site-header .demo-currency-select { width: 100%; min-width: 0; max-width: none; min-height: 44px; padding: 7px 18px 7px 7px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
  .site-header .header-actions .menu-toggle { grid-column: 4; width: 44px; min-height: 44px; margin: 0; }
  .site-header .header-actions > .demo-cart-link,
  .site-header .header-actions > .language-control,
  .site-header .header-actions > .demo-currency-control,
  .site-header .header-actions > .menu-toggle { grid-row: 1; order: 0; }
  .site-header .logo-copy { min-width: 0; white-space: normal; }
  .site-header .logo-copy strong { font-size: 15px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
  .site-header .logo-copy small { font-size: 7px; }
  .site-header .header-cta { display: none; }
  .demo-qty button { width: 44px; height: 44px; }
  .demo-remove { min-width: 44px; min-height: 44px; padding: 10px; }
  .demo-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overscroll-behavior: contain; }
  .demo-dialog-close { min-width: 44px; min-height: 44px; padding: 8px 10px; }
  .demo-quote-amount { min-width: 0; }
  .demo-payment-amount-text { min-width: 0; overflow-wrap: anywhere; }
  .home-page .hero-eyebrow { font-size: 8px; gap: 7px; }
  .home-page .hero-copy { padding-bottom: 0; }
  .home-page .collection-title { font-size: 23px; }
  .demo-page-hero h1 { font-size: 30px; }
  .demo-dialog .demo-line { flex-wrap: wrap; }
  .demo-dialog .demo-line strong { margin-left: auto; }
}
@media (max-width: 360px) {
  .site-header .header-actions { grid-template-columns: 58px minmax(76px, 1fr) minmax(80px, 1fr) 44px; gap: 3px; }
  .site-header .header-actions .demo-cart-link { font-size: 10px; }
  .site-header .language-select, .site-header .demo-currency-select { padding-right: 16px; padding-left: 6px; font-size: 10px; }
  .home-page .logo-copy { font-size: 14px; }
  .home-page .brand-symbol { width: 36px; height: 36px; flex-basis: 36px; }
}
@media (max-width: 480px) {
  .category-ornament { display: none; }
  .category-hero-copy { min-width: 0; width: 100%; }
  .category-hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .catalog-field { min-width: 0; flex-basis: 100%; }
  .catalog-field input, .catalog-field select { width: 100%; min-width: 0; font-size: 16px; }
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-chip { min-height: 44px; }
  .catalog-specs dd { min-width: 0; overflow-wrap: anywhere; }
  .category-back { min-height: 44px; }
  .home-page .hero-actions .button { flex: 0 1 auto; }
  .sx-card, .sx-steps li { min-width: 0; overflow-wrap: anywhere; }
  .sx-ladder { grid-template-columns: minmax(0, 1fr); }
  .home-page .hero-eyebrow { font-size: 8px; gap: 7px; }
  .home-page .collection-title { font-size: 23px; }
  .demo-quote-amount { font-size: clamp(22px, 6vw, 28px); }
  .demo-quote .demo-copy-amount { padding-right: 9px; padding-left: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-product, .category-card { transition: none; }
}

.core-platform-link.is-sold-out { color: #5B635C; filter: grayscale(1); }
.core-platform-link .category-stock-badge { white-space: nowrap; }

/* The navigation returns at 1121px: reserve room for English brand and controls. */
@media (min-width: 1121px) and (max-width: 1199px) {
  .site-header .header-inner { gap: 12px; }
  .site-header .main-nav { gap: 12px; }
  .site-header .header-actions { gap: 8px; }
  .site-header .logo-copy strong { font-size: 16px; }
  .site-header .language-select { width: 112px; }
  .site-header .demo-currency-caption { display: none; }
  .site-header .demo-currency-select { width: 84px; max-width: 84px; }
}

/* Allow long English copy to shrink within mobile grid tracks instead of widening them. */
@media (max-width: 1000px) {
  .home-page .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-page .hero-copy { min-width: 0; }
  .home-page .hero-visual { min-height: 540px; padding: 18px 0 45px; }
  .home-page .category-name { min-width: 0; }
  .home-page .category-name small { display: none; }
}
@media (max-width: 640px) {
  .home-page .hero h1 { overflow-wrap: anywhere; }
  .footer-brand, .footer .logo-link, .footer .logo-copy { min-width: 0; max-width: 100%; }
  .footer .logo-link { width: 100%; }
  .footer .logo-copy, .footer .logo-copy strong { white-space: normal; overflow-wrap: anywhere; }
  .footer .logo-copy strong { font-size: 15px; line-height: 1.25; }
  .demo-dialog .demo-button, .demo-dialog .demo-line > span, .demo-dialog .demo-line strong { min-width: 0; overflow-wrap: anywhere; }
  .demo-dialog .demo-payment-qr { max-width: 100%; height: auto; }
}

@media (max-width: 480px) {
  .demo-dialog > [data-demo-copy-order] { width: calc(100% - 36px); margin-right: 18px; margin-left: 18px; }
}
