/* Category page hero (title + banner image), all screen sizes.
   Used only by the category listing views (pages/product.blade.php and pages/sub-category.blade.php), which add
   the .category-hero class: /products/..., sub-category pages and promotion categories.

   template-layout.css shrinks every .fp__breadcrumb to a slim strip with !important, so these rules repeat the
   class and start from body to out-rank it. Other pages keep the slim strip.

     desktop  992px and up   250px fixed
     tablet   768 to 991px   210px fixed
     mobile   under 768px    at least 150px, grows if a long title wraps (a fixed height would clip it)
*/
body .fp__breadcrumb.category-hero.category-hero { overflow: hidden; }
body .fp__breadcrumb.category-hero.category-hero > div { display: flex !important; align-items: center; justify-content: center; margin: 0 !important; min-height: 0 !important; padding: 0 !important; }
body .fp__breadcrumb.category-hero.category-hero > div > .container-xl,
body .fp__breadcrumb.category-hero.category-hero > div > .container { width: 100%; }
body .fp__breadcrumb.category-hero.category-hero .fp__breadcrumb_text { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; margin: 0 !important; padding: 0 !important; text-align: center; }
body .fp__breadcrumb.category-hero.category-hero .fp__breadcrumb_text h1 { margin: 0 !important; font-weight: 700; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
body .fp__breadcrumb.category-hero.category-hero .fp__breadcrumb_text > div { display: -webkit-box; overflow: hidden; margin: 0 auto !important; padding: 0 !important; text-align: center; -webkit-box-orient: vertical; }
body .fp__breadcrumb.category-hero.category-hero .fp__breadcrumb_text > div:empty { display: none; }

/* Desktop */
@media (min-width: 992px) {
  body .fp__breadcrumb.category-hero.category-hero { height: 250px !important; min-height: 250px !important; }
  body .fp__breadcrumb.category-hero.category-hero > div { height: 100% !important; }
  body .fp__breadcrumb.category-hero.category-hero > div > .container-xl,
  body .fp__breadcrumb.category-hero.category-hero > div > .container { padding: 20px 24px !important; }
  body .fp__breadcrumb.category-hero.category-hero .fp__breadcrumb_text h1 { font-size: 40px !important; line-height: 1.2 !important; }
  body .fp__breadcrumb.category-hero.category-hero .fp__breadcrumb_text > div { max-width: 900px; margin-top: 12px !important; font-size: 17px; line-height: 1.5; -webkit-line-clamp: 3; }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  body .fp__breadcrumb.category-hero.category-hero { height: 210px !important; min-height: 210px !important; }
  body .fp__breadcrumb.category-hero.category-hero > div { height: 100% !important; }
  body .fp__breadcrumb.category-hero.category-hero > div > .container-xl,
  body .fp__breadcrumb.category-hero.category-hero > div > .container { padding: 16px 28px !important; }
  body .fp__breadcrumb.category-hero.category-hero .fp__breadcrumb_text h1 { font-size: 32px !important; line-height: 1.2 !important; }
  body .fp__breadcrumb.category-hero.category-hero .fp__breadcrumb_text > div { max-width: 640px; margin-top: 10px !important; font-size: 15px; line-height: 1.45; -webkit-line-clamp: 2; }
}

/* Mobile */
@media (max-width: 767.98px) {
  body .fp__breadcrumb.category-hero.category-hero { height: auto !important; min-height: 150px !important; }
  body .fp__breadcrumb.category-hero.category-hero > div { min-height: 150px !important; }
  body .fp__breadcrumb.category-hero.category-hero > div > .container-xl,
  body .fp__breadcrumb.category-hero.category-hero > div > .container { padding: 26px 18px !important; }
  body .fp__breadcrumb.category-hero.category-hero .fp__breadcrumb_text h1 { font-size: 26px !important; line-height: 1.22 !important; }
  body .fp__breadcrumb.category-hero.category-hero .fp__breadcrumb_text > div { max-width: 100%; margin-top: 8px !important; font-size: 14px; line-height: 1.45; -webkit-line-clamp: 2; }
}
