/* ==========================================================================
   Modern Oriental — Zellige atelier
   Original studio layout. Engine / room preview internals unchanged.
   ========================================================================== */

body.page-configurator {
  background: var(--bg-16, #F9F9F6);
  --primary: #b7cf38;
  --secondary: #000;
  --mo-teal: #b7cf38;
  --mo-gold: #000;
}

body.page-configurator .tf-btn.btn-light-2:not(:hover),
body.page-configurator .form-subcribe-v2 .btn-action,
body.page-configurator .form-subcribe-v2 .btn-action:hover {
  color: var(--secondary);
}

body.page-configurator .tf-footer .cl-text-12 {
  color: var(--primary) !important;
}

body.page-configurator .tf-header.header-v4.header-blue.header-abs {
  position: sticky !important;
  top: 16px !important;
  z-index: 300;
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.3, 1), opacity 0.3s ease;
  will-change: transform;
}

body.page-configurator .tf-header.is-nav-hidden,
body.page-configurator .tf-header.header-v4.header-blue.header-abs.is-nav-hidden {
  transform: translate3d(0, calc(-100% - 40px), 0) !important;
  opacity: 0;
  pointer-events: none;
}

body.page-configurator.is-nav-away .zc-card__head.header-sticky {
  top: 16px;
}

body.page-configurator.is-nav-away .zc-room {
  top: 12vh;
}

.zellige-configurator {
  color: var(--text, #606060);
  background: var(--bg-16, #F9F9F6);
  padding-bottom: 80px;
}

.zellige-configurator a { color: inherit; }

/* Product-detail layout: preview left, choices right */
.zc-pdp-crumb {
  padding-top: 24px;
  padding-bottom: 8px;
}

.zc-pdp {
  padding-bottom: 80px;
}

.zc-pdp__media {
  padding-bottom: 40px;
}

.zc-pdp__info.sticky-top {
  top: 96px;
}

body.page-configurator.is-nav-away .zc-pdp__info.sticky-top {
  top: 16px;
}

.zc-view {
  margin-bottom: 16px;
}

.zc-view[hidden] {
  display: none !important;
}

.zc-view__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.zc-view__kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mo-gold);
}

.zc-view__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mo-teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zc-view__fs {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 78, 86, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.zc-view__fs img {
  width: 12px;
  height: auto;
}

.zc-pdp .coloriser,
.zc-pdp #MainDraw {
  max-height: min(48vh, 520px);
  border-radius: 8px;
  border: 0;
  background: var(--bg-16, #F9F9F6);
}

.zc-pdp .show_sim .simulation_display {
  border-radius: 8px;
}

.zc-view-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.zc-view-grid .zc-view--wide {
  grid-column: 1 / -1;
}

.zc-view-grid .zc-view {
  margin-bottom: 0;
}

.zc-view__frame {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-16, #F9F9F6);
}

.zc-view__frame--repeat {
  aspect-ratio: 1;
  position: relative;
}

.zc-view__frame--wall,
.zc-view__frame--closeup {
  aspect-ratio: 1.2;
  min-height: 140px;
  background-color: #e8e3d8;
}

.zc-add-view {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
}

.zc-add-view__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-5, #737373);
  width: 100%;
}

