/* Symmetry fixes from the night audit (owner 19.11.2026: "בכל מקום ומקום צריך להיות תמיד הכל סימטריה", "כל דבר ודבר
   צריכה להיות סימטריה מוחלטת"). Rows that do not fill the width are centred, never left hanging to one side.
   Measurements: data/night-audit-2026-11-18/symmetry.json. Same sizes as before; only the leftover space is shared. */

/* 2. Product page gallery (desktop, 3 columns): an incomplete last row is centred. */
@media (min-width: 1024px) {
    body.bm-pp .bm-pp-gallery--many,
    body.bm-pp .bm-pp-gallery--two:has(> :nth-child(3)) { display: flex !important; flex-wrap: wrap; justify-content: center; }
    body.bm-pp .bm-pp-gallery--many > *,
    body.bm-pp .bm-pp-gallery--two:has(> :nth-child(3)) > * { flex: 0 0 calc((100% - 32px) / 3); max-width: calc((100% - 32px) / 3); }
}

/* 3. Product page options (colours, finishes): the chips centred under their centred label. */
body.bm-pp .bm-pp-head .bm-opts__items { justify-content: center !important; }

/* 4. Brand and category icon tabs on phones and tablets: a short last row is centred. */
@media (max-width: 1023px) { .bm-brandhead__tabs.bm-brandtabs { justify-content: center !important; } }

/* 5 + 7. Brand rows of the catalogue and of the downloads page on phones: 5 a row, the last row centred. */
@media (max-width: 767px) {
    .bm-bn .bm-bn__row,
    .bm-dls__nav .bm-dls__row { display: flex !important; flex-wrap: wrap; justify-content: center; }
    .bm-bn .bm-bn__row > *,
    .bm-dls__nav .bm-dls__row > * { flex: 0 0 calc((100% - 24px) / 5); max-width: calc((100% - 24px) / 5); }
}

/* 6. Downloads: catalogue covers centred in their row (desktop 190 px each, phone two a row). */
body .bm-cats .bm-cats__list { display: flex !important; flex-wrap: wrap; justify-content: center; }
body .bm-cats .bm-cats__list > * { flex: 0 0 190px; max-width: 190px; }
@media (max-width: 767px) { body .bm-cats .bm-cats__list > * { flex: 0 0 calc((100% - 18px) / 2); max-width: calc((100% - 18px) / 2); } }

/* 9. Reading columns and the texts under the products: the column itself centred on the page (the text keeps its
   reading direction inside it). */
.barami-content.max-w-\[1120px\],
.barami-listing-text > .barami-content,
.barami-content.barami-guide,
.barami-content.barami-faq { margin-inline: auto !important; }

/* 10. Page links (category pages, and the catalogue when scripts are off): centred under the grid. */
main#main-content > section.pb-40 > nav.barami-pager { justify-content: center; }
