/**
 * CraftMarket – Home sections (template-parts/home/*.php). Prefix: .cmh-
 * Every grid declares minmax(0, …) columns (framework 5.13).
 */

/* ======================================================================
 * Shared
 * ==================================================================== */
.craftmarket-home > .craftmarket-section:first-child,
.craftmarket-home .elementor-widget:first-child .craftmarket-section { padding-top: 24px; }

.cmh-tabs { justify-content: flex-end; }
.cmh-tabs .craftmarket-pill { text-decoration: none; }
[data-cmh-products].is-loading .cmh-products__grid { opacity: .45; pointer-events: none; transition: opacity .2s ease; }

.cmh-stats { display: flex; flex-wrap: wrap; gap: 20px 36px; margin: 0; padding: 0; list-style: none; }
.cmh-stats__item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cmh-stats__icon { display: grid; place-items: center; color: var(--color-primary); }
.cmh-stats__body { display: grid; }
.cmh-stats__value { color: var(--text-heading); font-family: var(--font-heading); font-size: 24px; font-weight: var(--heading-weight); line-height: 1.1; }
.cmh-stats__label { color: var(--text-secondary); font-size: 12px; }

.cmh-checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cmh-checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-body); font-size: 14px; }
.cmh-checklist svg { flex: none; margin-top: 1px; color: var(--color-eco); }

/* ======================================================================
 * Home 1 – Background bands (design-new): products on the section tint, artisans and the gallery
 * on white, wholesale on eco green. Bands keep the same rhythm as the plain sections.
 * ==================================================================== */
.craftmarket-section--h1-products { background: var(--bg-section); }
.craftmarket-section--h1-artisans,
.craftmarket-section--h1-gallery { background: var(--bg-card); }
.craftmarket-home1 .craftmarket-footer { margin-top: 0; } /* the white gallery band meets the footer */
.craftmarket-home2 .craftmarket-footer { margin-top: 0; } /* so does the Trade band (design home2-x) */
/* Home 1 rhythm (tablet up): 70px between boxes, 70px inside the bands (products, artisans,
   wholesale, gallery); a box next to a band keeps 70px on that side. Per section key, so it also
   holds inside the Elementor widget wrappers. */
/* Hero: 70px above on desktop, easing down to 40px on phones; below it only half a gap (the bento adds the rest). Beats the 24px first-widget rule above. */
.craftmarket-home1 .craftmarket-section.craftmarket-section--h1-hero.cmh-hero1 { padding-block: clamp(40px, 5vw, 70px) 25px; } /* + the next section's top = one section gap */
@media (min-width: 768px) {
  .craftmarket-home1 .craftmarket-section.craftmarket-section--h1-hero.cmh-hero1 { padding-bottom: 35px; }
  .craftmarket-home1 .craftmarket-section.craftmarket-section--h1-bento,
  .craftmarket-home1 .craftmarket-section.craftmarket-section--h1-process,
  .craftmarket-home1 .craftmarket-section.craftmarket-section--h1-reviews { padding-block: 35px; }
  .craftmarket-home1 .craftmarket-section.craftmarket-section--h1-products,
  .craftmarket-home1 .craftmarket-section.craftmarket-section--h1-artisans,
  .craftmarket-home1 .craftmarket-section.craftmarket-section--h1-wholesale,
  .craftmarket-home1 .craftmarket-section.craftmarket-section--h1-gallery { padding-block: 70px; }
  .craftmarket-home1 .craftmarket-section.craftmarket-section--h1-bento { padding-bottom: 70px; }
  .craftmarket-home1 .craftmarket-section.craftmarket-section--h1-process,
  .craftmarket-home1 .craftmarket-section.craftmarket-section--h1-reviews { padding-block: 70px; }
}

/* Home 3 and Home 4 rhythm (tablet up), as Home 1: 70px between boxes (35px each side), 70px inside
   the coloured bands, the last box keeps 70px above the footer. */
@media (min-width: 768px) {
  .craftmarket-home3 .craftmarket-section.craftmarket-section--h3-rooms { padding-bottom: 35px; }
  .craftmarket-home3 .craftmarket-section:is(.craftmarket-section--h3-materials, .craftmarket-section--h3-collection, .craftmarket-section--h3-estimator) { padding-block: 35px; }
  .craftmarket-home3 .craftmarket-section.craftmarket-section--h3-collection { padding-bottom: 70px; }
  .craftmarket-home3 .craftmarket-section.craftmarket-section--h3-villages { padding-block: 70px; }
  .craftmarket-home3 .craftmarket-section.craftmarket-section--h3-estimator { padding-top: 70px; }
  .craftmarket-home3 .craftmarket-section.craftmarket-section--h3-ugc { padding-block: 35px 70px; }
  .craftmarket-home4 .craftmarket-section:is(.craftmarket-section--h4-categories, .craftmarket-section--h4-table, .craftmarket-section--h4-suppliers, .craftmarket-section--h4-logistics, .craftmarket-section--h4-fairs, .craftmarket-section--h4-regions) { padding-block: 35px; }
  .craftmarket-home4 .craftmarket-section.craftmarket-section--h4-categories { padding-top: 70px; }
  .craftmarket-home4 .craftmarket-section.cmh-ticker { margin-bottom: 0; } /* the 70px above Categories is the whole gap */
  .craftmarket-home4 .craftmarket-section.craftmarket-section--h4-cases { padding-block: 35px 70px; }
  .craftmarket-home3 .craftmarket-footer,
  .craftmarket-home4 .craftmarket-footer { margin-top: 0; }
}

/* ======================================================================
 * Home 1 – Hero
 * ==================================================================== */
.cmh-hero1__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
@media (min-width: 961px) {
  .cmh-hero1__inner { align-items: stretch; } /* the photo runs from the kicker to the stats */
}
@media (min-width: 961px) and (max-width: 1279px) {
  .cmh-hero1__text .cmh-stats { flex-wrap: nowrap; gap: 20px; } /* three stats stay on one row */
  .cmh-hero1__text .cmh-stats__item { gap: 8px; }
}
.cmh-hero1__text { display: grid; justify-items: start; gap: 20px; min-width: 0; }
.cmh-hero1__text .craftmarket-kicker { margin: 0; }
.cmh-hero1__title { margin: 0; font-size: var(--fs-display); line-height: 1.02; overflow-wrap: anywhere; }
.cmh-hero1__title em { color: var(--color-primary); font-style: italic; font-weight: var(--heading-weight); }
.cmh-hero1__lead { max-width: 480px; margin: 0; color: var(--text-body); font-size: 17px; line-height: 1.6; }
.cmh-hero1__text .cmh-stats { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border-default); }

.cmh-hero1__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.cmh-hero1__story { display: inline-flex; align-items: center; gap: 12px; color: var(--text-heading); font-size: 15px; font-weight: 600; }
.cmh-hero1__story-icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--color-primary); transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.cmh-hero1__story-text { padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color .2s ease; }
.cmh-hero1__story:hover { color: var(--color-primary); }
.cmh-hero1__story:hover .cmh-hero1__story-icon { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-primary-fg); }

.cmh-hero1__media {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-xl);
  background: var(--bg-section);
}
.craftmarket-section .cmh-hero1__img,
.cmh-hero1__media > .craftmarket-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.cmh-hero1__card { position: absolute; top: 9%; inset-inline-end: 6%; z-index: 3; }
.cmh-hero1__card .craftmarket-float-card { width: 250px; }
@media (min-width: 768px) {
  /* The featured card opens above its dot, on the empty wall over the moon jar, clear of the plant. */
  .cmh-hero1 .craftmarket-hotspot.is-default .craftmarket-hotspot__card,
  .cmh-hero1 .craftmarket-hotspot.is-default:hover .craftmarket-hotspot__card { top: auto; bottom: calc(100% + 14px); left: 50%; right: auto; transform: translateX(-50%); }
}

/* ======================================================================
 * Home 1 – Bento
 * ==================================================================== */
.cmh-bento__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
}
.cmh-bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.cmh-bento__title { margin: 0; font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }

.cmh-bento__story { justify-content: flex-end; min-height: 340px; border: 0; background: var(--bg-dark); color: var(--text-inverse); }
.craftmarket-section .cmh-bento__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmh-bento__story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 18, 12, .82) 0%, rgba(25, 18, 12, .45) 55%, rgba(25, 18, 12, .1) 100%); }
.cmh-bento__story-body { position: relative; z-index: 1; display: grid; align-content: space-between; gap: 18px; max-width: 290px; height: 100%; }
.cmh-bento__story .cmh-bento__title { color: var(--text-inverse); font-size: 30px; }
.cmh-bento__quote { margin: 0; }
.cmh-bento__quote p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; }
.cmh-bento__quote footer { display: grid; font-size: 13px; }
.cmh-bento__quote footer span { color: var(--text-inverse-muted); }
.cmh-bento__play { display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; text-align: start; }
button.cmh-bento__play { cursor: pointer; }
.cmh-bento__play-text { display: grid; }
.cmh-bento__play-text small { color: var(--text-inverse-muted); font-size: 12px; }

.cmh-bento__swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; margin: 0; padding: 0; list-style: none; }
.cmh-bento__swatches a { display: grid; justify-items: center; gap: 6px; color: var(--text-body); font-size: 12px; font-weight: 500; text-align: center; }
.cmh-bento__swatches a:hover { color: var(--color-primary); }
.cmh-bento__swatch { --swatch-size: 76px; transition: transform .2s ease; }
.cmh-bento__swatches a:hover .cmh-bento__swatch { transform: scale(1.05); }

.cmh-bento__batch-img { position: relative; display: block; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 16 / 10; background: var(--bg-subtle); }
.craftmarket-section .cmh-bento__batch-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmh-bento__batch-img .craftmarket-badge { position: absolute; top: 10px; inset-inline-end: 10px; }
.cmh-bento__batch-label { margin: 0; color: var(--text-secondary); font-size: 13px; }
.cmh-bento__batch .craftmarket-progress { background: var(--color-primary-light); }
.cmh-bento__batch .craftmarket-countdown { margin-top: auto; } /* design-new: countdown sits at the bottom of the card */
.cmh-bento__batch .craftmarket-countdown li { flex: 1 1 0; min-width: 0; border: 0; background: var(--bg-section); }
.cmh-bento__batch .craftmarket-countdown + .craftmarket-link-arrow { margin-top: 0; }
.cmh-bento__batch .craftmarket-link-arrow { margin-top: auto; }