.zc-add-view__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zc-add-view__btn {
  border: 1px solid var(--line-5, #D4D4D4);
  background: #fff;
  color: var(--mo-teal);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.zc-add-view__btn.is-on,
.zc-add-view__btn:hover {
  border-color: var(--mo-gold);
  background: var(--bg-16, #F9F9F6);
}

.zc-pdp__stage-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.zc-pdp__stage-tools .tf-btn {
  height: 40px;
  font-size: 11px;
  padding-left: 14px;
  padding-right: 14px;
}

.zc-pdp__hint {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-5, #737373);
}

.zc-pdp__info {
  padding-bottom: 40px;
}

.zc-pick--first {
  border-top: 0;
  padding-top: 0;
}

.zc-info {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line, #EFEFEF);
}

.zc-pdp__heading .product-infor-name {
  color: var(--mo-teal) !important;
  margin-bottom: 8px;
}

.zc-pdp__sku {
  font-size: 13px;
  color: var(--text-5, #737373);
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.zc-pdp__sku [data-zc-shape-info] {
  color: var(--mo-teal);
  font-weight: 600;
}

.zc-pdp .tf-product-variant {
  display: grid;
  gap: 0;
}

.zc-pick {
  padding: 20px 0;
  border-top: 1px solid var(--line, #EFEFEF);
}

.zc-pick__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-5, #737373);
}

.zc-pdp .variant-picker-label-value {
  color: var(--mo-teal);
  font-weight: 600;
}

.zc-pdp .zc-glaze-now {
  margin-left: auto;
  padding: 4px 8px;
}

.zc-pdp .zc-search--inline {
  max-width: none;
}

.zc-pdp .zc-motif-grid {
  grid-template-columns: repeat(4, 1fr);
  max-height: 280px;
}

.zc-pdp .gamme--rows {
  max-height: 148px;
}

.zc-pdp__used {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-5, #737373);
}

.zc-finish-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zc-pdp .tf-product-info-wrap .variant-size .size-btn:not(.select-item) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 108px;
  height: auto;
  padding: 10px 14px;
  cursor: pointer;
}

.zc-pdp .zc-finish-btns .size-btn small {
  font-size: 11px;
  color: var(--text-5, #737373);
  font-weight: 400;
}

.zc-pdp .zc-finish-btns .size-btn.active small {
  color: inherit;
  opacity: 0.8;
}

.zc-surface-qty {
  min-width: 110px;
  position: relative;
}

.zc-surface-qty__unit {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-5, #737373);
  pointer-events: none;
}

.zc-pdp .zc-surface-qty .quantity-product {
  width: 110px;
  height: 48px;
  padding-left: 36px;
  text-align: left;
  border: 1px solid var(--line-5, #D4D4D4);
  border-radius: 8px;
  background: #fff;
}

.zc-pdp .group-action .tf-btn {
  height: 48px;
  flex-direction: column;
  gap: 0;
}

.zc-pdp .tf-product-extra-link button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.zc-pdp .quote-form[hidden] {
  display: none !important;
}

.zc-pdp .quote-form {
  margin: 16px 0;
}

@media (max-width: 767px) {
  .zc-pdp__info.sticky-top {
    position: relative !important;
    top: 0 !important;
  }
  .zc-view-grid {
    grid-template-columns: 1fr;
  }
  .zc-pdp .zc-quote-form {
    grid-template-columns: 1fr;
  }
}

/* Intro */
.page-configurator .zc-steps .collection-v07 .cls-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

@media (min-width: 1200px) {
  .page-configurator .zc-steps .collection-v07 .cls-image img {
    height: 640px;
  }
}

@media (max-width: 991px) {
  .page-configurator .zc-steps.flat-spacing-3 {
    padding-top: 8px;
    padding-bottom: 28px;
  }
  .page-configurator .zc-steps .sect-heading-v2 {
    margin-bottom: 20px;
  }
  .page-configurator .zc-steps .sect-heading-v2 h2 {
    font-size: 28px;
    letter-spacing: 0.02em;
  }
  .page-configurator .zc-steps .sect-heading-v2 .s-desc {
    font-size: 14px;
    padding: 0 8px;
  }
  .page-configurator .zc-steps .collection-v07 .cls-image img {
    height: 420px;
  }
  .page-configurator .zc-steps .collection-v07 .cls_name {
    font-size: 22px;
  }
  .page-configurator .zc-steps .collection-v07 .cls_desc {
    margin-bottom: 0;
    font-size: 13px;
  }
  .page-configurator .zc-steps .collection-v07 .tf-list {
    display: none;
  }
}

@media (max-width: 575px) {
  .page-configurator .zc-steps .collection-v07 .cls-image img {
    height: 320px;
  }
}

.zc-page-intro .sect-heading-v2 {
  margin-bottom: 32px;
}

.zc-page-intro .sect-heading-v2 p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.zc-how {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.zc-how__item {
  background: #fff;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zc-how__n {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mo-gold);
}

.zc-how__label {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--mo-teal);
  margin: 0;
}

.zc-how__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-5, #737373);
}

/* Studio */
.zc-studio {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(240px, 300px);
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 40px;
  align-items: start;
  overflow: visible;
}

.zc-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.zc-room {
  position: sticky;
  top: 20vh;
  align-self: start;
  z-index: 6;
  max-height: calc(100vh - 22vh);
  overflow-y: auto;
  transition: top 0.35s ease;
}

.zc-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: visible;
}

.zc-card__head.header-sticky {
  position: sticky;
  top: 96px;
  z-index: 5;
  background: #fff;
  margin: -20px -20px 16px;
  padding: 20px 20px 12px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 16px -12px rgba(0, 0, 0, 0.18);
  transition: top 0.35s ease;
}

.zc-card--stage { padding: 20px 20px 16px; }

.zc-card__kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mo-gold);
  margin: 0 0 6px;
}

.zellige-configurator .zc-card__title {
  font-size: 20px !important;
  line-height: 1.25 !important;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--mo-teal);
  margin: 0 0 8px;
  background: none;
  -webkit-text-fill-color: var(--mo-teal);
}

.zc-card__help {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-5, #737373);
  margin: 0 0 16px;
}

.zc-search {
  display: block;
  margin-bottom: 14px;
}

.zc-search__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-5, #737373);
  margin-bottom: 6px;
}

