.home-showroom {
  --showroom-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --showroom-render-height: 240px;
  --showroom-description-height: 216px;
  position: relative;
  isolation: isolate;
  padding-block: 56px;
  overflow: hidden;
  background: #fff;
}

.home-showroom::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background: linear-gradient(
    125deg,
    transparent 12%,
    #f4f8fc 12%,
    #f4f8fc 20%,
    transparent 20%,
    transparent 48%,
    #f5f9fd 48%,
    #f5f9fd 57%,
    transparent 57%,
    transparent 80%,
    #f4f8fc 80%,
    #f4f8fc 89%,
    transparent 89%
  );
}

.showroom-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.showroom-intro {
  flex: 1;
  min-width: 0;
}

.showroom-intro .eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--blue);
  letter-spacing: 0.2em;
}

.showroom-heading h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.showroom-heading p {
  margin: 0;
  max-width: 66ch;
  color: #526b82;
  font-size: 16px;
  line-height: 1.8;
}

.showroom-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 27px;
  gap: 16px;
  flex-shrink: 0;
}

.showroom-tabs {
  display: flex;
  position: relative;
  gap: 26px;
}

.showroom-tabs button {
  position: relative;
  padding: 8px 0 14px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms;
}

.showroom-tabs button + button::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 12px;
  background: #c6d3df;
  left: -14px;
  top: 14px;
}

.showroom-tabs button:hover,
.showroom-tabs button[aria-selected="true"] {
  color: var(--blue);
}

.showroom-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 14px);
  width: 28px;
  height: 2px;
  background: var(--blue);
}

.showroom-tabs.has-indicator button::after {
  display: none;
}

.showroom-tab-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--blue);
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.showroom-all,
.showroom-detail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.showroom-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 260ms var(--showroom-ease);
}

.showroom-all:hover .showroom-arrow,
.showroom-product:hover .showroom-arrow,
.showroom-product:focus-visible .showroom-arrow {
  transform: translateX(5px);
}

.showroom-floor {
  position: relative;
  padding-top: 24px;
  background: linear-gradient(180deg, #fff 0%, #fff 52%, #f5f9fc 76%, #fff 100%);
}

.showroom-track {
  display: flex;
  min-height: calc(var(--showroom-render-height) + var(--showroom-description-height));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #a3b5c8 transparent;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 30px;
  overscroll-behavior-x: contain;
}

.showroom-track[hidden] {
  display: none;
}

.showroom-product {
  flex: 0 0 25%;
  min-width: 0;
  scroll-snap-align: start;
  color: var(--ink);
  padding: 0 10px;
}

.showroom-render {
  height: var(--showroom-render-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px 20px;
}

.showroom-render img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  transition: transform 260ms ease-out,
  opacity 160ms ease-out;
}

.showroom-render.is-loading {
  background: rgba(235, 243, 249, 0.45);
}

.showroom-render.is-loading img {
  opacity: 0;
}

.showroom-description {
  position: relative;
  height: var(--showroom-description-height);
  padding: 0 12px;
}

.showroom-number {
  display: block;
  color: #bacbdd;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.showroom-description h3 {
  margin: 0 0 12px;
  height: 54px;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 180ms;
}

.showroom-description::after {
  content: "";
  position: absolute;
  top: 110px;
  left: 12px;
  width: 24px;
  height: 2px;
  background: var(--blue);
}

.showroom-description p {
  margin: 0 0 10px;
  height: 50px;
  color: #526b82;
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showroom-product:hover h3,
.showroom-product:focus-visible h3 {
  color: var(--blue);
}

.showroom-product:focus-visible,
.showroom-tabs button:focus-visible,
.showroom-all:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  border-radius: 2px;
}

.showroom-product ::selection {
  background: #dcecff;
  color: var(--ink);
}

.showroom-empty {
  min-height: calc(var(--showroom-render-height) + var(--showroom-description-height));
  display: grid;
  place-items: center;
  color: var(--muted);
}

.showroom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.showroom-control-buttons {
  display: flex;
  gap: 12px;
}

.showroom-position {
  font-size: 13px;
  color: #526b82;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.showroom-controls[hidden] {
  display: none;
}

.showroom-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.showroom-controls button:hover:not(:disabled) {
  color: var(--blue);
  border-color: var(--blue);
}

.showroom-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .showroom-product:hover .showroom-render img {
    transform: scale(1.015);
  }
}

@media (max-width: 1100px) {
  .showroom-heading {
    gap: 24px;
  }

  .showroom-navigation {
    padding-top: 23px;
  }

  .showroom-tabs {
    gap: 22px;
  }

  .showroom-tabs button {
    font-size: 14px;
  }

  .showroom-tabs button + button::before {
    left: -12px;
  }
}

@media (max-width: 1000px) {
  .showroom-heading {
    display: block;
  }

  .showroom-navigation {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
  }

  .showroom-product {
    flex-basis: 50%;
  }

  .home-showroom {
    --showroom-render-height: 280px;
  }

  .showroom-controls[hidden] {
    display: flex;
    visibility: hidden;
  }
}

@media (max-width: 700px) {
  .home-showroom {
    --showroom-render-height: 240px;
    --showroom-description-height: 248px;
    padding-block: 40px;
  }

  .showroom-intro .eyebrow {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .showroom-heading p {
    font-size: 15px;
  }

  .showroom-navigation {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 20px;
  }

  .showroom-tabs {
    gap: 0;
    width: 100%;
  }

  .showroom-tabs button {
    flex: 1 0 auto;
    padding: 10px 4px 14px;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    max-width: none;
  }

  .showroom-tabs button + button::before {
    left: 0;
    top: 15px;
  }

  .showroom-all {
    align-self: flex-end;
    min-height: 44px;
    font-size: 13px;
  }

  .showroom-floor {
    padding-top: 20px;
  }

  .showroom-track {
    scroll-padding-inline: 20px;
  }

  .showroom-product {
    flex-basis: 88%;
    padding-inline: 8px;
  }

  .showroom-description {
    padding-inline: 10px;
  }

  .showroom-description::after {
    left: 10px;
  }

  .showroom-description h3 {
    font-size: 19px;
  }

  .showroom-description p {
    font-size: 16px;
    height: 84px;
    -webkit-line-clamp: 3;
  }

  .showroom-detail {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showroom-arrow,
  .showroom-render img,
  .showroom-tab-indicator,
  .showroom-tabs button,
  .showroom-description h3 {
    transition: none;
  }

  .showroom-product:hover .showroom-render img {
    transform: none;
  }
}
