.colors-home .colors-autumn {
    padding-bottom: 12px;
}

.colors-home-showrooms {
    margin-block: 24px;
    scroll-margin-top: 112px;
}

.colors-home-showrooms__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.colors-home-showrooms__head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.colors-home-showrooms__head > a { color: var(--colors-clay, #a7472d); font-size: 13px; white-space: nowrap; text-decoration: none; }

.colors-home-showrooms__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #ddd7d2;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: #fffdfa;
}

.colors-home-showrooms__tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    min-height: 54px;
    padding: 12px 10px;
    border: 0;
    border-inline-end: 1px solid #e8e1db;
    background: transparent;
    color: var(--colors-ink, #211916);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease;
}

.colors-home-showrooms__tabs button:last-child { border-inline-end: 0; }
.colors-home-showrooms__tabs button:hover { background: #f0e5df; }
.colors-home-showrooms__tabs button[aria-selected="true"] { background: var(--colors-clay, #a7472d); color: #fffaf5; }
.colors-home-showrooms__tab-number { font-size: 10px; opacity: .58; font-variant-numeric: tabular-nums; }
.colors-home-showrooms__tabs button:focus-visible { outline: 2px solid #b46a4b; outline-offset: -5px; }

.colors-home-showrooms__panel {
    padding: 8px 12px 16px;
    border: 1px solid #ddd7d2;
    border-top: 0;
    border-radius: 0 0 24px 24px;
    background: #f2f1ef;
}

.colors-home-showrooms__panel[hidden] { display: none !important; }
.colors-home-showrooms__panel:focus-visible { outline: 2px solid #b46a4b; outline-offset: 4px; }
.colors-home-showrooms__gallery { display: flex; gap: 18px; overflow-x: auto; padding: 20px 12px; scroll-snap-type: x mandatory; }
.colors-home-showrooms__gallery > a { flex: 0 0 min(64vw, 230px); color: inherit; text-align: center; text-decoration: none; scroll-snap-align: center; }
.colors-home-showrooms__gallery img { display: block; width: 100%; height: 250px; object-fit: contain; border-radius: 8px; }
.colors-home-showrooms__gallery span { display: block; margin: 10px 0 5px; font-size: 14px; line-height: 1.8; }
.colors-home-showrooms__gallery small { display: block; color: #786b61; font-size: 12px; }

.colors-rack { min-width: 0; max-width: 100%; }
.colors-rack__stage { position: relative; isolation: isolate; overflow: hidden; touch-action: pan-y; }
.colors-rack__garments { display: flex; gap: 12px; margin: 0; padding: 18px 8px; list-style: none; overflow-x: auto; }
.colors-rack__garments > li { flex: 0 0 210px; }
.colors-rack__garment { display: flex; flex-direction: column; align-items: center; color: #968f89; text-decoration: none; -webkit-user-drag: none; }
.colors-rack__body { display: block; position: relative; flex: none; width: 100%; height: 245px; transform-origin: 50% 0; }
.colors-rack__garment img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.colors-rack__side { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.colors-rack__hanger { flex: 0 0 36px; height: 36px; width: 76%; filter: drop-shadow(0 1px 0 #fff); }
.colors-rack__frame, .colors-rack__floor { display: none; }
.colors-rack.is-ready .colors-rack__stage { height: 356px; perspective: 900px; perspective-origin: 50% 23%; cursor: grab; }
.colors-rack.is-dragging .colors-rack__stage { cursor: grabbing; }
.colors-rack.is-ready .colors-rack__frame { display: block; position: absolute; top: 30px; bottom: 12px; left: 50%; width: var(--rack-frame-width, calc(100% - 72px)); max-width: calc(100% - 72px); transform: translateX(-50%); pointer-events: none; }
.colors-rack__rail { position: absolute; top: 0; left: 0; right: 0; height: 10px; border-radius: 8px; background: linear-gradient(#6c6964 0%, #e7e5df 19%, #fff 33%, #bebbb5 53%, #77736c 79%, #d9d6ce 100%); box-shadow: inset 0 1px #fff, 0 2px 2px #38312633; }
.colors-rack__rail::before, .colors-rack__rail::after { content: ''; position: absolute; top: 2px; width: 12px; height: 9px; border-radius: 3px; background: linear-gradient(90deg, #827e76, #faf9f4, #9b978e); box-shadow: 0 1px 1px #504a40; }
.colors-rack__rail::before { left: -2px; }
.colors-rack__rail::after { right: -2px; }
.colors-rack__post { position: absolute; top: 6px; bottom: 2px; width: 10px; border-radius: 6px; background: linear-gradient(90deg, #817c73 0%, #e5e2da 24%, #fffdfa 42%, #969087 72%, #c9c5bc 100%); box-shadow: 2px 2px 2px #625b4926; }
.colors-rack__post::after { content: ''; position: absolute; left: -2px; right: -2px; height: 12px; bottom: 40%; border-radius: 4px; border-block: 1px solid #6f6c64; background: linear-gradient(90deg, #8a877f, #fffefa 46%, #98948b); box-shadow: 0 1px 2px #39342d33; }
.colors-rack__post--left { left: 0; }
.colors-rack__post--right { right: 0; }
.colors-rack__foot { position: absolute; bottom: -3px; width: 72px; height: 8px; border-radius: 6px; background: linear-gradient(#edeae2, #aba59a 45%, #706a60); transform: skewY(-9deg); box-shadow: 0 4px 5px #3a342a29; }
.colors-rack__foot--left { left: -25px; }
.colors-rack__foot--right { right: -25px; }
.colors-rack.is-ready .colors-rack__floor { display: block; position: absolute; bottom: 1px; left: 50%; width: min(76%, 650px); height: 37px; transform: translateX(-50%); background: radial-gradient(ellipse, #59534527 0%, #59534512 46%, transparent 73%); pointer-events: none; }
.colors-rack__floor::after { content: ''; position: absolute; left: 50%; width: 180px; height: 30px; bottom: 4px; transform: translateX(-50%); background: radial-gradient(ellipse, #51493925, transparent 72%); }
.colors-rack.is-ready .colors-rack__garments { display: block; position: absolute; inset: 0; padding: 0; overflow: visible; transform-style: preserve-3d; }
.colors-rack.is-ready .colors-rack__garments > li { display: contents; }
.colors-rack.is-ready .colors-rack__garment { position: absolute; top: 23px; left: 50%; width: var(--rack-hit-width, 232px); height: 270px; transform: translate3d(var(--rack-x, 0px), var(--rack-y, 0px), var(--rack-z, 0px)) translateX(-50%) rotateY(var(--rack-angle, 0deg)) scale(var(--rack-scale, 1)); transform-origin: 50% 10px; z-index: var(--rack-layer, 1); transition: transform 650ms cubic-bezier(.16,1.14,.3,1), filter 300ms ease; filter: brightness(.90); outline-offset: -4px; }
.colors-rack.is-ready .colors-rack__body { position: absolute; top: 22px; left: 50%; margin-left: calc(var(--rack-body-width, 232px) / -2); width: var(--rack-body-width, 232px); height: var(--rack-garment-height, 234px); z-index: 1; pointer-events: none; }
.colors-rack.is-ready .colors-rack__garment img { position: absolute; top: var(--rack-photo-y, 0px); left: var(--rack-photo-x, 0px); right: auto; bottom: auto; width: var(--rack-photo-width, 100%); height: var(--rack-photo-height, 100%); max-width: none; object-fit: fill; filter: drop-shadow(3px 4px 3px #302a2024); background: transparent; border: 0; border-radius: 0; transition: opacity 0s linear 130ms; }
.colors-rack.is-ready .colors-rack__garment.has-side:not(.is-selected) .colors-rack__front { opacity: 0; }
.colors-rack.is-ready .colors-rack__garment.has-side:not(.is-selected) .colors-rack__side { opacity: 1; }
.colors-rack.is-ready .colors-rack__garment.is-outside-window { visibility: hidden; opacity: 0; pointer-events: none; }
.colors-rack.is-ready .colors-rack__garment.is-wrapping { visibility: hidden; opacity: 0; pointer-events: none; }
.colors-rack.is-ready .colors-rack__hanger { position: absolute; top: 0; left: 50%; margin-left: calc(var(--rack-hanger-width, 176px) / -2); width: var(--rack-hanger-width, 176px); height: 60px; z-index: 0; pointer-events: none; }
.colors-rack.is-ready .colors-rack__garment.is-selected { filter: brightness(1); }
.colors-rack.is-ready .colors-rack__garment.is-selected img { filter: drop-shadow(0 9px 5px #302a2026); }
.colors-rack.is-ready .colors-rack__garment.is-pulling { animation: colors-rack-swing 700ms ease-out; }
.colors-rack.is-ready .colors-rack__garment:focus-visible { outline: 2px solid var(--colors-clay, #a7472d); border-radius: 10px; }
.colors-rack.is-dragging .colors-rack__garment, .colors-rack.is-dragging .colors-rack__hanger { transition: none; }
.colors-rack.is-dragging .colors-rack__garment { animation: none; }
.colors-rack.is-ready .colors-rack__garment.is-relocating,
.colors-rack.is-ready .colors-rack__garment.is-relocating .colors-rack__hanger,
.colors-rack.is-ready .colors-rack__garment.is-relocating img { transition: none; }
.colors-rack.is-ready .colors-rack__garment.is-relocating { animation: none; }
.colors-rack__stage.is-rack-3d > .colors-rack__garments { opacity: 0; pointer-events: none; }
.colors-rack__stage.is-rack-3d > .colors-rack__frame,
.colors-rack__stage.is-rack-3d > .colors-rack__floor { display: none; }
.colors-rack__stage.is-rack-3d:focus-within { outline: 2px solid var(--colors-clay, #a7472d); outline-offset: -3px; border-radius: 10px; }
@keyframes colors-rack-swing {
    0% { rotate: -2.4deg; }
    38% { rotate: 1.6deg; }
    68% { rotate: -.65deg; }
    100% { rotate: 0deg; }
}
.colors-rack__details { text-align: center; padding: 2px 12px 0; min-height: 68px; }
.colors-rack__details p { margin: 0; color: var(--colors-ink, #211916); font-size: 14px; line-height: 1.8; }
.colors-rack__details small { display: block; color: #776c65; font-size: 12px; line-height: 1.8; }
.colors-rack__count { display: block; color: #8f847c; font-size: 10px; line-height: 1.8; direction: ltr; }
.colors-rack__controls { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 8px; }
.colors-rack__controls > a, .colors-rack__controls > button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid #d6c5b8; background: #fffaf5; color: #59463c; border-radius: 999px; font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; transition: background 180ms ease, border-color 180ms ease; }
.colors-rack__controls > a { padding: 10px 22px; }
.colors-rack__controls > button { width: 44px; display: none; }
.colors-rack.is-ready .colors-rack__controls > button { display: inline-flex; }
.colors-rack__controls > button:disabled { cursor: default; opacity: .45; }
.colors-rack__controls > a:hover, .colors-rack__controls > button:hover:not(:disabled) { background: #f0e5df; border-color: #b79c8b; }
.colors-rack__controls > a:focus-visible, .colors-rack__controls > button:focus-visible { outline: 2px solid var(--colors-clay, #a7472d); outline-offset: 3px; }

.colors-home-showrooms__all { display: table; margin: 12px auto 0; color: #6f4f40; font-size: 12px; line-height: 1.8; text-decoration: none; border-bottom: 1px solid #c7b3a7; padding-bottom: 3px; }
.colors-home-showrooms__all:focus-visible { outline: 2px solid #b46a4b; outline-offset: 5px; }
.colors-home-showrooms__empty { display: grid; place-items: center; min-height: 260px; padding: 32px; color: #786b61; text-align: center; }

@media (max-width: 760px) {
    .colors-home-showrooms { margin-block: 20px; scroll-margin-top: 96px; }
    .colors-home-showrooms__head { gap: 12px; margin-bottom: 18px; }
    .colors-home-showrooms__head h2 { font-size: 24px; }
    .colors-home-showrooms__head > a { font-size: 11px; }
    .colors-home-showrooms__tabs { border-radius: 16px 16px 0 0; }
    .colors-home-showrooms__tabs button { gap: 5px; padding: 12px 3px; min-height: 50px; font-size: 12px; }
    .colors-home-showrooms__tab-number { font-size: 9px; }
    .colors-home-showrooms__panel { padding: 8px 0 16px; border-radius: 0 0 20px 20px; }
    .colors-home-showrooms__gallery img { height: 225px; }
    .colors-rack.is-ready .colors-rack__stage { height: 324px; perspective: 760px; }
    .colors-rack.is-ready .colors-rack__garment { width: var(--rack-hit-width, 188px); height: 247px; }
    .colors-rack.is-ready .colors-rack__body { margin-left: calc(var(--rack-body-width, 188px) / -2); width: var(--rack-body-width, 188px); height: var(--rack-garment-height, 211px); }
    .colors-rack__details { padding-inline: 18px; min-height: 70px; }
    .colors-rack__details p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .colors-home-showrooms__tabs button,
    .colors-rack.is-ready .colors-rack__garment,
    .colors-rack.is-ready .colors-rack__hanger,
    .colors-rack.is-ready .colors-rack__garment img,
    .colors-rack__controls > a,
    .colors-rack__controls > button { transition: none; }
    .colors-rack.is-ready .colors-rack__garment.is-pulling { animation: none; }
}
