.showroom-line-button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.showroom-line-button:focus-visible,
.showroom-dialog-close:focus-visible {
    outline: 2px solid var(--brass, #80654a);
    outline-offset: 4px;
}

.showroom-home-products[data-count="2"],
.showroom-home-products[data-count="3"] {
    width: 53%;
    height: 68%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: end;
}

.showroom-home-products[data-count="3"] .showroom-home-product:first-child {
    grid-column: 1 / -1;
}

.showroom-home-product {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: transparent;
    border: 0;
    color: inherit;
    text-decoration: none;
}

.showroom-home-product img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
    transform: translateY(-6px) scale(var(--showroom-home-scale, 1));
    transform-origin: center;
}

.showroom-home-products {
    padding: 0;
    background: transparent;
}

.showroom-home-line[data-product-line="foldable-bath"] {
    --showroom-home-scale: 1;
}

.showroom-home-line[data-product-line="foldable-bath"] .showroom-home-product img {
    mix-blend-mode: darken;
}

.showroom-home-line[data-product-line="inflatable-pool"] {
    --showroom-home-scale: 1;
}

.showroom-image-fallback {
    width: 100%;
    min-height: 92px;
    padding: 18px;
    display: grid;
    place-items: center;
    color: #596159;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    gap: 10px;
}

