/* pc/css/timedeal/timeDealList.css */

.timedeal-page-kv {
    width: 100%;
    height: 543px;
    overflow: hidden;
    background: #0A132B;
}
.timedeal-page-kv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timedeal-page-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 0;
}

/* 그리드 */
.timedeal-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* 카드 - 가로형 */
.timedeal-page-card {
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
    position: relative;
}

/* 이미지 */
.timedeal-page-card__img {
    width: 210px;
    min-width: 210px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
}
.timedeal-page-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 정보 영역 */
.timedeal-page-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    height: 240px;
}

/* 알림 버튼 */
.timedeal-alarm-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px 21px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.timedeal-alarm-btn:hover {
    background: #fafafa;
}

/* 하단 정보 */
.timedeal-page-card__bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: auto;
}

/* 타이머 + 재고 */
.timedeal-page-card__timer {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #c532a6;
    border-radius: 6px;
    padding: 8px 16px;
    margin: 0;
}
.timedeal-page-card__time {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.timedeal-page-card__stock {
    font-size: 14px;
    color: #fff;
}
.timedeal-page-card__stock b {
    font-weight: 700;
}

/* 상품명 */
.timedeal-page-card__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.timedeal-page-card__text small {
    font-size: 14px;
    color: #757575;
}
.timedeal-page-card__text strong {
    font-size: 20px;
    font-weight: 500;
    color: #111;
}
.timedeal-page-card__text span {
    font-size: 14px;
    color: #111;
}

/* 가격 */
.timedeal-page-card__price {
    display: flex;
    align-items: center;
    gap: 12px;
}
.timedeal-page-card__price-discount {
    display: flex;
    align-items: center;
    gap: 4px;
}
.timedeal-page-card__price-discount strong {
    font-size: 20px;
    font-weight: 600;
    color: #c532a6;
}
.timedeal-page-card__price-discount span {
    font-size: 20px;
    font-weight: 600;
    color: #111;
}
.timedeal-page-card__price small {
    font-size: 14px;
    color: #757575;
    text-decoration: line-through;
}

/* 버튼 영역 */
.timedeal-page-card__btn {
    width: 100%;
}
.timedeal-page-card__btn.js-buy-block {
    display: flex;
    gap: 8px;
    align-items: center;
}
.timedeal-page-card__btn.js-buy-block .js-add-cart {
    width: 48px;
    min-width: 48px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.timedeal-page-card__btn.js-buy-block .js-add-cart .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.timedeal-page-card__btn.js-buy-block .js-add-cart .icon svg {
    width: 22px;
    height: 22px;
}
.timedeal-page-card__btn.js-buy-block a {
    flex: 1;
}
.timedeal-page-card__btn .w-full {
    width: 100%;
}

/* 팝업 */
.td-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.td-popup {
    background: #fff;
    border-radius: 12px;
    width: 400px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.td-popup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.td-popup__head h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}
.td-popup__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}
.td-popup__body {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
.td-popup__foot {
    display: flex;
    gap: 8px;
}
.td-popup__foot .common-button {
    flex: 1;
}