/**
 * Shop by Room — /ambiente/{slug}
 * Mosaic: featured room image (2×2) + product cards in one CSS grid.
 */

.govee-ambiente {
    overflow-x: clip;
    max-width: 100%;
    background: var(--govee-bg);
    color: var(--govee-text);
    padding: var(--govee-space-8) 0 var(--govee-space-16);
}

.govee-ambiente__inner {
    max-width: var(--govee-container-max);
    margin: 0 auto;
    padding: 0 var(--govee-container-pad);
    min-width: 0;
}

@media (min-width: 768px) {
    .govee-ambiente__inner {
        padding: 0 var(--govee-container-pad-md);
    }
}

@media (min-width: 1180px) {
    .govee-ambiente__inner {
        padding: 0 var(--govee-container-pad-lg);
    }
}

.govee-ambiente__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--govee-space-2) var(--govee-space-3);
    margin: 0 0 var(--govee-space-8);
    font-family: var(--govee-font-sans);
    font-size: var(--govee-text-sm);
    color: var(--govee-muted);
    line-height: var(--govee-leading-snug);
}

.govee-ambiente__breadcrumb a {
    color: var(--govee-cyan);
    text-decoration: none;
}

.govee-ambiente__breadcrumb a:hover,
.govee-ambiente__breadcrumb a:focus-visible {
    color: var(--govee-text);
    outline: none;
}

.govee-ambiente__header {
    margin: 0 0 var(--govee-space-10);
    min-width: 0;
    max-width: 42rem;
}

.govee-ambiente__title {
    margin: 0 0 var(--govee-space-3);
    font-family: var(--govee-font-sans);
    font-size: var(--govee-text-title);
    font-weight: var(--govee-weight-bold);
    letter-spacing: var(--govee-tracking-heading);
    line-height: var(--govee-leading-tight);
    color: var(--govee-text);
}

.govee-ambiente__subtitle {
    margin: 0;
    font-family: var(--govee-font-sans);
    font-size: var(--govee-text-base);
    line-height: var(--govee-leading-body);
    color: var(--govee-muted);
}

/* ------------------------------------------------------------------ */
/* Mosaic grid: feature (2×2) + product cards                         */
/* ------------------------------------------------------------------ */

.govee-ambiente__listing {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.govee-ambiente__mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--govee-space-4);
    align-items: stretch;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 768px) {
    .govee-ambiente__mosaic {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--govee-space-6);
    }
}

@media (min-width: 1024px) {
    .govee-ambiente__mosaic {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--govee-space-7);
    }
}

/* Featured room image — full-bleed on mobile, 2×2 from tablet up */
.govee-ambiente__feature {
    position: relative;
    grid-column: 1 / -1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--govee-radius-lg);
    border: 1px solid var(--govee-border);
    background: var(--govee-card);
    aspect-ratio: 16 / 10;
}

@media (min-width: 768px) {
    .govee-ambiente__feature {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: auto;
        height: 100%;
        min-height: 280px;
    }
}

.govee-ambiente__feature-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Product cards inside mosaic */
.govee-ambiente__mosaic > .govee-product-card {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    align-self: stretch;
}

.govee-ambiente__mosaic > .govee-product-card .govee-product-card__media,
.govee-ambiente__mosaic > .govee-product-card .govee-product-card__body {
    max-width: none !important;
}

.govee-ambiente__shimmer-wrap {
    grid-column: 1 / -1;
    min-width: 0;
}

@media (min-width: 768px) {
    .govee-ambiente__mosaic:has(.govee-ambiente__feature) .govee-ambiente__shimmer-wrap {
        grid-column: auto;
    }
}

.govee-ambiente__loading {
    min-width: 0;
}

/* ------------------------------------------------------------------ */
/* Empty room                                                         */
/* ------------------------------------------------------------------ */

.govee-ambiente__mosaic--empty {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .govee-ambiente__mosaic--empty:has(.govee-ambiente__feature) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .govee-ambiente__mosaic--empty .govee-ambiente__feature {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 4 / 3;
        height: auto;
        min-height: 0;
    }

    .govee-ambiente__mosaic--empty .govee-ambiente__empty {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        height: 100%;
    }
}

@media (min-width: 1024px) {
    .govee-ambiente__mosaic--empty:has(.govee-ambiente__feature) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 900px;
    }
}

.govee-ambiente__empty {
    margin: 0;
    padding: var(--govee-space-10) var(--govee-space-8);
    border: 1px solid var(--govee-border);
    border-radius: var(--govee-radius-lg);
    background: var(--govee-card);
    text-align: center;
    min-width: 0;
}

.govee-ambiente__empty-title {
    margin: 0 0 var(--govee-space-3);
    font-family: var(--govee-font-sans);
    font-size: var(--govee-text-lg);
    font-weight: var(--govee-weight-semibold);
    color: var(--govee-text);
}

.govee-ambiente__empty-text {
    margin: 0 0 var(--govee-space-6);
    font-family: var(--govee-font-sans);
    font-size: var(--govee-text-base);
    line-height: var(--govee-leading-body);
    color: var(--govee-muted);
}

.govee-ambiente__empty-actions {
    margin: 0;
}

.govee-ambiente__empty-actions a {
    color: var(--govee-cyan);
    text-decoration: none;
    font-weight: var(--govee-weight-medium);
}

.govee-ambiente__empty-actions a:hover,
.govee-ambiente__empty-actions a:focus-visible {
    color: var(--govee-text);
    outline: none;
}