.zc-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-5, #D4D4D4);
  border-radius: 8px;
  background: var(--bg-16, #F9F9F6);
  font-family: inherit;
  font-size: 14px;
}

.zc-search input:focus {
  outline: 1px solid var(--mo-gold);
  border-color: var(--mo-gold);
}

/* Family tabs + motif grid */
.zc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.zc-tab {
  border: 0;
  background: var(--bg-16, #F9F9F6);
  color: var(--mo-teal);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.zc-tab.is-active {
  background: var(--mo-teal);
  color: var(--mo-gold);
}

.zc-motif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
}

.zc-motif {
  border: 1px solid transparent;
  background: var(--bg-16, #F9F9F6);
  border-radius: 10px;
  padding: 8px 6px 6px;
  cursor: pointer;
  text-align: center;
}

.zc-motif:hover,
.zc-motif.is-active {
  border-color: var(--mo-gold);
  background: #fff;
}

.zc-motif__frame {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.zc-motif__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.zc-motif__ref {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mo-teal);
}

.zc-empty {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-5);
  margin: 8px 0;
}

/* Glaze */
.zc-glaze-now {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px 12px;
  background: var(--bg-16, #F9F9F6);
  border-radius: 10px;
  flex-shrink: 0;
}

.zc-search--inline {
  max-width: 240px;
  margin-bottom: 10px;
}

.gamme {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-16, #F9F9F6);
}

.gamme--rows {
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  max-height: 112px;
  margin-bottom: 16px;
  gap: 3px;
}

.zc-stage__paint {
  border-top: 1px solid var(--line, #EFEFEF);
  padding-top: 16px;
}

.zc-stage__paint-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.zc-stage__paint-head .zc-card__help {
  margin: 0;
  flex: 1;
  min-width: 180px;
}

.zc-glaze-now__chip {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.zc-glaze-now__name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mo-teal);
}

.zc-glaze-now__ref {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-5);
}

.gamme img,
.gamme .gamme-swatch {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0;
  display: block;
}

.gamme img:hover,
.gamme img.active,
.gamme .gamme-swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 1px var(--mo-teal);
}

/* Stage */
.zc-stage__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.zc-stage__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zc-stage__tools .tf-btn {
  height: 40px;
  font-size: 11px;
  padding-left: 14px;
  padding-right: 14px;
}

