/*
 * discovery-coord.css
 * DISCOVERY 商品ページ用：動画下の着用アイテム表示
 */

.discovery-coord {
  clear: both;
  box-sizing: border-box;
  width: 100%;
  margin: 18px 0 26px;
  padding: 16px 0 6px;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.discovery-coord__title {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
  margin: 0 0 12px;
  color: #222;
}

.discovery-coord__list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  overflow: visible;
  padding: 0 0 14px;
}

.discovery-coord__card {
  display: block;
  flex: 0 0 calc(25% - 9px);
  box-sizing: border-box;
  min-width: 0;
  color: #222;
  text-decoration: none;
}

.discovery-coord__card:hover {
  opacity: .78;
}

.discovery-coord__image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1.18;
  margin: 0 0 8px;
  background: #f7f7f7;
  border: 1px solid #eee;
}

.discovery-coord__image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.discovery-coord__noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 11px;
  color: #999;
}

.discovery-coord__soldout {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 4px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .04em;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, .72);
}

.discovery-coord__info {
  line-height: 1.45;
}

.discovery-coord__brand {
  overflow: hidden;
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: bold;
  color: #555;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.discovery-coord__name {
  display: -webkit-box;
  overflow: hidden;
  min-height: 38px;
  font-size: 12px;
  color: #222;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.discovery-coord__price {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: bold;
  color: #222;
}

.discovery-coord__message {
  font-size: 13px;
  line-height: 1.7;
  color: #777;
}

.discovery-coord--error {
  padding-bottom: 16px;
}

.discovery-coord--error .discovery-coord__message {
  color: #999;
}

@media screen and (min-width: 950px) {
  .discovery-coord__card {
    flex-basis: calc(33.333% - 8px);
  }
}

@media screen and (min-width: 600px) and (max-width: 949px) {
  .discovery-coord {
    margin: 22px 0 30px;
    padding-top: 18px;
  }

  .discovery-coord__title {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .discovery-coord__card {
    flex-basis: calc(25% - 9px);
  }

  .discovery-coord__brand {
    font-size: 12px;
  }

  .discovery-coord__name {
    font-size: 13px;
  }

  .discovery-coord__price {
    font-size: 13px;
  }
}

@media screen and (max-width: 599px) {
  .discovery-coord {
    margin: 16px 0 24px;
    padding-top: 14px;
  }

  .discovery-coord__list {
    gap: 16px 10px;
    padding-bottom: 12px;
  }

  .discovery-coord__card {
    flex-basis: calc(50% - 5px);
  }

  .discovery-coord__title {
    font-size: 14px;
  }
}


/* v9: 画面接近まで通信しない待機状態 */
.coord:not([data-discovery-coord-loaded="1"]) {
  display: block;
  min-height: 1px;
}
