@charset "utf-8";

.product-list_title {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-text-sub);
  font-weight: bold;
  font-size: 2.6rem;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
}

.product-list_search {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 70px;

  @media screen and (max-width: 600px) {
    flex-direction: column;
    row-gap: 15px;
  }
}

.product-list_search_select {
  display: flex;
  column-gap: 20px;

  @media screen and (max-width: 600px) {
    margin-left: auto;
  }

  select {
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  .item-select {
    position: relative;

    &::before,
    &::after {
      content: "";
      position: absolute;
      top: 12px;
      right: 12px;
      width: 2px;
      height: 8px;
      border-radius: 9999px;
      background-color: var(--color-text);
      transform-origin: 50% calc(100% - 1px);
    }

    &::before {
      transform: rotate(45deg);
    }

    &::after {
      transform: rotate(-45deg);
    }

    .mod-form-select {
      background: #fff;
      border: 1px solid var(--color-text-sub);
      padding: 8px 25px 8px 10px;
      border-radius: 6px;
      font-size: 15px;
      min-width: 180px;
    }
  }
  .item-select--mini {
    .mod-form-select {
      min-width: 90px;
    }
  }
}

.product-list_contants {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px 30px;
  margin-bottom: 50px;
  @media screen and (max-width: 800px) {
    grid-template-columns: repeat(3, 1fr);
  }
  @media screen and (max-width: 600px) {
    row-gap: 30px;
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-list_item {
  .image {
    margin-bottom: 15px;
    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
      object-position: center;
      border-radius: 10px;
      aspect-ratio: 288 / 270;
    }
  }
  a {
    color: var(--color-text);
    display: block;
    position: relative;
  }
  span {
    display: block;
    font-size: 15px;
    letter-spacing: 0.1em;
    font-weight: 400;
    line-height: 1.4;
    @media screen and (max-width: 600px) {
      font-size: 14px;
    }
  }
  .brand {
    margin-bottom: 10px;
  }
  .name {
    font-size: 16px;
    margin-bottom: 10px;

    @media screen and (max-width: 600px) {
      font-size: 14px;
    }
  }
  .tag-new {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
    background-color: var(--color-primary);
    width: 55px;
    height: 55px;
    border-radius: 10px 0 10px 0;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-family-eg);
    font-weight: bold;
  }
}
