.sha-floors-selector {
  padding: 0 0 28px;
}

.sha-floors-selector__hero {
  padding: 0 18px 6px;
}

.sha-hero-copy--selector {
  text-align: center;
  margin-bottom: 6px;
}

.sha-floors-selector__title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.15rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #0e1117;
}

/* ---------- Categories ---------- */

.sha-floors-category-carousel {
  padding: 0 18px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.sha-floors-category-carousel::-webkit-scrollbar {
  display: none;
}

.sha-floors-category-list {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.sha-floors-category-list .sha-category-pill {
  padding: 6px 14px;
  min-height: 46px;
  font-size: 0.95rem;
  line-height: 1.1;
  white-space: nowrap;
  word-break: keep-all;
  overflow: visible;
  text-align: center;
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .sha-floors-category-carousel {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.sha-category-pill,
.sha-category-more-btn {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid #ebe7df;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 18, 24, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  text-align: center;
  transition: all .16s ease;
}

.sha-category-pill {
  color: #2a2c34;
}

.sha-category-pill__label {
  display: block;
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.18;
  font-weight: 800;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.sha-category-pill.is-active {
  border-color: #2f6f3b;
  background: #f7fbf7;
  color: #2f6f3b;
  box-shadow: 0 12px 24px rgba(47, 111, 59, 0.08);
}

.sha-category-more-btn {
  color: #2f6f3b;
  border-style: solid;
  border-color: #dfe8d8;
  background: #fbfcf9;
  font-weight: 900;
}

.sha-category-more-btn__text {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.sha-all-categories-panel {
  display: none;
}

/* ---------- Materials / Embla ---------- */

#sha-floors-browser {
  position: relative;
  padding: 18px 18px 0;
}

#sha-embla-floors {
  position: relative;
}

#sha-embla-floors-viewport {
  overflow: hidden;
  min-height: 0;
}

#sha-embla-floors-container {
  display: flex;
  align-items: stretch;
}

#sha-embla-floors .sha-embla__slide {
  position: relative;
  flex: 0 0 49%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0 14px;
}

.sha-material-grid-card {
  position: relative;
  width: 100%;
  height: 400px; /* reduced ~13% from 460px */
  border: 2px solid #2f6f3b;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(14, 17, 23, 0.08);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}

.sha-material-grid-card.is-selected {
  box-shadow: 0 18px 36px rgba(14, 17, 23, 0.12);
}

.sha-material-grid-card__media {
  position: relative;
  background: #ece9e3;
  /* media reduced to ~60% to give body more room */
  flex: 0 0 60%;
  min-height: 0;
  overflow: hidden;
}

.sha-material-grid-card__image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.sha-material-grid-card__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #2f6f3b;
  box-shadow: 0 10px 20px rgba(14, 17, 23, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.sha-material-grid-card__zoom-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.sha-material-grid-card__zoom-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.sha-material-grid-card__badge {
  display: none !important;
}

.sha-material-grid-card__body {
  position: relative;
  background: #fff;
  /* body increased to ~40% so title/price/button fit better */
  flex: 0 0 40%;
  min-height: 0;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center content */
  align-items: center; /* horizontally center content */
  text-align: center;
  gap: 10px;
}

.sha-material-grid-card__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center; /* center title/price */
}

.sha-material-grid-card__title {
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  line-height: 1.05;
  font-weight: 900;
  color: #101319;
  margin: 0;
  letter-spacing: -0.02em;
  /* allow up to two lines for longer product names without breaking layout */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sha-material-grid-card__price {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  line-height: 1.1;
  font-weight: 800;
  color: #101319;
}

.sha-material-grid-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch; /* fill available width inside card body */
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #3f8746;
  color: #fff;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(47, 111, 59, 0.14);
}

.sha-material-grid-card__action.is-selected {
  background: #2f6f3b;
}

#sha-floors-browser .sha-embla__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  pointer-events: auto;
  width: 28px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: #22303c;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#sha-floors-browser .sha-embla__nav i {
  font-size: inherit;
  line-height: 1;
}

#sha-floors-browser .sha-embla__nav--prev { left: 12px; }
#sha-floors-browser .sha-embla__nav--next { right: 12px; }

@media (min-width: 768px) {
  #sha-floors-browser .sha-embla__nav {
    width: 34px;
    height: 56px;
    font-size: 24px;
  }

  #sha-floors-browser .sha-embla__nav--prev { left: 18px; }
  #sha-floors-browser .sha-embla__nav--next { right: 18px; }
}

/* ---------- Progress / helper ---------- */

