/* Chezzi theme — Cavin Shoes–faithful luxury fashion storefront */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Jost:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

body.theme-chezzi,
body.layout-chezzi {
  --cz-ink: #111111;
  --cz-soft: #6b6560;
  --cz-line: #ece7e2;
  --cz-paper: #faf7f5;
  --cz-blush: #f3d7d1;
  --cz-blush-deep: #ead0ca;
  --cz-wine: #4a101d;
  --cz-wine-mid: #6d2230;
  --cz-sale: #c62828;
  --cz-header-h: 108px;
  font-family: 'Jost', system-ui, sans-serif;
  color: var(--cz-ink);
  background: #fff;
  letter-spacing: 0.01em;
}

body.theme-chezzi .cz-wrap {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header — transparent over home hero, sticky elsewhere */
body.theme-chezzi .cz-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cz-line);
}
body.theme-chezzi .cz-header.is-home {
  position: absolute;
  inset-inline: 0;
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
}
body.theme-chezzi .cz-header.is-home .cz-nav-link,
body.theme-chezzi .cz-header.is-home .cz-icon-btn,
body.theme-chezzi .cz-header.is-home .cz-brand {
  color: #fff;
}
body.theme-chezzi .cz-header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 28px 0;
}
body.theme-chezzi .cz-header-side {
  display: flex;
  align-items: center;
  gap: 2px;
}
body.theme-chezzi .cz-header-right { justify-content: flex-end; }
body.theme-chezzi .cz-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  gap: 0;
}
body.theme-chezzi .cz-brand img,
body.theme-chezzi .cz-brand svg {
  max-height: 48px;
  width: auto;
  filter: none;
}
body.theme-chezzi .cz-header.is-home .cz-brand img,
body.theme-chezzi .cz-header.is-home .cz-brand svg {
  filter: brightness(0) invert(1);
}
body.theme-chezzi .cz-brand-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
}
body.theme-chezzi .cz-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
body.theme-chezzi .cz-cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--cz-wine);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
}
body.theme-chezzi .cz-header.is-home .cz-cart-count {
  background: #fff;
  color: var(--cz-wine);
}
body.theme-chezzi .cz-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 26px;
  padding: 4px 20px 16px;
}
body.theme-chezzi .cz-nav-link {
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.94;
}
body.theme-chezzi .cz-nav-link:hover { opacity: 1; }
body.theme-chezzi .cz-nav-link.is-sale { color: var(--cz-sale); }
body.theme-chezzi .cz-header.is-home .cz-nav-link.is-sale { color: #ff9aa2; }
body.theme-chezzi .cz-menu-btn { display: none; }
body.theme-chezzi .cz-search-panel {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 20px 14px;
  background: #fff;
  color: var(--cz-ink);
  border-top: 1px solid var(--cz-line);
}
body.theme-chezzi .cz-search-panel input {
  flex: 1;
  border: 1px solid var(--cz-line);
  border-radius: 999px;
  padding: 10px 14px;
}
body.theme-chezzi .cz-search-panel button[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: var(--cz-ink);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
}
body.theme-chezzi .cz-search-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Drawer */
body.theme-chezzi .cz-drawer[hidden] { display: none !important; }
body.theme-chezzi .cz-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}
body.theme-chezzi .cz-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
body.theme-chezzi .cz-drawer-panel {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: min(320px, 88vw);
  background: #fff;
  color: var(--cz-ink);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}
body.theme-chezzi .cz-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
body.theme-chezzi .cz-drawer-panel a {
  color: inherit;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--cz-line);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hero — full-bleed Cavin style */
