.st-best-colors {
  --st-carousel-gap: 16px;
  --st-carousel-card-w: 220px;
  margin-top: 8px;
  background: #f6f7f9;
  color: #0a2148;
  padding: 40px 0 48px;
  border-top: 1px solid #e6ebf1;
  overflow: visible;
}
.st-main-surface .st-best-colors {
  margin-top: 36px;
}
.st-best-colors__head h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: var(--text-section-title);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: #0a2148;
}
.st-best-colors__head p {
  margin: 0 0 20px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #5a7390;
  max-width: 42rem;
}
.st-best-colors__families-wrap {
  position: relative;
}
.st-best-colors__families {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.st-best-colors__families::-webkit-scrollbar {
  display: none;
}
.st-best-colors__family {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #dce3ec;
  background: #fff;
  color: #425a78;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.st-best-colors__family:hover {
  border-color: #9bb0c9;
}
.st-best-colors__family.is-active {
  border-color: #0a2148;
  box-shadow: 0 0 0 1px #0a2148;
  color: #0a2148;
}
.st-best-colors__family-all {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(#6d96ae, #d5a54b, #ab5148, #6d8c7c, #c4b6d2, #6d96ae);
  flex-shrink: 0;
}
.st-best-colors__family-wheel {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.st-best-colors__family-wheel > span {
  position: absolute;
  inset: 0;
}
.st-best-colors__carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.st-best-colors__footer-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.st-best-colors__footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.st-best-colors__nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #cdd6e2;
  border-radius: 50%;
  background: #eef2f7;
  color: #0a2148;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}
.st-best-colors__nav > i {
  font-size: 1.125rem;
  line-height: 1;
}
.st-best-colors__nav:hover:not(:disabled) {
  border-color: #0a2148;
  background: #0a2148;
  color: #fff;
}
.st-best-colors__nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.st-best-colors__scroller {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 0 14px;
  cursor: grab;
}
.st-best-colors__scroller::-webkit-scrollbar {
  display: none;
}
.st-best-colors__scroller.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.st-best-colors__track {
  display: flex;
  gap: var(--st-carousel-gap);
  margin: 0;
  padding: 2px 0 4px;
  list-style: none;
  width: max-content;
}
.st-best-colors__card {
  flex: 0 0 var(--st-carousel-card-w);
  scroll-snap-align: start;
}
.st-best-colors__card[hidden] {
  display: none;
}
.st-best-colors__card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 278px;
  padding: 22px 20px 20px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-bg);
  color: var(--card-fg);
}
.st-best-colors__card-sofa {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.st-best-colors__card-sofa-frame {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 112%;
  max-height: 82%;
  aspect-ratio: 1024 / 512;
  transform: translateX(-50%);
}
.st-best-colors__card-sofa-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}
.st-best-colors__card-inner:hover .st-best-colors__card-sofa,
.st-best-colors__card-inner:focus-within .st-best-colors__card-sofa,
.st-best-colors__card-inner.is-touch-preview .st-best-colors__card-sofa {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.st-best-colors__card-inner:hover .st-best-colors__card-code,
.st-best-colors__card-inner:focus-within .st-best-colors__card-code,
.st-best-colors__card-inner.is-touch-preview .st-best-colors__card-code {
  opacity: 0;
  transform: translateY(8px);
}
.st-best-colors__card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 500 0.9375rem / 1.3 var(--font-primary);
  z-index: 1;
}
.st-best-colors__card-code {
  margin: auto 0 16px;
  font-size: 0.8125rem;
  color: var(--card-fg-muted, inherit);
  z-index: 1;
  transition: opacity 0.3s, transform 0.3s;
}
.st-best-colors__card-form {
  margin: 0;
  z-index: 1;
}
.st-best-colors__card-form button {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--card-fg) 38%, var(--card-bg));
  background: color-mix(in srgb, var(--card-fg) 12%, var(--card-bg));
  color: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.st-best-colors__card-form button:hover {
  background: var(--card-fg);
  color: var(--card-bg);
  border-color: var(--card-fg);
}
.st-best-colors__hint {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: #7b8fa6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.st-best-colors__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.st-best-colors__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid #0a2148;
  background: #0a2148;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.st-best-colors__link > i {
  font-size: 1rem;
  line-height: 1;
}
.st-best-colors__link:hover {
  border-color: #12325f;
  background: #12325f;
  color: #fff;
}
.st-main-surface .st-best-colors .st-best-colors__link,
.st-main-surface .st-best-colors .st-best-colors__link:hover,
.st-main-surface .st-best-colors .st-best-colors__link > i {
  color: #fff;
}
.st-best-colors__link--muted {
  font-weight: 700;
  color: #0a2148;
  border-color: #ffcf00;
  background: #ffcf00;
}
.st-best-colors__link--muted:hover {
  background: #f5c400;
  border-color: #f5c400;
  color: #0a2148;
}
.st-main-surface .st-best-colors .st-best-colors__link--muted,
.st-main-surface .st-best-colors .st-best-colors__link--muted:hover,
.st-main-surface .st-best-colors .st-best-colors__link--muted > i {
  color: #0a2148;
}
@media (max-width: 700px) {
  .st-best-colors {
  --st-carousel-gap: 12px;
    padding: 28px 0 36px;
  }
  .st-best-colors__families-wrap .st-best-colors__families {
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    transition: mask-image 0.2s ease, -webkit-mask-image 0.2s ease;
  }
  .st-best-colors__families-wrap.is-scroll-start.is-scroll-end .st-best-colors__families {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .st-best-colors__families-wrap.is-scroll-start:not(.is-scroll-end) .st-best-colors__families {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
  }
  .st-best-colors__families-wrap.is-scroll-end:not(.is-scroll-start) .st-best-colors__families {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 100%);
  }
  .st-best-colors__families-wrap:not(.is-scroll-start):not(.is-scroll-end) .st-best-colors__families {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 22px,
      #000 calc(100% - 22px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 22px,
      #000 calc(100% - 22px),
      transparent 100%
    );
  }
  .st-best-colors__families {
    scroll-padding-inline: 20px;
    padding-inline: 6px;
    padding-bottom: 16px;
  }
  .st-best-colors__family {
    scroll-snap-align: center;
  }
  .st-main-surface .st-best-colors {
    margin-inline: 0;
    overflow-x: clip;
  }
  .st-best-colors__card-inner {
    min-height: 214px;
    padding: 14px 12px 12px;
    border-radius: 12px;
  }
  .st-best-colors__card-title {
    gap: 6px;
    font-size: 0.8125rem;
    line-height: 1.25;
  }
  .st-best-colors__card-code {
    margin: auto 0 10px;
    font-size: 0.75rem;
  }
  .st-best-colors__card-form button {
    min-height: 34px;
    font-size: 0.5625rem;
    letter-spacing: 0.03em;
    padding-inline: 4px;
  }
  .st-best-colors__card-sofa-frame {
    width: 118%;
    max-height: 74%;
  }
  .st-best-colors__hint {
    display: none;
  }
  .st-best-colors__footer-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 2px;
  }
  .st-best-colors__nav {
    width: 44px;
    height: 44px;
    background: #fff;
    border-color: #cdd6e2;
    box-shadow: 0 4px 14px rgb(10 33 72 / 0.1);
  }
  .st-best-colors__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
  }
  .st-best-colors__footer-links {
    flex-direction: column;
    align-items: stretch;
  }
  .st-best-colors__link {
    text-align: center;
  }
}
@media (min-width: 701px) {
  .st-best-colors__hint {
    display: none;
  }
}