/* Eco card: soft sage wash, plain checks, handwritten note at the bottom (design-new). */
.cmh-bento__eco { border-color: color-mix(in srgb, var(--color-eco) 18%, var(--border-default)); background: linear-gradient(160deg, var(--bg-card) 30%, color-mix(in srgb, var(--color-eco) 20%, var(--bg-card)) 100%); }
.cmh-bento__checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cmh-bento__checks li { display: flex; align-items: flex-start; gap: 8px; color: var(--text-body); font-size: 15px; line-height: 1.45; }
.cmh-bento__checks svg { flex: none; margin-top: 3px; color: var(--color-eco); stroke-width: 2.2; }
.cmh-bento__eco-foot { display: grid; gap: 12px; margin-top: auto; }
.cmh-bento__eco-foot.has-image { position: relative; margin-inline: -22px; margin-bottom: -22px; }
.craftmarket-section .cmh-bento__eco-img { display: block; width: 100%; height: 130px; object-fit: cover; }
.cmh-bento__note { margin: 0; color: var(--color-eco); font-size: 24px; line-height: 1.15; }
.cmh-bento__eco-foot.has-image .cmh-bento__note { position: absolute; inset-inline-end: 14px; bottom: 14px; color: #FFFFFF; text-align: end; text-shadow: 0 1px 8px rgba(0, 0, 0, .65); }

/* ======================================================================
 * Home 1 – Product tabs
 * ==================================================================== */
.cmh-products .craftmarket-section-head { align-items: flex-end; }
.cmh-products__more { display: flex; justify-content: center; margin: 32px 0 0; }

/* ======================================================================
 * Home 1 – Process timeline
 * ==================================================================== */
/* design-new Home 1: ringed round photos on one dotted line, the number on the rim (lower left),
   centred text. Line, ring and badge share --color-accent. */
.cmh-process__list {
  --cmh-process-size: 136px;
  --cmh-process-ring: 10px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Through the photo centres, from the first to the last circle (photos hide it where they sit). */
.cmh-process__list::before {
  content: "";
  position: absolute;
  top: calc(var(--cmh-process-ring) + var(--cmh-process-size) / 2 - 1px);
  inset-inline: 12.5%;
  border-top: 2px dotted var(--color-accent);
}
.cmh-process__step { position: relative; display: grid; justify-items: center; align-content: start; gap: 18px; min-width: 0; text-align: center; }
.cmh-process__media { position: relative; z-index: 1; display: block; padding: var(--cmh-process-ring); border: 1px solid color-mix(in srgb, var(--color-accent) 35%, transparent); border-radius: 50%; background: var(--bg-page); }
.cmh-process__img {
  display: block;
  width: var(--cmh-process-size);
  height: var(--cmh-process-size);
  overflow: hidden;
  border-radius: 50%;
  background: var(--bg-subtle);
}
.craftmarket-section .cmh-process__img img,
.cmh-process__img .craftmarket-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cmh-process__step:hover .cmh-process__img img { transform: scale(1.05); }
.cmh-process__num {
  position: absolute;
  bottom: 14%;
  inset-inline-start: 2%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 3px solid var(--bg-page);
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent) 62%, #000); /* white digits at 4.5:1 */
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cmh-process__body { display: grid; justify-items: center; gap: 4px; min-width: 0; max-width: 260px; }
.cmh-process__title { color: var(--text-heading); font-family: var(--font-body); font-size: 18px; font-weight: 600; line-height: 1.3; }
.cmh-process__text { color: var(--text-secondary); font-size: 15px; line-height: 1.5; }

/* ======================================================================
 * Home 1 – Artisans
 * ==================================================================== */
/* Upright photo cards: country in small caps above a serif name, specialty, quiet studio link. */
.cmh-artisans__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ======================================================================
 * Home 1 – Wholesale calculator
 * ==================================================================== */
.cmh-wholesale { position: relative; isolation: isolate; overflow: hidden; background: var(--color-eco); color: var(--text-inverse); }
.cmh-wholesale__bg { position: absolute; inset: 0; z-index: -1; }
.craftmarket-section .cmh-wholesale__img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.cmh-wholesale__bg > .craftmarket-placeholder { display: none; }
.cmh-wholesale__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43, 61, 44, .94) 0%, rgba(43, 61, 44, .82) 40%, rgba(43, 61, 44, .5) 75%, rgba(43, 61, 44, .4) 100%); } /* dark under the text, the shelf of ceramics shows around the card */
.cmh-wholesale__inner {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 500px);
  justify-content: center;
  gap: 40px clamp(40px, 7vw, 96px);
  align-items: center;
}
.cmh-wholesale .craftmarket-section-head { margin-bottom: 28px; }
.cmh-wholesale .craftmarket-section-head__title { max-width: 560px; color: var(--text-inverse); font-size: var(--fs-h1); } /* "Boutique Owner?" on its own line */
.cmh-wholesale .craftmarket-section-head__text { max-width: 460px; margin-top: 16px; color: var(--text-inverse-muted); }
.cmh-wholesale .craftmarket-kicker { color: rgba(255, 255, 255, .78); }
.cmh-wholesale__features { display: flex; flex-wrap: wrap; gap: 20px 36px; margin: 0; padding: 0; list-style: none; }
.cmh-wholesale__features li { display: grid; align-content: start; justify-items: start; gap: 14px; width: 132px; font-size: 14px; line-height: 1.45; }
.cmh-wholesale__icon { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(255, 255, 255, .06); }
.cmh-wholesale__icon svg { width: 26px; height: 26px; }

.cmh-calc {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-body);
  box-shadow: var(--shadow-lg);
}
.cmh-calc__title { margin: 0; font-size: 22px; }
.cmh-calc__fields { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: end; }
.cmh-calc__field { display: grid; gap: 6px; min-width: 0; }
.cmh-calc__field > span,
.cmh-calc__field > label { color: var(--text-secondary); font-size: 12px; font-weight: 600; }
.cmh-calc__qty { width: 100%; }
.cmh-calc__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmh-calc__table th { padding: 8px 10px; background: var(--bg-subtle); color: var(--text-secondary); font-weight: 600; text-align: start; }
.cmh-calc__table td { padding: 8px 10px; border-bottom: 1px solid var(--border-default); }
.cmh-calc__table tr.is-active td { background: var(--color-accent-light); color: var(--color-primary); font-weight: 700; }
.cmh-calc__table tr.is-active td:first-child { box-shadow: inset 3px 0 0 var(--color-accent); }
.cmh-calc__foot { display: grid; gap: 16px; }
.cmh-calc__foot .craftmarket-btn { width: 100%; justify-content: center; }
.cmh-calc__total { display: grid; gap: 4px; min-width: 0; }
.cmh-calc__label { color: var(--text-secondary); font-size: 12px; }
.cmh-calc__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.cmh-calc__sum strong { color: var(--text-heading); font-family: var(--font-heading); font-size: 30px; font-weight: var(--heading-weight); line-height: 1; }
.cmh-calc__sum del { color: var(--text-secondary); font-size: 16px; }
.cmh-calc__sum .craftmarket-badge { font-size: 12px; letter-spacing: 0; text-transform: none; }
.cmh-calc__sum [hidden] { display: none; }

/* ======================================================================
 * Home 1 – Reviews
 * ==================================================================== */
.cmh-reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cmh-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border-default);
  border-radius: var(--card-radius);
  background: var(--bg-card);
}
.cmh-review.has-image { grid-template-columns: minmax(0, 1fr) 112px; }
.cmh-review__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cmh-review__quote { flex: 1 0 auto; margin: 0; } /* names line up at the bottom of every card */
.cmh-review__quote p { margin: 0; color: var(--text-heading); font-size: 15px; line-height: 1.55; }
.cmh-review__who { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border-default); font-size: 13px; }
.cmh-review__who > span:last-child { display: grid; gap: 2px; min-width: 0; }
.cmh-review__who strong { color: var(--text-heading); }
.cmh-review__who span span { color: var(--text-secondary); overflow-wrap: anywhere; }
.cmh-review__who a { color: var(--text-heading); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.cmh-review__who a:hover { color: var(--color-primary); text-decoration-color: currentColor; }
.cmh-review__avatar { flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: var(--bg-subtle); }
.craftmarket-section .cmh-review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cmh-review__img { display: block; overflow: hidden; border-radius: var(--radius-md); background: var(--bg-subtle); }
.craftmarket-section .cmh-review__img img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; }

/* ======================================================================
 * Home 1 – Social gallery
 * ==================================================================== */
.cmh-gallery__head .craftmarket-section-head__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; max-width: none; }
.cmh-gallery__head .craftmarket-section-head__text { margin: 0; }
.cmh-gallery__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cmh-gallery__item a,
.cmh-gallery__item > img { position: relative; display: block; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 1; }
.craftmarket-section .cmh-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cmh-gallery__icon { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .35); color: #FFFFFF; opacity: 0; transition: opacity .25s ease; }
.cmh-gallery__item a:hover img { transform: scale(1.05); }
.cmh-gallery__item a:hover .cmh-gallery__icon,
.cmh-gallery__item a:focus-visible .cmh-gallery__icon { opacity: 1; }

/* ======================================================================
 * Home 2 – Hero
 * ==================================================================== */
.craftmarket-section.cmh-hero2,
.craftmarket-home .craftmarket-section.cmh-hero2 { padding-block: 0; }
.cmh-hero2 {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(460px, 40vw, 600px);
  overflow: hidden;
  background: var(--bg-section);
}
.cmh-hero2__media { position: absolute; inset: 0; z-index: 0; }
.craftmarket-section .cmh-hero2__img,
.cmh-hero2__media > .craftmarket-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmh-hero2__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(251, 248, 243, .82) 0%, rgba(251, 248, 243, .55) 32%, rgba(251, 248, 243, 0) 58%);
  pointer-events: none;
}
.cmh-hero2__media { overflow: hidden; container-type: size; }
/* Same box as the object-fit: cover photo (centred), so hotspot x / y are photo coordinates. */
.cmh-hero2__spots { position: absolute; top: 50%; left: 50%; z-index: 2; width: max(100cqw, 100cqh * var(--ratio, 3)); aspect-ratio: var(--ratio, 3); transform: translate(-50%, -50%); pointer-events: none; }
.cmh-hero2__spots .craftmarket-hotspot { pointer-events: auto; }
/* RTL: the copy sits on the right, so the photo is mirrored; the hotspots flip with it. */
/*rtl:raw:
.craftmarket-section .cmh-hero2__img { transform: scaleX(-1); }
*/
.cmh-hero2__card { position: absolute; top: 28%; inset-inline-end: 3%; z-index: 3; }
.cmh-hero2__card .craftmarket-float-card { width: 230px; grid-template-columns: 56px minmax(0, 1fr); }
.cmh-hero2__card .craftmarket-mini__img { width: 56px; height: 56px; }
.cmh-hero2__card .craftmarket-mini__title { font-family: var(--font-heading); font-size: 17px; font-weight: 500; }
.cmh-hero2__card .craftmarket-mini__price { font-size: 18px; font-weight: 500; }
.cmh-hero2__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-block: 56px;
  pointer-events: none;
}
.cmh-hero2__text { display: grid; justify-items: start; gap: 18px; max-width: 540px; min-width: 0; pointer-events: auto; }
.cmh-hero2__text .craftmarket-kicker { margin: 0; }
.cmh-hero2__title { margin: 0; font-size: var(--fs-display); line-height: 1; overflow-wrap: anywhere; }
.cmh-hero2__lead { max-width: 440px; margin: 0; color: var(--text-heading); font-size: 17px; line-height: 1.55; }
.cmh-hero2__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; max-width: 100%; margin-top: 6px; } /* button + underlined text link (design) */
.cmh-hero2 .cmh-hero2__link { padding-bottom: 3px; font-size: 15px; font-weight: 500; }

/* ======================================================================
 * Home 2 – Marquee
 * ==================================================================== */
.craftmarket-section.cmh-marquee { padding-block: 0; margin-bottom: calc(var(--section-space) / 2); border-block: 1px solid var(--border-default); background: var(--bg-section); }
.cmh-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  color: var(--text-heading);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cmh-marquee__item svg { flex: none; color: var(--color-accent-hover); }
.cmh-marquee__sep { padding-inline: 24px; color: var(--color-accent-hover); font-size: 14px; } /* even gap: item, separator, item */
.cmh-marquee__item + .cmh-marquee__item { margin-inline-start: 48px; } /* no separator set */

