/* Add custom CSS styles below */ 
/* =========================================
   HANDY — PREMIUM IMAGE QUALITY
   Theme: High
   ========================================= */

/* --- GLOBAL IMAGE RENDERING --- */

img {
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


/* --- PRODUCT IMAGES --- */

.product-card img,
.product-entry img,
.product-image img,
.product-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}


/* --- IMAGE CONTAINERS --- */

.product-card,
.product-entry,
.product-image,
.product-item {
    overflow: hidden;
}


/* --- HERO / BANNER IMAGES --- */

.banner img,
.hero img,
.slider img,
.swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}


/* --- PREVENT IMAGE DISTORTION --- */

img {
    max-width: 100%;
}


/* --- MOBILE IMAGE QUALITY --- */

@media (max-width: 767px) {

    img {
        max-width: 100%;
        height: auto;
    }

    .banner img,
    .hero img,
    .slider img,
    .swiper-slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}


/* --- DESKTOP IMAGE QUALITY --- */

@media (min-width: 768px) {

    .banner img,
    .hero img,
    .slider img,
    .swiper-slide img {
        width: 100%;
        height: auto;
    }
}


/* --- SMOOTH PREMIUM IMAGE TRANSITION --- */

.product-card img,
.product-entry img,
.product-image img,
.product-item img {
    transition: transform 0.35s ease;
}


/* --- SUBTLE LUXURY HOVER --- */

@media (hover: hover) {

    .product-card:hover img,
    .product-entry:hover img {
        transform: scale(1.015);
    }

/* HANDY — Wider product grid on mobile */
@media (max-width: 768px) {

  /* Expand product sections */
  .s-products-list-wrapper,
  .s-products-list,
  .products-container,
  .products-grid,
  .product-grid,
  section:has(product-card) .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Keep two products per row with a small gap */
  .s-products-list,
  .products-grid,
  .product-grid {
    gap: 10px !important;
  }

  /* Product cards use the available width */
  product-card,
  .product-entry,
  .product-card {
    width: 100% !important;
    max-width: none !important;
  }
}