/* =========================================
   SOUQ TCHAD HOME HERO — RESPONSIVE FIX
========================================= */

/* تحسين مربع البحث */
.stp-search-form input,
.st-search-form input {
  min-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

/* =========================================
   HERO — DESKTOP
========================================= */

.home-products-page .hero-copy,
.home-page .hero-copy {
  width: 100% !important;
  min-height: 300px !important;
  padding: 46px 44px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
}

.home-products-page .hero-copy > div,
.home-page .hero-copy > div {
  width: 100% !important;
  max-width: 820px !important;
}

.home-products-page .hero-copy .eyebrow,
.home-page .hero-copy .eyebrow {
  display: block !important;
  margin-bottom: 10px !important;
  color: #f3ca61 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: 3px !important;
}

.home-products-page .hero-copy h1,
.home-page .hero-copy h1 {
  max-width: 780px !important;
  margin: 0 0 18px !important;
  font-size: clamp(38px, 5vw, 64px) !important;
  line-height: 1.12 !important;
  font-weight: 950 !important;
  text-wrap: balance !important;
}

.home-products-page .hero-copy p,
.home-page .hero-copy p {
  max-width: 760px !important;
  margin: 0 !important;
  color: #cbd7da !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
}

.home-products-page .hero-actions,
.home-page .hero-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 24px !important;
}

.home-products-page .hero-primary,
.home-products-page .hero-secondary,
.home-page .hero-primary,
.home-page .hero-secondary {
  width: auto !important;
  min-width: 180px !important;
  min-height: 54px !important;
  padding: 11px 18px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  white-space: normal !important;
}

.home-products-page .hero-primary svg,
.home-products-page .hero-secondary svg,
.home-page .hero-primary svg,
.home-page .hero-secondary svg {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 auto !important;
}

/* الدائرة الخلفية */
.home-products-page .hero-copy::after,
.home-page .hero-copy::after {
  width: 300px !important;
  height: 300px !important;
  border-width: 60px !important;
  inset-inline-end: -115px !important;
  top: -90px !important;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
  .home-products-page .hero-copy,
  .home-page .hero-copy {
    min-height: auto !important;
    padding: 35px 28px !important;
    border-radius: 25px !important;
  }

  .home-products-page .hero-copy h1,
  .home-page .hero-copy h1 {
    font-size: clamp(34px, 7vw, 49px) !important;
    line-height: 1.16 !important;
  }

  .home-products-page .hero-copy p,
  .home-page .hero-copy p {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {
  .home-products-page .hero-copy,
  .home-page .hero-copy {
    width: 100% !important;
    min-height: 0 !important;
    padding: 27px 20px 24px !important;
    border-radius: 23px !important;
    align-items: flex-start !important;
  }

  .home-products-page .hero-copy > div,
  .home-page .hero-copy > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-products-page .hero-copy .eyebrow,
  .home-page .hero-copy .eyebrow {
    margin-bottom: 9px !important;
    font-size: 13px !important;
    letter-spacing: 2.7px !important;
  }

  .home-products-page .hero-copy h1,
  .home-page .hero-copy h1 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
    font-size: clamp(31px, 9vw, 39px) !important;
    line-height: 1.18 !important;
    text-wrap: balance !important;
    overflow-wrap: normal !important;
  }

  .home-products-page .hero-copy p,
  .home-page .hero-copy p {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.72 !important;
  }

  /* الأزرار تحت بعضها لمنع تداخل النص الفرنسي */
  .home-products-page .hero-actions,
  .home-page .hero-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 19px !important;
  }

  .home-products-page .hero-primary,
  .home-products-page .hero-secondary,
  .home-page .hero-primary,
  .home-page .hero-secondary {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  .home-products-page .hero-copy::after,
  .home-page .hero-copy::after {
    width: 230px !important;
    height: 230px !important;
    border-width: 45px !important;
    inset-inline-end: -100px !important;
    top: -65px !important;
  }

  .stp-search-form input,
  .st-search-form input {
    font-size: 14px !important;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 390px) {
  .home-products-page .hero-copy,
  .home-page .hero-copy {
    padding: 24px 17px 21px !important;
    border-radius: 21px !important;
  }

  .home-products-page .hero-copy h1,
  .home-page .hero-copy h1 {
    font-size: 29px !important;
    line-height: 1.2 !important;
  }

  .home-products-page .hero-copy p,
  .home-page .hero-copy p {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  .home-products-page .hero-primary,
  .home-products-page .hero-secondary,
  .home-page .hero-primary,
  .home-page .hero-secondary {
    min-height: 50px !important;
    font-size: 14px !important;
  }
}