@use "vars";

.product-boxes {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;

  @include vars.above-mobile {
    flex-direction: row;
  }

  .product-box {
    display: flex;

    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    @include vars.above-mobile {
      flex-direction: row;
    }

    .product-box-left {
      margin-bottom: 1rem;
      @include vars.above-mobile {
        margin-right: 20px;
        margin-bottom: 0;
      }
      img {
        max-width: 100%;
      }
    }

    .product-box-right {
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      .product-box-text {
        line-height: 1.75;
      }

      .product-box-title {
        font-size: 1.5em;
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: var(--product-header);
      }
    }
  }
}

.catalog-header {
  background-color: var(--pale-teal);

  h2 {
    color: var(--deep-teal);
  }

  background-image: url('../img/honeyscamps-logo-translucent-top.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right 1rem top 0.25rem;
  padding: 1rem 1rem;

  h2 {
    font-weight: 500;
    font-size: 3rem;
    margin: 0;
  }
}

.product-listings {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem;

  .product-listing {
    width: 300px;

    .product-listing-image-wrapper {
      height: 300px;

      img {
        width: 100%;
        height: auto;
      }
    }

    .product-listing-info {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      background-color: var(--sea-foam);
      padding: 0.25rem 1rem;

      .product-listing-title {
        font-weight: 400;
      }

      p {
        line-height: 1;
      }
    }
  }
}

.product-selections.mobile-only {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 1rem;

  .product-filters, .product-sort {
    width: 50%;
    height: 100%;
    border: 1px solid var(--deep-teal);
    padding: 0.5rem 0.25rem;
    text-align: center;
  }
}

.product-selections.not-mobile {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 1.5rem;

  .product-filters, .product-sort {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 40%;

    .selection {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      gap: 0.5rem;
      text-wrap: nowrap;
    }
  }

  .product-filters {
    justify-content: flex-start;
  }

  .product-sort {
    justify-content: flex-end;
  }

  .product-item-count {
    opacity: 0.6;
  }
}