/* ======================================================================
 * Home 2 – Shop the look
 * ==================================================================== */
.cmh-look .craftmarket-section-head { margin-bottom: 16px; }
.cmh-look__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.cmh-look__grid--single { grid-template-columns: minmax(0, 1fr); }
.cmh-look__media { position: relative; min-height: 460px; border-radius: var(--radius-sm); background: var(--bg-subtle); }
.craftmarket-section .cmh-look__img,
.cmh-look__media > .craftmarket-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
/* Caption: serif italic on a soft dark fade along the bottom edge, legible on any photo. */
.cmh-look__note {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 72px 32px 28px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: linear-gradient(to top, rgba(20, 14, 10, .62), rgba(20, 14, 10, 0));
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 30px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  pointer-events: none;
}
.cmh-look__side { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; min-width: 0; }
/* Rows shared by the three cards (subgrid): the images stay level even when one card has swatches. */
.cmh-look__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) auto; gap: 0 12px; margin: 0; padding: 0; list-style: none; }
.cmh-look__item { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--bg-card); transition: box-shadow .3s ease, transform .3s ease; }
.cmh-look__item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cmh-look__item-img { display: block; min-height: 150px; overflow: hidden; background: var(--bg-subtle); }
.craftmarket-section .cmh-look__item-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cmh-look__item:hover .cmh-look__item-img img { transform: scale(1.05); }
.cmh-look__item-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px 16px; border-top: 1px solid var(--border-default); }
.cmh-look__item-title { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.25; }
.cmh-look__item-title a { color: var(--text-heading); }
.cmh-look__item-title a:hover { color: var(--color-primary); }
.cmh-look__item-price { color: var(--text-heading); font-size: 14px; font-weight: 600; }
.cmh-look__item-price del { color: var(--text-muted); font-weight: 400; }
.cmh-look__item-price ins { text-decoration: none; }
.cmh-look__item .craftmarket-swatches { --swatch-size: 16px; grid-area: auto; align-self: flex-start; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; }
.cmh-look__item .craftmarket-swatches__more { color: var(--text-secondary); font-size: 12px; line-height: 1; }

/* Bundle: the set photo fills the left edge, the offer sits beside it. */
.cmh-look__bundle {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-section);
}
.cmh-look__bundle-img { display: block; position: relative; min-height: 160px; overflow: hidden; background: var(--bg-subtle); }
.craftmarket-section .cmh-look__bundle-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.cmh-look__bundle-body { display: grid; align-content: center; justify-items: start; gap: 8px; min-width: 0; padding: 22px 26px; }
.cmh-look__bundle-title { margin: 0; font-size: 24px; line-height: 1.15; }
.cmh-look__bundle-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.cmh-look__bundle-price strong { color: var(--text-heading); font-size: 26px; font-weight: 600; line-height: 1.1; }
.cmh-look__bundle-price del { color: var(--text-secondary); font-size: 14px; }
.cmh-look__bundle-save { flex-basis: 100%; color: var(--color-success); font-size: 13px; font-weight: 600; }
.cmh-look__bundle-text { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.cmh-look__bundle-btn { margin-top: 8px; }

/* ======================================================================
 * Home 2 – Collection tabs carousel
 * ==================================================================== */
.cmh-collections__head { margin-bottom: 24px; }
/* design-new Home 2: a ruled panel – tab column on the left, a hairline between it and the carousel. */
.cmh-collections__layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: stretch; }
/* The tabs: one card as tall as the product row; each tab gets a share of it (large serif name + piece count). */
.cmh-collections__tabs { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--bg-card); }
.cmh-collections__tab:last-child { border-bottom: 0; }
.cmh-collections__tab {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-body);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.cmh-collections__tab:hover { background: var(--bg-subtle); color: var(--text-heading); }
.cmh-collections__tab[aria-selected="true"] { background: linear-gradient(to right, var(--color-accent-light), rgba(255, 255, 255, 0)); box-shadow: inset 3px 0 0 var(--color-accent); color: var(--text-heading); font-weight: 600; }
.cmh-collections__num { min-width: 22px; color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cmh-collections__tab[aria-selected="true"] .cmh-collections__num { color: var(--color-accent-hover); }
.cmh-collections__label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cmh-collections__name { min-width: 0; color: var(--text-heading); font-family: var(--font-heading); font-size: 22px; font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; }
.cmh-collections__count { color: var(--text-muted); font-size: 13px; font-weight: 400; letter-spacing: .02em; }
.cmh-collections__main { min-width: 0; padding: 22px 0 0; padding-inline-start: 24px; }
.cmh-collections__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.cmh-collections__heading { min-width: 0; }
.cmh-collections__title { margin: 0; font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1.1; }
.cmh-collections__text { margin: 4px 0 0; color: var(--text-secondary); font-size: 14px; }
.cmh-collections__actions { display: flex; align-items: center; gap: 20px; }
.cmh-collections__actions .craftmarket-link-arrow { padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.cmh-collections__actions .craftmarket-scroller-nav { gap: 10px; }
.cmh-collections__arrow { width: 44px; height: 44px; border-color: var(--border-default); background: var(--bg-card); }
.cmh-collections__arrow:hover { border-color: var(--text-heading); background: var(--text-heading); color: var(--bg-card); }
/* Room inside the scroller so the hover lift and shadow of edge cards are not clipped. */
.cmh-collections__track { --scroller-item: calc((100% - 48px) / 4); gap: 16px; margin: -6px -6px -18px; padding: 6px 6px 18px; scroll-padding-inline: 6px; }
/* Product cards in this panel: white framed cards, square photo, quiet "Add to Bag" link (design-new). */
.cmh-collections .cmh-collections__track > .craftmarket-card { min-width: 0; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--bg-card); }
.cmh-collections .cmh-collections__track > .craftmarket-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cmh-collections .cmh-collections__track .craftmarket-card__body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "price" "swatches" "actions"; gap: 6px; padding: 14px 16px 16px; }
.cmh-collections .cmh-collections__track .craftmarket-card__title { font-family: var(--font-heading); font-size: 18px; font-weight: 500; line-height: 1.25; } /* serif names, as the tabs and Shop the Look */
.cmh-collections .cmh-collections__track .craftmarket-card__meta { display: none; }
.cmh-collections .cmh-collections__track .craftmarket-card__price { margin-top: 0; font-size: 16px; font-weight: 600; }
.cmh-collections .cmh-collections__track .craftmarket-card__swatches { justify-self: start; margin-top: 2px; }
.cmh-collections .cmh-collections__track .craftmarket-card__swatches .craftmarket-swatch { --swatch-size: 16px; }
.cmh-collections .cmh-collections__track .craftmarket-card__actions { justify-items: start; margin-top: 8px; }
.cmh-collections .cmh-collections__track .craftmarket-cart-btn { justify-self: start; width: auto; gap: 8px; min-height: 0; padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: none; color: var(--text-heading); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.cmh-collections .cmh-collections__track .craftmarket-cart-btn:hover { background: none; color: var(--color-accent-hover); }
.cmh-collections .cmh-collections__track .craftmarket-cart-btn::after { content: "\2192"; transition: transform .2s ease; }
.cmh-collections .cmh-collections__track .craftmarket-cart-btn:hover::after { transform: translateX(3px); }
.cmh-collections .cmh-collections__track .craftmarket-cart-btn .craftmarket-icon { display: none; }
/*rtl:raw:
.cmh-collections .cmh-collections__track .craftmarket-cart-btn::after { content: "\2190"; }
.cmh-collections .cmh-collections__track .craftmarket-cart-btn:hover::after { transform: translateX(-3px); }
*/
[data-cmh-products].is-loading .cmh-collections__track { opacity: .45; pointer-events: none; transition: opacity .2s ease; }

/* ======================================================================
 * Home 2 – Video story & bespoke studio
 * ==================================================================== */
.cmh-atelier__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.cmh-atelier__grid--single { grid-template-columns: minmax(0, 1fr); }
.cmh-atelier__story {
  position: relative;
  isolation: isolate;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  color: var(--text-inverse);
}
.craftmarket-section .cmh-atelier__bg,
.cmh-atelier__story > .craftmarket-placeholder { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.cmh-atelier__story::before { content: ""; position: absolute; inset: 0; z-index: 0; /* above the photo (z-index -1), below the text */ background: linear-gradient(180deg, rgba(17, 17, 17, .55) 0%, rgba(17, 17, 17, 0) 40%), linear-gradient(90deg, rgba(17, 17, 17, .78) 0%, rgba(17, 17, 17, .35) 60%, rgba(17, 17, 17, .15) 100%), linear-gradient(0deg, rgba(17, 17, 17, .6) 0%, rgba(17, 17, 17, 0) 45%); }
.cmh-atelier__story-body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; height: 100%; padding: 32px; }
.cmh-atelier__story .cmh-atelier__story-top .craftmarket-kicker { margin: 0 0 8px; color: rgba(255, 255, 255, .8); }
.cmh-atelier__title { max-width: 340px; margin: 0; color: var(--text-inverse); font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.05; }
.cmh-atelier__play { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; text-align: start; }
button.cmh-atelier__play { cursor: pointer; }
.cmh-atelier__play .craftmarket-play { width: 64px; height: 64px; }
.cmh-atelier__play-text { display: grid; }
.cmh-atelier__play-text small { color: var(--text-inverse-muted); font-size: 12px; }
.cmh-atelier__quote { max-width: 440px; margin: 0; }
.cmh-atelier__quote p { margin: 0 0 12px; font-family: var(--font-heading); font-size: 22px; line-height: 1.35; }
.cmh-atelier__quote footer { font-size: 13px; }
.cmh-atelier__quote footer span { margin-inline-start: 8px; color: var(--text-inverse-muted); }

.cmh-bespoke { display: grid; align-content: start; gap: 18px; min-width: 0; padding: 24px; border-radius: var(--radius-sm); background: var(--bg-section); }
.cmh-bespoke__title { margin: 0; font-size: 28px; }
.cmh-bespoke__kicker { margin: 2px 0 0; color: var(--text-secondary); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.cmh-bespoke__steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.cmh-bespoke__fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.cmh-bespoke__legend { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 0; color: var(--text-heading); font-size: 14px; font-weight: 500; }
.cmh-bespoke__num { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--text-heading); color: var(--bg-card); font-size: 12px; font-weight: 600; }
.cmh-bespoke__options { display: flex; flex-wrap: wrap; gap: 10px 16px; padding-inline-start: 36px; }
.cmh-bespoke__option { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 52px; color: var(--text-secondary); font-size: 11px; text-align: center; cursor: pointer; }
.cmh-bespoke__option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cmh-bespoke__swatch { --swatch-size: 34px; transition: box-shadow .2s ease, transform .2s ease; }
.cmh-bespoke__option:hover .cmh-bespoke__swatch { transform: scale(1.06); }
.cmh-bespoke__option input:checked ~ .cmh-bespoke__swatch { box-shadow: 0 0 0 2px var(--bg-section), 0 0 0 3px var(--text-heading); }
.cmh-bespoke__option input:checked ~ .cmh-bespoke__option-name { color: var(--text-heading); font-weight: 600; }
.cmh-bespoke__option input:focus-visible ~ .cmh-bespoke__swatch { box-shadow: 0 0 0 2px var(--bg-section), 0 0 0 4px var(--ui-focus-ring); }
.cmh-bespoke__engrave { display: flex; align-items: center; gap: 12px; padding-inline-start: 36px; }
.cmh-bespoke__engrave .craftmarket-input { flex: 1 1 auto; min-width: 0; min-height: 38px; font-size: 13px; }
.cmh-bespoke__surcharge { flex: none; color: var(--text-secondary); font-size: 12px; white-space: nowrap; }
.cmh-bespoke__fonts { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-inline-start: 36px; }
.cmh-bespoke__fonts-label { flex: none; margin-inline-end: 4px; color: var(--text-secondary); font-size: 12px; }
.cmh-bespoke__font { position: relative; flex: 1 1 0; min-width: 0; }
.cmh-bespoke__font input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cmh-bespoke__font span { display: block; padding: 7px 8px; border: 1px solid var(--border-default); border-radius: var(--radius-xs); background: var(--bg-card); color: var(--text-body); font-size: 13px; text-align: center; transition: border-color .2s ease; }
.cmh-bespoke__font input:checked + span { border-color: var(--text-heading); color: var(--text-heading); box-shadow: inset 0 0 0 1px var(--text-heading); }
.cmh-bespoke__font input:focus-visible + span { box-shadow: 0 0 0 3px var(--ui-focus-ring); }
.cmh-bespoke__font--serif span { font-family: var(--font-heading); font-size: 15px; }
.cmh-bespoke__font--script span { font-family: var(--font-accent); font-size: 17px; line-height: 1.1; }
.cmh-bespoke__font--block span { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; line-height: 1.6; }
.cmh-bespoke__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid var(--border-strong); }
.cmh-bespoke__total { display: grid; gap: 2px; margin: 0; }
.cmh-bespoke__total span { color: var(--text-secondary); font-size: 12px; }
.cmh-bespoke__total strong { color: var(--text-heading); font-family: var(--font-heading); font-size: 30px; font-weight: 500; line-height: 1; }
/* Studio card: airy steps, kicker over a large title, metals as swatch + name, gemstones as rings,
   segmented font choice, price and button on one line. Gold marks the choice. */
