/* ===== 메인 타임세일 그리드 (content-timesale) ===== */
.ts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.125rem;
  margin-top: 1.25rem;
}

.ts-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  text-decoration: none;
  color: #333;
}

/* 썸네일 */
.ts-card__thumb {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #eee;
}
.ts-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.is-web .ts-card__thumb {
  aspect-ratio: 5/7;
}

/* 정보 영역 */
.ts-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

/* 메타 (장르|지역 + 장소명) */
.ts-card__meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #777;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-card__cate {
  flex-shrink: 0;
}
.ts-card__place {
  position: relative;
  padding: 0.125rem 0.375rem 0.125rem 1.1875rem;
  background: #f3f3f3;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ts-card__place:empty { display: none; }
.ts-card__place::before {
  content: "";
  position: absolute;
  left: 0.375rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.6875rem;
  height: 0.6875rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 상품명 */
.ts-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.03em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 평점 */
.ts-card__rating {
  display: flex;
  align-items: flex-end;
  gap: 0.1875rem;
  font-size: 0.75rem;
  padding-top: 0.125rem;
  color: #777;
}
.ts-card__star {
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffb800'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.6;
}

/* 가격 */
.ts-card__price {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.ts-card__percent {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ff4b4b;
  letter-spacing: -0.03em;
}
.ts-card__percent:empty { display: none; }
.ts-card__amount {
  font-size: 0.875rem;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.03em;
}

/* 빈 상태 (이용 가능한 티켓 없음) — 그리드 전체 폭 + 중앙 정렬 */
.ts-grid .no-product-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: #999;
}
.ts-grid .no-product-box img {
  display: inline-block;
  width: 2.5rem;
  height: auto;
  opacity: 0.4;
}
.ts-grid .no-product-box .no-product-msg {
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  color: #888;
}
