/* pp-wide.css — let the storefront use big desktop monitors.
   Phones and laptops (under 1600px) are untouched: every rule sits inside a min-width query.
   From 1600px the content column grows with the window (86vw) up to 2400px, so a 1920 screen
   gets ~1650px of content and a 2560 screen ~2200px instead of a 1160–1360px strip in the middle.
   Card grids are auto-fill, so wider columns simply fit more products per row.
   Paragraphs keep their own ch limits, so line lengths stay readable.
   Selectors carry `body` so they beat each page's inline <style> whatever the load order. */

@media (min-width:1600px){
  :root{--pp-wide:clamp(1360px,86vw,2400px)}

  /* the shared page container (home, landing, category, machine, product, cart) */
  body .wrap,body .wrap.wide{max-width:var(--pp-wide)}
  body{--max:var(--pp-wide)}                      /* home uses --max for its .wrap */
  body footer.pfoot>.wrap{max-width:var(--pp-wide)}

  /* filter sidebar + grid: a slightly roomier sidebar, still pinned while the grid scrolls */
  body .ppf-layout,body .cu-layout{grid-template-columns:300px minmax(0,1fr);gap:40px}

  /* product cards: keep each card a comfortable size and let the row hold more of them */
  body .ppf-main>.grid:not(.fam-grid),body .cu-main>.grid:not(.fam-grid){grid-template-columns:repeat(auto-fill,minmax(272px,1fr))}

  /* fitment strip and other fixed 1120px slots follow the page width */
  body .fit-slot,body .fitment{max-width:var(--pp-wide)}

  /* machine landing pages (X3, Pro R, YXZ…): the product grid under the filters */
  body .ppf-main>.mgrid,body .cu-main>.mgrid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
  /* featured-product block (X3 plenum): copy takes the room, the buy card keeps its size at the right edge */
  body .pf-grid{grid-template-columns:minmax(0,1fr) 440px}
  body .lt .pf-one{margin-inline:auto 0}

  /* the cart is a short list and a total: it stays at a readable width */
  body.pp-cart-page main .wrap{max-width:min(var(--pp-wide),1440px)}
}

/* product page: a big square gallery taller than the screen helps nobody, so it stops at 1840px */
@media (min-width:1600px){
  body main.pd .wrap.wide{max-width:min(var(--pp-wide),1840px)}
  body #pdRoot.wpd .wpd-grid{column-gap:80px}
}

/* very wide (2400px+): a touch more breathing room at the edges and larger cards */
@media (min-width:2400px){
  body .ppf-main>.grid:not(.fam-grid),body .cu-main>.grid:not(.fam-grid),body .ppf-main>.mgrid,body .cu-main>.mgrid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
  body .ppf-layout,body .cu-layout{grid-template-columns:320px minmax(0,1fr);gap:48px}
}