.cmh-bespoke { gap: 24px; padding: clamp(26px, 2.8vw, 40px); border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.cmh-bespoke__head { display: flex; flex-direction: column-reverse; gap: 8px; }
.cmh-bespoke__kicker { margin: 0; color: color-mix(in srgb, var(--color-accent) 60%, #000); font-size: 11px; font-weight: 600; letter-spacing: .18em; } /* AA on the beige card */
.cmh-bespoke__title { font-size: clamp(2rem, 2.9vw, 2.75rem); font-weight: 400; line-height: 1.05; }
.cmh-bespoke__steps { gap: 24px; }
.cmh-bespoke__legend { gap: 14px; margin-bottom: 14px; font-size: 15px; }
.cmh-bespoke__num { width: 26px; height: 26px; background: var(--text-heading); color: var(--bg-card); }
.cmh-bespoke__options { gap: 14px 22px; padding-inline-start: 40px; }
.cmh-bespoke__option { gap: 8px; min-width: 52px; font-size: 12px; }
.cmh-bespoke__swatch { --swatch-size: 38px; }
.cmh-bespoke__option input:checked ~ .cmh-bespoke__swatch { box-shadow: 0 0 0 3px var(--bg-section), 0 0 0 4.5px var(--color-accent); }
.cmh-bespoke__option input:focus-visible ~ .cmh-bespoke__swatch { box-shadow: 0 0 0 3px var(--bg-section), 0 0 0 5px var(--ui-focus-ring); }
/* First step (metal): swatch and name side by side. */
.cmh-bespoke__step:first-child .cmh-bespoke__options { gap: 10px 26px; }
.cmh-bespoke__step:first-child .cmh-bespoke__option { grid-auto-flow: column; align-items: center; gap: 10px; font-size: 13px; }
.cmh-bespoke__step:first-child .cmh-bespoke__swatch { --swatch-size: 30px; }
.cmh-bespoke__engrave,
.cmh-bespoke__fonts { padding-inline-start: 40px; }
.cmh-bespoke__engrave { gap: 14px; }
.cmh-bespoke__engrave .craftmarket-input { min-height: 46px; border-color: var(--border-default); background: var(--bg-card); font-size: 14px; }
.cmh-bespoke__surcharge { color: color-mix(in srgb, var(--color-accent) 60%, #000); font-weight: 600; }
.cmh-bespoke__fonts { gap: 0; margin-top: 12px; }
.cmh-bespoke__fonts-label { margin-inline-end: 16px; }
.cmh-bespoke__font span { display: grid; place-items: center; min-height: 40px; margin-inline-start: -1px; padding: 6px 8px; border-radius: 0; background: var(--bg-card); transition: background-color .2s ease, color .2s ease; }
.cmh-bespoke__font:nth-child(2) span { margin-inline-start: 0; border-start-start-radius: var(--radius-xs); border-end-start-radius: var(--radius-xs); }
.cmh-bespoke__font:last-child span { border-start-end-radius: var(--radius-xs); border-end-end-radius: var(--radius-xs); }
.cmh-bespoke__font:hover span { color: var(--text-heading); }
.cmh-bespoke__font input:checked + span { position: relative; border-color: var(--text-heading); background: var(--text-heading); color: var(--bg-card); box-shadow: none; }
.cmh-bespoke__foot { flex-wrap: nowrap; align-items: center; margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--border-default); }
.cmh-bespoke__total strong { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
.cmh-bespoke__submit { flex: none; }
@media (max-width: 1199px) {
  /* Narrow column: steps use the full width, the engraving field gets its own line. */
  .cmh-bespoke__options,
  .cmh-bespoke__engrave,
  .cmh-bespoke__fonts { padding-inline-start: 0; }
  .cmh-bespoke__options { gap: 12px 14px; }
  .cmh-bespoke__engrave { flex-wrap: wrap; }
  .cmh-bespoke__engrave .craftmarket-input { flex-basis: 100%; }
  .cmh-bespoke__foot { flex-wrap: wrap; }
  .cmh-bespoke__submit { flex: 1 1 auto; justify-content: center; white-space: nowrap; }
}

/* ======================================================================
 * Home 2 – Video shorts
 * ==================================================================== */
.cmh-shorts .craftmarket-section-head { margin-bottom: 16px; }
.cmh-shorts__track { --scroller-item: calc((100% - 48px) / 4); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cmh-short { position: relative; isolation: isolate; aspect-ratio: 3 / 4; min-width: 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-dark); color: var(--text-inverse); }
.cmh-short__media { position: absolute; inset: 0; z-index: -1; }
.craftmarket-section .cmh-short__img,
.cmh-short__media > .craftmarket-placeholder,
.cmh-short__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.craftmarket-section .cmh-short__img { transition: transform .6s ease; }
.cmh-short:hover .cmh-short__img { transform: scale(1.05); }
.cmh-short__video { opacity: 0; transition: opacity .3s ease; }
.cmh-short.is-playing .cmh-short__video { opacity: 1; }
.cmh-short__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17, 17, 17, .78) 0%, rgba(17, 17, 17, 0) 55%); }
.cmh-short__play { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; background: none; color: inherit; }
button.cmh-short__play { cursor: pointer; }
.craftmarket-play--glass { width: 48px; height: 48px; border: 2px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .2); color: #FFFFFF; box-shadow: none; backdrop-filter: blur(4px); }
.cmh-short.is-playing .craftmarket-play--glass { opacity: 0; transition: opacity .3s ease; }
.cmh-short__body { position: absolute; inset-inline: 14px; bottom: 12px; display: grid; gap: 1px; pointer-events: none; }
.cmh-short__title { margin: 0; color: var(--text-inverse); font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.cmh-short__text { margin: 0; font-size: 13px; line-height: 1.35; }
.cmh-short__meta { color: var(--text-inverse-muted); font-size: 11px; }
.cmh-short__shop { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--text-heading); transition: background-color .2s ease, color .2s ease; }
.cmh-short__shop:hover { background: var(--text-heading); color: var(--bg-card); }

/* ======================================================================
 * Home 2 – As seen in & testimonials
 * ==================================================================== */
.cmh-press__grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px 48px; }
.cmh-press__head { grid-row: span 2; align-self: start; margin: 0; }
.cmh-press__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 0; margin: 0; padding: 0; list-style: none; }
.cmh-press__logo { display: grid; flex: 1 1 0; justify-items: center; gap: 6px; min-width: 120px; padding-inline: 12px; color: var(--text-heading); text-align: center; }
.cmh-press__logo + .cmh-press__logo { border-inline-start: 1px solid var(--border-default); }
.cmh-press__logo img { display: block; max-width: 100%; max-height: 40px; width: auto; height: auto; filter: grayscale(1); opacity: .85; }
.cmh-press__name { font-family: var(--font-heading); font-size: 24px; line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.cmh-press__logo:nth-child(even) .cmh-press__name { font-style: italic; letter-spacing: -.01em; }
.cmh-press__sub { color: var(--text-muted); font-size: 8px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.cmh-press__quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cmh-press__quote { display: flex; align-items: flex-start; gap: 18px; margin: 0; padding: 18px 20px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--bg-card); }
.cmh-press__avatar { flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: var(--bg-subtle); }
.craftmarket-section .cmh-press__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cmh-press__quote-body { display: grid; gap: 10px; min-width: 0; }
.cmh-press__quote blockquote { margin: 0; }
.cmh-press__quote blockquote p { margin: 0; color: var(--text-heading); font-size: 13px; line-height: 1.55; }
.cmh-press__quote figcaption { display: grid; font-size: 12px; }
.cmh-press__quote figcaption strong { color: var(--text-heading); }
.cmh-press__quote figcaption span { color: var(--text-secondary); }

/* ======================================================================
 * Home 2 – Trade strip
 * ==================================================================== */
.craftmarket-section.cmh-trade { background: var(--bg-section); }
.cmh-trade__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 24px 32px; align-items: center; }
.cmh-trade__text { min-width: 0; padding-inline-end: 32px; border-inline-end: 1px solid var(--border-strong); }
.cmh-trade__text .craftmarket-kicker { display: none; }
.cmh-trade__title { margin: 0; font-size: 24px; line-height: 1.15; }
.cmh-trade__lead { margin: 6px 0 0; color: var(--text-secondary); font-size: 13px; }
.cmh-trade__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; padding: 0; list-style: none; }
.cmh-trade__items li { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text-heading); font-size: 13px; }
.cmh-trade__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid var(--color-accent); border-radius: 50%; background: var(--bg-card); color: var(--color-accent-hover); }

