/* PC In Cyprus — homepage merchandising (pcic_home): homepage-only presentation overrides.
   Loaded only on common/home through the document style list (no theme file edited). CSS only, no JS. */

/* Phones: the trust strip (6 cards, 2 columns = ~745 px at 375 px) and the 4 category banners
   (stacked full-width = ~1025 px) become one swipeable row each: same content, ~1 card height. */
@media (max-width: 575.98px) {
  #common-home .pr-advantage,
  #common-home .pr-banner-plus {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 2px;
  }
  #common-home .pr-advantage::-webkit-scrollbar,
  #common-home .pr-banner-plus::-webkit-scrollbar { display: none; }

  #common-home .pr-advantage > div { flex: 0 0 46%; max-width: 46%; scroll-snap-align: start; }
  #common-home .pr-banner-plus > div { flex: 0 0 78%; max-width: 78%; scroll-snap-align: start; }

  #common-home .pr-advantages-item { padding: 12px; }
  #common-home .pr-advantages-item-title { margin-top: 8px !important; font-size: 14px; }
  #common-home .pr-advantages-item-description { font-size: 12px; }
}

/* Section headings link to the full listing ("Gaming PCs" → category): make the link look like the heading. */
#common-home .pr-module > .pr-page-title a { color: inherit; text-decoration: none; }
#common-home .pr-module > .pr-page-title a:hover { text-decoration: underline; }

/* "Explore more categories" (pcic_home type categories): a compact grid on desktop / tablet, one swipeable row on phones. */
#common-home .pcic-explore-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
#common-home .pcic-explore-link { height: 100%; padding: 12px; gap: 8px; text-decoration: none; }
#common-home .pcic-explore-link:hover .pcic-explore-name { text-decoration: underline; }
#common-home .pcic-explore-img { width: 100%; max-width: 120px; height: auto; object-fit: contain; }
#common-home .pcic-explore-name { font-size: 14px; line-height: 1.3; }
#common-home .pcic-explore-count { opacity: .7; }
@media (min-width: 1200px) {
  #common-home .pcic-explore-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  #common-home .pcic-explore-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 2px;
  }
  #common-home .pcic-explore-list::-webkit-scrollbar { display: none; }
  #common-home .pcic-explore-item { flex: 0 0 38%; max-width: 38%; scroll-snap-align: start; }
  #common-home .pcic-explore-img { max-width: 88px; }
  #common-home .pcic-explore-name { font-size: 13px; }
}
