/* Qoffa Smart — v9 hero rebuild
   Image-first campaign composition. Copy sits only in the intentional negative space of each supplied visual. */

body.index-page .banner-carousel {
  width: min(calc(100% - 32px), 1400px);
  margin: 20px auto 54px;
  border-radius: 34px;
  box-shadow: 0 28px 72px rgba(17, 50, 35, .18);
}

body.index-page .banner-carousel::before {
  display: none;
}

body.index-page .banner-carousel::after,
body.index-page #bannerSlides:empty::after,
body.index-page .banner-slide.active:not(:has(.banner-text))::after {
  content: none !important;
  display: none !important;
}

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

body.index-page .banner-slide,
body.index-page .banner-media {
  min-height: 0;
  aspect-ratio: 2048 / 1143;
}

body.index-page .banner-media {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

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

body.index-page .banner-media::after {
  display: block !important;
  content: '' !important;
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 43, 29, .03), rgba(15, 43, 29, .18));
  pointer-events: none;
}

body.index-page .banner-slide[data-index='0'] .banner-media::after {
  background: linear-gradient(90deg, rgba(15, 43, 29, .03) 0%, rgba(15, 43, 29, .10) 46%, rgba(15, 43, 29, .38) 100%);
}

body.index-page .banner-slide[data-index='1'] .banner-media::after,
body.index-page .banner-slide[data-index='2'] .banner-media::after {
  background: linear-gradient(90deg, rgba(15, 43, 29, .50) 0%, rgba(15, 43, 29, .20) 40%, rgba(15, 43, 29, .03) 78%);
}

body.index-page .banner-media img,
body.index-page .banner-media video,
body.index-page .banner-media iframe {
  display: none !important;
}

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 {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  min-width: 0;
  height: auto;
  box-sizing: border-box;
  display: block;
  overflow: hidden;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: right;
  pointer-events: none;
}

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 {
  content: 'QOFFA SMART';
  position: absolute;
  top: 8%;
  right: 8%;
  left: auto;
  display: inline-flex;
  width: max-content;
  min-height: 0;
  align-items: center;
  border: 1px solid rgba(229, 191, 104, .55);
  border-radius: 999px;
  background: rgba(15, 43, 29, .46);
  color: #f4d78d;
  padding: 8px 13px;
  font: 900 .61rem/.95 'DM Sans', sans-serif;
  letter-spacing: .16em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .13);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

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 {
  content: 'طازجة، مختارة بعناية، واصلة حتى لباب دارك';
  position: absolute;
  top: 31%;
  right: 8%;
  left: auto;
  display: block;
  width: min(34%, 450px);
  max-width: 450px;
  margin: 0;
  border: 0;
  border-inline-end: 2px solid #e5bf68;
  border-radius: 0 12px 12px 0;
  background: rgba(14, 39, 27, .28);
  color: #fffdf5;
  padding: 10px 18px;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  font-weight: 850;
  line-height: 1.85;
  text-align: right;
  text-shadow: 0 3px 15px rgba(0, 0, 0, .54);
  pointer-events: none;
}

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

body.index-page .banner-slide[data-index='1'] .banner-overlay::after,
body.index-page .banner-slide[data-index='2'] .banner-overlay::after {
  border-inline-end: 0;
  border-inline-start: 2px solid #e5bf68;
  border-radius: 12px 0 0 12px;
  background: rgba(14, 39, 27, .30);
  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,
body.index-page .banner-slide[data-index='1'] .banner-cta,
body.index-page .banner-slide[data-index='2'] .banner-cta {
  position: absolute;
  z-index: 7;
  right: 8%;
  left: auto;
  bottom: 11%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 13px;
  background: #d6ed80;
  color: #14271e;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .20);
  padding: 12px 20px;
  font-size: .86rem;
  font-weight: 900;
  pointer-events: auto;
}

body.index-page .banner-slide[data-index='1'] .banner-cta,
body.index-page .banner-slide[data-index='2'] .banner-cta {
  right: auto;
  left: 8%;
}

body.index-page .banner-dots {
  z-index: 9;
  right: 50%;
  left: auto;
  bottom: 16px;
  transform: translateX(50%);
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(14, 39, 27, .52);
  padding: 7px 10px;
}

@media (max-width: 820px) {
  body.index-page .banner-slide,
  body.index-page .banner-media {
    aspect-ratio: 1143 / 2048;
  }

  body.index-page .banner-media::after,
  body.index-page .banner-slide[data-index='0'] .banner-media::after,
  body.index-page .banner-slide[data-index='1'] .banner-media::after,
  body.index-page .banner-slide[data-index='2'] .banner-media::after {
    background: linear-gradient(180deg, rgba(13, 40, 29, .46) 0%, rgba(13, 40, 29, .03) 33%, rgba(13, 40, 29, .38) 100%);
  }

  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 {
    display: block;
    text-align: center;
    pointer-events: none;
  }

  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: 5%;
    right: 50%;
    left: auto;
    transform: translateX(50%);
    padding: 7px 11px;
    font-size: .56rem;
  }

  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 {
    top: 16%;
    right: 7%;
    left: 7%;
    width: auto;
    max-width: none;
    margin: 0;
    border: 0;
    border-top: 2px solid #e5bf68;
    border-radius: 0 0 12px 12px;
    background: rgba(14, 39, 27, .60);
    padding: 10px 12px;
    font-size: .78rem;
    line-height: 1.65;
    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: 50%;
    left: auto;
    bottom: 9%;
    transform: translateX(50%);
    min-height: 44px;
    padding: 10px 16px;
    font-size: .72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.index-page .banner-slide { animation: none !important; }
}
