/**
 * 다산황칠농장 제품 카드 & 모달 스타일
 * v2.4.0 - 2026-01-28 (제품 이미지, 클릭 주문 모달)
 */

/* ====================================== */
/* 제품 카드 이미지 스타일 */
/* ====================================== */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-photo {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.badge-best {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-hot {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.product-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

/* ====================================== */
/* 제품 상세 모달 스타일 */
/* ====================================== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.product-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
}

.modal-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.modal-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modal-number {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.modal-section {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}

.modal-section h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section h3 i {
    color: #28a745;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 0.95rem;
}

.modal-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.modal-weight {
    font-size: 1.3rem;
    font-weight: 700;
    color: #28a745;
    margin: 0;
}

.modal-price-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-price-item {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.price-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.price-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.price-value.wholesale {
    color: #667eea;
}

.price-value.retail {
    color: #f5576c;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.modal-order-btn,
.modal-call-btn {
    padding: 16px 0;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-order-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.modal-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.modal-call-btn {
    background: white;
    color: #28a745;
    border: 2px solid #28a745;
}

.modal-call-btn:hover {
    background: #28a745;
    color: white;
    transform: translateY(-2px);
}

/* ====================================== */
/* 반응형 디자인 */
/* ====================================== */
@media (max-width: 768px) {
    .product-modal {
        padding: 10px;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        border-radius: 20px 20px 0 0;
        min-height: 300px;
    }
    
    .modal-details {
        padding: 25px;
        gap: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-price-box {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .modal-details {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .price-value {
        font-size: 1.3rem;
    }
}
