/* Perla Moda — final responsive framing for the homepage slider. */
body.page-home .hero-slider {
  isolation: isolate !important;
  width: min(calc(100% - 64px), 1220px) !important;
  height: clamp(410px, 37vw, 500px) !important;
  min-height: 410px !important;
  max-height: 500px !important;
  margin: 18px auto 28px !important;
  border: 1px solid rgba(125, 91, 41, .12) !important;
  border-radius: 24px !important;
  background: #1a120c !important;
  box-shadow: 0 22px 54px rgba(46, 31, 16, .13) !important;
  overflow: hidden !important;
}

body.page-home .hero-slider,
body.page-home .hero-slider .slider-track,
body.page-home .hero-slider .slide,
body.page-home .hero-slider .slide-bg,
body.page-home .hero-slider .slide-bg img,
body.page-home .hero-slider .slide-overlay,
body.page-home .hero-slider .slide-content {
  border-radius: inherit !important;
}

body.page-home .hero-slider .slide-bg img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 44% !important;
  transform: scale(1.001) !important;
  transition: transform 7s cubic-bezier(.2, .65, .25, 1) !important;
}

body.page-home .hero-slider .slide.active .slide-bg img {
  transform: scale(1.035) !important;
}

body.page-home .hero-slider .slide-overlay {
  background: linear-gradient(90deg, rgba(16, 10, 6, .7), rgba(16, 10, 6, .28) 48%, rgba(16, 10, 6, .04) 78%) !important;
}

html[dir="rtl"] body.page-home .hero-slider .slide-overlay {
  background: linear-gradient(270deg, rgba(16, 10, 6, .7), rgba(16, 10, 6, .28) 48%, rgba(16, 10, 6, .04) 78%) !important;
}

body.page-home .hero-slider .slide-content .container {
  width: min(calc(100% - 96px), 1100px) !important;
  max-width: 1100px !important;
  height: 100% !important;
  padding-inline: 0 !important;
}

body.page-home .hero-slider .slide-inner {
  height: 100% !important;
  padding: 0 0 52px !important;
  align-items: flex-end !important;
}

body.page-home .hero-slider .slide-text {
  width: min(500px, 48%) !important;
  max-width: 500px !important;
}

body.page-home .hero-slider .slide-title {
  margin-bottom: .65rem !important;
  font-size: clamp(2.2rem, 4vw, 3.75rem) !important;
  line-height: 1.06 !important;
}

body.page-home .hero-slider .slide-desc {
  margin-bottom: 1.05rem !important;
  font-size: .95rem !important;
  line-height: 1.7 !important;
}

body.page-home .hero-slider .slider-btn {
  width: 40px !important;
  height: 40px !important;
  border-color: rgba(255, 255, 255, .28) !important;
  background: rgba(20, 13, 8, .32) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14) !important;
  transition: background-color .22s ease, border-color .22s ease !important;
}

body.page-home .hero-slider .slider-prev { inset-inline-start: 18px !important; }
body.page-home .hero-slider .slider-next { inset-inline-end: 18px !important; }

body.page-home .hero-slider .slider-btn:hover {
  border-color: rgba(255, 255, 255, .58) !important;
  background: rgba(255, 255, 255, .18) !important;
  transform: translateY(-50%) !important;
}

body.page-home .hero-slider .slider-dots {
  bottom: 16px !important;
  padding: 6px 8px !important;
  gap: 5px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  background: rgba(15, 10, 6, .34) !important;
  box-shadow: none !important;
}

body.page-home .hero-slider .slider-dot {
  width: 7px !important;
  min-width: 7px !important;
  height: 7px !important;
  min-height: 7px !important;
  transition: width .28s cubic-bezier(.22, 1, .36, 1), background-color .2s ease !important;
}

body.page-home .hero-slider .slider-dot.active {
  width: 22px !important;
  min-width: 22px !important;
  background: #e5c77e !important;
}

@media (min-width: 769px) and (max-width: 1024px) {
  body.page-home .hero-slider {
    width: calc(100% - 32px) !important;
    height: 380px !important;
    min-height: 380px !important;
    border-radius: 20px !important;
  }

  body.page-home .hero-slider .slide-content .container {
    width: calc(100% - 72px) !important;
  }
}