@media (max-width: 1100px) {
  .cmh-shorts__track { --scroller-item: calc((100% - 32px) / 3); }
  .cmh-collections__track { --scroller-item: calc((100% - 32px) / 3); }
  .cmh-trade__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .cmh-trade__btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 960px) {
  .cmh-hero2__media::after { background: linear-gradient(90deg, rgba(251, 248, 243, .88) 0%, rgba(251, 248, 243, .6) 50%, rgba(251, 248, 243, .1) 80%); }
  .cmh-hero2__card { display: none; } /* no room beside the title on tablets */
  .cmh-look__grid,
  .cmh-atelier__grid { grid-template-columns: minmax(0, 1fr); }
  .cmh-look__media { min-height: 0; aspect-ratio: 4 / 3; }
  .cmh-collections__layout { grid-template-columns: minmax(0, 1fr); }
  .cmh-collections__main { padding: 18px 0 0; }
  .cmh-collections__tabs { flex-direction: row; gap: 8px; max-width: 100%; overflow-x: auto; border: 0; border-radius: 0; background: none; scrollbar-width: none; }
  .cmh-collections__tabs::-webkit-scrollbar { display: none; }
  .cmh-collections__tab { flex: none; min-height: 38px; padding: 7px 16px; border: 1px solid var(--border-default); border-radius: var(--radius-pill); background: var(--bg-card); }
  .cmh-collections__tab[aria-selected="true"] .cmh-collections__num { color: inherit; }
  .cmh-collections__tab[aria-selected="true"] { border-color: var(--color-accent); background: var(--color-accent); box-shadow: none; color: var(--color-accent-fg); }
  .cmh-collections__num,
  .cmh-collections__count { display: none; }
  .cmh-collections__name { color: inherit; font-family: var(--font-body); font-size: 14px; }
  .cmh-press__grid { grid-template-columns: minmax(0, 1fr); }
  .cmh-press__head { grid-row: auto; }
  .cmh-trade__inner { grid-template-columns: minmax(0, 1fr); }
  .cmh-trade__text { padding: 0; border: 0; }
  .cmh-trade__text .craftmarket-kicker { display: block; margin: 0 0 8px; }
}

@media (max-width: 600px) {
  .cmh-hero2 { min-height: clamp(480px, calc(100svh - 110px), 600px); background: var(--bg-dark); } /* title and buttons on the first screen under the header */
  .craftmarket-section .cmh-hero2__img { object-position: 70% center; }
  .cmh-hero2__media::after { background: linear-gradient(0deg, rgba(17, 17, 17, .88) 0%, rgba(17, 17, 17, .55) 38%, rgba(17, 17, 17, 0) 62%); }
  .cmh-hero2__card { display: none; }
  .cmh-hero2__inner { align-items: flex-end; padding-block: 32px; }
  .cmh-hero2__text { justify-items: center; gap: 14px; max-width: none; width: 100%; color: var(--text-inverse); text-align: center; }
  .cmh-hero2 .cmh-hero2__text .craftmarket-kicker { color: rgba(255, 255, 255, .85); letter-spacing: .2em; }
  .cmh-hero2 .craftmarket-hotspot { display: none; }
  .cmh-hero2__title { color: var(--text-inverse); font-size: clamp(2.5rem, 12vw, 3.25rem); }
  .cmh-hero2__lead { color: rgba(255, 255, 255, .9); font-size: 15px; }
  .cmh-hero2__actions { flex-direction: column; width: 100%; }
  .cmh-hero2__btn { width: 100%; justify-content: center; border-color: var(--bg-card); background: var(--bg-card); color: var(--text-heading); }
  .cmh-hero2__actions { align-items: center; }
  .cmh-hero2 .cmh-hero2__link { color: var(--text-inverse); }
  .cmh-hero2 .cmh-hero2__link:hover { color: var(--bg-card); opacity: .8; }
  .cmh-marquee__item { padding-block: 12px; font-size: 10px; letter-spacing: .1em; }
  .cmh-marquee__sep { padding-inline: 16px; }
  .cmh-look__note { padding: 40px 18px 14px; font-size: 21px; }
  .cmh-look__items { gap: 0 8px; }
  .cmh-look__item-img { min-height: 110px; aspect-ratio: 1; }
  .cmh-look__item-body { padding: 10px; }
  .cmh-look__item-title { font-size: 15px; }
  .cmh-look__item-price { font-size: 13px; }
  .cmh-look__bundle { grid-template-columns: minmax(0, 1fr); }
  .cmh-look__bundle-img { min-height: 0; aspect-ratio: 2 / 1; }
  .cmh-look__bundle-body { padding: 18px; }
  .cmh-look__bundle-btn { width: 100%; justify-content: center; }
  .cmh-collections__track { --scroller-item: calc((100% - 16px) / 2); }
  .cmh-collections__title { font-size: 22px; }
  .cmh-collections .cmh-collections__track .craftmarket-card__title { font-size: 16px; }
  .cmh-collections__actions .craftmarket-scroller-nav { display: none; }
  .cmh-atelier__story { min-height: 420px; }
  .cmh-atelier__story::before { background: rgba(17, 17, 17, .5); }
  .cmh-bespoke__options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 4px; }
  .cmh-bespoke__option { min-width: 0; }
  .cmh-bespoke__swatch { --swatch-size: 30px; }
  .cmh-atelier__story-body { padding: 22px; }
  .cmh-atelier__quote p { font-size: 18px; }
  .cmh-bespoke { gap: 20px; padding: 22px 18px; }
  .cmh-bespoke__steps { gap: 20px; }
  .cmh-bespoke__step:first-child .cmh-bespoke__options { display: flex; flex-wrap: wrap; gap: 10px 18px; }
  .cmh-bespoke__step:first-child .cmh-bespoke__swatch { --swatch-size: 26px; }
  .cmh-bespoke__fonts-label { flex-basis: 100%; margin: 0 0 8px; }
  .cmh-bespoke__fonts { flex-wrap: wrap; }
  .cmh-bespoke__font { flex: 1 1 30%; } /* a basis of 0 would sit beside the full-width label */
  .cmh-bespoke__options,
  .cmh-bespoke__engrave,
  .cmh-bespoke__fonts { padding-inline-start: 0; }
  .cmh-bespoke__engrave { flex-wrap: wrap; }
  .cmh-bespoke__engrave .craftmarket-input { flex-basis: 100%; }
  .cmh-bespoke__submit { flex: 1 1 auto; justify-content: center; }
  .cmh-shorts__track { --scroller-item: 46%; gap: 10px; }
  .cmh-short { aspect-ratio: 9 / 16; }
  .cmh-press__logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; }
  .cmh-press__logo { min-width: 0; padding-inline: 4px; }
  .cmh-press__logo + .cmh-press__logo { border: 0; }
  .cmh-press__name { font-size: 18px; white-space: normal; }
  .cmh-press__quotes { grid-template-columns: minmax(0, 1fr); }
  .cmh-press__quote { padding: 16px; }
  .cmh-press__avatar { width: 48px; height: 48px; }
  .cmh-trade__items { grid-template-columns: minmax(0, 1fr); }
  .cmh-trade__btn { width: 100%; justify-content: center; }
}

/* ======================================================================
 * Home 3 – Room visualizer
 * ==================================================================== */