.sha-room-progress {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px 0;
}

.sha-room-progress__dots {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sha-room-progress__dots .dot {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #ececec;
  color: #71747c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
}

.sha-room-progress__dots .dot::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 18px;
  height: 4px;
  background: #e2e2e2;
  transform: translateY(-50%);
}

.sha-room-progress__dots .dot:first-child::before {
  display: none;
}

.sha-room-progress__dots .dot.is-complete,
.sha-room-progress__dots .dot.is-current {
  background: #2f6f3b;
  color: #fff;
}

.sha-room-progress__label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #74767c;
}

.sha-floors-helper {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 18px 0;
  padding: 18px 16px;
  border-radius: 18px;
  background: #f6f9ef;
  border: 1px solid #dfe8d8;
  color: #2f6f3b;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.sha-floors-helper.is-visible {
  display: flex;
}

.sha-floors-helper__icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #2f6f3b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  flex: 0 0 auto;
}

/* ---------- CTA ---------- */

.sha-floors-cta-wrap {
  padding: 18px 18px 0;
}

.sha-bottom-cta__button {
  width: 100%;
  min-height: 84px;
  border: 0;
  border-radius: 24px;
  background: #3f8746;
  color: #fff;
  font-size: clamp(1.25rem, 5vw, 2rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  box-shadow: 0 16px 34px rgba(47, 111, 59, 0.15);
}

/* ---------- Zoom modal ---------- */

.sha-floor-zoom-modal[hidden] {
  display: none;
}

.sha-floor-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.sha-floor-zoom-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.72);
}

.sha-floor-zoom-modal__dialog {
  position: relative;
  width: min(92vw, 760px);
  max-height: 88vh;
  margin: 4vh auto 0;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
  z-index: 2;
}

.sha-floor-zoom-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #1b1f27;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0; /* reset, icon provides visual */
  line-height: 0;
  z-index: 3;
}

.sha-floor-zoom-modal__close svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.sha-floor-zoom-modal__actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.sha-floor-zoom-modal__action {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sha-floor-zoom-modal__action.sha-floor-zoom-modal__select {
  background: #3f8746;
  color: #fff;
  box-shadow: 0 12px 28px rgba(14, 17, 23, 0.08);
}

.sha-floor-zoom-modal__action.sha-floor-zoom-modal__close {
  background: #fff;
  color: #1b1f27;
  border: 1px solid #e6e6e6;
}

.sha-floor-zoom-modal__media {
  background: #f2efe9;
}

.sha-floor-zoom-modal__media img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.sha-floor-zoom-modal__meta {
  padding: 18px 18px 22px;
}

.sha-floor-zoom-modal__title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #101319;
  margin-bottom: 8px;
}

.sha-floor-zoom-modal__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #2f6f3b;
}

body.sha-zoom-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .sha-floors-selector__title {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .sha-category-pill,
  .sha-category-more-btn {
    min-height: 46px;
    border-radius: 999px;
    padding: 6px 14px;
  }

  .sha-category-pill__label,
  .sha-category-more-btn__text {
    font-size: 0.95rem;
  }

  #sha-embla-floors .sha-embla__slide {
    flex-basis: 56%;
    padding: 0 10px;
  }

  #sha-floors-browser {
    padding: 16px 0 0;
  }

  #sha-floors-browser .sha-embla__nav {
    width: 28px;
    height: 48px;
    font-size: 22px;
    top: 50%;
    transform: translateY(-50%);
  }

  #sha-floors-browser .sha-embla__nav--prev {
    left: 12px;
  }

  #sha-floors-browser .sha-embla__nav--next {
    right: 12px;
  }

  .sha-material-grid-card {
    height: 365px; /* reduced ~13% from 420px */
  }

  .sha-material-grid-card__zoom {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .sha-material-grid-card__body {
    padding: 14px 14px 16px;
    gap: 10px;
  }

  .sha-material-grid-card__title {
    font-size: clamp(1.05rem, 4.6vw, 1.45rem);
  }

  .sha-material-grid-card__price {
    font-size: clamp(0.92rem, 3.8vw, 1.08rem);
  }

  .sha-material-grid-card__action {
    min-width: 110px;
    min-height: 42px;
    border-radius: 14px;
    font-size: 0.94rem;
  }

  .sha-bottom-cta__button {
    min-height: 78px;
  }
}

#sha-select-floor-btn,
#sha-save-next {
  display: none !important;
}

/* Hide material card price when product requires hiding the price UI */
.sha-material-grid-card__price {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}