.zc-stage__tools .tf-btn img,
.zc-stage__tools .tf-btn svg {
  height: 14px;
  width: auto;
}

.canvas-area {
  position: relative;
  width: 100%;
}

.coloriser,
#MainDraw {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: min(62vh, 640px);
  margin: 0 auto;
  border: 1px solid var(--line-5, #D4D4D4);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-16, #F9F9F6);
}

.canvas_off {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: var(--bg-16, #F9F9F6);
  transition: opacity 0.3s;
}

.canvas_off p {
  margin: 0;
  max-width: 280px;
  color: var(--text-5);
}

.canvas_off .font-anton {
  font-size: 22px;
  color: var(--mo-teal);
  text-transform: uppercase;
}

.canvas_off.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.coloriser.has-motif .zc-svg-host {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.zc-svg-host {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.zellige-svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.zellige-piece {
  cursor: pointer;
  transition: filter 0.15s;
  pointer-events: fill;
}

.zellige-piece[data-uncolored="true"] {
  cursor: crosshair;
  pointer-events: all;
}

.zellige-piece:hover {
  filter: brightness(1.08);
  stroke: var(--mo-gold);
  stroke-width: 2;
}

.zc-stage__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-5);
}

.zc-stage__meta [data-zc-shape-info] {
  color: var(--mo-teal);
  font-weight: 600;
}

.box_right_2 { display: none; }

.zc-view [data-zc-panel-tile].panels,
.zc-view__frame--repeat .panels {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 2), 1fr);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  left: auto;
}

.panels--2 { --grid-cols: 2; }
.panel-cell { aspect-ratio: 1; overflow: hidden; position: relative; }
.panel-cell svg,
.panel-offset svg { width: 100%; height: 100%; display: block; }
.panels--offset { overflow: hidden; }
.panels--offset .panel-cell { overflow: visible; }
.panel-offset { width: 100%; height: 100%; }

.zc-engine-host {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.zc-custom-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 6), 1fr);
  grid-template-rows: repeat(var(--grid-rows, 6), 1fr);
  gap: 1px;
  width: 100%;
  height: 100%;
}

.custom-grid-cell {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.custom-grid-cell svg { width: 100%; height: 100%; display: block; }
.custom-grid-cell.is-selected { box-shadow: inset 0 0 0 2px var(--mo-teal); }
.coloriser.has-motif .zc-custom-grid { position: relative; z-index: 3; }

/* Room */
.show_sim { width: 100%; }

.simulation_display {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  aspect-ratio: 0.8;
}

#kitchen_display.simulation_display { aspect-ratio: 1.48148; }
#salon_display.simulation_display { aspect-ratio: 1.79167; }
#bathroom_display.simulation_display { aspect-ratio: 0.8887; }
.simulation_display[hidden] { display: none !important; }

.room-preview-host,
.room-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.room-preview { overflow: hidden; }

.room-base,
.room-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.room-base { z-index: 0; }

.zellige-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.zellige-layer {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-position: center center;
  pointer-events: none;
}

.room-overlay { z-index: 2; }

.room-debug-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.room-debug-svg { width: 100%; height: 100%; }

.preview {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
}

.preview img { width: 16px; height: auto; }
.preview:hover { background: rgba(0, 78, 86, 0.85); }

.zc-rooms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.zc-rooms__opt {
  border: 1px solid transparent;
  background: var(--bg-16, #F9F9F6);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  color: var(--mo-teal);
}

.zc-rooms__opt img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
}

.zc-rooms__opt.active,
.zc-rooms__opt:hover {
  border-color: var(--mo-gold);
  background: #fff;
}

.samplesButton {
  width: 100%;
  height: auto;
  min-height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.zc-fineprint {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-5);
}

/* Order */
.zc-order {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.zc-order__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.zc-dl {
  margin: 0 0 16px;
}

.zc-dl .flex,
.zc-finish {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 10px;
}

.zc-dl dt { color: var(--text-5); }
.zc-dl dd { margin: 0; color: var(--mo-teal); }

.zc-order__price-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-5);
  margin: 8px 0 12px;
}