.craftmarket-section.cmh-rooms,
.craftmarket-home .craftmarket-section.cmh-rooms.cmh-rooms { padding-top: 0; } /* the photo starts under the overlay header; beats the 24px first-widget rule */
.cmh-rooms__hero { position: relative; isolation: isolate; display: grid; min-height: clamp(580px, 48vw, 740px); overflow: hidden; background: var(--bg-section); }
.cmh-rooms__media { position: absolute; inset: 0; z-index: -1; }
.cmh-rooms__photo { position: absolute; inset: 0; animation: craftmarket-fade .5s ease; }
.cmh-rooms__photo[hidden] { display: none; }
.craftmarket-section .cmh-rooms__img,
.cmh-rooms__media > .craftmarket-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmh-rooms__inner {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 24px;
  padding-top: 124px;
  padding-bottom: 24px;
}
.cmh-rooms__intro {
  display: grid;
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  justify-items: start;
  gap: 14px;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius-lg);
  background: rgba(247, 243, 235, .9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
}
.cmh-rooms__intro .craftmarket-kicker { margin: 0; color: var(--text-accent, var(--color-accent)); }
.cmh-rooms__title { margin: 0; font-size: clamp(2rem, 3.2vw, 2.875rem); line-height: 1.1; overflow-wrap: anywhere; }
.cmh-rooms__lead { margin: 0; color: var(--text-body); font-size: 15px; line-height: 1.55; }
.cmh-rooms__features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; margin: 8px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border-default); list-style: none; }
.cmh-rooms__features li { display: grid; align-content: start; justify-items: start; gap: 10px; min-width: 0; color: var(--text-heading); font-size: 13px; font-weight: 500; line-height: 1.35; } /* top-aligned: one-line labels no longer drop to the middle */
.cmh-rooms__feature-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary); }
.cmh-rooms__card { grid-row: 1; grid-column: 3; align-self: start; margin-top: 24px; }
.cmh-rooms__card[hidden] { display: none; }
.cmh-rooms__card .craftmarket-float-card { width: 260px; }
.cmh-rooms__tabs {
  display: flex;
  grid-row: 2;
  grid-column: 1 / -1;
  justify-self: center;
  gap: 4px;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
  scrollbar-width: none;
}
.cmh-rooms__tabs::-webkit-scrollbar { display: none; }
.cmh-rooms__tab { flex: none; padding: 9px 20px; border-radius: var(--radius-pill); color: var(--text-body); font-size: 14px; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.cmh-rooms__tab:hover { color: var(--color-primary); }
.cmh-rooms__tab[aria-selected="true"] { background: var(--color-primary); color: var(--color-primary-fg); }
.cmh-rooms__shop { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 24px; align-items: start; padding-top: clamp(40px, 5vw, 70px); } /* same 70px rhythm as the boxes below the hero */
.cmh-rooms__shop-head { display: grid; justify-items: start; gap: 12px; padding-top: 8px; }
.cmh-rooms__shop-title { margin: 0; font-size: var(--fs-h2); line-height: 1.15; }
.cmh-rooms__shop-text { margin: 0; color: var(--text-secondary); font-size: 15px; }
.cmh-rooms__track { --scroller-item: calc((100% - 60px) / 4); gap: 20px; } /* four larger cards */
.cmh-rooms__track > .craftmarket-card { min-width: 0; }
[data-cmh-products].is-loading .cmh-rooms__track { opacity: .45; pointer-events: none; transition: opacity .2s ease; }

/* ======================================================================
 * Home 3 – Materials explorer
 * ==================================================================== */
.cmh-materials__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; align-items: center; }
.cmh-materials__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cmh-materials__tab { display: grid; justify-items: center; gap: 12px; min-width: 0; padding: 0; border: 0; background: none; color: var(--text-heading); font: inherit; cursor: pointer; }
.cmh-materials__swatch {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid var(--bg-page);
  border-radius: 50%;
  background: var(--bg-subtle);
  box-shadow: 0 0 0 1px var(--border-default), var(--shadow-sm);
  transition: box-shadow .2s ease, transform .3s ease;
}
.craftmarket-section .cmh-materials__swatch img,
.cmh-materials__swatch .craftmarket-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmh-materials__tab:hover .cmh-materials__swatch { transform: scale(1.03); }
.cmh-materials__tab[aria-selected="true"] .cmh-materials__swatch { box-shadow: 0 0 0 2px var(--bg-page), 0 0 0 4px var(--color-primary), var(--shadow-md); }
.cmh-materials__tab:focus-visible { outline: none; }
.cmh-materials__tab:focus-visible .cmh-materials__swatch { box-shadow: 0 0 0 2px var(--bg-page), 0 0 0 4px var(--border-focus); } /* as strong as the focus outline elsewhere */
.cmh-materials__name { padding-bottom: 4px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 600; text-align: center; }
.cmh-materials__tab[aria-selected="true"] .cmh-materials__name { border-color: var(--color-primary); color: var(--color-primary); }
.cmh-materials__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: 0 24px 48px -32px rgba(31, 54, 36, .3); animation: craftmarket-fade .35s ease; }
.cmh-materials__panel[hidden] { display: none; }
.cmh-materials__photo { display: block; min-height: 340px; background: var(--bg-subtle); }
.craftmarket-section .cmh-materials__photo img,
.cmh-materials__photo .craftmarket-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmh-materials__body { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; padding: 32px; }
.cmh-materials__title { position: relative; margin: 0; padding-bottom: 14px; font-size: 26px; line-height: 1.15; }
.cmh-materials__title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 32px; height: 2px; border-radius: 2px; background: var(--color-primary); }
.cmh-materials__text { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.cmh-materials__body .cmh-checklist { gap: 0; margin-top: 2px; }
.cmh-materials__body .cmh-checklist li { align-items: center; padding: 9px 0; border-top: 1px solid var(--border-default); color: var(--text-heading); font-size: 13px; font-weight: 500; }
.cmh-materials__body .cmh-checklist li:last-child { border-bottom: 1px solid var(--border-default); }
.cmh-materials__body .cmh-checklist svg { margin: 0; color: var(--color-primary); }
/* Video: a pill with a round green play button, the duration beside the label. */
.cmh-materials__video { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; margin-top: 8px; margin-inline-start: 6px; padding: 0; border: 0; background: none; color: var(--text-heading); font: inherit; font-size: 14px; font-weight: 600; text-align: start; }
.cmh-materials__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.cmh-materials__shop { font-weight: 600; }
button.cmh-materials__video { cursor: pointer; }
button.cmh-materials__video:hover .cmh-materials__video-text { color: var(--color-primary); }
.cmh-materials__video .craftmarket-play { flex: none; width: 44px; height: 44px; background: var(--color-primary); color: var(--color-primary-fg); box-shadow: 0 0 0 6px var(--color-primary-light); transition: transform .2s ease, box-shadow .2s ease; }
button.cmh-materials__video:hover .craftmarket-play { box-shadow: 0 0 0 9px var(--color-primary-light); }
button.cmh-materials__video:hover .craftmarket-play { transform: scale(1.06); }
.cmh-materials__video-text { display: grid; gap: 2px; line-height: 1.3; transition: color .2s ease; }
.cmh-materials__video-text small { color: var(--text-secondary); font-size: 12px; font-weight: 400; }
@media (min-width: 961px) and (max-width: 1279px) {
  .cmh-materials__panel { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .cmh-materials__body { padding: 26px 24px; }
}

/* ======================================================================
 * Home 3 – Filterable collection
 * ==================================================================== */
.cmh-collection__head .craftmarket-section-head__extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px; }
.cmh-collection__head .craftmarket-pill { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.cmh-sort { margin: 0; }
.cmh-sort__select { min-width: 150px; min-height: 38px; padding-block: 6px; font-size: 14px; }

/* ======================================================================
 * Home 3 – Craft villages map
 * ==================================================================== */
.craftmarket-section.cmh-villages { background: var(--bg-dark); color: var(--text-inverse); }
.cmh-villages__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cmh-villages__text { display: grid; justify-items: start; gap: 18px; min-width: 0; container-type: inline-size; }
.cmh-villages__text .craftmarket-kicker { display: none; margin: 0; color: rgba(255, 255, 255, .78); }
.cmh-villages__title { margin: 0; color: var(--text-inverse); font-size: min(3.25rem, 11.4cqi); line-height: 1.08; } /* "Behind the Weave:" always fits one line, so the title stays on three */
.cmh-villages__lead { margin: 0; color: var(--text-inverse-muted); font-size: 16px; line-height: 1.55; }
.cmh-villages__btn { margin-top: 6px; }
.cmh-villages__map { --map-land: rgba(255, 255, 255, .22); width: 100%; max-height: 460px; } /* land readable on the dark band */
.cmh-village__shop { margin-top: 4px; color: var(--color-primary); font-size: 14px; font-weight: 600; }
.cmh-villages__pins { position: absolute; inset: 0; }
.cmh-village { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 20px; padding: 14px; border-radius: var(--radius-lg); background: var(--bg-card); color: var(--text-body); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); animation: craftmarket-fade .35s ease; }
.cmh-village[hidden] { display: none; }
.cmh-village__photo { display: block; min-height: 220px; overflow: hidden; border-radius: var(--radius-md); background: var(--bg-subtle); }
.craftmarket-section .cmh-village__photo img,
.cmh-village__photo .craftmarket-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmh-village__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 8px 6px 6px 0; }
.cmh-village__title { position: relative; margin: 0; padding-bottom: 12px; font-size: 21px; line-height: 1.2; }
.cmh-village__title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 32px; height: 2px; border-radius: 2px; background: var(--color-primary); }
.cmh-village__quote { position: relative; margin: 0; padding-top: 18px; }
.cmh-village__quote::before { content: "\201C"; position: absolute; top: -6px; inset-inline-start: -2px; color: var(--color-primary-light); font-family: var(--font-heading); font-size: 52px; line-height: 1; }
.cmh-village__quote p { position: relative; margin: 0 0 12px; color: var(--text-heading); font-family: var(--font-heading); font-size: 15px; font-style: italic; line-height: 1.5; }
.cmh-village__quote footer { color: var(--text-secondary); font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.cmh-audio { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cmh-audio__btn { flex: none; }
.cmh-audio__btn svg { margin: 0; }
.cmh-audio__pause,
.cmh-audio.is-playing .cmh-audio__play { display: none; }
.cmh-audio.is-playing .cmh-audio__pause { display: block; }
.cmh-audio__body { display: grid; gap: 4px; min-width: 0; }
.cmh-audio__label { color: var(--text-secondary); font-size: 12px; }
.cmh-audio__wave { display: flex; align-items: center; gap: 2px; height: 18px; color: var(--color-accent); }
.cmh-audio__wave i { width: 2px; height: 30%; border-radius: 2px; background: currentColor; }
.cmh-audio__wave i:nth-child(3n) { height: 70%; }
.cmh-audio__wave i:nth-child(4n+1) { height: 100%; }
.cmh-audio__wave i:nth-child(5n+2) { height: 50%; }
.cmh-audio.is-playing .cmh-audio__wave i { animation: cmh-wave 1s ease-in-out infinite alternate; }
.cmh-audio.is-playing .cmh-audio__wave i:nth-child(even) { animation-delay: -.5s; }
@keyframes cmh-wave { from { transform: scaleY(.4); } to { transform: scaleY(1); } }

/* ======================================================================
 * Home 3 – Project cost estimator
 * ==================================================================== */
.cmh-estimator__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.cmh-estimator__text .craftmarket-kicker { display: none; }
/* Features: an icon in a soft green circle over a short label, every item top-aligned. */
.cmh-estimator__features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--border-default); list-style: none; }
.cmh-estimator__features li { display: grid; align-content: start; justify-items: start; gap: 12px; min-width: 0; color: var(--text-heading); font-size: 13px; font-weight: 500; line-height: 1.4; }
.cmh-estimator__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary); }
.cmh-estimator__icon svg { width: 22px; height: 22px; }
.cmh-estimator__card { display: grid; gap: 0; min-width: 0; margin: 0; padding: 8px 28px 28px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: 0 24px 48px -28px rgba(31, 54, 36, .28); }
/* Steps: label column + controls, separated by hairlines. */
.cmh-estimator__step { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--border-default); }
.cmh-estimator__legend { float: left; display: flex; align-items: center; gap: 10px; width: 150px; padding: 0; color: var(--text-heading); font-size: 14px; font-weight: 600; }
.cmh-estimator__step > :not(legend) { grid-column: 2; }
.cmh-estimator__num { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary); color: var(--color-primary-fg); font-size: 12px; font-weight: 600; }
.cmh-estimator__options { display: flex; flex-wrap: wrap; gap: 8px; }
.cmh-estimator__option { position: relative; flex: 1 1 0; min-width: 0; }
.cmh-estimator__option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cmh-estimator__choice { display: grid; place-content: center; gap: 2px; min-height: 44px; height: 100%; padding: 6px 8px; border: 1px solid var(--border-default); border-radius: var(--input-radius); background: var(--bg-card); text-align: center; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.cmh-estimator__option:hover .cmh-estimator__choice { border-color: var(--border-strong); }
.cmh-estimator__choice strong { color: var(--text-heading); font-size: 13px; font-weight: 500; line-height: 1.25; }
.cmh-estimator__choice small { display: none; color: var(--text-secondary); font-size: 11px; }
.cmh-estimator__option input:checked + .cmh-estimator__choice { border-color: var(--color-primary); background: var(--color-primary); }
.cmh-estimator__option input:checked + .cmh-estimator__choice strong,
.cmh-estimator__option input:checked + .cmh-estimator__choice small { color: var(--color-primary-fg); font-weight: 600; }
.cmh-estimator__option input:focus-visible + .cmh-estimator__choice { box-shadow: 0 0 0 3px var(--ui-focus-ring); }
.cmh-estimator__area { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.cmh-estimator__bound { flex: none; color: var(--text-muted); font-size: 12px; }
.cmh-estimator__range { flex: 1 1 auto; min-width: 0; accent-color: var(--color-primary); }
.cmh-estimator__value { display: flex; flex: none; align-items: center; gap: 4px; min-height: 40px; padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: var(--btn-radius); color: var(--text-heading); font-size: 14px; }
.cmh-estimator__value:focus-within { border-color: var(--border-focus); }
.cmh-estimator__number { width: 52px; padding: 2px 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: end; -moz-appearance: textfield; }
.cmh-estimator__number:focus { outline: 0; box-shadow: none; }
.cmh-estimator__number::-webkit-outer-spin-button,
.cmh-estimator__number::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
/* Result: budget on the left, the call to action on the right. */
.cmh-estimator__result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px; margin-top: 22px; padding: 20px 22px; border-radius: var(--radius-md); background: var(--color-primary-light); }
.cmh-estimator__budget { display: grid; gap: 4px; min-width: 0; }
.cmh-estimator__label { color: var(--text-secondary); font-size: 13px; }
.cmh-estimator__sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cmh-estimator__sum strong { color: var(--color-primary); font-family: var(--font-heading); font-size: 30px; font-weight: var(--heading-weight); line-height: 1.1; }
.cmh-estimator__sum .craftmarket-badge { background: var(--bg-card); color: var(--color-primary); }
.cmh-estimator__disclaimer { color: var(--text-secondary); font-size: 11px; }

/* ======================================================================
 * Home 3 – In your space
 * ==================================================================== */
.cmh-ugc__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cmh-ugc__item { position: relative; min-width: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-subtle); }
.craftmarket-section .cmh-ugc__img,
.cmh-ugc__item > .craftmarket-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cmh-ugc__item:hover .cmh-ugc__img { transform: scale(1.04); }
.cmh-ugc__badge { position: absolute; top: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .92); color: var(--text-secondary); font-size: 11px; }
.cmh-ugc__rating { display: inline-flex; align-items: center; gap: 3px; color: var(--text-heading); font-weight: 700; }
.cmh-ugc__rating svg { color: var(--color-star); fill: currentColor; }
.cmh-ugc__link { position: absolute; bottom: 14px; inset-inline-end: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .94); color: var(--text-heading); font-size: 12px; font-weight: 600; transition: background-color .2s ease, color .2s ease; }
.cmh-ugc__link:hover { background: var(--color-primary); color: var(--color-primary-fg); }

