/* ==========================================================================
   Synergreens — storefront breadcrumb hero.
   Replaces the old plain "custom-page-header" block (broken demo Home
   link, generic checkout-background.jpg, no overlay/contrast handling)
   with a premium hero that mirrors the /about page's hero language (see
   sg-about-page.css) — same teal brand palette, eyebrow pill,
   icon-separated breadcrumb, and wave divider.
   Scoped entirely under .sg-shop-hero so it cannot leak into (or be
   affected by) the legacy Porto theme .page-header / .breadcrumb classes
   still used elsewhere in the codebase.
   Shared by shop.php, package_category.php, retail_category.php and
   subscription_bundle.php — the base .sg-shop-hero__bg background-image
   is the /shop shopping/beauty-products graphic; each page opts into a
   purpose-made variant via a BEM modifier (.sg-shop-hero--packages,
   .sg-shop-hero--subscription) so the artwork always matches what the
   page is actually selling, while every other visual (overlay gradient,
   eyebrow pill, breadcrumb, wave divider) stays identical across pages.
   ========================================================================== */

.sg-shop-hero {
  --sg-sh-royal: #04878b;
  --sg-sh-royal-deep: #01393a;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 360px;
  padding: 140px 0 84px;
  overflow: hidden;
  background-color: var(--sg-sh-royal-deep);
  font-family: "Poppins", sans-serif;
}
.sg-shop-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/templates/sgi-frontend-theme/img/page-header/sg-checkout-hero.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
}
/* Per-page background variants: same box, overlay, wave and typography —
   only the artwork changes to match what each page is actually selling. */
.sg-shop-hero--retail .sg-shop-hero__bg {
  background-image: url('/templates/sgi-frontend-theme/img/page-header/sg-checkout-hero.jpg');
}
.sg-shop-hero--packages .sg-shop-hero__bg {
  background-image: url('/templates/sgi-frontend-theme/img/page-header/sg-checkout-hero.jpg');
}
.sg-shop-hero--subscription .sg-shop-hero__bg {
  background-image: url('/templates/sgi-frontend-theme/img/page-header/sg-checkout-hero.jpg');
}
.sg-shop-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(1, 22, 24, 0.94) 0%, rgba(1, 36, 38, 0.78) 34%, rgba(1, 46, 48, 0.42) 58%, rgba(1, 28, 30, 0.18) 100%);
}
.sg-shop-hero .container {
  position: relative;
  z-index: 2;
}
.sg-shop-hero__content {
  max-width: 640px;
}
.sg-shop-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.sg-shop-hero__crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
}
.sg-shop-hero__crumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.sg-shop-hero__crumbs a:hover {
  color: #ffffff;
}
.sg-shop-hero__crumbs i {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
}
.sg-shop-hero__crumbs span {
  color: #ffffff;
}
.sg-shop-hero__title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
}
.sg-shop-hero__subtitle {
  margin: 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.6;
}
.sg-shop-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}
.sg-shop-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.sg-shop-hero__meta i {
  color: #8fb0ff;
  font-size: 12px;
}
/* Luxurious layered wave divider: a bold navy-to-teal gradient sweep
   with a glossy inset shadow along the fold, plus a soft silver sheen streak
   peeking through the dip — mirrors the reference's diagonal gradient-silver
   blend rather than a flat single-color cutout. */
.sg-shop-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  line-height: 0;
}
.sg-shop-hero__wave svg {
  display: block;
  width: 100%;
  height: 112px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
  .sg-shop-hero { min-height: 300px; padding: 120px 0 70px; }
  .sg-shop-hero__title { font-size: 36px; }
  .sg-shop-hero__wave svg { height: 84px; }
}
@media (max-width: 575.98px) {
  .sg-shop-hero {
    min-height: 260px;
    padding: 104px 0 56px;
    text-align: center;
    align-items: flex-end;
  }
  .sg-shop-hero__content { max-width: none; margin: 0 auto; }
  .sg-shop-hero__eyebrow { font-size: 10px; }
  .sg-shop-hero__crumbs { justify-content: center; font-size: 12px; }
  .sg-shop-hero__title { font-size: 26px; }
  .sg-shop-hero__subtitle { font-size: 13.5px; margin: 0 auto; }
  .sg-shop-hero__meta { justify-content: center; }
  .sg-shop-hero__wave svg { height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-shop-hero * {
    transition: none !important;
  }
}
