.collection__list-description {

  .page-title {
    font-size: 18px;
    color: #0F305B80;
    padding-block: 20px;
    border-bottom: 1px solid #E6E6E6;

    @media (width <=991px) {
      margin-bottom: 30px;
    }
  }

  .rte {
    max-width: 1020px;
    margin: auto;

    * {
      font-size: 22px;
      line-height: 35px;

      @media (width <=991px) {
        font-size: 16px;
        line-height: 24px;
      }
    }
  }
}

.collection__grid-section {
  padding-block: 80px 50px;

  @media (width <=991px) {
    padding-block: 30px 40px;
  }

  .collection__list-loop {
    max-width: 1152px;
    padding-inline: 16px;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;

    @media (width <=991px) {
      gap: 10px !important;
    }
  }

  .collection__list-item {
    grid-column: auto;
    position: relative;
    background-color: #D6EAF8;

    .collection__item-image {
      background-color: #D6EAF8;

      img {
        max-width: 330px;
        object-fit: contain;
        inset: 0;
        margin: auto;
        background-color: transparent;
        height: auto;
        top: 15%;

        @media (width <=991px) {
          max-width: 65%;
        }
      }
    }

    .grid-layout__editorial & {

      &:nth-child(3n) {
        grid-column: span 2;

        .collection__item-details {
          position: absolute;
          inset: 0;
          margin: auto;
          align-content: center;
          width: 40%;
          margin-inline: 0 auto;
          padding: 10px;
        }

        .box-ratio {
          width: 60%;
          position: relative;
          margin: auto 0 auto auto;
          padding-bottom: 45% !important;


          img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
            max-width: 500px;
            padding-right: 50px;

            @media (width <=991px) {
              max-width: 75%;
              padding-right: 0;
            }
          }
        }
      }

      &:nth-child(6n) {
        .collection__item-details {
          margin-inline: auto 0;
        }

        .box-ratio {
          margin: auto auto auto 0;

          img {
            padding-right: 0;
          }
        }
      }
    }

    .box-ratio {
      background-color: transparent;
      padding-bottom: 114% !important;
    }

    .collection__item-details {
      position: absolute;
      inset: 0;
      top: 70px;
      padding: 10px;

      @media (width <=749px) {
        top: 10px;
      }

      .collection--title {
        font-family: var(--heading-family);
        font-size: 24px;
        margin-bottom: 16px;
        color: #0F305B;

        @media (width <=991px) {
          font-size: 16px;
        }

        @media (width <=749px) {
          margin-bottom: 0;
        }
      }

      u {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 3px;
        text-underline-offset: 6px;
        color: #0F305B;
        text-decoration-color: #0f305b87;
        font-weight: 500;

        @media (width <=991px) {
          font-size: 10px;
        }

        @media (width <=749px) {
          display: none;
        }
      }
    }
  }
}

.collection__section--banner {
  position: relative;
  height: 37dvh;
  background-color: #D6EAF8;

  @media (width <=768px) {
    height: auto;
    padding-bottom: 20px;
  }
}

.collection__banner-image {
  position: absolute;
  inset: 0;
  height: 100%;

  @media (width <=768px) {
    height: auto;
    position: relative;
    margin-bottom: 20px;
  }

  .box-ratio {
    background-color: #D6EAF8;

    @media (width <=768px) {
      height: auto;
      position: relative;
      padding-bottom: 0 !important;
    }
  }

  img {
    height: 100%;
    position: absolute;
    object-fit: contain;
    right: 0;
    background-color: #D6EAF8;
    width: 50%;
    max-height: 380px;

    @media (width <=991px) {
      height: auto;
      top: 0;
    }

    @media (width <=768px) {
      position: relative;
      margin: auto;
      display: block;
      width: 80%;
    }
  }
}

.collection__banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  text-align: center;

  @media (width <=991px) {
    width: 100%;
  }

  @media (width <=768px) {
    position: relative;
  }

  &.position__middle-right {
    margin-inline: auto 0;
  }

  &.position__middle-center {
    margin-inline: auto;
  }

  &.text-light {

    .collection__banner-title,
    .subheader {
      color: #0F305B;
    }


    .collection__banner-title {
      margin-bottom: 10px;
      font-size: 40px;
      padding-inline: 1rem;
    }

    .subheader {
      font-size: 11px;
      letter-spacing: 3px;
      font-weight: 400;
      text-transform: uppercase;
      margin-bottom: 20px;
    }
  }
}

