/* ===== v3 WIDE layout (2026-11-14) — loaded ONLY when on: private preview ?layout=wide, or for everyone with
   bash ~/domains/therezon.jo/v3-wide.sh on. Big screens use (almost) the whole width instead of a 1240px column in the
   middle, and text grows a little so nothing looks tiny. Phones, tablets and laptops under 1440px are unchanged. ===== */

/* 1) the page column: wider steps as the screen grows */
@media (min-width: 1440px) { :root { --wrap: 1520px; --gutter: clamp(24px, 2.4vw, 56px); } }
@media (min-width: 1700px) { :root { --wrap: 1720px; } html { font-size: 106.25%; } }   /* text 17px */
@media (min-width: 1960px) { :root { --wrap: 1880px; } html { font-size: 112.5%; } }    /* text 18px */
@media (min-width: 2400px) { :root { --wrap: 2140px; } html { font-size: 118.75%; } }   /* text 19px (2.5K/4K screens) */

/* 2) long lists get one more column instead of stretched cards (short lists, like the 6 on the home page, keep 3) */
@media (min-width: 1700px) {
  .cgrid:has(> :nth-child(7)), .bgrid:has(> :nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vgrid { max-width: none; grid-template-columns: repeat(8, minmax(0, 1fr)); }        /* home: 8 partners in one row */
  .cat-main .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }                /* catalog beside its filter column: 3 stay readable */
}
@media (min-width: 2400px) {
  .cgrid:has(> :nth-child(7)), .bgrid:has(> :nth-child(7)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cat-main .cgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
