.collection-section__header {
  background-color: var(--background);
  color: var(--banner-color);
  display: flex;
  flex-direction: column;
  gap: 2rem;

  .collection-section__banner {
    background-image: var(--banner-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0 0 5rem 5rem;
    position: relative;

    &::before {
      background: var(--overlay);
      content: "";
      height: 100%;
      left: 50%;
      position: absolute;
      top: 50%;
      translate: -50% -50%;
      width: 100%;
      z-index: 1;
    }

    &>div {
      position: relative;
      z-index: 2;
    }

    .collection-section__banner-inner {
      align-items: center;
      display: flex;
      justify-content: end;
      min-height: 30rem;

      .collection-section__banner-context {
        display: flex;
        flex-direction: column;
        gap: 2.4rem;
        max-width: 55rem;

        .collection-section__banner-heading {
          font-size: var(--banner-heading-size);
          font-weight: 500;
          line-height: 1.4;
        }

        .collection-section__banner-content {
          font-size: var(--banner-content-size);
          line-height: 1.4;
        }
      }
    }
  }

  .collection-section__blocks {
    display: grid;
    gap: 2.4rem;
    grid-template-columns: 65% 1fr;
    margin: 2rem 0;

    &:not(:has(.collection-section__block-media)) {
      grid-template-columns: 100%;
    }

    .collection-section__block,
    .collection-section__block-product {
      background: oklch(from #000 l c h / 0.2);
      border-radius: 1.2rem;
      overflow: hidden;
    }

    .collection-section__card-content {
      color: #fff;
      display: flex;
      flex-direction: column;
      gap: 0.8rem;

      .collection-section__card-heading {
        align-items: end;
        display: flex;
        font-size: 1.6rem;
        gap: 1.2rem;
        line-height: 1;

        &::after {
          display: none;
          content: '††';
          font-size: 1.1rem;
        }

        .collection-section__card-heading__count {
          font-size: 4rem;
        }
      }

      .collection-section__card-actions {
        margin: 1.6rem 0;

        .button {
          --border-color: 52 71 63;
          --color-button: 255 255 255;
          --color-button-text: 52 71 63;
        }

        .button.disabled {
          background-color: red;
          cursor: default;
          opacity: 0.5;
          color: #fff;
        }

        .collection-section__card-learmore {
          --border-color: 255 255 255;
          --color-button: 52 71 63 / 0%;
          --color-button-text: 255 255 255;
        }
      }

      .collection-section__card-text {
        align-items: start;
        display: flex;
        font-size: 1.3rem;
        gap: 1.2rem;
        line-height: 1.3;

        &::before {
          display: none;
          content: '††';
          font-size: 1.1rem;
        }
      }
    }
  }

  .collection-section__block-media {
    min-height: 100%;
    padding-bottom: 100%;
    position: relative;

    .collection-section__block-image {
      height: 100%;
      left: 50%;
      object-fit: cover;
      position: absolute;
      top: 50%;
      translate: -50% -50%;
      width: 100%;
    }
  }
}

.collection-section__header--layout-2 {
  background-color: var(--background);
  color: var(--banner-color);
  padding: 4rem 0;

  .collection-section__banner {
    align-items: center;
    display: grid;
    gap: 5rem;
    grid-template-columns: 35.5% 1fr;

    .collection-section__banner-heading {
      font-size: var(--banner-heading-size);
      font-weight: 500;
      line-height: 1.4;
    }

    .collection-section__banner-content {
      font-size: var(--banner-content-size);
      font-weight: 30;
      line-height: 1.4;
    }

    .collection-section__block-product {
      background: oklch(from #000 l c h / 0.2);
      border-radius: 1.2rem;
      overflow: hidden;
    }

    .collection-section__card-content {
      color: #fff;
      display: flex;
      flex-direction: column;
      font-weight: 300;
      gap: 0.8rem;

      .collection-section__card-heading {
        align-items: end;
        display: flex;
        font-size: 1.6rem;
        gap: 1.2rem;
        line-height: 1;

        &::after {
          display: none;
          content: '††';
          font-size: 1.1rem;
        }

        .collection-section__card-heading__count {
          font-size: 4rem;
        }
      }

      .collection-section__card-actions {
        margin: 1.6rem 0;

        .button {
          --border-color: 52 71 63;
          --color-button: 255 255 255;
          --color-button-text: 52 71 63;
        }

        .button.disabled {
          background-color: red;
          cursor: default;
          opacity: 0.5;
          color: #fff;
        }

        .collection-section__card-learmore {
          --border-color: 255 255 255;
          --color-button: 52 71 63 / 0%;
          --color-button-text: 255 255 255;
        }
      }

      .collection-section__card-text {
        align-items: start;
        display: flex;
        font-size: 1.3rem;
        gap: 1.2rem;
        line-height: 1.3;

        &::before {
          display: none;
          content: '††';
          font-size: 1.1rem;
        }
      }
    }
  }
}

.collection-section__card {
  align-items: center;
  border-radius: 1.2rem;
  display: grid;
  font-size: var(--card-size);
  /* grid-template-columns: repeat(2, 1fr); */
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  min-height: 100%;

  .collection-section__card-media {
    height: 100%;
    position: relative;

    .collection-section__card-image {
      border-radius: 1.2rem;
      display: block;
      min-height: 100%;
      overflow: hidden;
      padding-bottom: 100%;
      position: relative;
      width: 100%;
      z-index: 1;

      .collection-section__card-media-tag {
        height: 100%;
        left: 50%;
        object-fit: cover;
        position: absolute;
        top: 50%;
        translate: -50% -50%;
        width: 100%;
      }
    }

    .collection-section__card-badge {
      left: 2rem;
      position: absolute;
      top: 2rem;
      z-index: 2;
    }

    .collection-section__card-label {
      left: 50%;
      position: absolute;
      top: 1.6rem;
      transform: translateX(-50%);
      z-index: 2;
    }
  }

  .collection-section__card-content {
    color: #34473f;
    display: flex;
    flex-direction: column;
    font-size: var(--card-size);
    gap: 1.2rem;
    line-height: 1.4;
    padding: 2rem;

    .collection-section__card-title {
      font-size: var(--product-size);
      font-weight: 500;
      line-height: 1.4;
    }

    .collection-section__card-price {
      align-items: center;
      display: flex;
      gap: 1.2rem;
      flex-wrap: wrap;

      .card-price {
        font-size: 1.15em;
      }

      .card-compare__price {
        text-decoration: line-through;
        font-weight: 300;
      }

      .card-save__percentage {
        border: 1px solid #CCEE67;
        border-radius: 0.3em;
        padding: 0.6em 0.6em 0.5em;
        line-height: 1;
      }
    }

    .collection-section__card-actions {
      display: flex;
      gap: 1.2rem;

      .button {
        --button-min-height: 0;
        --button-min-width: 0;
        --border-color: 52 71 63;
        --color-button: 52 71 63;
        --color-button-text: 255 255 255;
        border: 1px solid rgb(var(--border-color));
        cursor: pointer;
        font-size: var(--action-size);
        white-space: nowrap;
      }

      .button.disabled {
        background-color: #F0F0F0;
        cursor: default;
        opacity: 0.5;
        color: #34473F;
      }

      .collection-section__card-learmore {
        --border-color: 52 71 63;
        --color-button: 255 255 255;
        --color-button-text: 52 71 63;
      }
    }
  }
}

.collection-section__card-badge,
.collection-section__card-label {
  background: var(--background);
  border-radius: 0.3rem;
  color: var(--color);
  font-size: var(--card-size);
  line-height: 1;
  padding: 0.5em 1.2em;
  width: fit-content;

  &.collection-section__card-badge__pill {
    border-radius: calc(var(--card-size) * 3);
  }

  &.collection-section__card-badge__square {
    border-radius: 4px;
  }

  &.badge__add-shadow {
    box-shadow: 0px 0.42em 0.5em 0px oklch(from var(--background) l c h / 0.6);
  }
}

.collection-section__block .collection-section__card-price::after {
  display: none;
  content: "\2020";
  font-size: 1.1rem;
  margin-top: 1.6rem;
}

@media screen and (min-width: 405px) and (max-width: 430px) {
  .collection-section__card .collection-section__card-content .collection-section__card-price {
    gap: .65rem;
  }
}

.collection-section__card-badge-text {
  font-family: "Maison Neue";
  font-weight: 400;
  font-style: normal;
  line-height: 140%;
  letter-spacing: 0;
  color: #34473f;
}

.collection-section__body {
  background: #fff;
  padding-bottom: 3.6rem;

  .pagination-wrapper {
    margin-top: 0;
  }

  .collection-section__grid {
    display: grid;
    gap: 2.4rem;
    grid-template-columns: repeat(2, 1fr);
    padding: 2.4rem 0;

    .collection-section__card {
      background-color: #F0F0F0;
    }
  }
}

@media (width >=768px) {
  .collection-section__card .collection-section__card-content .collection-section__card-price.mobiOnly {
    display: none;
  }

  .collection-section__body .collection-section__card-media .collection-section__card-label {
    display: none;
  }

  .collection-section__body .collection-section__card-content .collection-section__card-price.deskOnly {
    display: flex !important;
  }

  .collection-section__body .collection-section__card-content .collection-section__card-label.deskOnly {
    display: block !important;
  }

  .collection-section__body .collection-section__card-content .collection-section__card-badge-text.deskOnly {
    display: block !important;
  }

  .collection-section__body .collection-section__card-content .collection-section__card-category.deskOnly {
    display: block !important;
  }

  .collection-section__body .collection-section__card-content .collection-section__card-learmore.deskOnly {
    display: inline-block !important;
  }
}

@media (min-width: 1200px) {
  .collection-section__header .collection-section__banner {
    background-position: 50% 35%;
  }
}

@media (width < 992px) {
  .collection-section__header--layout-2 {
    background: transparent;
    padding: 0;

    .collection-section__banner-inner {
      background: var(--background);
      margin: 0 -2rem;
      padding: 4rem 2rem;
    }

    .collection-section__banner {
      gap: 2.4rem;
      grid-template-columns: 100%;

      .collection-section__block-product {
        background: rgb(240, 240, 240);
        color: rgb(52, 71, 63);

        .collection-section__card-content {
          color: rgb(52, 71, 63);
          font-weight: 400;
        }

        .collection-section__card-actions .button {
          --border-color: 52 71 63;
          --color-button: 52 71 63;
          --color-button-text: 255 255 255;
        }

        .collection-section__card-actions .collection-section__card-learmore {
          --border-color: 52 71 63;
          --color-button: 255 255 255;
          --color-button-text: 52 71 63;
        }
      }
    }
  }

  .collection-section__body .collection-section__card {
    grid-template-columns: 100%;
  }
}

@media (width < 768px) {
  .collection-section__header .collection-section__banner {
    border-radius: 0;

    .collection-section__banner-inner {
      align-items: end;
      min-height: 40rem;
      padding: 6rem 0;
    }
  }

  .collection-section__header {
    background: #fff;

    .collection-section__blocks {
      margin: 0;
      grid-template-columns: 100%;

      .collection-section__block,
      .collection-section__block-product {
        background: #F0F0F0;
        color: #34473F;
      }

      .collection-section__card-content {
        color: #34473F;

        .collection-section__card-actions .button {
          --border-color: 52 71 63;
          --color-button: 52 71 63;
          --color-button-text: 255 255 255;
        }

        .collection-section__card-actions .collection-section__card-learmore {
          --border-color: 52 71 63;
          --color-button: 255 255 255;
          --color-button-text: 255 255 255;
          --color-button-text: 52 71 63;
        }
      }
    }
  }

  .collection-section__body .collection-section__grid {
    grid-template-columns: 100%;
  }

  .collection-section__card {
    grid-template-columns: 100%;

    .collection-section__card-media {
      .collection-section__card-label {
        top: 1.2rem;
      }
    }

    .collection-section__card-content .collection-section__card-price.deskOnly {
      display: none;
    }

    .collection-section__card-content .collection-section__card-price.mobiOnly {
      justify-content: space-between;
      align-items: center;

      .collection-section__card-price-inner {
        display: flex;
        flex-wrap: wrap;
        gap: 1.2rem;
        align-items: center;
      }

      .card-price {
        font-weight: 300;

        .card-price__span {
          font-weight: 500;
        }
      }
    }

    .collection-section__card-content .collection-section__card-actions {
      flex-direction: column;

      .collection-section__card-learmore.deskOnly {
        display: none;
      }
    }
  }
}