body.theme-chezzi .cz-hero {
  position: relative;
  min-height: min(100vh, 920px);
  background: #1a1514;
  overflow: hidden;
}
body.theme-chezzi .cz-hero-slide {
  position: absolute;
  inset: 0;
}
body.theme-chezzi .cz-hero-hit {
  display: block;
  position: absolute;
  inset: 0;
}
body.theme-chezzi .cz-hero-image,
body.theme-chezzi .cz-hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.theme-chezzi .cz-hero-fallback {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 40%),
    linear-gradient(135deg, #3a2428, #1a1514 55%, #4a2a30);
}
body.theme-chezzi .cz-hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 0 20px 11vh;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, transparent 35%, rgba(0,0,0,.38) 100%);
}
body.theme-chezzi .cz-hero-title {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.55rem, 3.6vw, 2.65rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  pointer-events: auto;
}
body.theme-chezzi .cz-hero-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.55);
  padding-bottom: 2px;
  font-style: italic;
}
body.theme-chezzi .cz-hero-sep {
  width: 1px;
  height: 1.05em;
  background: rgba(255,255,255,.75);
}
body.theme-chezzi .cz-hero-dots {
  position: absolute;
  right: 28px;
  bottom: 22px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
body.theme-chezzi .cz-hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
body.theme-chezzi .cz-hero-dots button.is-active { background: #fff; }

/* Dual promos — wine + blush with snowflake accents */
body.theme-chezzi .cz-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
}
body.theme-chezzi .cz-promo {
  min-height: 260px;
  text-decoration: none;
  display: grid;
  place-items: center;
  padding: 36px 24px;
  position: relative;
  overflow: hidden;
}
body.theme-chezzi .cz-promo-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, currentColor 1.2px, transparent 1.4px),
    radial-gradient(circle at 88% 22%, currentColor 1px, transparent 1.2px),
    radial-gradient(circle at 18% 78%, currentColor 1px, transparent 1.2px),
    radial-gradient(circle at 82% 72%, currentColor 1.2px, transparent 1.4px);
  opacity: 0.35;
}
body.theme-chezzi .cz-promo-deco::before,
body.theme-chezzi .cz-promo-deco::after {
  content: '❄';
  position: absolute;
  font-size: 18px;
  opacity: 0.45;
  line-height: 1;
}
body.theme-chezzi .cz-promo-deco::before { top: 18px; left: 22px; }
body.theme-chezzi .cz-promo-deco::after { top: 28px; right: 28px; font-size: 14px; }
body.theme-chezzi .cz-promo-dark {
  background: linear-gradient(145deg, #5c1826, var(--cz-wine));
  color: #fff;
}
body.theme-chezzi .cz-promo-blush {
  background: linear-gradient(145deg, #f7e4df, var(--cz-blush));
  color: var(--cz-wine);
}
body.theme-chezzi .cz-promo-inner {
  text-align: center;
  max-width: 380px;
  position: relative;
  z-index: 1;
}
body.theme-chezzi .cz-promo-kicker {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
body.theme-chezzi .cz-promo-script {
  margin: 0 0 12px;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1;
}
body.theme-chezzi .cz-promo-offer {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
body.theme-chezzi .cz-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.theme-chezzi .cz-promo-dark .cz-promo-btn {
  background: #fff;
  color: var(--cz-wine);
}
body.theme-chezzi .cz-promo-blush .cz-promo-btn {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(74,16,29,.22);
  color: var(--cz-wine);
}

/* Sections / rails */
body.theme-chezzi .cz-section {
  padding: 48px 0 20px;
}
body.theme-chezzi .cz-section-head {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
body.theme-chezzi .cz-section-head-center { justify-content: center; }
body.theme-chezzi .cz-section-head h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
body.theme-chezzi .cz-section-head h2.cz-section-caps,
body.theme-chezzi .cz-section-caps {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
body.theme-chezzi .cz-section-head h2.is-sale { color: var(--cz-sale); }
body.theme-chezzi .cz-section-foot {
  text-align: center;
  padding: 8px 0 12px;
}
body.theme-chezzi .cz-section-foot a,
body.theme-chezzi .cz-section-head a {
  color: var(--cz-ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
body.theme-chezzi .cz-section-foot a.is-sale,
body.theme-chezzi .cz-section-head a.is-sale { color: var(--cz-sale); }
body.theme-chezzi .cz-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 20px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
body.theme-chezzi .cz-rail > * { scroll-snap-align: start; }

/* Product card — clean Cavin look */
body.theme-chezzi .cz-product {
  display: block;
  color: inherit;
  text-decoration: none;
}
body.theme-chezzi .cz-product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #f6f4f2;
  overflow: hidden;
  margin-bottom: 12px;
}
body.theme-chezzi .cz-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .25s ease, transform .35s ease;
}
body.theme-chezzi .cz-product-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}
body.theme-chezzi .cz-product:hover .cz-product-secondary { opacity: 1; }
body.theme-chezzi .cz-product:hover .cz-product-media > img:first-child { transform: scale(1.03); }
body.theme-chezzi .cz-product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: var(--cz-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
}
body.theme-chezzi .cz-product-badge.is-sale {
  background: var(--cz-sale);
  color: #fff;
}
body.theme-chezzi .cz-product-soldout {
  position: absolute;
  inset: auto 10px 10px 10px;
  background: rgba(255,255,255,.92);
  text-align: center;
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.theme-chezzi .cz-product-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
body.theme-chezzi .cz-product-color {
  margin: 0 0 4px;
  color: var(--cz-soft);
  font-size: 12px;
  text-transform: lowercase;
}
body.theme-chezzi .cz-product-price {
  margin: 0;
  font-size: 13px;
}
body.theme-chezzi .cz-product-price s {
  color: var(--cz-soft);
  margin-right: 6px;
}

/* Collections */
body.theme-chezzi .cz-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}
body.theme-chezzi .cz-collection-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #f7f3ef 0%, #efe8e2 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
body.theme-chezzi .cz-collection-tile img,
body.theme-chezzi .cz-collection-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transition: transform .45s ease;
}
body.theme-chezzi .cz-collection-fallback {
  background: linear-gradient(145deg, #efe8e2, #e4d8d0);
}
body.theme-chezzi .cz-collection-tile:hover img { transform: scale(1.04); }
body.theme-chezzi .cz-collection-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 14px 18px;
  background: linear-gradient(transparent, rgba(20,16,14,.42));
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}

/* Trust */
body.theme-chezzi .cz-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1100px, calc(100% - 40px));
  margin: 36px auto 12px;
  padding: 36px 0;
  border-top: 1px solid var(--cz-line);
  border-bottom: 1px solid var(--cz-line);
  text-align: center;
}
body.theme-chezzi .cz-trust h3 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
}
body.theme-chezzi .cz-trust p {
  margin: 0;
  color: var(--cz-soft);
  font-size: 13px;
  line-height: 1.55;
}

/* Newsletter / footer */
body.theme-chezzi .cz-newsletter {
  background: var(--cz-paper);
  padding: 48px 0;
  margin-top: 28px;
}
body.theme-chezzi .cz-newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}
body.theme-chezzi .cz-newsletter h2 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
}
body.theme-chezzi .cz-newsletter p {
  margin: 0;
  color: var(--cz-soft);
}
body.theme-chezzi .cz-newsletter form {
  display: flex;
  gap: 8px;
}
body.theme-chezzi .cz-newsletter input {
  flex: 1;
  border: 1px solid var(--cz-line);
  background: #fff;
  padding: 12px 14px;
}
body.theme-chezzi .cz-newsletter button {
  border: 0;
  background: var(--cz-ink);
  color: #fff;
  padding: 0 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}