@media (max-width: 1100px) {
  .cmh-rooms__track { --scroller-item: calc((100% - 32px) / 3); }
  .cmh-villages__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cmh-villages__cards { grid-column: 1 / -1; max-width: 620px; }
  .cmh-estimator__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cmh-estimator__card { max-width: 720px; }
}

@media (max-width: 960px) {
  .cmh-rooms__inner { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); }
  .cmh-rooms__card { display: none; }
  .cmh-rooms__shop { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cmh-rooms__shop-head { padding: 0; }
  .cmh-materials__layout { grid-template-columns: minmax(0, 1fr); }
  .cmh-materials__tabs { max-width: 560px; }
  .cmh-collection__head .craftmarket-section-head__extra { justify-content: flex-start; width: 100%; margin-inline-start: 0; }
  .cmh-villages__inner { grid-template-columns: minmax(0, 1fr); }
  .cmh-villages__text .craftmarket-kicker { display: block; }
  .cmh-villages__map { max-width: 560px; justify-self: center; }
  .cmh-villages__cards { max-width: none; }
  .cmh-estimator__text .craftmarket-kicker { display: block; }
  .cmh-ugc__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cmh-ugc__list::-webkit-scrollbar { display: none; }
  .cmh-ugc__item { flex: 0 0 42%; scroll-snap-align: start; }
}

@media (max-width: 600px) {
  .cmh-rooms__hero { display: block; min-height: 0; overflow: visible; background: none; }
  .cmh-rooms__media { position: relative; z-index: 0; height: 340px; }
  .cmh-rooms__inner { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: -64px; padding-top: 0; padding-bottom: 0; }
  .cmh-rooms__intro { padding: 22px 18px; background: var(--bg-page); backdrop-filter: none; }
  .cmh-rooms__features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cmh-rooms__features li { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
  .cmh-rooms__feature-icon { width: 38px; height: 38px; }
  .cmh-rooms__feature-icon svg { width: 20px; height: 20px; }
  .cmh-rooms__intro .craftmarket-btn { width: 100%; justify-content: center; }
  .cmh-rooms__tabs { justify-self: stretch; padding: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; }
  .cmh-rooms__tab { border: 1px solid var(--border-default); background: var(--bg-card); }
  .cmh-rooms__shop-title { font-size: 26px; }
  .cmh-rooms__track { --scroller-item: 44%; gap: 10px; }
  .cmh-materials__tabs { display: flex; gap: 12px; margin-inline: -6px; padding: 6px; overflow-x: auto; scrollbar-width: none; } /* room for the selected ring */
  .cmh-materials__tabs::-webkit-scrollbar { display: none; }
  .cmh-materials__tab { flex: 0 0 76px; }
  .cmh-materials__name { font-size: 12px; }
  .cmh-materials__panel { grid-template-columns: minmax(0, 1fr); }
  .cmh-materials__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .cmh-materials__body { gap: 12px; padding: 20px; }
  .cmh-materials__title { font-size: 22px; }
  .cmh-collection__head .cmh-tabs { width: 100%; }
  .cmh-villages__map { width: 100%; }
  .craftmarket-map__label strong { font-size: 13px; }
  .cmh-village { grid-template-columns: minmax(0, 1fr); }
  .cmh-village__photo { min-height: 0; aspect-ratio: 16 / 9; }
  .cmh-villages__btn { width: 100%; justify-content: center; }
  .cmh-estimator__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmh-estimator__step { grid-template-columns: minmax(0, 1fr); }
  .cmh-estimator__step > :not(legend) { grid-column: 1; }
  .cmh-estimator__legend { float: none; width: auto; margin-bottom: 2px; padding: 0; }
  .cmh-estimator__card { padding: 4px 18px 18px; }
  .cmh-estimator__result { padding: 16px; }
  .cmh-estimator__submit { width: 100%; padding-inline: 18px; font-size: 14px; }
  .cmh-estimator__sum strong { font-size: 26px; }
  .cmh-estimator__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmh-estimator__options:not(.cmh-estimator__options--types) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cmh-estimator__choice small { display: block; }
  .cmh-estimator__area { flex-wrap: wrap; }
  .cmh-estimator__range { flex-basis: 100%; order: -1; }
  .cmh-estimator__bound { display: none; }
  .cmh-estimator__value { margin-inline-start: auto; }
  .cmh-estimator__sum strong { font-size: 24px; }
  .cmh-estimator__submit { width: 100%; justify-content: center; }
  .cmh-ugc__item { flex-basis: 78%; }
}

/* ======================================================================
 * Home 4 – Sourcing request hero
 * ==================================================================== */
.craftmarket-section.cmh-hero4,
.craftmarket-home .craftmarket-section.cmh-hero4 { padding-block: 0; }
.cmh-hero4 { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-dark); color: var(--text-inverse); }
.cmh-hero4__media { position: absolute; inset: 0; z-index: -1; }
.craftmarket-section .cmh-hero4__img,
.cmh-hero4__media > .craftmarket-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmh-hero4__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 28, 20, .50) 0%, rgba(16, 28, 20, .60) 40%, rgba(16, 28, 20, .82) 100%); }
.cmh-hero4__inner { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 32px 56px; align-items: center; min-height: 500px; padding-block: 28px 36px; }
.cmh-hero4__inner--wide { grid-template-columns: minmax(0, 1fr); }
.cmh-hero4__text { display: grid; justify-items: start; gap: 16px; min-width: 0; }
.cmh-hero4__text .craftmarket-kicker { margin: 0; color: var(--color-accent); }
.cmh-hero4__title { max-width: 620px; margin: 0; color: var(--text-inverse); font-size: var(--fs-display); line-height: 1.05; overflow-wrap: anywhere; }
.cmh-hero4__lead { max-width: 560px; margin: 0; color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 1.6; }
.cmh-hero4__stats { margin-top: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); }
.cmh-hero4 .cmh-stats__icon { color: var(--color-accent); }
.cmh-hero4 .cmh-stats__value { color: var(--text-inverse); font-size: 20px; } /* a small row: the form and title lead */
.cmh-hero4 .cmh-stats__label { color: rgba(255, 255, 255, .75); }

/* ======================================================================
 * Home 4 – Market ticker
 * ==================================================================== */
.craftmarket-section.cmh-ticker { padding-block: 0; margin-bottom: calc(var(--section-space) / 2); border-bottom: 1px solid var(--border-default); background: var(--bg-card); }
.cmh-ticker__item { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border-inline-end: 1px solid var(--border-default); color: var(--text-heading); font-size: 13px; white-space: nowrap; }
.cmh-ticker__item > svg { color: var(--text-secondary); }
.cmh-ticker__value { font-weight: 700; }
.cmh-ticker__change { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.cmh-ticker__change--up { color: var(--color-success); }
.cmh-ticker__change--down { color: var(--color-error); }

/* ======================================================================
 * Home 4 – Category matrix
 * ==================================================================== */
.cmh-categories__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cmh-categories__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmh-categories__grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cmh-categories__grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cmh-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
  align-items: stretch;
  min-height: 96px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: var(--card-radius);
  background: var(--bg-card);
  color: var(--text-heading);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cmh-category:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.cmh-category__body { display: grid; align-content: center; gap: 4px; min-width: 0; padding: 14px 16px; }
.cmh-category__name { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cmh-category__count { color: var(--text-secondary); font-size: 12px; }
.cmh-category__img { display: block; overflow: hidden; background: var(--bg-subtle); }
.craftmarket-section .cmh-category__img img,
.cmh-category__img .craftmarket-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cmh-category:hover .cmh-category__img img { transform: scale(1.06); }

/* ======================================================================
 * Home 4 – Verified manufacturers
 * ==================================================================== */
.cmh-suppliers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.cmh-suppliers__grid > li { display: flex; min-width: 0; }
.cmh-supplier { display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--card-radius); background: var(--bg-card); }
.cmh-supplier__media { position: relative; aspect-ratio: 16 / 8; background: var(--bg-subtle); }
.cmh-supplier__photo { position: absolute; inset: 0; display: block; }
.craftmarket-section .cmh-supplier__photo img,
.cmh-supplier__photo .craftmarket-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmh-supplier__badge { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-sm); background: var(--color-primary); color: var(--color-primary-fg); font-size: 12px; font-weight: 600; }
.cmh-supplier__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cmh-supplier__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.cmh-supplier__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 14px; padding: 0 18px 18px; }
.cmh-supplier__head { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 14px; }
.cmh-supplier__logo { flex: none; width: 64px; height: 64px; margin-top: -30px; overflow: hidden; border: 3px solid var(--bg-card); border-radius: 50%; background: var(--bg-subtle); box-shadow: var(--shadow-sm); }
.craftmarket-section .cmh-supplier__logo img,
.cmh-supplier__logo .craftmarket-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmh-supplier__id { display: grid; gap: 2px; min-width: 0; padding-top: 10px; }
.cmh-supplier__name { margin: 0; font-size: 17px; line-height: 1.25; }
.cmh-supplier__name a { color: inherit; }
.cmh-supplier__place { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-secondary); font-size: 12px; }
.cmh-supplier__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 12px 0; border-block: 1px solid var(--border-default); text-align: center; }
.cmh-supplier__facts > div { display: grid; gap: 2px; min-width: 0; }
.cmh-supplier__facts dt { grid-row: 2; color: var(--text-secondary); font-size: 11px; }
.cmh-supplier__facts dd { margin: 0; color: var(--text-heading); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.cmh-supplier__btn { margin-top: auto; }

/* ======================================================================
 * Home 4 – Logistics & trade assurance
 * ==================================================================== */
.cmh-logistics__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; margin: 0; padding: 0; list-style: none; }
.cmh-logistics__step { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; }
.cmh-logistics__num { display: none; }
.cmh-logistics__icon { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--border-default); border-radius: 50%; background: var(--bg-card); color: var(--color-primary); box-shadow: var(--shadow-sm); }
.cmh-logistics__body { display: grid; gap: 4px; min-width: 0; }
.cmh-logistics__title { color: var(--text-heading); font-size: 14px; font-weight: 600; line-height: 1.3; }
.cmh-logistics__text { color: var(--text-secondary); font-size: 12px; line-height: 1.45; }
.cmh-logistics__arrow { position: absolute; top: 50%; inset-inline-end: -32px; color: var(--text-muted); transform: translateY(-50%); }

/* ======================================================================
 * Home 4 – Trade shows
 * ==================================================================== */
