/* Homepage, compact (Abdus #160696/#160697, Nov 24 2026): a short slider at the top and smaller product cards so
   more picks and guides fit on the first screen of a wide display. Homepage only; phones keep the existing layout. */

/* Slider: shorter, photos at a fixed small size on desktop */
@media (min-width: 761px) {
  body .featured { padding: .55rem 0 .2rem; }
  body .featured-head { margin-bottom: .45rem; }
  body .featured-head h1 { font-size: 1.02rem; }
  body .featured-controls button { width: 2.3rem; height: 2.3rem; font-size: .95rem; }
  body .slide { grid-template-columns: minmax(0, 1fr) auto; min-height: 0; padding: .75rem 1rem; gap: 1.25rem; }
  body .slide-copy h2 { font-size: clamp(1.1rem, 1.6vw, 1.45rem); margin-bottom: .3rem; }
  body .slide-copy p { font-size: .9rem; margin-bottom: .55rem; }
  body .slide-copy .button { padding: .45rem .9rem; font-size: .88rem; }
  body .slide-photos { grid-template-columns: repeat(3, 130px); gap: .5rem; }
  body .featured-dots { margin-top: 0; }
}

/* Top picks: more cards per row, smaller photos and text */
@media (min-width: 1001px) {
  body .home-section { padding-top: 1.1rem; padding-bottom: 1.1rem; }
  body .pcard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
  body .pcard img { aspect-ratio: 4 / 3; }
  body .pcard .gcard-tag { margin-top: .45rem; }
  body .pcard-title { font-size: .88rem; }
  body .pcard-price { font-size: .78rem; }
  body .pcard-actions { gap: .3rem; padding-top: .45rem; margin: auto .6rem .6rem; }
  body .pcard-actions .button { font-size: .78rem; padding: .35rem .45rem; min-height: 2.1rem; }
  body .pcard-disclosure { font-size: .74rem; margin-bottom: .55rem; }
}
@media (min-width: 1280px) {
  body .pcard-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body .pcard-actions .pcard-long { display: none; }
  body .pcard-actions .pcard-short { display: inline; }
}
/* Guide rows ("Holiday gift guides", "Top 10", "Compare before you buy"): smaller cards and text, more per row.
   Rows hold 10 or 8 cards, so the column count always divides them: no half-empty last row. */
@media (min-width: 1001px) {
  body .home-head { margin-bottom: .6rem; }
  body .home-head h2 { font-size: 1.25rem; }
  body .home-section .gcard-grid { gap: .6rem; }
  body .home-section .gcard-tag { margin: .45rem .6rem 0; font-size: .64rem; }
  body .home-section .gcard-title { margin: .1rem .6rem 0; font-size: .86rem; }
  body .home-section .gcard-desc { margin: .2rem .6rem .6rem; font-size: .76rem; line-height: 1.35; }
}
@media (min-width: 1700px) {
  body .home-section .gcard-grid:has(> :nth-child(10):last-child) { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  body .home-section .gcard-grid:has(> :nth-child(8):last-child) { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
