/* ChiaoStore 2026-11-04: one visual system across the storefront. */
:root {
  --cs-ink: #202622;
  --cs-muted: #626b65;
  --cs-line: #e5e9e4;
  --cs-paper: #fff;
  --cs-warm: #faf9f6;
  --cs-accent: #506b5b;
}

body { background: var(--cs-paper); color: var(--cs-ink); }
body .wp-site-blocks { overflow: clip; }
body :where(h1,h2,h3,h4) { color: var(--cs-ink); text-wrap: balance; }
body :where(p,li) { text-wrap: pretty; }
body :where(a,button,input,select,textarea):focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 3px; }

/* Navigation and footer are shared by all public pages. */
header.wp-block-template-part { border-bottom: 1px solid var(--cs-line); background: var(--cs-paper); }
header.wp-block-template-part > .wp-block-group > .wp-block-group { max-width: 1500px; }
header.wp-block-template-part .wp-block-site-title a { color: var(--cs-ink); font-size: 18px; font-weight: 700; letter-spacing: -.035em; text-decoration: none; }
header.wp-block-template-part .wp-block-navigation-item__content { color: var(--cs-ink); font-size: 15px; font-weight: 500; text-decoration: none; }
header.wp-block-template-part .wp-block-navigation-item__content:hover,
header.wp-block-template-part .current-menu-item .wp-block-navigation-item__content { color: var(--cs-accent); }
header.wp-block-template-part .wp-block-navigation__container { gap: clamp(16px, 1.4vw, 28px); }
footer.wp-block-template-part > .wp-block-group { background: var(--cs-ink) !important; padding-top: 64px !important; padding-bottom: 40px !important; }
footer.wp-block-template-part .wp-block-columns { max-width: 1280px; margin-inline: auto; gap: 64px !important; }
footer.wp-block-template-part :where(h3,h4) { color: #f8faf8 !important; }
footer.wp-block-template-part p { color: #c2ccc5 !important; line-height: 1.8 !important; }
footer.wp-block-template-part a { color: #eaf0eb !important; text-underline-offset: 3px; }
footer.wp-block-template-part a:hover { color: #fff !important; }

/* Content pages: quiet editorial measure instead of full-width paragraphs. */
body.page:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) main.wp-block-group { margin-top: 0 !important; }
body.page:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) main.wp-block-group > .wp-block-group.alignfull {
  padding-top: clamp(72px, 7vw, 112px) !important;
  padding-bottom: clamp(88px, 8vw, 128px) !important;
}
body.page:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) main .wp-block-post-title {
  max-width: 960px;
  margin: 0 auto 36px;
  font-size: clamp(38px, 3.3vw, 54px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.2;
}
body.page:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) main .entry-content {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 0;
}
body.page:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) main .entry-content > :where(p,ul,ol,h2,h3) {
  max-width: 820px;
  margin-left: 0;
  margin-right: auto;
}
body.page:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) main .entry-content > p {
  color: var(--cs-muted);
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 22px;
}
body.page:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) main .entry-content > h2 {
  margin-top: 56px;
  margin-bottom: 20px;
  font-size: 28px;
}

/* About, contact and P004: enlarge the lead without inventing new claims. */
body.page-id-22 .entry-content > p:first-child,
body.page-id-26 .entry-content > p:first-child,
body.page-id-7 .entry-content > p:first-child,
body.page-id-20 .entry-content > p:first-child {
  color: var(--cs-ink) !important;
  font-size: clamp(20px, 1.55vw, 24px) !important;
  font-weight: 500;
  line-height: 1.65 !important;
  letter-spacing: -.015em;
}
body.page-id-22 .entry-content > p:not(:first-child),
body.page-id-26 .entry-content > p:not(:first-child),
body.page-id-28 .entry-content > p,
body.page-id-30 .entry-content > p {
  padding: 18px 0;
  border-top: 1px solid var(--cs-line);
}
body.page-id-7 .cs-p004-visual { max-width: 960px; margin: 0 0 44px !important; padding: 20px; background: var(--cs-warm); border: 1px solid var(--cs-line); border-radius: 8px; }
body.page-id-7 .cs-p004-visual img { display: block; width: min(100%, 680px); height: auto; max-height: 520px; object-fit: contain; margin-inline: auto; border-radius: 4px; }
body.page-id-7 .entry-content > p:nth-of-type(n+2):nth-of-type(-n+6) { padding: 14px 0 14px 24px; border-left: 2px solid var(--cs-line); margin-bottom: 0; }

