/* Site-wide 2026 chrome shell (master pages) */

html.page-shell-2026,
body.page-shell-2026:not(.page-home-2026),
html:has(body.page-shell-2026:not(.page-home-2026)) {
  --mate-shell-header-offset: calc(56px + clamp(10px, 1.4vw, 18px) + 12px);
  /* Old listing pages reserved space for the solid black nav — shell header already pads main */
  --navHeight: 0px !important;
}

/*
 * DC mounts chrome into #dc-root. On home that root holds the whole page.
 * On inner pages chrome is fixed overlays only — collapse the host so it
 * does not push page content down (~900px white gap).
 */
body.page-shell-2026:not(.page-home-2026) #dc-root {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
}

body.page-shell-2026:not(.page-home-2026) .mate-shell-root {
  font-family: 'Archivo', sans-serif;
  font-optical-sizing: auto;
  color: inherit;
  background: transparent;
  overflow: visible;
}

body.page-shell-2026:not(.page-home-2026) #mate-shell-main,
body.page-shell-2026:not(.page-home-2026) .mate-shell-main {
  position: relative;
  z-index: 1;
  padding-top: var(--mate-shell-header-offset);
  min-height: 40vh;
}

/* Kill leftover clearance meant for the old sticky black header */
body.page-shell-2026:not(.page-home-2026) .productsListingHeader,
body.page-shell-2026:not(.page-home-2026) .page-header,
body.page-shell-2026:not(.page-home-2026) .listingHeader,
body.page-shell-2026:not(.page-home-2026) main > .container:first-child,
body.page-shell-2026:not(.page-home-2026) #mate-shell-main > div > .productsListingHeader {
  margin-top: 0 !important;
}

/* Hide legacy chrome when shell is active */
body.page-shell-2026:not(.page-home-2026) > header:not(.mh-home),
body.page-shell-2026:not(.page-home-2026) .navbar:not(.mh-home),
body.page-shell-2026:not(.page-home-2026) .navbar__cart,
body.page-shell-2026:not(.page-home-2026) footer.site-footer,
body.page-shell-2026:not(.page-home-2026) .site-footer {
  display: none !important;
}

/* Mega / bento grids need display:grid. Do NOT set align-items:start globally —
 * Collection cards use absolute children and collapse to 0 height with it. */
body.page-shell-2026 .nh-1o {
  display: grid !important;
}
body.page-shell-2026 [data-mega] .nh-1o {
  align-items: start;
}

/* Keep mega/cart above typical page chrome */
body.page-shell-2026 [data-mega] {
  z-index: 75;
}
body.page-shell-2026 .nh-9k {
  z-index: 90;
}
body.page-shell-2026 .nh-9l {
  z-index: 91;
}

/*
 * Light theme (html[theme=light]) forces white SVG strokes / link colours site-wide.
 * CTA icon chips are white circles — arrows must stay black.
 */
body.page-shell-2026 .nh-16,
body.page-shell-2026 .nh-3l {
  background: #fff !important;
  color: #000 !important;
}
body.page-shell-2026 .nh-16 svg,
body.page-shell-2026 .nh-3l svg,
body.page-shell-2026 .nh-16 svg path,
body.page-shell-2026 .nh-3l svg path,
body.page-shell-2026 [data-mbtn] .nh-16 svg,
body.page-shell-2026 [data-mbtn] .nh-3l svg {
  color: #000 !important;
  stroke: #000 !important;
  fill: none !important;
  filter: none !important;
}

/* Cart drawer header: close X + item-count badge (light theme forces white SVG/ink) */
body.page-shell-2026 .nh-9l .nh-9o {
  color: #efeae2 !important;
}
body.page-shell-2026 .nh-9l .nh-9p {
  background: #c9a66b !important;
  color: #0b0a09 !important;
}
body.page-shell-2026 .nh-9l .nh-9q {
  background: #ffffff !important;
  color: #000000 !important;
}
body.page-shell-2026 .nh-9l .nh-9q svg,
body.page-shell-2026 .nh-9l .nh-9q svg path {
  color: #000000 !important;
  stroke: #000000 !important;
  fill: none !important;
  filter: none !important;
}
body.page-shell-2026 .nh-9l .nh-9q:hover {
  background: #c9a66b !important;
  color: #0b0a09 !important;
}
body.page-shell-2026 .nh-9l .nh-9q:hover svg,
body.page-shell-2026 .nh-9l .nh-9q:hover svg path {
  color: #0b0a09 !important;
  stroke: #0b0a09 !important;
}

/* Cart drawer cards sit on white — protect against light-theme ink overrides */
body.page-shell-2026 .nh-9l .nh-9s,
body.page-shell-2026 .nh-9l .nh-9s * {
  color: inherit;
}
body.page-shell-2026 .nh-9l .nh-9x {
  color: #111110 !important;
}
body.page-shell-2026 .nh-9l .nh-9z {
  color: #6b665e !important;
}
body.page-shell-2026 .nh-9l .nh-a1 {
  color: #2a2826 !important;
}
body.page-shell-2026 .nh-9l .nh-a3 {
  color: #8a847a !important;
}
body.page-shell-2026 .nh-9l .nh-a7,
body.page-shell-2026 .nh-9l .nh-a8 {
  color: #111110 !important;
}
body.page-shell-2026 .nh-9l .nh-a6 {
  color: #6b665e !important;
}
body.page-shell-2026 .nh-9l .nh-9y {
  color: #8a847a !important;
}
body.page-shell-2026 .nh-9l .nh-a2 {
  flex: none;
  background-color: #c9a66b;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(17, 17, 16, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
body.page-shell-2026 .nh-9l .nh-9u {
  object-fit: contain;
  background: transparent;
}
body.page-shell-2026 .nh-9l a.nh-9x:hover {
  color: #8a6a38 !important;
}

/* Cart drawer CTAs — kill main.min.css link underlines on hover */
body.page-shell-2026 .nh-9l a.nh-ag,
body.page-shell-2026 .nh-9l a.nh-ag:hover,
body.page-shell-2026 .nh-9l a.nh-ag:focus,
body.page-shell-2026 .nh-9l a.nh-ag:active,
body.page-shell-2026 .nh-9l a.nh-ag:visited,
body.page-shell-2026 .nh-9l a.nh-ag *,
body.page-shell-2026 .nh-9l a.nh-ag:hover *,
body.page-shell-2026 .nh-9l a.nh-ag:focus * {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

/* Book consultation popup (shared with home) */
body.page-shell-2026 .nh-ah{position:fixed;inset:0;z-index:95;background:rgba(5,4,3,.6);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
body.page-shell-2026 .nh-ai{position:fixed;left:50%;top:50%;z-index:96}
body.page-shell-2026 .nh-aj{width:100%;height:100%;border:0;display:block}
body.page-shell-2026 .nh-ak{all:unset;cursor:pointer;position:absolute;top:14px;right:14px;z-index:2;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(17,17,16,.06);color:#111110}
body.page-shell-2026 .nh-ak:hover{background:#111110 !important;color:#FFFFFF !important}
