/* PlaySpotStore V7 — phone contact buttons + responsive homepage product listings.
   Loaded last. Does not alter category/product modals, inventory, checkout, or desktop social cards. */

/* The homepage "new arrivals" and "sale" listings were still inheriting a
   flex / auto-fit layout with a 206px minimum cell, causing horizontal overflow. */
body section.new-arrival,
body section.product-promotions {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(12px, 2.5vw, 36px) !important;
  padding-right: clamp(12px, 2.5vw, 36px) !important;
}
body section.new-arrival > h2,
body section.product-promotions > h2 {
  max-width: 100%;
  overflow-wrap: break-word;
  text-align: center;
}
body .featured-products,
body #new-products,
body #promo-products {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  gap: clamp(12px, 1.4vw, 20px) !important;
  width: 100% !important;
  max-width: 1360px !important;
  min-width: 0 !important;
  margin: 20px auto 0 !important;
  padding: 0 !important;
  flex: 0 1 auto !important;
}
body .featured-products > .product-card {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 7px !important;
  padding: clamp(10px, 1.4vw, 17px) !important;
}
body .featured-products .product-card .game-link {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}
body .featured-products .product-card img {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: clamp(135px, 15vw, 185px) !important;
  max-height: none !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  padding: 5px !important;
}
body .featured-products .product-card h4 {
  font-size: clamp(12px, 1.15vw, 16px) !important;
  line-height: 1.38 !important;
  margin: 3px 0 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow-wrap: anywhere !important;
  flex-grow: 1;
}
body .featured-products .product-card p {
  font-size: clamp(11px, 1vw, 14px) !important;
  line-height: 1.38 !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow-wrap: anywhere !important;
}
body .featured-products .product-card .shop-now-button {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-top: auto !important;
  padding: 11px 8px !important;
  line-height: 1.25 !important;
  font-size: clamp(11px, 1.07vw, 14px) !important;
  overflow-wrap: anywhere !important;
}
body .featured-products .product-card .new-sticker,
body .featured-products .product-card .sale-sticker {
  box-sizing: border-box !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  max-width: calc(100% - 16px) !important;
  padding: 5px 7px !important;
  line-height: 1.15 !important;
  font-size: 10px !important;
  text-align: center !important;
}

@media (max-width: 940px) {
  body .featured-products,
  body #new-products,
  body #promo-products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 670px) {
  /* Two *real* columns rather than four 206px-wide cells overflowing the phone. */
  body section.new-arrival,
  body section.product-promotions {
    padding-left: 11px !important;
    padding-right: 11px !important;
    gap: 8px !important;
  }
  body .featured-products,
  body #new-products,
  body #promo-products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 11px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 12px auto 0 !important;
  }
  body .featured-products > .product-card {
    padding: 9px !important;
    gap: 7px !important;
    border-radius: 12px !important;
  }
  body .featured-products .product-card img {
    height: clamp(116px, 35vw, 173px) !important;
    padding: 2px !important;
  }
  body .featured-products .product-card h4 {
    font-size: clamp(12px, 3.1vw, 14px) !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }
  body .featured-products .product-card p {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
  body .featured-products .product-card .shop-now-button {
    font-size: 12px !important;
    padding: 10px 5px !important;
  }
  body .featured-products .product-card .new-sticker,
  body .featured-products .product-card .sale-sticker {
    font-size: 9px !important;
    top: 5px !important;
    right: 5px !important;
    padding: 4px 5px !important;
  }

  /* Social/contact tiles: keep the existing two-up design, but place the
     button on its own line so the background cannot fracture mid-word. */
  body section.social-media {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-items: stretch !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 24px 12px !important;
  }
  body section.social-media > .social-card {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex: none !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 17px 10px !important;
    overflow: hidden !important;
  }
  body section.social-media > .social-card i {font-size: 27px !important; margin: 0 !important;}
  body section.social-media > .social-card h3 {
    max-width: 100% !important;
    font-size: clamp(18px, 4.5vw, 23px) !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    overflow-wrap: break-word !important;
  }
  body section.social-media > .social-card p {
    max-width: 100% !important;
    font-size: clamp(12px, 3.35vw, 14px) !important;
    line-height: 1.4 !important;
    margin: 0 0 5px !important;
    overflow-wrap: break-word !important;
  }
  body section.social-media > .social-card a.btn {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 45px !important;
    margin: auto 0 0 !important;
    padding: 10px 5px !important;
    border-radius: 9px !important;
    font-size: clamp(10px, 2.95vw, 13px) !important;
    line-height: 1.28 !important;
    letter-spacing: -.015em !important;
    font-weight: 800 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  body section.social-media > .social-card:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 420px !important;
    justify-self: center !important;
  }
  body section.social-media > .social-card:last-child:nth-child(odd) a.btn {
    max-width: 280px !important;
  }
}
@media(max-width:355px) {
  body section.social-media {gap: 8px !important; padding: 18px 8px !important;}
  body section.social-media > .social-card {padding: 14px 7px !important;}
  body section.social-media > .social-card a.btn {font-size:10px!important; padding:9px 4px!important;}
  body .featured-products,
  body #new-products,
  body #promo-products {gap: 8px !important;}
  body .featured-products > .product-card {padding: 7px !important;}
}
