/* ГороДверей / Товары в шоуруме v1.0.3
   Only the grid layout changes. Original showroom.css keeps card design.
   Desktop: 6, tablet: 4 or 3, phones: 2 or 1.
*/
.gd-showroom.gd-showroom--six-grid .gd-showroom__grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: clamp(10px, 1vw, 16px);
    align-items: stretch;
}
.gd-showroom.gd-showroom--six-grid .gd-showroom__grid > .gd-showroom-card {
    min-width: 0;
    width: auto;
    max-width: none;
}
.gd-showroom.gd-showroom--six-grid .gd-showroom-card__media img {
    max-width: 100%;
}
.gd-showroom.gd-showroom--six-grid .gd-showroom-card__footer {
    flex-wrap: wrap;
}
.gd-showroom.gd-showroom--six-grid .gd-showroom-card__price,
.gd-showroom.gd-showroom--six-grid .gd-showroom-card__body {
    min-width: 0;
}

@media (max-width: 1199px) {
    .gd-showroom.gd-showroom--six-grid .gd-showroom__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 899px) {
    .gd-showroom.gd-showroom--six-grid .gd-showroom__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 649px) {
    .gd-showroom.gd-showroom--six-grid .gd-showroom__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 389px) {
    .gd-showroom.gd-showroom--six-grid .gd-showroom__grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Modern browsers also respect the real module width (e.g. a narrow sidebar). */
@supports (container-type: inline-size) {
    .gd-showroom.gd-showroom--six-grid {
        container-type: inline-size;
    }
    @container (max-width: 1199px) {
        .gd-showroom.gd-showroom--six-grid .gd-showroom__grid {
            grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        }
    }
    @container (max-width: 899px) {
        .gd-showroom.gd-showroom--six-grid .gd-showroom__grid {
            grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        }
    }
    @container (max-width: 649px) {
        .gd-showroom.gd-showroom--six-grid .gd-showroom__grid {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        }
    }
    @container (max-width: 389px) {
        .gd-showroom.gd-showroom--six-grid .gd-showroom__grid {
            grid-template-columns: minmax(0, 1fr) !important;
        }
    }
}