.collection__page {
  padding-block: 60px 40px;
  background-color: #FAFAFA;
  margin-top: 0 !important;

  .gridlock .row {
    width: 1340px;
    max-width: none;
  }

  .product-loop {
    column-gap: 20px !important;
    row-gap: 25px !important;
  }

  .collection__page-description {
    font-size: 16px;
    line-height: 29px;
    text-align: center;
  }

  .image_portrait {
    .box-ratio {
      padding-bottom: 117% !important;
    }
  }

  .collection__page-product {
    position: relative;
    background-color: #fff;
    overflow: visible !important;

    @media (width > 991px) {
      &:hover {
        box-shadow:
          inset 1px 0 0 #7c7c7c87,
          inset -1px 0 0 #7c7c7c87,
          inset 0 1px 0 #7c7c7c87;
        background: #fafafa;

        .product-info {
          z-index: 100;
          opacity: 1;
          background: #fafafa;
          box-shadow:
            inset 1px 0 0 #7c7c7c87,
            inset -1px 0 0 #7c7c7c87,
            inset 0 -1px 0 #7c7c7c87;
        }

        img {
          width: 85%;
        }
      }
    }

    &.span-3.auto {
      @media (width <=1024px) {
        grid-column: auto / span 4;
      }
    }

    .reveal {
      pointer-events: none;
    }

    .prod-image {
      overflow: visible;
    }

    img {
      object-fit: contain;
      height: 80%;
      width: 80%;
      transition: all .3s ease-in-out;
      /* top: 40%; */
    }

    .product-listing__quickview-trigger {
      position: relative;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 0;
      transition: all .2s ease-in-out;
      font-weight: 300;
      padding: 11px 19px;
      line-height: 1;
      height: auto;
    }
  }

  .product-info {
    padding: 0 20px 25px;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    background-color: #fff;
    transition: all .2s ease-in-out;
    opacity: 0;
    z-index: -1;

    @media (width <=1024px) {
      opacity: 1;
      z-index: 1;
      position: relative;
    }

    .product-info-inner {
      width: 100%;
      max-width: 215px;
    }
  }

  .prod-title {
    font-size: 16px;
    color: #6E8297;
    margin-bottom: 18px;
    text-align: center;
    line-height: 20px;
    display: block;
    font-weight: 300;
  }

  #pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 14;
    position: relative;
    color: #0F305B;
    margin-top: 90px;

    @media (width <=991px) {
      margin-top: 50px;
    }

    a {
      border: 0;
      height: 38px;
      width: 38px;
      color: #0F305B;

      justify-content: center;
      display: flex;
      align-items: center;

      svg {
        height: 18px;
      }
    }

    span {
      height: 38px;
      width: 38px;

      &.current {
        background-color: #0E305B !important;
        border-radius: 0;
        color: #fff;
        font-weight: 300;
      }
    }
  }
}

.collection__filter-toggleWrapper {
  grid-template-columns: auto;
  border-bottom: 0;

  .filter-price__trigger.js-show-filters {
    border: 0;
    color: #757575;
    letter-spacing: 0;
    font-size: 16px;
    gap: 20px;
    padding-inline: 0;
    outline: none !important;
    background-color: transparent;
    font-weight: 300;

    svg {
      g {
        fill: #757575;
      }
    }
  }

  .sort__filter--triggers {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .collection__horizontal-toolbar.sort-by__wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;

    @media (width <=768px) {
      width: 200px;
    }

    .collection__filtering {
      display: flex;
      flex-direction: row-reverse;
      align-items: center;
      justify-content: space-between;
      gap: 13px !important;
    }

    .chosen-value {
      color: #757575 !important;
      letter-spacing: 0;
      font-size: 16px !important;
      background: transparent;
      border: 0;
      position: relative;
      text-align: right !important;
      font-weight: 300 !important;

      &:hover {
        font-weight: 500 !important;
      }
    }

    svg {
      right: 0;
      position: relative;
      top: auto;
      transform: none;

      g {
        fill: #757575;
      }
    }

    .value-list {
      z-index: 15;
      color: #757575;
      padding: 0 !important;
      margin: 0;
      border: 0 !important;
    }
  }
}

.collection__page-filter {

  p,
  .collection__filtering {
    font-size: 14px;
  }
}

.filter-price__trigger {
  &:hover {
    font-weight: 500 !important;
  }
}

.subcollection-items {
  display: flex;
  text-align: center;
  gap: 30px;
  justify-content: center;
  margin-block: 20px 40px;
  flex-wrap: wrap;

  @media (width <=768px) {
    margin-block: 0 40px;
    column-gap: 15px;
    row-gap: 15px;
    display: none; /* Hide original items on mobile */
  }

  img {
    max-height: 40px;
    margin-bottom: 10px;
    width: 100%;
    border: 0 !important;
  }

  .subcollection-item {

    &:hover,
    &.active {
      p {
        background-color: #E0EBF4;
      }
    }

    &.active {
      p {
        background-color: #E0EBF4;
      }
    }

  }

  p {
    font-size: 16px;
    color: #757575;
    margin-bottom: 0;
    transition: all .3s cubic-bezier(0.075, 0.82, 0.165, 1);
    padding: 10px 20px;
    background-color: #fff;
    min-width: 200px;

    @media (width <=768px) {
      min-width: auto
    }
  }
}

/* Mobile dropdown styles */
.subcollection-dropdown {
  display: none;
  margin-block: 0 40px;
  position: relative;

  @media (width <=768px) {
    display: block;
  }

  .dropdown-trigger {
    width: 100%;
    padding: 12px 20px;
    background-color: #fff;
    border: 1px solid #E6E6E6;
    color: #757575;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .3s ease;

    &:hover {
      background-color: #f8f8f8;
    }

    .dropdown-arrow {
      transition: transform .3s ease;
      
      &.open {
        transform: rotate(180deg);
      }
    }
  }

  .dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #E6E6E6;
    border-top: none;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;

    &.open {
      max-height: 300px;
      overflow: scroll;
    }

    .dropdown-option {
      display: block;
      width: 100%;
      padding: 12px 20px;
      background-color: #fff;
      border: none;
      color: #757575;
      font-size: 16px;
      text-align: left;
      cursor: pointer;
      transition: all .3s ease;
      text-decoration: none;

      &:hover {
        background-color: #E0EBF4;
        color: #0F305B;
      }

      &.active {
        background-color: #E0EBF4;
        color: #0F305B;
        font-weight: 500;
      }
    }
  }
}