/* ===== 상품페이지 전용 스타일 ===== */

/* 공유하기 버튼 스타일 */
.product-share-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-share-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.product-share-btn:active {
    transform: translateY(0);
}

.product-share-btn i {
    font-size: 1rem;
}

/* PC 액션 버튼 영역에 추가 */
.action-buttons .product-share-btn {
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* 모바일 버전 공유 버튼 */
.mobile-share-btn {
    background: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.mobile-share-btn:hover {
    background: #45a049;
    border-color: #45a049;
}

.mobile-share-btn:active {
    background: #3d8b40;
    border-color: #3d8b40;
    transform: scale(0.98);
}

.mobile-share-btn i {
    font-size: 0.9rem;
}

/* 모바일 고정 버튼 영역에 추가 */
.mobile-fixed-buttons .mobile-share-btn {
    flex: 1;
    height: 48px;
    border-radius: 4px;
}

/* 모바일 가격 밑 공유 버튼 */
.mobile-product-share-row {
    background: white;
    padding: 1rem;
    border-top: 1px solid #f0f0f0;
}

.mobile-share-btn-price {
    background: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-share-btn-price:hover {
    background: #45a049;
    border-color: #45a049;
}

.mobile-share-btn-price:active {
    background: #3d8b40;
    border-color: #3d8b40;
    transform: scale(0.98);
}

.mobile-share-btn-price i {
    font-size: 1rem;
}

/* 공유 모달 스타일 */
.product-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.product-share-modal.active {
    display: flex;
}

.product-share-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.product-share-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.product-share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.product-share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-share-option:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

.product-share-option i {
    font-size: 1.5rem;
}

.product-share-option span {
    font-size: 0.8rem;
    color: #666;
}

/* 소셜 미디어별 색상 */
.product-share-option.kakao i { color: #FEE500; }
.product-share-option.facebook i { color: #1877F2; }
.product-share-option.twitter i { color: #1DA1F2; }
.product-share-option.copy i { color: #6c757d; }

.product-share-close {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.product-share-close:hover {
    background: #5a6268;
}

/* 반응형 조정 */
@media (max-width: 480px) {
    .product-share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-share-option {
        padding: 0.8rem;
    }
    
    .product-share-option i {
        font-size: 1.3rem;
    }
}