/* FAQ and process: numbered information becomes scannable. */
body.page-id-24 .entry-content > p:nth-of-type(odd) {
  max-width: 820px;
  margin-top: 0;
  margin-bottom: 0 !important;
  padding: 26px 0 10px;
  border-top: 1px solid var(--cs-line);
  color: var(--cs-ink) !important;
  font-size: 20px !important;
  font-weight: 600;
  line-height: 1.5 !important;
}
body.page-id-24 .entry-content > p:nth-of-type(even) { margin-top: 0; margin-bottom: 30px !important; }
body.page-id-20 .entry-content > p:nth-of-type(n+2):nth-of-type(-n+5) {
  padding: 24px 28px;
  margin-bottom: 12px !important;
  border: 1px solid var(--cs-line);
  border-radius: 6px;
  background: var(--cs-warm);
  color: var(--cs-ink) !important;
}
body.page-id-20 .entry-content > p:nth-of-type(6) { margin-top: 56px; color: var(--cs-ink) !important; font-size: 22px !important; font-weight: 600; }
body.page-id-20 .fluentform,
body.page-id-7 .fluentform { max-width: 820px; padding: 32px; border: 1px solid var(--cs-line); border-radius: 8px; background: var(--cs-paper); }
.fluentform :where(input,textarea,select) { min-height: 44px; border-radius: 5px !important; }
.fluentform .ff-btn { min-height: 48px; border-radius: 5px !important; }

