/* Identity layer: loaded after theme.css so palette generation cannot wipe layout. */
body{font-family:var(--font)}
.footer-brand{min-width:0}
.footer-brand p{max-width:38em}
.detail-info .sub{color:var(--theme-muted);margin:0 0 16px}
.catalog-intro .section-title{margin-bottom:28px}

body.demo11{--font:"Outfit",Inter,sans-serif;--max:1160px}
.d11-intro{background:radial-gradient(circle at 80% 20%,var(--theme-primary-light),var(--theme-surface) 42%)}
.d11-regions .d4-app{background:var(--theme-surface)}

/* Fix region cards whose paragraphs fell into the 56px number column. */
body.demo11 .d11-regions .d4-app{grid-template-columns:54px minmax(0,1fr);align-content:start}
body.demo11 .d11-regions .d4-app>span{grid-column:1;grid-row:1/span 2}
body.demo11 .d11-regions .d4-app>h3,body.demo11 .d11-regions .d4-app>p,body.demo11 .d11-regions .d4-app>div{grid-column:2;margin:0}
body.demo11 .d11-regions .d4-app>p{max-width:48ch;line-height:1.55}
body.demo11.is-home .d11-intro{display:flex;align-items:center;min-height:max(700px,calc(100svh - 115px));padding:0;background-image:linear-gradient(90deg,#0b1b35ed 0%,#0b1b35bd 45%,#0b1b3536 100%);background-position:center;background-size:cover;color:#fff}
body.demo11.is-home .d11-intro .container{width:min(1160px,calc(100% - 40px));padding:100px 0}
body.demo11.is-home .d11-intro h1{max-width:14ch;font-size:clamp(62px,7vw,104px);line-height:1.04;letter-spacing:-.045em;color:#fff}
body.demo11.is-home .d11-intro h1 em{color:var(--theme-primary-mid)}
body.demo11.is-home .d11-intro .d2-kicker,body.demo11.is-home .d11-intro p{color:#ecf4ff}
body.demo11.is-home .d11-intro p:not(.d2-kicker){max-width:580px;font-size:19px}
body.demo11 .d11-map{padding:80px 0}
body.demo11 .d11-regions{gap:20px}
body.demo11 .d11-regions .d4-app{padding:30px;min-height:180px}
body.demo11.is-about .d11-intro{display:flex;align-items:center;min-height:max(570px,68svh);background-image:linear-gradient(90deg,#f4f8ff 0%,#f4f8ff 35%,#f4f8ffb5 58%,#f4f8ff1c 100%);background-position:center;background-size:cover}
body.demo11.is-about .d11-intro .container{width:min(1160px,calc(100% - 40px));padding:85px 0}
body.demo11.is-about .d11-intro h1{max-width:14ch;font-size:clamp(52px,5.4vw,80px);line-height:1.08}
body.demo11.is-about .d11-intro p:not(.d2-kicker){max-width:560px;font-size:19px}
body.demo11.is-about .d11-map{background:#edf4fc}
@media(max-width:700px){
  body.demo11.is-home .d11-intro{min-height:max(660px,calc(100svh - 76px))}
  body.demo11.is-home .d11-intro h1{font-size:clamp(50px,10vw,76px)}
  body.demo11 .d11-regions{grid-template-columns:1fr}
  body.demo11.is-about .d11-intro{position:relative;isolation:isolate;min-height:620px}
  body.demo11.is-about .d11-intro:before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,#f4f8fff5 0%,#f4f8ffe8 78%,#f4f8ffa8 100%)}
  body.demo11.is-about .d11-intro .container{position:relative;z-index:1}
}


/* Demo11 unique lower-home module */
body.demo11.is-home .d11-world-route{padding:96px 0;background:linear-gradient(135deg,#071a39,#123d74);color:#fff}.d11-world-route header{display:flex;justify-content:space-between;align-items:end;gap:50px}.d11-world-route header span{font-size:11px;letter-spacing:.2em;color:#79b8ff}.d11-world-route header h2{max-width:760px;margin:0;font-size:clamp(30px,3.7vw,50px)}.d11-route-track{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;align-items:center;margin:62px 0 36px}.d11-route-track article{min-height:220px;padding:30px;background:#ffffff0c;border:1px solid #ffffff2b}.d11-route-track article b{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#2e8cff}.d11-route-track h3{margin:42px 0 10px}.d11-route-track p{color:#bcd1ea}.d11-route-track>i{padding:0 14px;color:#66b0ff;font-style:normal;font-size:24px}.d11-world-route footer{display:flex;justify-content:space-between;padding-top:24px;border-top:1px solid #ffffff29;color:#bcd1ea}.d11-world-route footer a{color:#fff}@media(max-width:900px){.d11-world-route header{display:block}.d11-route-track{grid-template-columns:1fr}.d11-route-track>i{transform:rotate(90deg);text-align:center;padding:10px}.d11-world-route footer{display:block}.d11-world-route footer a{display:block;margin-top:18px}}

/* Demo11 compatibility pass */
body.demo11.is-home .d11-intro{min-height:clamp(620px,78svh,760px)}body.demo11.is-home .d11-intro h1{font-size:clamp(40px,4.6vw,64px)!important;max-width:14ch}body.demo11:not(.is-home) h1{font-size:clamp(32px,4vw,52px)!important;line-height:1.1!important;overflow-wrap:break-word;text-wrap:balance}@media(max-width:600px){body.demo11:not(.is-home) h1{font-size:clamp(28px,9vw,40px)!important}}body.demo11.is-home .d11-world-route{background:linear-gradient(135deg,var(--theme-primary-deep),var(--theme-primary-dark));color:#fff}body.demo11.is-home .d11-route-track article{background:rgba(255,255,255,.06)}body.demo11.is-home .d11-route-track article b{background:var(--theme-primary)}body.demo11.is-home .d11-world-route header span{color:var(--theme-primary-mid)}

/* Homepage banner motion, independent of the company page. */
body.demo11.is-home .d11-intro{position:relative;isolation:isolate;overflow:hidden;background:#0b1b35}
body.demo11.is-home .d11-intro>.d11-hero-media{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;transform-origin:70% 50%;animation:d11-drift 14s ease-in-out infinite alternate;pointer-events:none}
body.demo11.is-home .d11-intro:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0b1b35ed 0%,#0b1b35bd 45%,#0b1b3536 100%);pointer-events:none}
body.demo11.is-home .d11-intro:after{content:"";position:absolute;inset:-50%;z-index:0;background:linear-gradient(115deg,transparent 40%,rgba(129,191,255,.13) 50%,transparent 60%);animation:d11-light-sweep 10s ease-in-out infinite;pointer-events:none}
body.demo11.is-home .d11-intro .container{position:relative;z-index:1}
body.demo11.is-home .d11-intro .container>*{animation:d11-copy-in .9s ease-out both}
body.demo11.is-home .d11-intro .container>h1{animation-delay:.16s}
body.demo11.is-home .d11-intro .container>p:not(.d2-kicker){animation-delay:.32s}
@keyframes d11-drift{from{transform:scale(1.04) translateX(-1%)}to{transform:scale(1.13) translateX(1%)}}
@keyframes d11-light-sweep{0%,15%{transform:translateX(-45%);opacity:0}40%,60%{opacity:1}85%,100%{transform:translateX(45%);opacity:0}}
@keyframes d11-copy-in{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){body.demo11.is-home .d11-intro>.d11-hero-media,body.demo11.is-home .d11-intro .container>*{animation:none;transform:none;opacity:1}body.demo11.is-home .d11-intro:after{animation:none;display:none}}

/* === product-media-fix:start === */
/* Product image module repair (2026-11-27, extended 2026-11-30 listing2)
   1) Demo06 homepage "Products in editorial rows": compact left-image / right-text rows.
   2) Stop full-width grey letterboxes on leftover vertical cards
      (height:210px + object-fit:contain + auto-fit).
   3) Category listing pages: [data-dynamic-product-list].product-list and
      any .product-card inside .catalog-layout become compact 200x140 / right-text
      editorial rows. This MUST win over every template (hbmmt, demo02-16, etc.).
      Also covers orphaned cards that sit as siblings after an emptied .product-list.
   Featured home grids ([data-view="featured"] without .d6-list) and about-page
   cards (body.is-about) are left unchanged.
*/

/* ----- Editorial rows (template 6 / .d6-list) ----- */
body:not(.is-about) .d6-list{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:0 !important;
}
body:not(.is-about) .d6-list > .d6-row,
body:not(.is-about) .d6-list > article.d6-row,
body:not(.is-about) .d6-list > .d2-prod,
body:not(.is-about) .d6-list > .product-card{
  display:grid !important;
  grid-template-columns:200px minmax(0,1fr) !important;
  gap:24px !important;
  align-items:center !important;
  padding:22px 0 !important;
  border:0 !important;
  border-top:1px solid var(--theme-line,#e5e7eb) !important;
  border-radius:0 !important;
  background:#fff !important;
  box-shadow:none !important;
  overflow:hidden !important;
}
body:not(.is-about) .d6-list > .d6-row > img,
body:not(.is-about) .d6-list > .d6-row > a > img,
body:not(.is-about) .d6-list > .d6-row .d6-row-media,
body:not(.is-about) .d6-list > .d6-row .d6-row-media img,
body:not(.is-about) .d6-list > .d2-prod > .d2-prod-img,
body:not(.is-about) .d6-list > .product-card > .product-card-image{
  width:200px !important;
  max-width:200px !important;
  height:140px !important;
  max-height:140px !important;
  min-height:0 !important;
  aspect-ratio:auto !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
  background:#f8fafc !important;
  border-radius:4px !important;
  overflow:hidden !important;
}
body:not(.is-about) .d6-list > .d2-prod > .d2-prod-img img,
body:not(.is-about) .d6-list > .product-card > .product-card-image img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
}
body:not(.is-about) .d6-list > .d2-prod > .d2-prod-body,
body:not(.is-about) .d6-list > .product-card > .card-body{
  padding:0 4px 0 0 !important;
}
body:not(.is-about) .d6-list .product-detail-button{
  width:auto !important;
  background:transparent !important;
  color:var(--theme-primary) !important;
  padding:0 !important;
  justify-content:flex-start !important;
  font-weight:700 !important;
}

@media(max-width:700px){
  body:not(.is-about) .d6-list > .d6-row,
  body:not(.is-about) .d6-list > .d2-prod,
  body:not(.is-about) .d6-list > .product-card{
    grid-template-columns:1fr !important;
    gap:14px !important;
    padding:18px 0 !important;
  }
  body:not(.is-about) .d6-list > .d6-row > img,
  body:not(.is-about) .d6-list > .d6-row > a > img,
  body:not(.is-about) .d6-list > .d6-row .d6-row-media,
  body:not(.is-about) .d6-list > .d6-row .d6-row-media img,
  body:not(.is-about) .d6-list > .d2-prod > .d2-prod-img,
  body:not(.is-about) .d6-list > .product-card > .product-card-image{
    width:100% !important;
    max-width:none !important;
    height:200px !important;
    max-height:none !important;
  }
}

/* ----- Non-listing grids: modest 4/3 wells, no auto-fit stretch ----- */
.d2-prod-grid{
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
}
body:not(.is-listing) .product-list:not([data-dynamic-product-list]):not(.product-list-editorial){
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
}
.d2-prod-grid > .d2-prod > .d2-prod-img,
body:not(.is-listing) .product-list:not([data-dynamic-product-list]) > .product-card > .product-card-image{
  aspect-ratio:4/3;
  height:auto;
  min-height:0;
  overflow:hidden;
  background:#f8fafc;
}
.d2-prod-grid > .d2-prod > .d2-prod-img img,
body:not(.is-listing) .product-list:not([data-dynamic-product-list]) > .product-card > .product-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* ----- Category listing: single-column editorial rows -----
   Selectors do not depend on body.is-listing (some themes emit a bare <body>).
   .catalog-layout .product-card also covers leftover SSR cards that were
   left as siblings after a truncated empty .product-list (Dongjie repair bug).
   !important beats style.css auto-fit / height:210-260px / object-fit:contain
   and later theme.css rules.
*/
html body:not(.is-about) .catalog-layout .product-list,
html body:not(.is-about) .product-list[data-dynamic-product-list]:not([data-view="featured"]),
html body:not(.is-about) .product-list.product-list-editorial{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:0 !important;
}

html body:not(.is-about) .catalog-layout .product-list .product-card,
html body:not(.is-about) .catalog-layout .product-card,
html body:not(.is-about) .product-list[data-dynamic-product-list]:not([data-view="featured"]) .product-card,
html body:not(.is-about) .product-list.product-list-editorial .product-card,
html body:not(.is-about) .product-list .product-card.product-row{
  display:grid !important;
  grid-template-columns:200px minmax(0,1fr) !important;
  gap:24px !important;
  align-items:center !important;
  padding:22px 0 !important;
  border:0 !important;
  border-top:1px solid var(--theme-line,#e5e7eb) !important;
  border-radius:0 !important;
  background:#fff !important;
  box-shadow:none !important;
  overflow:hidden !important;
  max-width:none !important;
}

html body:not(.is-about) .catalog-layout .product-list .product-card > .product-card-image,
html body:not(.is-about) .catalog-layout .product-card > .product-card-image,
html body:not(.is-about) .product-list[data-dynamic-product-list]:not([data-view="featured"]) .product-card > .product-card-image,
html body:not(.is-about) .product-list.product-list-editorial .product-card > .product-card-image,
html body:not(.is-about) .product-list .product-card.product-row > .product-card-image{
  display:block !important;
  grid-column:1 !important;
  grid-row:1 !important;
  width:200px !important;
  max-width:200px !important;
  height:140px !important;
  min-height:0 !important;
  max-height:140px !important;
  aspect-ratio:auto !important;
  position:relative !important;
  background:#f8fafc !important;
  border-radius:4px !important;
  overflow:hidden !important;
}

html body:not(.is-about) .catalog-layout .product-list .product-card > .product-card-image img,
html body:not(.is-about) .catalog-layout .product-card > .product-card-image img,
html body:not(.is-about) .product-list[data-dynamic-product-list]:not([data-view="featured"]) .product-card > .product-card-image img,
html body:not(.is-about) .product-list.product-list-editorial .product-card > .product-card-image img,
html body:not(.is-about) .product-list .product-card.product-row > .product-card-image img{
  width:100% !important;
  height:100% !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:center !important;
}

html body:not(.is-about) .catalog-layout .product-list .product-card > .card-body,
html body:not(.is-about) .catalog-layout .product-card > .card-body,
html body:not(.is-about) .product-list[data-dynamic-product-list]:not([data-view="featured"]) .product-card > .card-body,
html body:not(.is-about) .product-list.product-list-editorial .product-card > .card-body,
html body:not(.is-about) .product-list .product-card.product-row > .card-body{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  grid-column:2 !important;
  grid-row:1 !important;
  min-width:0 !important;
  padding:0 4px 0 0 !important;
}

html body:not(.is-about) .catalog-layout .product-list .product-card .tag,
html body:not(.is-about) .catalog-layout .product-card .tag,
html body:not(.is-about) .product-list[data-dynamic-product-list]:not([data-view="featured"]) .product-card .tag,
html body:not(.is-about) .product-list.product-list-editorial .product-card .tag,
html body:not(.is-about) .product-list .product-card.product-row .tag{
  position:static !important;
  margin-bottom:8px !important;
}

html body:not(.is-about) .catalog-layout .product-list .product-card .product-detail-button,
html body:not(.is-about) .catalog-layout .product-card .product-detail-button,
html body:not(.is-about) .product-list[data-dynamic-product-list]:not([data-view="featured"]) .product-card .product-detail-button,
html body:not(.is-about) .product-list.product-list-editorial .product-card .product-detail-button,
html body:not(.is-about) .product-list .product-card.product-row .product-detail-button{
  width:auto !important;
  align-self:flex-start !important;
  background:transparent !important;
  color:var(--theme-primary) !important;
  padding:0 !important;
  justify-content:flex-start !important;
  font-weight:700 !important;
  box-shadow:none !important;
  border:0 !important;
  min-height:0 !important;
  border-radius:0 !important;
}

html body:not(.is-about) .catalog-layout .product-list .product-card .product-detail-button:hover,
html body:not(.is-about) .catalog-layout .product-card .product-detail-button:hover,
html body:not(.is-about) .product-list[data-dynamic-product-list]:not([data-view="featured"]) .product-card .product-detail-button:hover,
html body:not(.is-about) .product-list.product-list-editorial .product-card .product-detail-button:hover,
html body:not(.is-about) .product-list .product-card.product-row .product-detail-button:hover{
  background:transparent !important;
  color:var(--theme-primary-dark,#1e3a8a) !important;
}

@media(max-width:700px){
  html body:not(.is-about) .catalog-layout .product-list .product-card,
  html body:not(.is-about) .catalog-layout .product-card,
  html body:not(.is-about) .product-list[data-dynamic-product-list]:not([data-view="featured"]) .product-card,
  html body:not(.is-about) .product-list.product-list-editorial .product-card,
  html body:not(.is-about) .product-list .product-card.product-row{
    grid-template-columns:1fr !important;
    gap:14px !important;
    padding:18px 0 !important;
  }
  html body:not(.is-about) .catalog-layout .product-list .product-card > .product-card-image,
  html body:not(.is-about) .catalog-layout .product-card > .product-card-image,
  html body:not(.is-about) .product-list[data-dynamic-product-list]:not([data-view="featured"]) .product-card > .product-card-image,
  html body:not(.is-about) .product-list.product-list-editorial .product-card > .product-card-image,
  html body:not(.is-about) .product-list .product-card.product-row > .product-card-image{
    grid-column:1 !important;
    grid-row:auto !important;
    width:100% !important;
    max-width:none !important;
    height:200px !important;
    max-height:none !important;
  }
  html body:not(.is-about) .catalog-layout .product-list .product-card > .card-body,
  html body:not(.is-about) .catalog-layout .product-card > .card-body,
  html body:not(.is-about) .product-list[data-dynamic-product-list]:not([data-view="featured"]) .product-card > .card-body,
  html body:not(.is-about) .product-list.product-list-editorial .product-card > .card-body,
  html body:not(.is-about) .product-list .product-card.product-row > .card-body{
    grid-column:1 !important;
    grid-row:auto !important;
  }
}
/* === product-media-fix:end === */
