/* Preserve the site's native typography, colour palette and image proportions. */
html[data-store] { --catalog-ink: #24332f; --catalog-accent: #254e44; --catalog-soft: #f1f5f3; --catalog-rule: #d3dcd7; --catalog-on-accent: white; }
html[data-store="jiuchi"]   { --catalog-accent:#ad162b; --catalog-soft:#f7f2f2; --catalog-rule:#ded4d6; }
html[data-store="shifang"]  { --catalog-accent:#a81722; --catalog-soft:#f5f3f1; --catalog-rule:#dcd8d4; }
html[data-store="qianman"]  { --catalog-accent:#9b3c13; --catalog-soft:#faf4eb; --catalog-rule:#e2d7ca; }
html[data-store="changhao"] { --catalog-accent:#93372c; --catalog-soft:#f3f0e9; --catalog-rule:#dbd5c8; }
html[data-store="chenyuan"] { --catalog-accent:#183d49; --catalog-soft:#edf2ef; --catalog-rule:#ccd7d2; }
html[data-store="hongli"]   { --catalog-accent:#653441; --catalog-soft:#f6f0ee; --catalog-rule:#ded4d2; }
html[data-store="yingcheng"]{ --catalog-accent:#eaa024; --catalog-on-accent:#201b12; --catalog-soft:#f4f0e7; --catalog-rule:#dbd4c5; }

main section:has(> [data-additional-models]),
[data-store="chenyuan"] main nav:has(> [data-rain-models]) {
  width:min(1160px, calc(100% - 48px)); max-width:none; margin-inline:auto; padding:clamp(28px,4vw,58px) 0;
  border-top:1px solid var(--catalog-rule); background:transparent;
}
main section:has(> [data-additional-models]) > h2 { margin:0 0 1.1rem; font-size:clamp(24px,2.4vw,38px); }
main [data-additional-models], main nav.explore-rainwear [data-rain-models] {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr)); gap:10px;
  margin:0; padding:0; max-width:none;
}
main [data-additional-models] > a, main nav.explore-rainwear [data-rain-models] > a {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:13px;
  margin:0; padding:12px 15px; width:auto; min-width:0; min-height:76px; box-sizing:border-box;
  color:var(--catalog-ink); background:white; border:1px solid var(--catalog-rule); border-radius:4px;
  text-decoration:none; font:inherit; font-size:16px; font-weight:600; line-height:1.4; overflow-wrap:anywhere;
}
main [data-additional-models] > a:has(img), main nav.explore-rainwear [data-rain-models] > a:has(img) { grid-template-columns:65px minmax(0,1fr) auto; }
main img.catalog-preview { width:65px;height:65px;max-width:none;object-fit:contain;display:block;background:white; }
main :is([data-additional-models],[data-rain-models]) > a > span[aria-hidden] { color:var(--catalog-ink);font-size:1.15em; }
@media (hover:hover) {
  main :is([data-additional-models],[data-rain-models]) > a:hover { border-color:var(--catalog-accent);background:var(--catalog-soft);text-decoration:underline;text-underline-offset:.2em; }
}
main :is([data-additional-models],[data-rain-models],.pp-actions,.pp-thumbs,.pp-additional-photos) :is(a,button):focus-visible {
  outline:3px solid currentColor;outline-offset:2px;
}
[data-layout-page="product"] main .pp-hero { padding-block:clamp(26px,3.5vw,52px); }
[data-layout-page="product"] main .pp-photo { background:white;overflow:hidden;border:1px solid var(--catalog-rule);border-radius:4px; }
[data-layout-page="product"] main .pp-photo img { height:clamp(265px,29vw,415px);width:100%;object-fit:contain; }
[data-layout-page="product"] main .pp-hero .pp-brand {color:var(--catalog-ink);letter-spacing:.08em;font-weight:650;font-size:13px;}
[data-layout-page="product"] main .pp-hero h1 {text-wrap:balance;font-size:clamp(32px,3.4vw,52px);line-height:1.08;overflow-wrap:break-word;}
[data-layout-page="product"] main .pp-title > p:last-child { max-width:57ch;line-height:1.55; }
[data-store] main .pp-actions a.pp-cta {min-height:44px;padding:10px 18px;background:var(--catalog-accent);color:var(--catalog-on-accent);border-radius:3px;}
[data-layout-page="product"] main :is(.pp-additional-photos,.pp-thumbs) {display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:9px 0;}
[data-layout-page="product"] main :is(.pp-additional-photos a,.pp-thumbs button) {
  display:grid;place-items:center;box-sizing:border-box;width:56px;height:48px;min-height:44px;padding:2px;
  border:1px solid var(--catalog-rule);background:white;border-radius:3px;
}
[data-layout-page="product"] main :is(.pp-additional-photos,.pp-thumbs) img {width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;}
[data-layout-page="product"] main .pp-decision dl > div {padding-block:8px;}
[data-layout-page="product"] main .pp-spec { padding-block:clamp(28px,4vw,54px); }
[data-layout-page="product"] main .pp-spec h2 {margin-bottom:.7em;}
[data-layout-page="product"] main .pp-spec :is(th,td) {vertical-align:top;padding:11px 16px;border-color:var(--catalog-rule);line-height:1.5;}
[data-layout-page="product"] main .pp-spec th {width:32%;background:var(--catalog-soft);font-weight:650;}
[data-layout-page="product"] main .pp-spec table { border-top:2px solid var(--catalog-ink); }
[data-layout-page="product"] main section.buy-insight {width:min(1160px,calc(100% - 48px));max-width:none;margin-inline:auto;box-sizing:border-box;padding:clamp(22px,3.3vw,42px) 0;}
[data-layout-page="product"] main section.buy-insight > p {max-width:72ch;line-height:1.65;}
@media (min-width:850px) {
  [data-layout-page="product"] main section.buy-insight:has(> h2:first-child):has(> p:nth-child(2):last-child) {display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.35fr);align-items:start;gap:clamp(30px,5vw,85px);}
  [data-layout-page="product"] main section.buy-insight:has(> p:nth-child(2):last-child) > :is(h2,p) {margin-block:0;}
}
[data-layout-page="contact"] main form :is(input:not([type]),input[type=text],input[type=email],input[type=tel],select,textarea) {min-height:44px;font-size:max(16px,1em);}
[data-layout-page="contact"] main form :is(input,textarea,select):focus-visible {outline:2px solid var(--catalog-ink);outline-offset:2px;}
@media (max-width:720px) {
  main section:has(> [data-additional-models]), [data-store="chenyuan"] main nav:has(> [data-rain-models]), [data-layout-page="product"] main section.buy-insight {width:calc(100% - 32px);}
  main :is([data-additional-models],[data-rain-models]) {gap:8px;}
  [data-layout-page="product"] main .pp-hero {padding-block:16px 24px;row-gap:10px;}
  [data-layout-page="product"] main .pp-hero h1 {font-size:clamp(28px,7.5vw,36px);margin-bottom:9px;}
  [data-layout-page="product"] main .pp-title > p:last-child {font-size:16px;line-height:1.48;margin-bottom:2px;}
  [data-layout-page="product"] main .pp-photo img {height:clamp(158px,45vw,230px);}
  [data-layout-page="product"] main .pp-spec :is(th,td) {padding:9px 10px;}
  [data-layout-page="product"] main .pp-spec th {width:37%;}
  [data-layout-page="home"] main h1 {text-wrap:balance;}
  [data-store="chenyuan"][data-layout-page="home"] .home-hero {padding-top:25px;gap:20px;}
  [data-store="chenyuan"][data-layout-page="home"] .home-copy h1 {font-size:clamp(36px,10.2vw,52px);line-height:1.03;}
  [data-store="shifang"][data-layout-page="home"] .home-copy h1 {font-size:clamp(38px,10.8vw,54px);line-height:1.03;}
  [data-store="yingcheng"][data-layout-page="home"] .hero-copy h1 {font-size:clamp(38px,10.7vw,53px);line-height:1.04;}
  [data-store="jiuchi"][data-layout-page="home"] .hero-copy h1, [data-store="changhao"][data-layout-page="home"] .hero-copy h1 {font-size:clamp(34px,9.5vw,48px);line-height:1.06;}
}
@media (max-width:720px) {
  [data-layout-page="product"] main .pp-decision {display:flex;flex-direction:column;gap:12px;}
  [data-layout-page="product"] main .pp-decision .pp-actions {order:-1;}
  [data-layout-page="contact"] main :is(.page-hero,.page-intro,.page-heading) {padding-block:clamp(24px,6vw,38px);}
  [data-store="shifang"][data-layout-page="contact"] main .contact-grid {padding-top:22px;gap:24px;}
  [data-store="yingcheng"][data-layout-page="contact"] main .page-hero + .section {padding-top:24px;}
}
