/* 재고 상태 표시 스타일 */
.stock-status {
    display: inline-block;
    padding: 0;
    border-radius: 4px;
    min-width: 120px;
    text-align: center;
    margin: 0 0 12px 0;
    white-space: nowrap;
    box-sizing: border-box;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.in-stock {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 최종 업데이트 시간 표시 */
.last-update-time {
    text-align: right;
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* SOLD OUT 오버레이 이미지 스타일 */
.product-image-wrapper {
    position: relative;
    display: inline-block;
}

.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/sold-out.webp') center center no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 10;
}

/* 모바일 환경에서의 재고 상태 표시 */
@media screen and (max-width: 767px) {
    .stock-status {
        min-width: 100px;
        font-size: 0.85em;
        padding: 0;
        margin: 0 0 12px 0;
        display: inline-block;
        white-space: nowrap;
    }
    
    .goods-name .stock-status,
    .goods-name-center .stock-status {
        display: inline-block;
        margin: 0 0 12px 0;
        text-align: left;
    }
    
    .goods-name-center .stock-status {
        text-align: center;
    }
}

/* 더 작은 모바일 환경 */
@media screen and (max-width: 480px) {
    .stock-status {
        min-width: 90px;
        font-size: 0.8em;
        padding: 0;
        margin: 0 0 12px 0;
        display: inline-block;
        white-space: nowrap;
    }
    
    .goods-name .stock-status,
    .goods-name-center .stock-status {
        display: inline-block;
        margin: 0 0 12px 0;
        text-align: left;
        min-width: 90px;
    }
    
    .goods-name-center .stock-status {
        text-align: center;
    }
    
    .last-update-time {
        font-size: 0.75em;
    }
}