.zc-finish label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.zc-finish input.checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #707070;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.zc-finish input.checkbox:checked:before {
  content: "\2714";
  position: absolute;
  inset: 0;
  background: var(--mo-teal);
  color: var(--mo-gold);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.zc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.zc-field span { font-weight: 600; color: var(--mo-teal); }
.zc-field small { color: var(--text-5); font-size: 12px; }

.zc-field input {
  height: 44px;
  border: 1px solid var(--line-5);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 16px;
  max-width: 200px;
}

.verspanier .tf-btn {
  width: 100%;
  max-width: 320px;
  height: 48px;
}

.quote-form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line, #EFEFEF);
}

.zc-quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.zc-quote-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.zc-quote-form input,
.zc-quote-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-5);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}

.zc-quote-form textarea { min-height: 88px; resize: vertical; }
.zc-quote-form__wide { grid-column: 1 / -1; }

/* Modal */
body.zc-room-modal-open { overflow: hidden; }

.zc-room-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.zc-room-modal[hidden] { display: none !important; }

.zc-room-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.zc-room-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.zc-room-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  justify-content: center;
    align-items: center;
}

.zc-room-modal__scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 1350;
  background: #111;
  overflow: hidden;
}

.zc-room-modal__scene .room-preview-host {
  position: relative;
  width: 100%;
  height: 100%;
}

.zc-room-modal__tabs {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  justify-content: center;
  border-top: 1px solid #eee;
}

.zc-room-modal__tabs button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.zc-room-modal__tabs button.is-active {
  background: var(--mo-teal);
  border-color: var(--mo-teal);
  color: var(--mo-gold);
}

.zc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--mo-teal);
  color: var(--mo-gold);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 9999;
  pointer-events: none;
}

.zc-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.ref-dropdown[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .zc-studio {
    grid-template-columns: 1fr 1fr;
  }
  .zc-room {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    overflow: visible;
  }
  .zc-how { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .zc-studio,
  .zc-order__grid,
  .zc-quote-form {
    grid-template-columns: 1fr;
  }
  .zc-how { grid-template-columns: 1fr; }
  .gamme,
  .gamme--rows { grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); }
}

/* Mobile / tablet: sticky drawing header + motif/colour sheets + paint coach */
.zc-mobile-pick,
.zc-sheet,
.zc-paint-coach {
  display: none;
}

.zc-sheet[hidden],
.zc-paint-coach[hidden] {
  display: none !important;
}

