/* 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.demo06{
  --theme-surface:#faf7f2;--theme-surface-soft:#f3eee6;
  --font:Outfit,Inter,sans-serif;--max:1200px;
}
body.demo06.is-home,body.demo06.is-about{--max:1080px}
body.demo06{font-family:Outfit,Inter,sans-serif}
body.demo06 h1,body.demo06 h2,body.demo06 .d6-masthead h1,body.demo06 .d6-quote blockquote{
  font-family:Fraunces,Georgia,serif
}

/* Image-led masthead; the story section below keeps the editorial character. */
body.demo06.is-home .d6-masthead{display:flex;align-items:center;min-height:max(680px,calc(100svh - 115px));padding:0;background-image:linear-gradient(90deg,#10161be8 0%,#10161ba8 45%,#10161b38 100%);background-position:center;background-size:cover;color:#fff}
body.demo06.is-home .d6-masthead .container{width:min(1200px,calc(100% - 40px));padding:90px 0 110px}
body.demo06.is-home .d6-masthead h1{max-width:13ch;font-size:clamp(64px,7.5vw,116px);font-weight:500;line-height:1.04;color:#fff}
body.demo06.is-home .d6-masthead h1 em{color:var(--theme-primary-mid)}
body.demo06.is-home .d6-masthead .d2-kicker{color:var(--theme-primary-mid)}
body.demo06.is-home .d6-feature{padding-top:72px}
body.demo06.is-about .d6-masthead{padding:90px 0 65px;background:#e9e0d4}
body.demo06.is-about .d6-masthead h1{max-width:16ch;font-size:clamp(52px,5.5vw,84px);line-height:1.04}
body.demo06.is-about .d6-feature{padding-top:0}
body.demo06.is-about .d6-feature-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:0;background:#fff}
body.demo06.is-about .d6-feature-grid img{min-height:600px;max-height:none}
body.demo06.is-about .d6-feature-grid article{padding:clamp(36px,5vw,84px);align-self:center}
body.demo06.is-about .d6-feature-grid article h2{font-size:clamp(32px,3.4vw,52px)}
@media(max-width:800px){
  body.demo06.is-home .d6-masthead{min-height:max(640px,calc(100svh - 76px))}
  body.demo06.is-home .d6-masthead h1{font-size:clamp(50px,11vw,80px)}
  body.demo06.is-about .d6-feature-grid{grid-template-columns:1fr}
  body.demo06.is-about .d6-feature-grid img{min-height:360px;max-height:440px}
}

/* Home banner: a restrained diagonal zoom behind the editorial headline. */
body.demo06.is-home .d6-masthead{position:relative;overflow:hidden;background-image:none}
body.demo06.is-home .d6-hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;animation:d6-banner-zoom 9s ease-in-out infinite alternate}
body.demo06.is-home .d6-masthead:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#10161be8 0%,#10161ba8 45%,#10161b38 100%)}
body.demo06.is-home .d6-masthead .container{position:relative;z-index:2}
body.demo06.is-home .d6-masthead h1{animation:d6-title-in .95s ease-out both}
body.demo06.is-home .d6-masthead .d2-kicker{animation:d6-title-in .75s ease-out .15s both}
@keyframes d6-banner-zoom{from{transform:scale(1.03) translateX(0)}to{transform:scale(1.12) translateX(-1.5%)}}
@keyframes d6-title-in{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}

/* About has a compact profile header and a reverse story layout. */
body.demo06.is-about .d6-masthead{padding:66px 0 54px;background:#efe9df}
body.demo06.is-about .d6-masthead .container{display:grid;grid-template-columns:180px minmax(0,1fr);column-gap:46px;align-items:start}
body.demo06.is-about .d6-masthead .d2-kicker{grid-row:1 / 3;margin-top:13px}
body.demo06.is-about .d6-masthead h1{font-size:clamp(38px,4vw,58px);max-width:none;line-height:1.08;letter-spacing:-.035em;margin:0 0 14px}
body.demo06.is-about .d6-about-lede{grid-column:2;max-width:56ch;margin:0;color:var(--theme-muted);font-size:16px;line-height:1.6}
body.demo06.is-about .d6-feature{padding:76px 0 88px}
body.demo06.is-about .d6-feature-grid{grid-template-areas:"copy image";grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:52px;background:transparent;align-items:start}
body.demo06.is-about .d6-feature-grid>article{grid-area:copy;padding:0;align-self:start}
body.demo06.is-about .d6-feature-grid>img{grid-area:image;height:480px;min-height:0;max-height:none;object-fit:cover;object-position:65% center;border-radius:3px}
body.demo06.is-about .d6-feature-grid>article h2{font-size:clamp(30px,3vw,43px);line-height:1.16;max-width:16ch;margin:10px 0 20px}
body.demo06.is-about .d6-feature-grid>article p{font-size:16px;line-height:1.65;max-width:54ch}
body.demo06.is-about .d6-lead-facts{gap:0;margin-top:28px;border-top:1px solid var(--theme-line)}
body.demo06.is-about .d6-feature-grid .d6-lead-facts article{padding:16px 18px 16px 0;border:0;border-bottom:1px solid var(--theme-line);background:transparent}
body.demo06.is-about .d6-feature-grid .d6-lead-facts h3{font-size:16px;margin:6px 0}
body.demo06.is-about .d6-feature-grid .d6-lead-facts p{font-size:14px;line-height:1.45;margin:0}
body.demo06.is-about .d6-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.demo06.is-about .d6-list .d6-row{display:block;padding:0;border:1px solid var(--theme-line);background:#fff}
body.demo06.is-about .d6-list .d6-row img{width:100%;height:170px;object-fit:cover}
body.demo06.is-about .d6-list .d6-row>div{padding:20px}
body.demo06.is-about .d6-quote{background:#e9e0d4;color:var(--theme-dark)}
body.demo06.is-about .d6-quote blockquote{font-size:clamp(25px,2.8vw,36px)}
@media(max-width:800px){body.demo06.is-about .d6-masthead .container{display:block}body.demo06.is-about .d6-masthead .d2-kicker{margin:0 0 14px}body.demo06.is-about .d6-about-lede{max-width:100%}body.demo06.is-about .d6-feature-grid{grid-template-areas:"copy" "image";grid-template-columns:1fr;gap:30px}body.demo06.is-about .d6-feature-grid>img{height:360px}body.demo06.is-about .d6-list{grid-template-columns:1fr}}
@media(max-width:600px){body.demo06.is-about .d6-masthead{padding:48px 0 42px}body.demo06.is-about .d6-masthead h1{font-size:38px}body.demo06.is-about .d6-feature{padding:54px 0}body.demo06.is-about .d6-lead-facts{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body.demo06.is-home .d6-hero-bg,body.demo06.is-home .d6-masthead h1,body.demo06.is-home .d6-masthead .d2-kicker{animation:none}}

/* Demo06 unique lower-home module */
body.demo06.is-home .d6-buyer-notes{padding:96px 0;background:#f2eee5}.d6-notes-grid{display:grid;grid-template-columns:.65fr 1fr .85fr;gap:0;align-items:stretch}.d6-buyer-notes aside{padding:44px;background:#101827;color:#fff}.d6-buyer-notes aside>span{display:block;font-family:serif;font-size:100px;line-height:.8;color:#d9a514}.d6-buyer-notes aside p{margin-top:60px;font-size:11px;letter-spacing:.18em;color:#d9a514}.d6-buyer-notes aside h2{font-family:inherit;font-size:clamp(24px,2vw,28px);line-height:1.35;font-weight:600;letter-spacing:-.02em;margin:18px 0 0;text-wrap:balance}.d6-note-list{background:#fff}.d6-note-list article{padding:30px 36px;border-bottom:1px solid #ded8cd}.d6-note-list article:last-child{border:0}.d6-note-list b{font-size:11px;color:#a17600;letter-spacing:.16em}.d6-note-list h3{margin:12px 0 8px}.d6-note-list p{margin:0;color:#6b665d;line-height:1.55}.d6-buyer-notes figure{margin:0;position:relative;min-height:560px}.d6-buyer-notes figure img{width:100%;height:100%;object-fit:cover}.d6-buyer-notes figcaption{position:absolute;left:20px;right:20px;bottom:20px;padding:16px;background:#fff}@media(max-width:900px){.d6-notes-grid{grid-template-columns:1fr}.d6-buyer-notes figure{min-height:360px}}

/* Demo06 compatibility pass */
body.demo06.is-home .d6-masthead{min-height:clamp(620px,78svh,760px)}body.demo06.is-home .d6-masthead h1{font-size:clamp(40px,4.6vw,64px)!important;max-width:14ch}body.demo06: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.demo06:not(.is-home) h1{font-size:clamp(28px,9vw,40px)!important}}body.demo06.is-home .d6-buyer-notes{background:var(--theme-surface-soft)}body.demo06.is-home .d6-buyer-notes aside{background:var(--theme-dark)}body.demo06.is-home .d6-buyer-notes aside>span,body.demo06.is-home .d6-buyer-notes aside p,body.demo06.is-home .d6-note-list b{color:var(--theme-primary)}body.demo06.is-home .d6-note-list{background:var(--theme-surface)}body.demo06.is-home .d6-note-list article{border-color:var(--theme-line)}body.demo06.is-home .d6-note-list p{color:var(--theme-muted)}

/* === 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 === */
