@charset "utf-8";

/** パンくず設定 **/
.breadcrumb-list {
  .breadcrumb_wrap {
    margin-bottom: 5px;
    transition: all 0.3s ease;
    &:nth-of-type(n + 4) {
      display: none;
    }
    &:last-child {
      margin-bottom: 0;
    }
  }

  &.show-all {
    .breadcrumb_wrap {
      display: flex;
    }
  }
}
.breadcrumb-show-more {
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  color: #c5a253;
  background: none;
  cursor: pointer;
  display: block;
  margin-top: 10px;
  margin-left: -5px;
}

/** 商品画像のスライド設定 **/
#detailThumbnailSlider {
  .slick-track {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    transform: unset !important;
    width: 100% !important;
    &::before, &::after {
      display: none!important;
    }
  }
  .thumbnail-img {
    float: none !important;
    width: calc((100% - (10px * 3)) / 4) !important;
  }
}
.cat-sgContent__slide {
  .main {
    margin-bottom: 20px;
    img {
      object-fit: contain;
      height: 100%;
      width: 100%;
      margin-inline: auto;
      aspect-ratio: 620 / 827;
    }
  }
  .sub {
    img {
      object-fit: cover;
      height: 100%;
      width: 100%;
      margin-inline: auto;
      aspect-ratio: 135 / 150;
    }
  }
}
.slick-prev-btn,
.slick-next-btn {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  -moz-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  margin: 0 auto;
  z-index: 100;
  button {
    position: absolute;
    font-size: 0;
    line-height: 0;
    display: block;
    cursor: pointer;
    outline: none;
    color: transparent;
    background-color: transparent;
    border: 0;
    width: 12px;
    height: 22px;
    background-size: 12px 22px;
    background-repeat: no-repeat;
    background-position: center;
  }
}

.slick-prev-btn {
  button {
    left: 7px;
    background-image: url(../img/product-single/slide_prev.png);
  }
}

.slick-next-btn {
  button {
    right: 7px;
    background-image: url(../img/product-single/slide_next.png);
  }
}

/** 商品詳細コンテンツ **/
.cat-sgContent {
  margin-bottom: 150px;
  @media screen and (max-width: 800px) {
    margin-bottom: 100px;
  }
  @media screen and (max-width: 600px) {
    margin-bottom: 80px;
  }
}
.cat-sgContentInner {
  display: flex;
  gap: 50px 100px;
  justify-content: space-between;

  @media screen and (max-width: 800px) {
    flex-direction: column;
  }
}
.cat-sgContent__slide {
  width: 50%;

  @media screen and (max-width: 800px) {
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
  }
}

.cat-sgContent__main {
  flex: 1;

  .title {
    font-size: 3.2rem;
    margin-bottom: 30px;

    @media screen and (max-width: 600px) {
      font-size: 3rem;
      margin-bottom: 15px;
    }
  }

  .normal-price {
    margin-bottom: 15px;
    line-height: 1;

    .ec-productRole__priceRegularPrice {
      font-family: var(--font-family-eg);
    }
  }
  .ec-productRole__priceRegularTax {
    font-size: 12px;
  }

  .ec-price {
    font-size: 28px;
    line-height: 1;

    .ec-price__price {
      padding: 0;
      font-family: var(--font-family-eg);
      font-size: 28px;

      @media screen and (max-width: 600px) {
        font-size: 24px;
      }
    }
  }

  .price-bottom {
    margin-top: 15px;

    .sale,
    .other,
    .soldOut {
      font-size: 14px;
      font-weight: 400;
      background: var(--color-primary);
      color: #fff;
      padding: 5px 15px;
      border-radius: 4px;
      font-family: var(--font-family-eg);
    }
    .other {
      background: #d77a04;
    }
    .soldOut {
      background: #ddd;
      color: var(--color-text);
    }
    .discount {
      font-size: 22px;
      font-weight: bold;
      color: var(--color-primary);
      padding-left: 10px;
      font-family: var(--font-family-eg);
    }
  }

  .ec-productRole__actions {
    margin-top: 50px;

    @media screen and (max-width: 600px) {
      margin-top: 40px;
    }
  }
  .choiceBoxInner {
    width: 100%;
    display: flex;
    column-gap: 10px;
    align-items: center;
    p {
      width: 80px;
    }
  }

  .choiceBox {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;

    @media screen and (max-width: 600px) {
      .item-select {
        .item-select_box {
          width: 100%;
          .mod-form-select {
            width: 100%;
          }
        }
      }
    }
  }

  .required {
    font-size: 14px;
  }

  .quantity {
    display: flex;
    column-gap: 30px;
    align-items: center;

    > span {
      width: 60px;
    }
    .item-select_box {
      width: 100px;
      .mod-form-select {
        min-width: auto;
        width: calc(100px - (25px + 10px));
      }
    }
  }

  .item-select {
    flex: 1;

    select {
      border: none;
      outline: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
    }

    .item-select_box {
      position: relative;
      width: fit-content;

      &::before,
      &::after {
        content: "";
        position: absolute;
        top: 17px;
        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: 13px 25px 13px 10px;
      border-radius: 6px;
      font-size: 15px;
      min-width: 180px;
    }
    .input-num {
      width: 100px;
      min-width: auto;
    }
  }

  .product-buy,
  .product-soldout {
    margin-top: 50px;
  }
  .product-favorite {
    margin-top: 20px;
  }

  .ec-blockBtn--action,
  .ec-blockBtn--cancel {
    border-radius: 8px;
  }
}

.itemInfo {
  margin-top: 80px;

  @media screen and (max-width: 600px) {
    margin-top: 60px;
  }
  h2 {
    font-size: 22px;
    font-weight: 400;
    color: var(--color-primary);
    font-family: var(--font-family-eg);
    margin-bottom: 10px;
    letter-spacing: 0.1em;

    @media screen and (max-width: 600px) {
      font-size: 20px;
    }
  }
}

.itemInfo__text {
  > p {
    line-height: 1.6;
    font-size: 14px;
  }
}
