/**
 * 수진선식 - 상품 카드 공통 스타일 (세컨하우스 스타일 완전 동일 적용)
 * 제목, 소제목, 가격, 관심수/조회수 통계 스타일
 * 5단계 반응형 브레이크포인트 적용
 */

/* ============================================
   PC 버전 (769px 이상) - 세컨하우스와 동일
   ============================================ */
.product-card .product-info .product-stats-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 8px !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.product-card .product-info .product-stats {
    display: flex !important;
    gap: 12px !important;
    font-size: 12px !important;
    color: #666 !important; /* var(--color-text-muted) 대체 */
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    box-sizing: border-box !important;
}

.product-card .product-info .product-stats .stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    width: auto !important;
    box-sizing: border-box !important;
}

.product-card .product-info .product-stats .stat-item i {
    display: inline-block !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: #666 !important; /* var(--color-text-muted) 대체 */
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    vertical-align: middle !important;
}

.product-card .product-info .product-stats .stat-item span {
    display: inline-block !important;
    font-size: 12px !important;
    line-height: 1 !important;
    color: #666 !important; /* var(--color-text-muted) 대체 */
    margin: 0 !important;
    padding: 0 !important;
    font-weight: normal !important;
    vertical-align: middle !important;
}

/* ============================================
   태블릿 버전 (768px 이하) - 세컨하우스와 동일
   ============================================ */
@media (max-width: 768px) {
    .product-card .product-info .product-stats-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        margin-top: 8px !important;
        flex-wrap: wrap !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .product-card .product-info .product-stats {
        display: flex !important;
        gap: 12px !important;
        font-size: 12px !important;
        color: #666 !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        box-sizing: border-box !important;
    }
    
    .product-card .product-info .product-stats .stat-item {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        width: auto !important;
        box-sizing: border-box !important;
    }
    
    .product-card .product-info .product-stats .stat-item i {
        display: inline-block !important;
        font-size: 14px !important;
        line-height: 1 !important;
        color: #666 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        vertical-align: middle !important;
    }
    
    .product-card .product-info .product-stats .stat-item span {
        display: inline-block !important;
        font-size: 12px !important;
        line-height: 1 !important;
        color: #666 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-weight: normal !important;
        vertical-align: middle !important;
    }
}

/* ============================================
   작은 태블릿/큰 모바일 (640px 이하)
   ============================================ */
@media (max-width: 640px) {
    .product-card .product-info .product-stats-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-top: 6px !important;
        flex-wrap: wrap !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .product-card .product-info .product-stats {
        display: flex !important;
        gap: 10px !important;
        font-size: 11px !important;
        color: #666 !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        box-sizing: border-box !important;
    }
    
    .product-card .product-info .product-stats .stat-item {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        width: auto !important;
        box-sizing: border-box !important;
    }
    
    .product-card .product-info .product-stats .stat-item i {
        display: inline-block !important;
        font-size: 12px !important;
        line-height: 1 !important;
        color: #666 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        vertical-align: middle !important;
    }
    
    .product-card .product-info .product-stats .stat-item span {
        display: inline-block !important;
        font-size: 11px !important;
        line-height: 1 !important;
        color: #666 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-weight: normal !important;
        vertical-align: middle !important;
    }
}

/* ============================================
   모바일 버전 (480px 이하)
   ============================================ */
@media (max-width: 480px) {
    .product-card .product-info .product-stats-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 6px !important;
        flex-wrap: wrap !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .product-card .product-info .product-stats {
        display: flex !important;
        gap: 8px !important;
        font-size: 10px !important;
        color: #666 !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        box-sizing: border-box !important;
    }
    
    .product-card .product-info .product-stats .stat-item {
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        width: auto !important;
        box-sizing: border-box !important;
    }
    
    .product-card .product-info .product-stats .stat-item i {
        display: inline-block !important;
        font-size: 11px !important;
        line-height: 1 !important;
        color: #666 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        vertical-align: middle !important;
    }
    
    .product-card .product-info .product-stats .stat-item span {
        display: inline-block !important;
        font-size: 10px !important;
        line-height: 1 !important;
        color: #666 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-weight: normal !important;
        vertical-align: middle !important;
    }
}

/* ============================================
   작은 모바일 버전 (360px 이하)
   ============================================ */
@media (max-width: 360px) {
    .product-card .product-info .product-stats-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-top: 4px !important;
        flex-wrap: wrap !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .product-card .product-info .product-stats {
        display: flex !important;
        gap: 6px !important;
        font-size: 9px !important;
        color: #666 !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        box-sizing: border-box !important;
    }
    
    .product-card .product-info .product-stats .stat-item {
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        width: auto !important;
        box-sizing: border-box !important;
    }
    
    .product-card .product-info .product-stats .stat-item i {
        display: inline-block !important;
        font-size: 10px !important;
        line-height: 1 !important;
        color: #666 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        vertical-align: middle !important;
    }
    
    .product-card .product-info .product-stats .stat-item span {
        display: inline-block !important;
        font-size: 9px !important;
        line-height: 1 !important;
        color: #666 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-weight: normal !important;
        vertical-align: middle !important;
    }
}

/* ============================================
   기타 요소 강제 스타일 (다른 스타일과 충돌 방지)
   ============================================ */

/* product-info 내부 레이아웃 보장 */
.product-card .product-info {
    display: flex !important;
    flex-direction: column !important;
    padding: 0.8rem !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
}

/* product-name과 product-summary 사이 간격 */
.product-card .product-info .product-name {
    margin-bottom: 0.3rem !important;
}

.product-card .product-info .product-summary {
    margin-bottom: 0.5rem !important;
}

/* product-price와 product-stats-wrapper 사이 간격 */
.product-card .product-info .product-price {
    margin-bottom: 0 !important;
}

.product-card .product-info .product-stats-wrapper {
    margin-top: 8px !important;
}

/* 가격 영역과 통계 영역 분리 */
.product-card .product-info .product-price + .product-stats-wrapper {
    margin-top: 8px !important;
    border-top: none !important;
    padding-top: 0 !important;
}

/* 통계 영역이 product-info 하단에 위치하도록 */
.product-card .product-info {
    position: relative !important;
}

.product-card .product-info .product-stats-wrapper {
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

/* 세컨하우스와 동일한 래퍼 구조 지원 */
.product-card .product-info .product-stats-wrapper .product-stats {
    margin: 0 !important;
    padding: 0 !important;
}

/* 누적판매 스타일 (세컨하우스와 동일) - 강제 표시 */
.product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

.product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: #666 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    vertical-align: middle !important;
}

.product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count .sales-number {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    color: #666 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: normal !important;
    vertical-align: middle !important;
    width: auto !important;
    height: auto !important;
    min-width: 10px !important;
}

/* 반응형 - 누적판매 */
@media (max-width: 768px) {
    .product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count i {
        display: inline-block !important;
        font-size: 14px !important;
    }
    
    .product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count .sales-number {
        display: inline-block !important;
        font-size: 12px !important;
    }
}

@media (max-width: 640px) {
    .product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count i {
        display: inline-block !important;
        font-size: 12px !important;
    }
    
    .product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count .sales-number {
        display: inline-block !important;
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count i {
        display: inline-block !important;
        font-size: 11px !important;
    }
    
    .product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count .sales-number {
        display: inline-block !important;
        font-size: 10px !important;
    }
}

@media (max-width: 360px) {
    .product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count i {
        display: inline-block !important;
        font-size: 10px !important;
    }
    
    .product-card .product-info .product-stats-wrapper .product-stats .stat-item.sales-count .sales-number {
        display: inline-block !important;
        font-size: 9px !important;
    }
}