.showroom-image-retry {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: rgba(250, 247, 240, .78);
    color: var(--moss-deep);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.showroom-image-retry:hover,
.showroom-image-retry:focus-visible {
    border-color: var(--moss);
}

.showroom-image-retry:disabled {
    cursor: wait;
    opacity: .68;
}

.showroom-home-product > .showroom-image-fallback,
.showroom-home-product-fallback {
    height: 100%;
    min-height: 180px;
}

.showroom-home-product-fallback {
    align-self: stretch;
}

.showroom-home-product span {
    max-width: 100%;
    padding: 4px 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showroom-empty {
    min-height: 150px;
    padding: 24px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--muted);
}

.showroom-featured-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.showroom-featured-row[data-count="1"] {
    grid-template-columns: minmax(260px, 1fr);
    width: min(100%, 820px);
}

.showroom-featured-row[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.showroom-featured-row[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 962px);
}

.showroom-featured-row .showroom-featured-card {
    aspect-ratio: 4 / 5;
    min-height: 0;
    padding: 24px;
    display: grid;
    grid-template-rows: auto minmax(128px, 1fr) auto;
    gap: 14px;
    background: #eeebe4;
}

.showroom-featured-row .showroom-featured-card:nth-child(even) {
    background: #f4f1ea;
}

.showroom-featured-row .featured-copy {
    width: 100%;
}

.showroom-featured-row .product-kicker {
    margin-bottom: 10px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showroom-featured-row .showroom-featured-card h3 {
    min-height: 0;
    margin-bottom: 12px;
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(20px, 1.55vw, 26px);
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.showroom-featured-row .featured-copy > p:nth-of-type(2) {
    margin-bottom: 0;
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.showroom-featured-row .showroom-card-link {
    position: static;
    align-self: end;
    justify-self: start;
    min-height: 40px;
    font-size: 13px;
}

.showroom-featured-row .showroom-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.showroom-featured-row .showroom-featured-media > .showroom-image-fallback,
.showroom-featured-row .showroom-featured-media > .showroom-image-fallback .showroom-image-retry {
    position: relative;
    z-index: 2;
}

.showroom-featured-row .showroom-featured-media {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: transparent;
    border: 0;
}

.showroom-featured-row .showroom-featured-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
    transform: none;
    transition: transform 420ms cubic-bezier(.16, 1, .3, 1);
}

.showroom-featured-card:hover .showroom-featured-image {
    transform: none;
}

.showroom-featured-card[data-product-line="foldable-bath"] .showroom-featured-image {
    mix-blend-mode: darken;
}

.showroom-featured-card:focus-within {
    background: #f3efe6;
    box-shadow: 0 18px 40px rgba(58, 65, 57, .08);
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

.showroom-featured-row:is([data-count="1"], [data-count="2"]) .showroom-featured-card {
    min-height: 380px;
    aspect-ratio: auto;
    padding: 36px;
    grid-template-columns: minmax(0, .92fr) minmax(220px, 1.08fr);
    grid-template-rows: 1fr auto;
    column-gap: 28px;
    row-gap: 16px;
}

.showroom-featured-row:is([data-count="1"], [data-count="2"]) .featured-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

.showroom-featured-row:is([data-count="1"], [data-count="2"]) .showroom-featured-card h3 {
    font-size: clamp(27px, 2.25vw, 36px);
}

.showroom-featured-row:is([data-count="1"], [data-count="2"]) .featured-copy > p:nth-of-type(2) {
    font-size: 14px;
    -webkit-line-clamp: 3;
}

.showroom-featured-row:is([data-count="1"], [data-count="2"]) .showroom-featured-media {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: stretch;
}

.family-products-live,
.family-products-empty-state {
    height: 138px;
}

.family-products-live {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    background: transparent;
    border: 0;
}

.family-products-live[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
}

.family-products-live[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.family-product-live {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    place-items: center;
    gap: 4px;
    overflow: hidden;
    color: var(--moss-deep);
    text-decoration: none;
}

.family-product-live .showroom-family-image {
    position: static;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
    transform: scale(var(--showroom-family-scale, 1.55));
    transition: transform 260ms ease;
}

.family-product-live:hover .showroom-family-image,
.family-product-live:focus-visible .showroom-family-image {
    transform: translateY(-2px) scale(var(--showroom-family-scale, 1.55));
}

.family-product-name {
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.family-products-live[data-product-line="inflatable-pool"] {
    --showroom-family-scale: 1.08;
}

.family-products-live[data-product-line="foldable-bath"] .showroom-family-image {
    mix-blend-mode: darken;
}

.family-products-empty-state {
    padding: 16px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #f4f1e9;
    border: 1px solid #e5dfd3;
    font-size: 12px;
    letter-spacing: .04em;
}

.showroom-featured-row:is([data-count="1"], [data-count="2"]) .showroom-card-link {
    grid-column: 1;
    grid-row: 2;
}

.showroom-dialog-open {
    overflow: hidden;
}

.showroom-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    padding: 24px;
    display: grid;
    place-items: center;
    background: rgba(28, 31, 27, .58);
    backdrop-filter: blur(8px);
}

.showroom-dialog {
    width: min(1080px, 100%);
    max-height: calc(100dvh - 48px);
    overflow: auto;
    padding: 30px;
    background: var(--paper-soft, #f6f3ea);
    box-shadow: 0 30px 90px rgba(20, 23, 19, .28);
}

.showroom-dialog-head {
    position: sticky;
    top: -30px;
    z-index: 2;
    margin: -30px -30px 26px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(246, 243, 234, .96);
    backdrop-filter: blur(12px);
}

.showroom-dialog-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 500;
}

.showroom-dialog-close {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: 600 13px/1.5 inherit;
    cursor: pointer;
}

.showroom-dialog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.showroom-dialog-product {
    min-width: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    background: #eeebe4;
    color: inherit;
    text-decoration: none;
}

.showroom-dialog-product-media {
    width: 112px;
    height: 92px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.showroom-dialog-product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
}

.showroom-dialog-product img.is-catalog-normalized {
    transform: translate(var(--catalog-image-x, 0), var(--catalog-image-y, 0)) scale(var(--catalog-image-scale, 1));
}

.showroom-dialog-product-media > .showroom-image-fallback {
    width: 112px;
    height: 92px;
    border: 1px solid var(--line);
    background: rgba(250, 247, 240, .72);
}

.showroom-dialog-product-link {
    grid-column: 2 / -1;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.showroom-dialog-product-link span {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.showroom-dialog-product-link strong,
.showroom-dialog-product-link small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showroom-dialog-product-link strong {
    font-family: var(--serif);
    font-size: 18px;
}

.showroom-dialog-product-link small,
.showroom-dialog-status {
    color: var(--muted);
    font-size: 12px;
}

.showroom-dialog-product:focus-within {
    border-color: var(--moss);
    background: #f3efe6;
}

.showroom-dialog-product-link:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 4px;
}

.showroom-dialog-status {
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    text-align: center;
}

.showroom-dialog-status.is-loading::before {
    content: "";
    width: min(220px, 66vw);
    height: 2px;
    background: linear-gradient(90deg, var(--line) 0 38%, var(--brass) 50%, var(--line) 62% 100%);
    background-size: 220% 100%;
    animation: showroom-loading 1.2s ease-in-out infinite;
}

.showroom-dialog-status.is-error p {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
}

.showroom-dialog-retry {
    width: auto;
}

@keyframes showroom-loading {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .showroom-dialog-status.is-loading::before {
        animation: none;
        background: var(--brass);
    }
}

@media (max-width: 1080px) {
    .showroom-featured-row,
    .showroom-featured-row[data-count="3"],
    .showroom-dialog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showroom-featured-row[data-count="3"] {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .showroom-featured-row,
    .showroom-featured-row[data-count="1"],
    .showroom-featured-row[data-count="2"],
    .showroom-featured-row[data-count="3"] {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .showroom-home-products[data-count="2"],
    .showroom-home-products[data-count="3"] {
        right: 0;
        width: 96%;
        height: 46%;
    }

    .showroom-featured-row,
    .showroom-featured-row[data-count="1"],
    .showroom-featured-row[data-count="2"],
    .showroom-featured-row[data-count="3"],
    .showroom-dialog-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .showroom-featured-row .showroom-featured-card {
        width: 100%;
        max-width: 420px;
        margin-inline: auto;
    }

    .showroom-featured-row:is([data-count="1"], [data-count="2"]) .showroom-featured-card {
        min-height: 500px;
        padding: 26px;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(220px, 1fr) auto;
        gap: 12px;
    }

    .showroom-featured-row:is([data-count="1"], [data-count="2"]) .featured-copy {
        grid-column: 1;
        grid-row: 1;
    }

    .showroom-featured-row:is([data-count="1"], [data-count="2"]) .showroom-featured-media {
        grid-column: 1;
        grid-row: 2;
    }

    .showroom-featured-row:is([data-count="1"], [data-count="2"]) .showroom-card-link {
        grid-column: 1;
        grid-row: 3;
    }

    .showroom-dialog-backdrop {
        padding: 0;
    }

    .showroom-dialog {
        width: 100%;
        height: 100dvh;
        max-height: none;
        padding: 20px;
    }

    .showroom-dialog-head {
        top: -20px;
        margin: -20px -20px 22px;
        padding: 20px;
    }
}
