/* core/banners/css/banners.css */
/* TOT CSS-ul este scoped sub .banners */

.banners {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

/* slot wrapper full width */
.banners--product_after_desc {
  width: 100%;
}

/* fiecare element isi poate seta width (flex-basis) din config */
.banners .banners__item {
  flex: 0 0 var(--ui-w, auto);
  max-width: var(--ui-w, 100%);
  margin-left: var(--ui-ml, 0);
  margin-right: var(--ui-mr, 0);
}

/* TEXT sizes din config */
.banners .banners__title { font-size: var(--ui-title, 14px); line-height: 1.2; }
.banners .banners__text  { font-size: var(--ui-text, 13px); line-height: 1.25; }
.banners .banners__sub   { font-size: var(--ui-sub, 12px); line-height: 1.25; opacity: 0.85; }

/* BADGE IMG */
.banners .banners__badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.banners .banners__img {
  display: block;
  height: 22px;
  width: auto;
}
.banners .banners__img--block {
  width: 100%;
  height: auto;
}

/* BUTTON */
.banners .banners__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.05);
  text-decoration: none;
  font-weight: 600;
  color: inherit;
}

/* LINK */
.banners .banners__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  color: inherit;
}

/* HERO BANNER: container w/h, imagine cover centrat (pos) */
.banners .banners__hero {
  flex: 0 0 var(--ui-w, 100%);
  max-width: var(--ui-w, 100%);
  width: 100%;
  height: var(--ui-h, 240px);

  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.03);

  display: block; /* pentru <a> */
  text-decoration: none;
  color: inherit;
}

.banners .banners__heroImg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--ui-pos, 50% 50%);
}

.banners .banners__heroOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.00));
  color: #fff;
}

/* LABEL LINE (profi) */
.banners .banners__label {
  width: 100%;
  flex: 0 0 var(--ui-w, 100%);
  max-width: var(--ui-w, 100%);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.03);
  color: inherit;
}

.banners .banners__labelBody {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.banners .banners__labelIcon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.7);
  flex: 0 0 auto;
  position: relative;
}

.banners .banners__labelIcon::after {
  content: attr(data-icon);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  opacity: 0.75;
}

.banners .banners__labelChevron {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(0,0,0,0.35);
  border-bottom: 2px solid rgba(0,0,0,0.35);
  transform: rotate(-45deg);
  opacity: 0.7;
}
