/* ==========================================================================
   bege-routes-media.v1.css
   Scoped 100% to internal routes (/promotions, /promotion/:id, Mega-Menu preview).
   ZERO rules touch app-home or Home page animations.
   ========================================================================== */

/* 1. /promotions (Limited time offers) — uncropped 1600x850 Bauhaus banners on Mobile & Desktop */
app-promotions app-home-promo .category_slider .item {
  border-radius: 14px !important;
  overflow: hidden !important;
}

app-promotions app-home-promo .category_slider .item img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1600 / 850 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 14px !important;
  display: block !important;
}

app-promotions app-home-promo .promo-flex-container .image-wrapper {
  border-radius: 14px !important;
  overflow: hidden !important;
}

app-promotions app-home-promo .promo-flex-container .image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 14px !important;
}

/* 2. /promotion/:id detail header banner — clean aspect ratio for landscape & portrait */
app-promotion .offers-flex-container:not(.portrait) .offer__image {
  height: auto !important;
  max-height: none !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

app-promotion .offers-flex-container:not(.portrait) .offer__image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1600 / 850 !important;
  max-height: 450px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 14px !important;
  display: block !important;
}

app-promotion .offers-flex-container.portrait .offer__image {
  height: auto !important;
  max-width: 420px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

app-promotion .offers-flex-container.portrait .offer__image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 960 / 1080 !important;
  max-height: 460px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  display: block !important;
}

app-promotion .categories-flex-container .category__image img {
  object-fit: cover !important;
}

/* 3. Desktop Mega-Menu right-hand preview photo (attribute-scoped ONLY to our Bauhaus/Hero WebPs) */
app-header .all-categories-menu-wrapper img[src*="/assets/brand/"],
app-header .all-categories-menu-wrapper img[src*="/assets/homesol/"],
app-header .all-categories-menu-wrapper img[src*="/assets/hero-banners/"] {
  width: 300px !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(16, 18, 22, 0.12) !important;
}
