/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
/* =====================================================
   MOBILE: 2 PRODUCTS PER ROW (CATEGORY + SEARCH ONLY)
   Using FLEX to keep rows neat when heights differ
   ===================================================== */
@media (max-width: 767px) {

  /* Make the product list a flex grid */
  body#category .products,
  body#search .products {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -2px !important;
    margin-right: -2px !important;
  }

  /* Each product takes 50% width */
  body#category .products .product-miniature,
  body#search .products .product-miniature {
    float: none !important;              /* override theme float */
    width: 50% !important;
    box-sizing: border-box !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    margin-bottom: 8px !important;       /* vertical breathing room */
  }

  /* Make cards feel bigger (less inner padding) */
  body#category .products .product-miniature .thumbnail-container,
  body#search .products .product-miniature .thumbnail-container {
    padding: 2px !important;
  }

  /* Tighter text area spacing */
  body#category .products .product-miniature .product-description,
  body#search .products .product-miniature .product-description {
    padding: 6px 6px !important;
  }

  /* Clean 2-line product titles */
  body#category .products .product-miniature .product-title,
  body#search .products .product-miniature .product-title {
    font-size: 15px !important;
    line-height: 1.2 !important;
    min-height: 2.4em !important; /* keeps equal height for 2 lines */
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  /* Hide discount badges on mobile grids only */
  body#category .products .product-miniature .product-flags,
  body#search .products .product-miniature .product-flags {
    display: none !important;
  }
}
/* =====================================================
   WHATSAPP FLOATING BUTTON -> ROUND ICON STYLE
   ===================================================== */
.whatsapp.whatsapp-badge.bottom-right span {
  width: 56px !important;
  height: 56px !important;
  border-radius: 999px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Hide the "Contact us on WhatsApp" text */
.whatsapp.whatsapp-badge.bottom-right p {
  display: none !important;
}

/* Improve icon alignment + size */
.whatsapp.whatsapp-badge.bottom-right .whatsapp-icon {
  margin: 0 !important;
  font-size: 28px !important;
  line-height: 1 !important;
}