/* ============================================================
   추가할 CSS — 기존 파일 맨 아래에 붙여넣기

   적용 파일:
     - market.css           (상품 카드 뱃지 수정 + 품절 오버레이)
     - product-detail.css   (품절 상태 UI + 재입고 알림 버튼)
     - admin.css            (상태 뱃지)
   ============================================================ */


/* ──────────────────────────────────────────────────────────────
   1. market.css 에 추가
   ────────────────────────────────────────────────────────────── */

/* 기존 .product-badge 는 유지. 아래 modifier 만 추가 */

/* 품절 뱃지 (pStatus=9) - 진한 회색 */
.product-badge--sold-out {
    background: rgba(80, 80, 80, 0.90);
    color: #ffffff;
}

/* 일시품절 뱃지 (pStatus=2) - 붉은 톤 */
.product-badge--temp-sold {
    background: rgba(220, 53, 69, 0.88);
    color: #ffffff;
}

/* 품절 / 일시품절 상품 카드 이미지 딤처리 오버레이 */
.product-card-web__thumb--dimmed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    border-radius: inherit;
    pointer-events: none;
}

/* 품절 상품 카드 텍스트 흐리게 */
.product-card-web--sold-out .product-name,
.product-card-web--sold-out .product-summary {
    color: #aaaaaa;
}

.product-card-web--sold-out .product-final-price {
    color: #aaaaaa;
}


/* ──────────────────────────────────────────────────────────────
   2. product-detail.css 에 추가
   ────────────────────────────────────────────────────────────── */

/* 품절 상태 배너 (구매 버튼 위쪽) */
.sold-out-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #f5f5f5;
    margin-bottom: 16px;
}

.sold-out-banner__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.sold-out-banner__text {
    font-size: 15px;
    font-weight: 700;
    color: #333333;
    line-height: 1.5;
}

.sold-out-banner__sub {
    font-size: 13px;
    font-weight: 400;
    color: #888888;
    margin-top: 2px;
}

/* 일시품절 배너 강조 */
.sold-out-banner--temp {
    background: #fff4f4;
    border: 1px solid #ffdada;
}

.sold-out-banner--temp .sold-out-banner__text {
    color: #c0392b;
}

/* 재입고 알림 신청 섹션 */
.restock-alert-section {
    margin-top: 12px;
}

.restock-alert-box {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    background: #fafafa;
}

.restock-alert-box__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}

.restock-alert-box__desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: #888888;
    line-height: 1.6;
}

.restock-alert-box__form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.restock-phone-input {
    flex: 1;
    min-width: 180px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    font-size: 15px;
    background: #ffffff;
    color: #111111;
    outline: none;
    transition: border-color 0.2s;
}

.restock-phone-input:focus {
    border-color: #111111;
}

.restock-submit-btn {
    height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.2s;
    cursor: pointer;
    border: none;
}

.restock-submit-btn:hover {
    opacity: 0.82;
}

.restock-submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 1;
}

/* 이미 신청 완료 상태 */
.restock-done-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #edfff4;
    border: 1px solid #b2e8c8;
    font-size: 14px;
    font-weight: 700;
    color: #1a7a43;
}

/* 비로그인 안내 */
.restock-login-prompt {
    font-size: 13px;
    color: #888888;
    margin-top: 8px;
}

.restock-login-prompt a {
    color: #111111;
    font-weight: 700;
    text-decoration: underline;
}


/* ──────────────────────────────────────────────────────────────
   3. admin.css 에 추가
   ────────────────────────────────────────────────────────────── */

/* 상품 목록 상태 뱃지 */
.p-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.p-status-badge--selling {
    background: #e8f5e9;
    color: #2e7d32;
}

.p-status-badge--temp-sold {
    background: #fff3e0;
    color: #e65100;
}

.p-status-badge--sold-out {
    background: #fce4ec;
    color: #c62828;
}

.p-status-badge--hidden {
    background: #f0f0f0;
    color: #757575;
}

/* 재입고 알림 뱃지 (상품 목록에서 신청 건수 표시) */
.restock-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff3e0;
    color: #e65100;
    font-size: 12px;
    font-weight: 700;
}

/* 관리자 필터 탭 */
.admin-filter-tab--tempsold.is-active {
    background: #fff3e0;
    border-color: #e65100;
    color: #e65100;
}


/* ── 품절 네온 오버레이 (market-home 상품카드) ── */
.sold-out-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    border-radius: inherit;
    z-index: 2;
}

.sold-out-overlay__box {
    padding: 10px 28px;
    border: 2.5px solid #ff2a2a;
    border-radius: 10px;
    box-shadow:
        0 0 8px #ff2a2a,
        0 0 20px #ff2a2a,
        inset 0 0 8px rgba(255, 42, 42, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.sold-out-overlay__text {
    font-size: 28px;
    font-weight: 900;
    color: #ff2a2a;
    letter-spacing: 0.12em;
    text-shadow:
        0 0 6px #ff2a2a,
        0 0 16px #ff2a2a;
}


/* ── 품절 네온 오버레이 (market-home 상품카드) ── */
.sold-out-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    border-radius: inherit;
    z-index: 2;
}

.sold-out-overlay__box {
    padding: 10px 28px;
    border: 2.5px solid #ff2a2a;
    border-radius: 10px;
    box-shadow:
        0 0 8px #ff2a2a,
        0 0 20px #ff2a2a,
        inset 0 0 8px rgba(255, 42, 42, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.sold-out-overlay__text {
    font-size: 28px;
    font-weight: 900;
    color: #ff2a2a;
    letter-spacing: 0.12em;
    text-shadow:
        0 0 6px #ff2a2a,
        0 0 16px #ff2a2a;
}