.zellige-configurator .zc-view__head {
  position: relative;
  z-index: auto;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 991px) {
  .zellige-configurator {
    padding-bottom: 48px;
  }

  .zc-pdp-crumb {
    padding-top: 8px;
    padding-bottom: 4px;
  }

  .zc-pdp {
    padding-bottom: 48px;
  }

  .zc-pdp__media {
    padding-bottom: 16px;
  }

  .page-configurator:not(.page-tableware) .zc-pdp .tf-product-variant .zc-pick {
    display: none;
  }

  .zc-view--draw .zc-view__head--draw .zc-view__kicker,
  .zc-view--draw .zc-view__head--draw .zc-view__title {
    display: none;
  }

  .zc-view--draw .zc-view__head--draw {
    position: sticky;
    top: calc(16px + 62px);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 -12px 12px;
    padding: 10px 12px 12px;
    background: color-mix(in srgb, var(--bg-16, #F9F9F6) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 18px -14px rgba(0, 0, 0, 0.28);
  }

  .zc-mobile-pick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1 1 100%;
    gap: 8px;
    width: 100%;
  }

  .zc-mobile-pick__btn {
    min-height: 44px;
    border: 1px solid var(--mo-teal);
    background: #fff;
    color: var(--mo-teal);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1.2;
    margin: auto;
    justify-content: center;
    align-items: center;

  }

  .zc-mobile-pick__btn:active {
    background: var(--mo-teal);
    color: var(--mo-gold);
  }

  .zc-pdp .coloriser,
  .zc-pdp #MainDraw {
    max-height: min(58dvh, 520px);
    border-radius: 12px;
  }

  .zc-svg-host {
    padding: 12px;
  }

  .zc-pdp__stage-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .zc-pdp__stage-tools .tf-btn {
    width: 100%;
    height: 42px;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.04em;
    padding-left: 8px;
    padding-right: 8px;
  }

  .zc-pdp__hint {
    font-size: 12px;
    margin-top: 8px;
  }

  .zc-view-grid {
    gap: 16px;
    margin-top: 20px;
  }

  .zc-add-view {
    margin-top: 12px;
  }

  .zc-pdp__info {
    padding-bottom: 24px;
  }

  .zc-info {
    margin-top: 0;
    padding-top: 4px;
  }

  .zc-pdp__heading .product-infor-name {
    font-size: 26px !important;
    line-height: 1.15 !important;
  }

  body.zc-sheet-open,
  body.zc-coach-on {
    overflow: hidden;
  }

  .zc-sheet:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 520;
  }

  .zc-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
  }

  .zc-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(84dvh, 720px);
    background: #fff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.16);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .zc-sheet__grab {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #d4d4d4;
    margin: 10px auto 0;
    flex-shrink: 0;
  }

  .zc-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 10px;
    border-bottom: 1px solid var(--line, #EFEFEF);
  }

  .zc-sheet__head h6 {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mo-teal);
  }

  .zc-sheet__close {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--mo-teal);
    cursor: pointer;
  }

  .zc-sheet__hint {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-5, #737373);
  }

  .zc-sheet__body {
    overflow-y: auto;
    padding: 16px 16px 32px;
    -webkit-overflow-scrolling: touch;
  }

  .zc-sheet .zc-motif-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-height: none;
  }

  .zc-sheet .zc-motif {
    padding: 8px;
  }

  .zc-sheet [data-zc-mobile-colors] {
    max-height: none;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 8px;
    padding: 4px 0;
    background: transparent;
  }

  .zc-sheet [data-zc-mobile-colors] img,
  .zc-sheet [data-zc-mobile-colors] .gamme-swatch {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 8px;
  }

  .zc-paint-coach:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: none;
  }

  .zc-paint-coach__bar {
    position: absolute;
    background: rgba(0, 0, 0, 0.86);
    pointer-events: auto;
  }

  .zc-paint-coach__spot {
    position: fixed;
    top: var(--spot-t, 20vh);
    left: var(--spot-l, 12px);
    width: var(--spot-w, calc(100% - 24px));
    height: var(--spot-h, 40vh);
    border-radius: 12px;
    outline: 2px solid var(--mo-gold);
    box-shadow: 0 0 0 2px rgba(185, 163, 123, 0.35);
    pointer-events: none;
  }

  .zc-paint-coach__pointer {
    position: fixed;
    top: var(--spot-cy, 50%);
    left: var(--spot-cx, 50%);
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
    z-index: 515;
    pointer-events: none;
  }

  .zc-paint-coach__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(185, 163, 123, 0.35);
    animation: zc-coach-pulse 1.4s ease-out infinite;
  }

  .zc-paint-coach__finger {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px var(--mo-gold);
  }

  .zc-paint-coach__msg,
  .zc-paint-coach__skip {
    pointer-events: auto;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 516;
  }

  .zc-paint-coach__msg {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    width: min(86vw, 360px);
    text-align: center;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.02em;
  }

  .zc-paint-coach__skip {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }
}

@media (max-width: 767px) {
  .zc-view--draw .zc-view__head--draw {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .zc-pdp .coloriser,
  .zc-pdp #MainDraw {
    max-height: min(52dvh, 420px);
  }

  .zc-sheet .zc-motif-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .zc-mobile-pick__btn {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .zc-pdp__stage-tools .tf-btn span {
    white-space: nowrap;
  }
}

@keyframes zc-coach-pulse {
  0% { transform: scale(0.55); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}
