/* Sustainable flooring collection — Figma node 9178:18623 (1920).
 * 7 × 220px cards + 24px gaps in a 1684px track (80px section inset).
 * Clear specialOffersSec/container paddings that were stacking and
 * shrinking slides below 220px (overlap at 1920@100%). */
.ecoCollectionSec {
  display: block;
  min-height: 0;
  height: auto;
  padding: 120px 80px 80px;
  overflow: visible;
  background: #fff;
  box-sizing: border-box;
}

.ecoCollectionSec > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
  box-sizing: border-box;
}

.ecoCollectionSec .heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  min-height: 78px;
  margin: 0 0 44px;
  padding: 0 32px;
  box-sizing: border-box;
}

.ecoCollectionSec .heading .left {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.ecoCollectionSec .heading h2 {
  margin: 0;
  color: #363635;
  font-family: "Noto Sans", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: -0.2px;
  text-transform: capitalize;
}

.ecoCollectionSec .heading p {
  margin: 0;
  color: #000;
  font-family: Lato, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: 0.52px;
}

.ecoCollectionSec .heading .desktopCollectionCopy {
  display: block;
}

.ecoCollectionSec .heading .mobileCollectionCopy {
  display: none;
}

/* Mobile copy lives in mobile-homepage.css (Figma 9292:10512). */
@media (max-width: 599px) {
  .ecoCollectionSec .heading .desktopCollectionCopy {
    display: none !important;
  }

  .ecoCollectionSec .heading .mobileCollectionCopy {
    display: inline !important;
  }
}

/* Figma 9292:7971 — Shop Eco Range (desktop heading CTA). */
.ecoCollectionSec .heading .btnLinkWrap {
  flex: 0 0 auto;
  margin: 0;
}

.ecoCollectionSec .heading .btnLinkWrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 226px;
  height: 72px;
  padding: 0 22px;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  color: #30a67f;
  font-family: "Noto Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.2px;
  text-decoration: none;
  background: #e6f4ef;
  box-shadow: none;
  box-sizing: border-box;
  transition: color 0.2s ease, background 0.2s ease;
}

.ecoCollectionSec .heading .btnLinkWrap a:hover {
  color: #1f8462;
  background: #e0f9f0;
  text-decoration: none;
  box-shadow: none;
}

.ecoCollectionSec .heading .btnLinkWrap svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.ecoCollectionSec .productList {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  /* Kill style.css `.specialOffersSec .productList` 36px — caused squeeze. */
  padding: 0 !important;
}

.ecoCollectionSec .bestsellerSwipereco,
.ecoCollectionSec .productList .bestsellerSwipereco {
  position: relative !important;
  width: 100%;
  height: auto;
  min-height: 0;
  /* Figma cards start at x=38 inside the 1760 content band. */
  padding: 0 38px !important;
  overflow: hidden;
  box-sizing: border-box;
}

.ecoCollectionSec .bestsellerSwipereco .swiper-wrapper {
  height: auto;
  align-items: stretch;
}

.ecoCollectionSec .bestseller-card {
  height: auto;
  border-radius: 30px;
  box-sizing: border-box;
}

.ecoCollectionSec .bestsellerSwipereco .product-card,
.ecoCollectionSec .bestsellerSwiper .product-card {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 388px;
  margin: 0 !important;
  padding: 10px;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}

.ecoCollectionSec .product-thumb {
  width: 100%;
  height: 250px;
  flex: 0 0 250px;
  overflow: hidden;
  border-radius: 20px;
}

.ecoCollectionSec .title-box {
  height: auto;
  min-height: 54px;
  margin-top: 12px;
  gap: 10px;
}

.ecoCollectionSec .product-brand {
  line-height: 20px;
}

.ecoCollectionSec .product-title {
  min-height: 24px;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecoCollectionSec .price-line {
  height: 32px;
  margin-top: 16px;
  line-height: 32px;
}

.ecoCollectionSec .price-line a {
  line-height: 32px;
}

.ecoCollectionSec .swatches {
  margin-top: 16px;
}

.ecoCollectionSec .swiper-button-prev,
.ecoCollectionSec .swiper-button-next {
  top: 50%;
  margin-top: 0;
  transform: translateY(-50%);
}

.ecoCollectionSec .swiper-button-prev {
  left: 0;
}

.ecoCollectionSec .swiper-button-next {
  right: 0;
}

/* Match Special Offers dots — 16×16, 6px gap, 44px above */
@media (min-width: 981px) {
  .ecoCollectionSec.specialOffersSec .productList .swiper-pagination,
  .ecoCollectionSec .bestsellerSwipereco .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    width: 100%;
    height: 16px;
    margin: 44px 0 0 !important;
    padding: 0 !important;
    transform: none !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 0;
  }

  .ecoCollectionSec.specialOffersSec
    .productList
    .swiper-pagination
    span.swiper-pagination-bullet,
  .ecoCollectionSec
    .bestsellerSwipereco
    .swiper-pagination
    span.swiper-pagination-bullet,
  .ecoCollectionSec.specialOffersSec
    .productList
    .swiper-pagination
    span.swiper-pagination-bullet.swiper-pagination-bullet-active,
  .ecoCollectionSec
    .bestsellerSwipereco
    .swiper-pagination
    span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    display: block;
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    flex: 0 0 16px !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    transform: none !important;
    transition: background-color 0.25s ease;
  }

  .ecoCollectionSec.specialOffersSec
    .productList
    .swiper-pagination
    span.swiper-pagination-bullet,
  .ecoCollectionSec
    .bestsellerSwipereco
    .swiper-pagination
    span.swiper-pagination-bullet {
    background: #ebebea !important;
  }

  .ecoCollectionSec.specialOffersSec
    .productList
    .swiper-pagination
    span.swiper-pagination-bullet.swiper-pagination-bullet-active,
  .ecoCollectionSec
    .bestsellerSwipereco
    .swiper-pagination
    span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: #30a67f !important;
  }
}

/* Mid desktop / 1920×1080 @ 125% (~1536 CSS px). */
@media (min-width: 981px) and (max-width: 1599px) {
  .ecoCollectionSec {
    padding: 96px 48px 72px;
  }

  .ecoCollectionSec .heading {
    padding: 0 16px;
    margin-bottom: 32px;
  }

  .ecoCollectionSec .bestsellerSwipereco,
  .ecoCollectionSec .productList .bestsellerSwipereco {
    padding: 0 24px !important;
  }
}

@media (max-width: 980px) and (min-width: 600px) {
  .ecoCollectionSec {
    min-height: 0;
    padding: 56px 24px;
  }

  .ecoCollectionSec .heading {
    min-height: 0;
    margin-bottom: 32px;
    padding: 0;
  }

  .ecoCollectionSec .heading .left {
    gap: 12px;
  }

  .ecoCollectionSec .heading p {
    line-height: 28px;
  }

  .ecoCollectionSec .bestsellerSwipereco,
  .ecoCollectionSec .productList .bestsellerSwipereco {
    padding: 0 0 56px !important;
  }

  .ecoCollectionSec .btnLinkWrap.onlymobileView {
    display: flex;
    margin: 28px 0 0;
    justify-content: center;
  }

  .ecoCollectionSec .btnLinkWrap.onlymobileView a {
    display: inline-flex;
    height: 60px;
  }
}

/* Mobile ≤599px is owned by mobile-homepage.css (Figma 9292:10512). */
@media (max-width: 599px) {
  .ecoCollectionSec .bestsellerSwipereco,
  .ecoCollectionSec .productList .bestsellerSwipereco {
    padding: 0 !important;
  }
}
