/* Catalog + sharing refinement — scoped to the requested EN catalogue and product-detail controls. */

/* Four balanced product cards across the English full catalogue at desktop widths. */
body.ec-lang-en .ec-catalogue__content .ec-product-list.ec-product-list--four {
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:18px !important;
}

/* Laser Therapy is the seventh English system tile; retain the full single desktop row. */
body.ec-lang-en .ec-category-strip .ec-shell {
  grid-template-columns:repeat(7, minmax(0, 1fr));
}
body.ec-lang-en .ec-category-strip a {
  min-width:0;
}
body.ec-lang-en .ec-category-strip a b {
  overflow-wrap:anywhere;
}

/* A legacy card rule uses display:flex!important, which otherwise defeats the native hidden attribute after a filter tap. */
.ec-product-list .ec-card[hidden] {
  display:none !important;
}

/* EN homepage filters must remain fully tappable and the result grid stays two-up on phones. */
@media (max-width:760px) {
  body.ec-lang-en .ec-section--products .ec-tabs[data-filter-tabs] {
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:8px;
    overflow:visible !important;
    padding:0;
  }
  body.ec-lang-en .ec-section--products .ec-tabs[data-filter-tabs] button {
    min-width:0;
    min-height:44px;
    padding:8px 7px;
    white-space:normal;
    line-height:1.15;
  }
  body.ec-lang-en .ec-section--products .ec-product-list.ec-product-list--four {
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:12px !important;
  }
}
@media (max-width:560px) {
  body.ec-lang-en .ec-section--products .ec-tabs[data-filter-tabs] {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

/* The WhatsApp share control exists in markup but an old floating-control rule hid it. */
body.single-product .etwc-product-share__links .etwc-share-icon--whatsapp {
  display:grid !important;
}

@media (max-width:1180px) {
  body.ec-lang-en .ec-category-strip .ec-shell {
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
  body.ec-lang-en .ec-catalogue__content .ec-product-list.ec-product-list--four {
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width:900px) {
  body.ec-lang-en .ec-catalogue__content .ec-product-list.ec-product-list--four {
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:14px !important;
  }
}

@media (max-width:600px) {
  body.ec-lang-en .ec-category-strip .ec-shell {
    grid-template-columns:1fr;
  }
  body.ec-lang-en .ec-catalogue__content .ec-product-list.ec-product-list--four {
    gap:11px !important;
  }
}