.cmh-fairs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.cmh-fair { position: relative; isolation: isolate; min-height: 220px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--card-radius); background: var(--bg-dark); color: var(--text-inverse); }
@media (max-width: 1199px) {
  .cmh-fair { min-height: 240px; aspect-ratio: auto; } /* the ratio and min-height together would force a 391px wide card */
}
.craftmarket-section .cmh-fair__img,
.cmh-fair > .craftmarket-placeholder { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cmh-fair:hover .cmh-fair__img { transform: scale(1.04); }
.cmh-fair::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 20, 14, .9) 0%, rgba(12, 20, 14, .5) 50%, rgba(12, 20, 14, .1) 100%); }
.cmh-fair__body { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; height: 100%; padding: 16px; }
.cmh-fair__date { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text-heading); font-size: 12px; font-weight: 600; }
.cmh-fair__info { display: grid; justify-items: start; gap: 4px; }
.cmh-fair__title { margin: 0 0 2px; color: var(--text-inverse); font-size: 22px; line-height: 1.2; }
.cmh-fair__title a { color: inherit; }
.cmh-fair__meta { display: flex; align-items: center; gap: 6px; margin: 0; color: rgba(255, 255, 255, .88); font-size: 12px; }
.cmh-fair__btn { margin-top: 8px; }

/* ======================================================================
 * Home 4 – Craft regions map
 * ==================================================================== */
.cmh-regions__layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 24px; align-items: center; }
.cmh-regions__map { --map-land: color-mix(in srgb, var(--color-primary) 22%, var(--bg-card)); border-radius: var(--card-radius); background: var(--bg-subtle); color: var(--text-heading); }
.cmh-regions__pins { position: absolute; inset: 0; }
.cmh-regions .craftmarket-map__label { background: var(--bg-card); box-shadow: var(--shadow-sm); }
.cmh-regions .craftmarket-map__pin[aria-selected="true"] .craftmarket-map__label { background: var(--color-accent); color: var(--color-accent-fg); }
.cmh-region { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--card-radius); background: var(--bg-card); animation: craftmarket-fade .35s ease; }
.cmh-region[hidden] { display: none; }
.cmh-region__photo { position: relative; display: block; min-height: 280px; background: var(--bg-subtle); }
.craftmarket-section .cmh-region__photo img,
.cmh-region__photo .craftmarket-placeholder { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.cmh-region__body { display: grid; align-content: center; gap: 12px; min-width: 0; padding: 22px; }
.cmh-region__title { margin: 0; font-size: 21px; line-height: 1.25; }
.cmh-region__text { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.cmh-region__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.cmh-region__stat { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--color-primary); font-size: 12px; }
.cmh-region__stat span { display: grid; color: var(--text-secondary); }
.cmh-region__stat strong { color: var(--text-heading); font-size: 20px; line-height: 1.1; }

/* ======================================================================
 * Home 4 – Case studies
 * ==================================================================== */
.cmh-cases__track { --scroller-item: 100%; }
.cmh-case {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, .9fr);
  gap: 24px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--card-radius);
  background: var(--bg-card);
}
.cmh-case__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); background: var(--bg-subtle); }
.craftmarket-section .cmh-case__photo img,
.cmh-case__photo .craftmarket-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmh-case__story { display: grid; gap: 14px; min-width: 0; }
.cmh-case__title { margin: 0; font-size: 18px; line-height: 1.3; }
.cmh-case__title a { color: inherit; }
.cmh-case__quote { margin: 0; }
.cmh-case__quote p { margin: 0; color: var(--text-heading); font-size: 15px; line-height: 1.6; }
.cmh-case__who { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.cmh-case__client,
.cmh-case__person { display: grid; gap: 2px; }
.cmh-case__client strong { color: var(--text-heading); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.cmh-case__person strong { color: var(--text-heading); font-size: 14px; }
.cmh-case__who small { color: var(--text-secondary); font-size: 12px; }
.cmh-case__overview { min-width: 0; padding-inline-start: 24px; border-inline-start: 1px solid var(--border-default); }
.cmh-case__overview-title { margin: 0 0 14px; font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.cmh-case__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cmh-case__stats li { display: grid; justify-items: start; gap: 6px; min-width: 0; color: var(--color-primary); }
.cmh-case__stats li > span { display: block; }
.cmh-case__stats strong { color: var(--text-heading); font-size: 20px; line-height: 1.15; }
.cmh-case__unit { margin-inline-start: 4px; color: var(--text-secondary); font-size: 12px; }
.cmh-case__stats small:not(.cmh-case__unit) { display: block; color: var(--text-secondary); font-size: 11px; }

@media (max-width: 1100px) {
  .cmh-categories__grid,
  .cmh-categories__grid--5,
  .cmh-categories__grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cmh-logistics__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmh-logistics__step:nth-child(2n) .cmh-logistics__arrow { display: none; }
  .cmh-case { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .cmh-case__overview { grid-column: 1 / -1; padding: 14px 0 0; border: 0; border-top: 1px solid var(--border-default); }
}

@media (max-width: 960px) {
  .cmh-hero4__inner { grid-template-columns: minmax(0, 1fr); padding-block: 32px; }
  .cmh-hero4__text { order: -1; }
  .cmh-hero4__media::after { background: linear-gradient(180deg, rgba(16, 28, 20, .55) 0%, rgba(16, 28, 20, .75) 45%, rgba(16, 28, 20, .9) 100%); }
  .cmh-hero4__form { max-width: 560px; }
  .cmh-suppliers__grid,
  .cmh-fairs__grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cmh-suppliers__grid::-webkit-scrollbar,
  .cmh-fairs__grid::-webkit-scrollbar { display: none; }
  .cmh-suppliers__grid > li,
  .cmh-fairs__grid > li { flex: 0 0 min(340px, 82%); scroll-snap-align: start; }
  .cmh-regions__layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .cmh-categories__grid,
  .cmh-categories__grid--3,
  .cmh-categories__grid--5,
  .cmh-categories__grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 600px) {
  .cmh-hero4__title { font-size: clamp(2.125rem, 10vw, 2.75rem); }
  .cmh-hero4__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
  .cmh-hero4 .cmh-stats__icon { display: none; }
  .cmh-ticker__item { padding: 8px 16px; font-size: 12px; }
  .cmh-category { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); min-height: 76px; }
  .cmh-category__body { padding: 10px 12px; }
  .cmh-category__name { font-size: 13px; }
  .cmh-logistics__steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cmh-logistics__step { padding: 12px; border-radius: var(--radius-md); background: var(--bg-subtle); }
  .cmh-logistics__icon { width: 52px; height: 52px; }
  .cmh-logistics__arrow { display: none; }
  .cmh-region { grid-template-columns: minmax(0, 1fr); }
  .cmh-region__photo { min-height: 0; aspect-ratio: 16 / 9; }
  .cmh-region__body { padding: 18px; }
  .cmh-region__btn { width: 100%; justify-content: center; }
  .craftmarket-map__label { padding: 2px 6px; }
  .cmh-regions .craftmarket-map__label span { display: none; }
  .cmh-case { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 12px; }
  .cmh-case__stats strong { font-size: 18px; }
}

/* ======================================================================
 * Responsive
 * ==================================================================== */
@media (max-width: 1100px) {
  .cmh-bento__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmh-artisans__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmh-reviews__grid { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
  .cmh-wholesale__inner { grid-template-columns: minmax(0, 1fr); }
  .cmh-wholesale__bg::after { background: rgba(43, 61, 44, .86); }
}

@media (max-width: 960px) {
  .cmh-hero1__inner { grid-template-columns: minmax(0, 1fr); }
  .cmh-hero1__media { min-height: 0; aspect-ratio: 4 / 3; }
  .cmh-process__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .cmh-process__list::before { content: none; }
  .cmh-gallery__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cmh-tabs { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .cmh-hero1__title { font-size: clamp(2.25rem, 11vw, 3rem); }
  .cmh-hero1__lead { font-size: 15px; }
  .cmh-hero1__media { aspect-ratio: 1; }
  .cmh-hero1__card { top: auto; bottom: 12px; inset-inline: 12px; }
  .cmh-hero1__card .craftmarket-float-card { width: auto; }
  .cmh-stats { display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 16px 12px; } /* one even row instead of 2 + 1 */
  .cmh-stats__icon { display: none; }
  .cmh-stats__value { font-size: 20px; }
  /* Hero on phones: one-line kicker, full-width button with the story link centred under it,
     stats as three equal columns split by hairlines. */
  .cmh-hero1__text { gap: 16px; }
  .cmh-hero1__text .craftmarket-kicker { font-size: 10.5px; letter-spacing: .1em; line-height: 1.6; }
  .cmh-hero1__actions { display: grid; width: 100%; justify-items: center; gap: 14px; margin-top: 4px; }
  .cmh-hero1__actions .craftmarket-btn { width: 100%; justify-content: center; }
  .cmh-hero1__story-icon { width: 36px; height: 36px; }
  .cmh-hero1__text .cmh-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 4px; padding-top: 18px; }
  .cmh-hero1__text .cmh-stats__item { justify-content: center; padding-inline: 6px; border-inline-start: 1px solid var(--border-default); text-align: center; }
  .cmh-hero1__text .cmh-stats__item:first-child { border-inline-start: 0; }
  .cmh-hero1__text .cmh-stats__value { font-size: 22px; }
  .cmh-hero1__text .cmh-stats__label { font-size: 11px; line-height: 1.35; }
  .cmh-bento__grid { grid-template-columns: minmax(0, 1fr); }
  .cmh-bento__story { min-height: 300px; }
  .cmh-tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .cmh-tabs .craftmarket-pill { flex: none; }
  /* Process: one row per step – photo left (number on its corner), text right. */
  .cmh-process__list { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .cmh-process__list { --cmh-process-size: 80px; --cmh-process-ring: 6px; }
  .cmh-process__step { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 16px; text-align: start; }
  .cmh-process__num { bottom: 4%; inset-inline-start: -4%; width: 28px; height: 28px; font-size: 11px; }
  .cmh-process__body { justify-items: start; max-width: none; }
  .cmh-artisans__grid { gap: 12px; }
  .cmh-wholesale__features { display: grid; gap: 12px; }
  .cmh-wholesale__features li { display: flex; align-items: center; gap: 14px; width: auto; max-width: none; font-size: 14px; }
  .cmh-wholesale__icon { flex: none; width: 42px; height: 42px; }
  .cmh-calc { padding: 18px; }
  .cmh-calc__fields { grid-template-columns: minmax(0, 1fr); }
  .cmh-calc__foot .craftmarket-btn { width: 100%; justify-content: center; }
  .cmh-review.has-image { grid-template-columns: minmax(0, 1fr) 84px; }
  .cmh-gallery__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cmh-gallery__item { flex: 0 0 42%; scroll-snap-align: start; }
}

/* Home 3 on phones: shorter hero card, a four-card collection, compact features. */
@media (max-width: 600px) {
  .cmh-rooms__intro .craftmarket-kicker { font-size: 10.5px; letter-spacing: .1em; }
  .cmh-rooms__title { font-size: 28px; }
  .cmh-rooms__lead { font-size: 14px; }
  .cmh-rooms__features { gap: 14px 10px; padding-top: 16px; }
  .cmh-rooms__features li { font-size: 12px; }
  .cmh-collection .cmh-products__grid > :nth-child(n+5) { display: none; }
  .cmh-collection__head { gap: 12px; }
  .cmh-estimator__features { gap: 12px 10px; padding-top: 20px; }
  .cmh-estimator__features li { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; font-size: 12px; }
  .cmh-estimator__icon { width: 40px; height: 40px; }
  .cmh-estimator__icon svg { width: 18px; height: 18px; }
  .cmh-village__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .cmh-village { gap: 14px; }
  .cmh-village__body { padding: 0 4px 4px; }
}
