.sm-section { margin: 3rem 0; }
.sm-actions, .sm-links { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.sm-actions { margin: 1.5rem 0; align-items: center; }
.sm-links { list-style: none; padding: 0; }
.sm-grid, .sm-resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 295px), 1fr)); gap: 1rem; }
.sm-card, .sm-resource { background: white; border: 1px solid #dedbd5; border-radius: .6rem; padding: 1.25rem; min-width: 0; }
.sm-card h3, .sm-resource h3 { margin-top: 0; }
.sm-resource details { margin-top: .9rem; }
.sm-resource summary { cursor: pointer; font-weight: 650; }
.sm-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .45rem; list-style: none; padding: 0; }
.sm-swatch, .sm-code { display: block; width: 100%; padding: .3rem; background: #fff; border: 1px solid #ddd; border-radius: .3rem; font: inherit; overflow-wrap: anywhere; }
.sm-swatch { cursor: zoom-in; min-height: 65px; }
.sm-swatch span { display: block; height: 2rem; margin-bottom: .3rem; border: 1px solid #ddd; border-radius: .2rem; }
.sm-zoom { width: min(90vw, 33rem); border: 1px solid #ddd; border-radius: .6rem; }
.sm-zoom::backdrop { background: #0008; }
.sm-zoom div { height: min(45vh, 23rem); margin-top: .75rem; border-radius: .4rem; border: 1px solid #ddd; }
.sm-table { overflow-x: auto; }
.sm-table table { border-collapse: collapse; width: 100%; min-width: 480px; background: #fff; }
.sm-table th, .sm-table td { border: 1px solid #ddd; text-align: left; padding: .85rem; vertical-align: top; }
#produits > h3 { margin: 2rem 0 1rem; }
.sm-chart-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-bottom: 1rem;
}
.sm-chart-photos figure { margin: 0; min-width: 0; }
.sm-chart-photos a {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: .35rem;
    cursor: zoom-in;
}
.sm-chart-photos img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sm-chart-photos figcaption { margin-top: .35rem; font-size: .85rem; line-height: 1.4; }
/* Stock photographs with a white strip below the colour chip or room view. */
.sm-chart-photos img:is(
    [src$="/antico-lume-9.webp"],
    [src$="/cadoro-9.webp"],
    [src$="/fer-oxyde-9.webp"],
    [src$="/marcopolo-9.webp"],
    [src$="/marcopolo-luxury-9.webp"],
    [src$="/marcopolo-sable-9.webp"],
    [src$="/marmo-trame-9.webp"],
    [src$="/sagredo-9.webp"],
    [src$="/torcello-9.webp"]
) {
    transform: scale(1.45);
    transform-origin: 30% top;
}
@media (max-width: 400px) {
    .sm-chart-photos { grid-template-columns: 1fr; }
}
.sm-chart-photos {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}
.sm-chart-photos figure { width: 100%; max-width: 186px; }
.sm-heading-photos {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 186px), 186px));
}