/* Laptop composition: wide editorial banner, not a full-screen hero. */
@media (min-width: 1025px) {
  body.page-home .hero-slider {
    width: min(calc(100% - 64px), 1220px) !important;
    height: clamp(350px, 29vw, 390px) !important;
    min-height: 350px !important;
    max-height: 390px !important;
    margin: 16px auto 28px !important;
    border-radius: 26px !important;
    border-color: rgba(116, 82, 34, .16) !important;
    box-shadow:
      0 24px 54px rgba(45, 29, 13, .14),
      0 2px 0 rgba(255, 255, 255, .72) inset !important;
  }

  body.page-home .hero-slider::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    display: block !important;
    pointer-events: none !important;
    border: 1px solid rgba(255, 255, 255, .24) !important;
    border-radius: inherit !important;
    box-shadow: inset 0 -70px 90px rgba(10, 6, 3, .08) !important;
  }

  body.page-home .hero-slider .slide-bg img,
  body.page-home .hero-slider .slide.active .slide-bg img {
    object-position: center !important;
    transform: none !important;
    transition: none !important;
  }

  body.page-home .hero-slider .slide-overlay {
    display: block !important;
    background:
      linear-gradient(90deg, rgba(18, 11, 6, .7) 0%, rgba(18, 11, 6, .34) 38%, rgba(18, 11, 6, .06) 70%),
      linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .14)) !important;
  }

  html[dir="rtl"] body.page-home .hero-slider .slide-overlay {
    background:
      linear-gradient(90deg, rgba(18, 11, 6, .7) 0%, rgba(18, 11, 6, .34) 38%, rgba(18, 11, 6, .06) 70%),
      linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .14)) !important;
  }

  body.page-home .hero-slider .slide-content .container {
    width: min(calc(100% - 112px), 1080px) !important;
    max-width: 1080px !important;
  }

  body.page-home .hero-slider .slide-inner {
    height: 100% !important;
    padding: 0 0 34px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
  }

  body.page-home .hero-slider .slide-text {
    position: relative !important;
    flex: 0 0 min(460px, 45%) !important;
    width: min(460px, 45%) !important;
    max-width: 460px !important;
    padding: 22px 24px 23px !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(23, 14, 8, .48), rgba(23, 14, 8, .22)) !important;
    box-shadow:
      0 18px 42px rgba(0, 0, 0, .16),
      inset 0 1px 0 rgba(255, 255, 255, .1) !important;
    backdrop-filter: blur(10px) saturate(1.1) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.1) !important;
  }

  body.page-home .hero-slider .slide-text::before {
    content: "CURATED COLLECTION" !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 24px !important;
    margin-bottom: 10px !important;
    padding: 4px 9px !important;
    border: 1px solid rgba(232, 201, 122, .34) !important;
    border-radius: 999px !important;
    background: rgba(232, 201, 122, .1) !important;
    color: #f1d99f !important;
    font-size: .58rem !important;
    font-weight: 800 !important;
    letter-spacing: .12em !important;
    line-height: 1 !important;
  }

  html[lang="ar"] body.page-home .hero-slider .slide-text::before {
    content: "مجموعة مختارة" !important;
    letter-spacing: 0 !important;
  }

  body.page-home .hero-slider .slide-title {
    max-width: 13ch !important;
    margin-bottom: .45rem !important;
    font-size: clamp(2rem, 3vw, 2.8rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-shadow: 0 5px 22px rgba(0, 0, 0, .24) !important;
  }

  body.page-home .hero-slider .slide-desc {
    max-width: 40ch !important;
    margin-bottom: .9rem !important;
    font-size: .88rem !important;
    line-height: 1.65 !important;
    color: rgba(255, 255, 255, .82) !important;
  }

  body.page-home .hero-slider .slide-actions .btn {
    min-height: 42px !important;
    min-width: 148px !important;
    padding: .62rem 1.2rem !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #d4b66e, #aa7f32) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(95, 64, 20, .24) !important;
    font-size: .78rem !important;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease !important;
  }

  body.page-home .hero-slider .slide-actions .btn:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.04) !important;
    box-shadow: 0 13px 28px rgba(95, 64, 20, .3) !important;
  }

  body.page-home .hero-slider .slider-btn {
    z-index: 5 !important;
    width: 42px !important;
    height: 42px !important;
    border-color: rgba(255, 255, 255, .3) !important;
    background: rgba(18, 11, 6, .28) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16) !important;
  }

  body.page-home .hero-slider .slider-dots {
    z-index: 5 !important;
    bottom: 14px !important;
    padding: 7px 9px !important;
    border-color: rgba(255, 255, 255, .2) !important;
    background: rgba(18, 11, 6, .42) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12) !important;
  }
}

@media (max-width: 768px) {
  body.page-home .hero-slider {
    width: calc(100% - 24px) !important;
    height: clamp(230px, 62vw, 300px) !important;
    min-height: 230px !important;
    max-height: 300px !important;
    margin: 12px auto 22px !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 30px rgba(45, 29, 14, .1) !important;
  }

  body.page-home .hero-slider .slide-bg img {
    object-position: center !important;
    transform: none !important;
  }

  body.page-home .hero-slider .slide.active .slide-bg img {
    transform: none !important;
  }

  body.page-home .hero-slider .slider-dots {
    bottom: 9px !important;
  }
}

@media (max-width: 380px) {
  body.page-home .hero-slider {
    width: calc(100% - 18px) !important;
    height: 215px !important;
    min-height: 215px !important;
    margin-top: 9px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .hero-slider .slide-bg img,
  body.page-home .hero-slider .slider-dot {
    transition: none !important;
    transform: none !important;
  }
}

@media (min-width: 769px) {
  html[dir="rtl"] body.page-home .hero-slider .slide-inner,
  html[lang="ar"] body.page-home .hero-slider .slide-inner {
    justify-content: flex-start !important;
  }

  html[dir="rtl"] body.page-home .hero-slider .slide-text,
  html[lang="ar"] body.page-home .hero-slider .slide-text {
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
  }
}
