/* ============================================================================
 * SpOki Card Density v1.1 — PARENT-LAYOUT ONLY. Owner-approved 2026-07-17.
 * Changes ONLY columns / card-basis / gap / rail-peek. NEVER card internals
 * (title/price/CTA/radius/badges/chips/wishlist/renderer are untouched).
 * Enqueued + kill-switched by inc/spoki-density-pilot.php
 * (filter spoki_density_pilot_enabled). No cliff: rails @>=782px, category @>=768px.
 * ==========================================================================*/

/* Category WITH sidebar: 3 columns on tablet+desktop (~297px @1440 in 934px zone).
   Matches the theme's existing max-1199 3-col rule; kills the base-4 at >=1200.
   Mobile <=767 keeps the native 2-col layout. */
@media (min-width:768px){
  .spoki-cat__productgrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* Rails: replace the theme's original 6-up desktop rule (>=782px) wholesale so
   there is no 1024/1025 cliff. Mobile <=781 keeps the native 2-up-with-peek. */
@media (min-width:782px){
  /* Homepage / archive rails: ~250px basis -> 3-4 full cards + visible peek */
  .spoki-prail:not(.spoki-pdp-related__rail) > *{flex:0 0 250px!important;min-width:250px!important}
  /* PDP related rail: LOCKED at ~250px (owner: PDP_RELATED_CARD_WIDTH_APPROVED_250) */
  .spoki-pdp-related__rail > *{flex:0 0 250px!important;min-width:250px!important}
}