/* WooCommerce product pages, including products that require a quotation. */
body.single-product .site-main { max-width: 1440px; margin: 0 auto; padding: 12px 24px 112px; }
body.single-product .woocommerce-breadcrumb { margin-bottom: 28px !important; }
body.single-product div.product .woocommerce-product-gallery { width: 50% !important; margin-bottom: 48px; }
body.single-product div.product .summary { width: 44% !important; padding-top: 20px; }
body.single-product div.product .woocommerce-product-gallery__wrapper img { width: 100%; height: auto; border-radius: 6px; }
body.single-product div.product .product_title { margin: 0 0 24px; font-size: clamp(32px, 2.8vw, 48px); font-weight: 700; letter-spacing: -.035em; line-height: 1.22; }
body.single-product div.product .summary .price { color: var(--cs-ink); font-size: 22px; font-weight: 600; }
body.single-product div.product .woocommerce-product-details__short-description { max-width: 38em; color: var(--cs-muted); font-size: 17px; line-height: 1.8; }
body.single-product div.product .summary .single_add_to_cart_button { min-height: 50px; padding-inline: 28px; border-radius: 5px; }
body.single-product div.product .product_meta { padding-top: 20px; border-top: 1px solid var(--cs-line); }
body.single-product div.product .woocommerce-tabs { clear: both; margin: 72px 0 0; }
body.single-product div.product .woocommerce-tabs .panel { border: 0; padding: 30px 0; color: var(--cs-muted); line-height: 1.8; }
body.single-product .related.products { clear: both; padding-top: 60px; border-top: 1px solid var(--cs-line); }
body.single-product .related.products > h2 { margin-bottom: 28px; font-size: 30px; }
body.single-product .cs-quote-action { display: inline-block; padding: 15px 24px; margin: 16px 0 28px; border-radius: 5px; background: var(--cs-ink); color: #fff; font-weight: 600; text-decoration: none; }
body.single-product .cs-quote-action:hover { background: var(--cs-accent); color: #fff; }
body.single-product.postid-136 .product_meta,
body.single-product.postid-137 .product_meta { display: none; }

/* Cart, checkout, account and tracking share the same calm service UI. */
body.woocommerce-cart .cs-cart-main,
body.woocommerce-checkout .cs-checkout-main,
body.woocommerce-account .cs-account-main { max-width: 1360px; margin-inline: auto; padding: 64px 28px 104px !important; }
body .cs-service-title { max-width: 1360px; margin: 0 0 42px; font-size: clamp(38px, 3vw, 50px); font-weight: 700; line-height: 1.2; letter-spacing: -.04em; }
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-account .entry-content { padding-inline: 0; }
body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .wc-block-checkout { margin-top: 0; }
body.woocommerce-cart :where(.wc-block-cart__submit-button,.wc-block-components-button),
body.woocommerce-checkout .wc-block-components-checkout-place-order-button { min-height: 52px; border-radius: 5px; font-weight: 600; }
body.woocommerce-cart .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-components-sidebar { border: 1px solid var(--cs-line); border-radius: 6px; }
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox input { border-radius: 5px; }
body.woocommerce-account .woocommerce-MyAccount-navigation { width: 250px; }
body.woocommerce-account .woocommerce-MyAccount-content { width: calc(100% - 290px); color: var(--cs-muted); line-height: 1.8; }
body.page-id-130 .entry-content .woocommerce { max-width: 820px; }
body.page-id-130 .woocommerce-form-track-order { max-width: 620px; padding: 30px; border: 1px solid var(--cs-line); border-radius: 6px; }

/* Archive and editorial reading pages. */
body.blog main,
body.single-post main { max-width: 1180px; margin: 0 auto; padding: 72px 24px 112px; }
body.single-post .wp-block-post-title { max-width: 900px; font-size: clamp(38px, 3vw, 52px); line-height: 1.22; }
body.single-post .entry-content { max-width: 800px; margin-inline: auto; font-size: 18px; line-height: 1.85; }
body.single-post .entry-content p { margin-bottom: 1.4em; }
body.blog .wp-block-post-title a { color: var(--cs-ink); text-decoration: none; }
body.blog .wp-block-post-title a:hover { color: var(--cs-accent); }

@media (max-width: 900px) {
  body.single-product div.product .woocommerce-product-gallery,
  body.single-product div.product .summary { width: 100% !important; float: none !important; }
  body.single-product div.product .summary { padding-top: 0; }
  body.woocommerce-account .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-MyAccount-content { width: 100%; float: none; }
}
@media (max-width: 700px) {
  header.wp-block-template-part .wp-block-site-title a { font-size: 16px; }
  footer.wp-block-template-part > .wp-block-group { padding: 52px 22px 28px !important; }
  footer.wp-block-template-part .wp-block-columns { gap: 24px !important; }
  body.page:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) main.wp-block-group > .wp-block-group.alignfull { padding: 52px 22px 80px !important; }
  body.page:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) main .wp-block-post-title { margin-bottom: 26px; font-size: 36px; }
  body.page:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) main .entry-content > p { font-size: 16px; }
  body.page-id-20 .fluentform,
  body.page-id-7 .fluentform { padding: 20px; }
  body.single-product .site-main { padding: 48px 20px 80px; }
  body.single-product div.product .product_title { font-size: 34px; }
  body.woocommerce-cart .cs-cart-main,
  body.woocommerce-checkout .cs-checkout-main,
  body.woocommerce-account .cs-account-main { padding: 42px 20px 80px !important; }
  body.blog main,
  body.single-post main { padding: 52px 20px 80px; }
}
@media (prefers-reduced-motion: reduce) {
  body :where(a,button) { transition-duration: .01ms !important; }
}
