/* Treasure v1.15 — homepage NEW ARRIVALS only.
   Match v1.14 mobile Related cards (~44vw/194px max, 236px-tall portrait
   photographs). Does not touch the homepage's other carousels, desktop,
   header, product image galleries, swatches or cart. */
@media screen and (max-width: 767px) {
  /* Treasure Premium Homepage outputs these product cards inside #new. */
  .thp2-root.thp2-home #new .thp2-real-product {
    box-sizing: border-box !important;
    flex: 0 0 clamp(154px, 44vw, 194px) !important;
    width: clamp(154px, 44vw, 194px) !important;
    min-width: clamp(154px, 44vw, 194px) !important;
    max-width: clamp(154px, 44vw, 194px) !important;
    scroll-snap-align: start;
    align-self: stretch;
  }

  /* Some versions wrap cards in an actual carousel slide. Resize that slide
     too; don't change the track or its scrolling / arrow event listeners. */
  .thp2-root.thp2-home #new :is(.swiper-slide, .splide__slide, .slick-slide):has(> .thp2-real-product) {
    box-sizing: border-box !important;
    flex: 0 0 clamp(154px, 44vw, 194px) !important;
    width: clamp(154px, 44vw, 194px) !important;
    min-width: clamp(154px, 44vw, 194px) !important;
    max-width: clamp(154px, 44vw, 194px) !important;
    scroll-snap-align: start;
  }

  /* Images were styled as a short, cropped landscape panel. Keep the same
     image files but show the WHOLE photo in a portrait-sized frame. */
  .thp2-root.thp2-home #new .thp2-real-product :is(
      .thp2-product-image, .thp2-product-media, .thp2-product-photo,
      .thp2-product-thumb, .thp2-card-image, .thp2-card-media,
      .thp2-product-image-wrap, .thp2-product-img
  ) {
    height: 236px !important;
    max-height: 236px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    background: #f8f9fa !important;
    border-radius: 14px !important;
  }
  /* Support simple <a><img></a> and <picture><img></picture> photo wrappers. */
  .thp2-root.thp2-home #new .thp2-real-product :is(a,figure,picture):has(> img):not(:has(.thp2-product-meta)) {
    height: 236px !important;
    max-height: 236px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    background: #f8f9fa !important;
    border-radius: 14px !important;
  }
  .thp2-root.thp2-home #new .thp2-real-product img {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 236px !important;
    max-height: 236px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #f8f9fa !important;
  }
  /* Tight card content as in mobile Related products. */
  .thp2-root.thp2-home #new .thp2-real-product .thp2-product-meta {
    box-sizing: border-box !important;
    min-width: 0 !important;
    padding: 10px 10px 12px !important;
  }
}

/* Treasure v1.35 — New Arrivals label visual polish.
   STUDENT BUDGET BAGS in the approved mobile screenshot renders in
   #1a2638; match that actual displayed ink colour rather than the former
   #192b41 approximation. Keep the category title's Manrope type metrics.
   Limited to title h3 and its product link; leave slider, prices, photos,
   buttons, and shop / single-product pages untouched. */
.thp2-root.thp2-home #new .thp2-real-product .thp2-product-meta h3,
.thp2-root.thp2-home #new .thp2-real-product .thp2-product-meta h3 a,
.thp2-root.thp2-home #new .thp2-real-product .thp2-product-meta h3 a:visited {
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  letter-spacing: .085em !important;
  line-height: 1.5 !important;
  text-transform: uppercase !important;
  color: #1a2638 !important;
  -webkit-text-fill-color: #1a2638 !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