body.theme-chezzi .cz-footer {
  background: #0f0f0f;
  color: #eee;
  padding-top: 48px;
}
body.theme-chezzi .cz-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
body.theme-chezzi .cz-footer-brand {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.18em;
  font-size: 1.45rem;
}
body.theme-chezzi .cz-footer-about,
body.theme-chezzi .cz-footer p {
  color: rgba(255,255,255,.68);
  font-size: 13px;
  line-height: 1.65;
}
body.theme-chezzi .cz-footer h4 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.theme-chezzi .cz-footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
body.theme-chezzi .cz-footer-links a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 13px;
}
body.theme-chezzi .cz-footer-links a:hover { color: #fff; }
body.theme-chezzi .cz-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px 0;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
body.theme-chezzi .cz-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
body.theme-chezzi .cz-footer-bottom a {
  color: inherit;
  text-decoration: none;
  margin-left: 12px;
}
body.theme-chezzi .cz-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 30;
}
body.theme-chezzi .cz-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Shop */
body.theme-chezzi .cz-shop-head {
  padding: 28px 0 10px;
  border-bottom: 1px solid var(--cz-line);
}
body.theme-chezzi .cz-breadcrumb {
  display: flex;
  gap: 8px;
  color: var(--cz-soft);
  font-size: 12px;
  margin-bottom: 8px;
}
body.theme-chezzi .cz-breadcrumb a { color: inherit; text-decoration: none; }
body.theme-chezzi .cz-shop-head h1 {
  margin: 0 0 14px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
}
body.theme-chezzi .cz-shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
}
body.theme-chezzi .cz-shop-tabs a {
  color: var(--cz-soft);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.theme-chezzi .cz-shop-tabs a.is-active {
  color: var(--cz-ink);
  border-bottom: 1px solid currentColor;
}
body.theme-chezzi .cz-shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--cz-soft);
  font-size: 13px;
}
body.theme-chezzi .cz-shop-toolbar select {
  border: 1px solid var(--cz-line);
  padding: 6px 10px;
  background: #fff;
}
body.theme-chezzi .cz-shop-grid-wrap { padding: 24px 0 40px; }
body.theme-chezzi .cz-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 16px;
}

/* Product page: size sits directly under the colour swatches. */
body.theme-chezzi .product-size-under-colors {
  margin-top: 0.15rem;
}
@media (max-width: 991px) {
  body.theme-chezzi .product-gallery-colors {
    order: 2;
  }
  body.theme-chezzi .product-size-under-colors {
    order: 3;
  }
}

