/* Rounded corners across the whole site (owner, 2026-11-14): every picture, picture tile and card gets the same
   soft corner. Logos and icons keep their own shape. Loads last (file name), so it wins over earlier radii. */
:root { --barami-radius: 14px; }

/* Pictures in page content, product pages, catalogue, projects, galleries, the catalogue menu. */
main img:not(.home-logo__image):not(.barami-brands__img):not(.barami-brand-logo):not([src*="logo"]):not([src*="LOGO"]):not(.barami-lightbox__image),
#products-menu img,
.barami-about-gallery img,
.bm-showroom__img {
    border-radius: var(--barami-radius);
}

/* Picture containers and cards: rounded and clipped, so a zoom on hover stays inside the corner. */
main :is(.bm-card__media, .bm-showroom__photo, .barami-brands__item, .home-logo, .bm-clients__cell,
         .barami-cattile__media, .barami-cat-tile__media, .bm-cats__media, figure.wp-block-image, .wp-block-gallery figure),
#products-menu :is(a > span:first-child, .barami-mm__media, figure) {
    border-radius: var(--barami-radius);
    overflow: hidden;
}

/* Product page stage and its gallery tiles. */
main :is([class*="bm-pp"] [class*="stage"], [class*="bm-pp"] [class*="gallery"] a, [class*="bm-pp"] [class*="gallery"] figure) {
    border-radius: var(--barami-radius);
    overflow: hidden;
}

/* Form fields and buttons follow the same language, a little softer. */
.barami-footer .barami-footer-form .barami-form :is(input[type="text"], input[type="tel"], input[type="email"], textarea),
.barami-footer .barami-footer-form .barami-form :is(input[type="submit"], button[type="submit"]),
.bm-showroom .bm-showroom__btn {
    border-radius: 10px;
}

/* Product cards: the name centred under the picture (owner, 2026-11-14). */
.product-item--product .menu-product-content { justify-content: center; text-align: center; }
.product-item--product .menu-product-content > div { width: 100%; }
.product-item--product .menu-product-cat { margin-bottom: 0; }
