/* AL BADI PREMIUM V10.1 — RESPONSIVE FIX */

/* Expand collection without changing other sections */
#featured-collections {
  width: 100%;
  max-width: none;
  min-width: 0;
}

#featured-collections .abp10 {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding: 32px clamp(18px, 2.5vw, 42px) 22px;
}

#featured-collections .abp10-main {
  display: grid;
  grid-template-columns: minmax(220px, 26%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 2vw, 36px);
}

#featured-collections .abp10-intro {
  min-width: 0;
  position: relative;
  z-index: 1;
}

#featured-collections .abp10-rail {
  min-width: 0;
  width: 100%;
  justify-content: flex-start !important;
  align-items: stretch;
  scroll-padding-inline: 0;
  padding: 5px 0 12px;
}

#featured-collections .abp10-card {
  flex: 0 0 clamp(170px, 17vw, 235px);
  min-width: 0;
  height: clamp(305px, 28vw, 390px);
  scroll-snap-align: start;
}

#featured-collections .abp10-card-title {
  overflow-wrap: break-word;
}

#featured-collections .abp10-benefits {
  width: 100%;
}

/* Large desktop: show four cards where space allows */
@media (min-width: 1450px) {
  #featured-collections .abp10-main {
    grid-template-columns: minmax(280px, 25%) minmax(0, 1fr);
  }

  #featured-collections .abp10-rail {
    gap: 14px;
  }

  #featured-collections .abp10-card {
    flex-basis: calc((100% - 42px) / 4);
    max-width: 260px;
    height: 390px;
  }
}

/* Laptop */
@media (min-width: 901px) and (max-width: 1449px) {
  #featured-collections .abp10-main {
    grid-template-columns: minmax(230px, 27%) minmax(0, 1fr);
  }

  #featured-collections .abp10-card {
    flex-basis: clamp(185px, 19vw, 235px);
    height: 355px;
  }
}

/* Tablet and mobile */
@media (max-width: 900px) {
  #featured-collections .abp10 {
    padding: 26px 18px 20px;
    border-radius: 22px;
  }

  #featured-collections .abp10-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  #featured-collections .abp10-intro {
    width: 100%;
  }

  #featured-collections .abp10-title {
    max-width: 100%;
    margin: 12px 0;
    font-size: clamp(38px, 7vw, 54px);
  }

  #featured-collections .abp10-description {
    max-width: 570px;
    margin-bottom: 20px;
  }

  #featured-collections .abp10-controls {
    margin-top: 18px;
  }

  #featured-collections .abp10-rail {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  #featured-collections .abp10-card {
    flex: 0 0 min(52vw, 255px);
    height: 355px;
  }

  #featured-collections .abp10-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  #featured-collections .abp10 {
    padding: 22px 14px 16px;
    border-radius: 18px;
  }

  #featured-collections .abp10-eyebrow {
    font-size: 10px;
    letter-spacing: .12em;
  }

  #featured-collections .abp10-title {
    font-size: clamp(36px, 10vw, 46px);
    line-height: 1.04;
  }

  #featured-collections .abp10-description {
    font-size: 13px;
    line-height: 1.65;
  }

  #featured-collections .abp10-cta {
    min-height: 46px;
    font-size: 13px;
  }

  #featured-collections .abp10-rail {
    gap: 12px;
  }

  #featured-collections .abp10-card {
    flex: 0 0 min(74vw, 265px);
    height: 345px;
  }

  #featured-collections .abp10-category {
    font-size: 9px;
  }

  #featured-collections .abp10-card-title {
    font-size: 20px;
  }

  #featured-collections .abp10-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 0;
  }

  #featured-collections .abp10-benefit {
    min-width: 0;
    padding: 9px 7px;
    gap: 7px;
  }

  #featured-collections .abp10-benefit:nth-child(2n) {
    border-right: 0;
  }

  #featured-collections .abp10-benefit-icon {
    flex: 0 0 25px;
    font-size: 21px;
  }

  #featured-collections .abp10-benefit strong {
    font-size: 10px;
  }

  #featured-collections .abp10-benefit small {
    font-size: 9px;
    line-height: 1.4;
  }
}