@media (max-width: 980px) {
  body.theme-chezzi .cz-nav { display: none; }
  body.theme-chezzi .cz-menu-btn { display: inline-grid; }
  body.theme-chezzi .cz-header { --cz-header-h: 64px; }
  body.theme-chezzi .cz-header-bar { padding: 8px 14px 0; }
  body.theme-chezzi .cz-promos,
  body.theme-chezzi .cz-trust,
  body.theme-chezzi .cz-newsletter-inner,
  body.theme-chezzi .cz-footer-grid,
  body.theme-chezzi .cz-collection-grid {
    grid-template-columns: 1fr;
  }
  body.theme-chezzi .cz-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  body.theme-chezzi .cz-hero { min-height: 78vh; }
  body.theme-chezzi .cz-header.is-home {
    background: rgba(0,0,0,.22);
  }
  body.theme-chezzi .cz-promo { min-height: 220px; }
}

@media (min-width: 981px) {
  body.theme-chezzi .cz-collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- official geometric wordmark (viewBox 5667×850, ~6.67:1), white hero, cart side margins ---- */
/* Header logo: global .brand-logo has a white background; with the home invert filter it showed as a white box. */
body.theme-chezzi .cz-brand img,
body.theme-chezzi .cz-brand .brand-logo,
body.theme-chezzi .cz-brand svg {
  background: transparent;
  /* Definite height: an SVG with only a viewBox collapses when height is auto. */
  height: 40px;
  width: auto;
  max-height: 48px;
  /* Wider than the old serif lockup (~6.67:1). Cap width so it stays inside the header. */
  max-width: min(320px, calc(100vw - 280px));
  object-fit: contain;
}

/* White hero with the official wordmark (used when the slide has no real banner image). */
body.theme-chezzi .cz-hero:has(.cz-hero-slide.is-wordmark) {
  background: #fff;
}
body.theme-chezzi .cz-hero-slide.is-wordmark {
  background: #fff;
}
body.theme-chezzi .cz-hero-wordmark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--cz-header-h) 16px 16vh;
  background: #fff;
  pointer-events: none;
}
body.theme-chezzi .cz-hero-wordmark svg {
  width: clamp(240px, 70vw, 900px);
  max-width: 100%;
  height: auto;
  color: var(--cz-ink);
  display: block;
}
body.theme-chezzi .cz-hero-slide.is-wordmark .cz-hero-overlay {
  background: none;
}
body.theme-chezzi .cz-hero-slide.is-wordmark .cz-hero-title {
  color: var(--cz-ink);
}
body.theme-chezzi .cz-hero-slide.is-wordmark .cz-hero-title a {
  border-bottom-color: rgba(17, 17, 17, 0.5);
}
body.theme-chezzi .cz-hero-slide.is-wordmark .cz-hero-sep {
  background: rgba(17, 17, 17, 0.6);
}
/* Header sits over the white hero: use dark ink instead of white. */
body.theme-chezzi:has(.cz-hero-slide.is-wordmark) .cz-header.is-home {
  background: transparent;
}
body.theme-chezzi:has(.cz-hero-slide.is-wordmark) .cz-header.is-home .cz-nav-link,
body.theme-chezzi:has(.cz-hero-slide.is-wordmark) .cz-header.is-home .cz-icon-btn,
body.theme-chezzi:has(.cz-hero-slide.is-wordmark) .cz-header.is-home .cz-brand {
  color: var(--cz-ink);
}
body.theme-chezzi:has(.cz-hero-slide.is-wordmark) .cz-header.is-home .cz-brand img,
body.theme-chezzi:has(.cz-hero-slide.is-wordmark) .cz-header.is-home .cz-brand svg {
  filter: none;
}

/* Cart page: side margins (content was flush against the screen edges) */
body.theme-chezzi .cz-main > h1.section-title,
body.theme-chezzi .cz-main > .panel,
body.theme-chezzi .cz-main > form.panel,
body.theme-chezzi .cz-main > .alert {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}
body.theme-chezzi .cz-main > h1.section-title { margin-top: 24px; }
body.theme-chezzi .cz-main > .panel,
body.theme-chezzi .cz-main > form.panel { margin-bottom: 32px; }

@media (max-width: 520px) {
  /* Phone header: keep logo + icons inside the viewport (cart icon was pushed off-screen). */
  body.theme-chezzi .cz-header-bar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 10px 12px 0;
    gap: 6px;
  }
  body.theme-chezzi .cz-brand {
    min-width: 0;
  }
  body.theme-chezzi .cz-brand img,
  body.theme-chezzi .cz-brand .brand-logo,
  body.theme-chezzi .cz-brand svg {
    height: 30px;
    max-height: 30px;
    width: auto;
    /* 44vw of a 390px phone is wider than the gap between the icon buttons.
       Keep the 30px height and cap width so the 6.67:1 mark does not push the cart off-screen. */
    max-width: min(44vw, calc(100vw - 248px));
    object-fit: contain;
  }
}
