/* Qoffa Smart — final text/image separation for the hero carousel.
   The generated campaign image stays unobstructed; copy lives in a dedicated contrast panel. */

body.index-page .banner-media::before,
body.index-page .banner-media::after {
  content: none !important;
  display: none !important;
}

body.index-page .banner-overlay {
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 43%;
  min-width: 330px;
  box-sizing: border-box;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border-inline-start: 1px solid rgba(229, 191, 104, .52);
  background:
    radial-gradient(circle at 76% 15%, rgba(229, 191, 104, .13), transparent 30%),
    linear-gradient(160deg, #102a20 0%, #173d2c 54%, #1b5139 100%);
  padding: 144px clamp(28px, 4vw, 64px) 118px;
  text-align: right;
}

body.index-page .banner-overlay::before {
  top: 42px;
  right: clamp(28px, 4vw, 64px);
  left: auto;
  border-color: rgba(229, 191, 104, .68);
  background: rgba(10, 28, 21, .56);
  color: #f3d991;
}

body.index-page .banner-overlay::after {
  display: block;
  position: static;
  order: 1;
  max-width: 420px;
  margin: 0 0 0 auto;
  border-inline-end: 3px solid #e5bf68;
  border-radius: 0 14px 14px 0;
  color: #fffdf6;
  padding: 15px 18px;
  font-size: clamp(.98rem, 1.65vw, 1.35rem);
  font-weight: 800;
  line-height: 1.85;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .34);
}

body.index-page .banner-slide[data-index='0'] .banner-overlay::after {
  content: 'طازجة، مختارة بعناية، واصلة حتى لباب دارك';
}

body.index-page .banner-slide[data-index='1'] .banner-overlay,
body.index-page .banner-slide[data-index='2'] .banner-overlay {
  right: auto;
  left: 0;
  border-inline-start: 0;
  border-inline-end: 1px solid rgba(229, 191, 104, .52);
  text-align: left;
}

body.index-page .banner-slide[data-index='1'] .banner-overlay::before,
body.index-page .banner-slide[data-index='2'] .banner-overlay::before {
  right: auto;
  left: clamp(28px, 4vw, 64px);
}

body.index-page .banner-slide[data-index='1'] .banner-overlay::after,
body.index-page .banner-slide[data-index='2'] .banner-overlay::after {
  margin-left: 0;
  margin-right: auto;
  border-inline-end: 0;
  border-inline-start: 3px solid #e5bf68;
  border-radius: 14px 0 0 14px;
  text-align: left;
}

body.index-page .banner-slide[data-index='1'] .banner-overlay::after {
  content: 'من الاختيار حتى التوصيل، قفتك كتوصلك طازجة لباب دارك';
}

body.index-page .banner-slide[data-index='2'] .banner-overlay::after {
  content: 'فواكه، خضر، أعشاب وباقات جاهزة لكل احتياجات دارك';
}

body.index-page .banner-cta {
  order: 2;
  right: clamp(28px, 4vw, 64px);
  left: auto;
  bottom: 46px;
  min-height: 52px;
  background: #d6ed80;
  color: #14271e;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .24);
}

body.index-page .banner-slide[data-index='1'] .banner-cta,
body.index-page .banner-slide[data-index='2'] .banner-cta {
  right: auto;
  left: clamp(28px, 4vw, 64px);
}

@media (max-width: 820px) {
  body.index-page .banner-overlay,
  body.index-page .banner-slide[data-index='1'] .banner-overlay,
  body.index-page .banner-slide[data-index='2'] .banner-overlay {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    min-width: 0;
    height: 42%;
    min-height: 246px;
    border: 0;
    border-bottom: 1px solid rgba(229, 191, 104, .55);
    background: linear-gradient(180deg, rgba(13, 40, 29, .98) 0%, rgba(18, 53, 38, .92) 68%, rgba(18, 53, 38, .18) 100%);
    padding: 80px 7% 70px;
    text-align: center;
  }

  body.index-page .banner-overlay::before,
  body.index-page .banner-slide[data-index='1'] .banner-overlay::before,
  body.index-page .banner-slide[data-index='2'] .banner-overlay::before {
    top: 20px;
    right: 7%;
    left: auto;
  }

  body.index-page .banner-overlay::after,
  body.index-page .banner-slide[data-index='1'] .banner-overlay::after,
  body.index-page .banner-slide[data-index='2'] .banner-overlay::after {
    max-width: 600px;
    margin: 0 auto;
    border-inline: 0;
    border-top: 2px solid #e5bf68;
    border-radius: 0 0 14px 14px;
    background: rgba(10, 28, 21, .22);
    padding: 12px 14px;
    font-size: .88rem;
    line-height: 1.7;
    text-align: center;
  }

  body.index-page .banner-cta,
  body.index-page .banner-slide[data-index='1'] .banner-cta,
  body.index-page .banner-slide[data-index='2'] .banner-cta {
    right: 7%;
    left: 7%;
    bottom: 19px;
    min-height: 44px;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  body.index-page .banner-overlay,
  body.index-page .banner-slide[data-index='1'] .banner-overlay,
  body.index-page .banner-slide[data-index='2'] .banner-overlay {
    height: 40%;
    min-height: 225px;
    padding-top: 72px;
  }

  body.index-page .banner-overlay::before,
  body.index-page .banner-slide[data-index='1'] .banner-overlay::before,
  body.index-page .banner-slide[data-index='2'] .banner-overlay::before {
    top: 17px;
  }

  body.index-page .banner-overlay::after,
  body.index-page .banner-slide[data-index='1'] .banner-overlay::after,
  body.index-page .banner-slide[data-index='2'] .banner-overlay::after {
    font-size: .78rem;
  }
}
