/* 전체 스타일 */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    color: #2d3748;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 네비게이션 바 스타일 */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e2e8f0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #2d3748;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #2d3748 !important;
}

/* 브랜드 로고 스타일 */
.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.brand-text {
    line-height: 1.2;
}

.brand-text .fw-bold {
    color: #2d3748;
    font-size: 1.1rem;
}

.brand-text small {
    font-size: 0.8rem;
}

/* 메인 콘텐츠 영역 */
main.container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
}

/* 카드 스타일 */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    background: #ffffff;
}

.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.card-header {
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
    color: #2d3748;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
}

/* 배지 스타일 */
.badge {
    font-size: 0.75rem;
    padding: 0.5em 1em;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%) !important;
}

/* 페이지네이션 스타일 */
.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    color: #667eea;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

/* 검색 폼 스타일 */
.form-control, .form-select {
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

/* 검색 폼 스타일 */
.navbar .input-group {
    max-width: 300px;
}

.navbar .form-control {
    border-radius: 6px 0 0 6px;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.navbar .btn {
    border-radius: 0 6px 6px 0;
    border-left: none;
    padding: 0.5rem 0.75rem;
}

.form-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

/* 버튼 스타일 */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-primary {
    background: #3182ce;
    color: white;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.2);
}

.btn-primary:hover {
    background: #2c5aa0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.btn-outline-primary {
    border: 1px solid #3182ce;
    color: #3182ce;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #3182ce;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border: 2px solid #718096;
    color: #718096;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* 테이블 스타일 */
.table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.table th {
    font-weight: 700;
    color: #2d3748;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    border-color: rgba(226, 232, 240, 0.5);
    vertical-align: middle;
}

.table-borderless th {
    background: none;
    color: #4a5568;
    font-weight: 600;
    width: 30%;
    padding: 0.75rem 0;
}

.table-borderless td {
    padding: 0.75rem 0;
    border: none;
}

/* 상세 페이지 스타일 */
.detail-card {
    margin-bottom: 1.5rem;
}

.detail-card .card-header {
    font-weight: 600;
}

/* 헤더 섹션 */
.hero-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-section h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #4a5568;
}

/* 로고 스타일 */
.logo-container {
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-size: 1.1rem;
    line-height: 1.2;
}

.product-logo {
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.logo-text-small {
    font-size: 0.8rem;
    line-height: 1.2;
}

/* 통계 카드 */
.stats-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3182ce;
    margin-bottom: 0.5rem;
}

.stats-card .stats-label {
    color: #4a5568;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .logo-container {
        padding: 0.75rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .product-logo {
        padding: 0.25rem;
    }
    
    .logo-text-small {
        font-size: 0.7rem;
    }
    
    .brand-logo {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .brand-text .fw-bold {
        font-size: 1rem;
    }
    
    .brand-text small {
        font-size: 0.7rem;
    }
    
    .navbar .input-group {
        max-width: 250px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .table th {
        font-size: 0.9rem;
    }
    
    .table td {
        font-size: 0.9rem;
    }
    
    main.container {
        padding: 1rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .stats-card .stats-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 툴팁 스타일 */
.tooltip {
    font-size: 0.875rem;
}

/* 텍스트 말줄임표 */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 푸터 스타일 */
footer {
    background: #2d3748 !important;
    color: #e2e8f0;
    border-top: 1px solid #4a5568;
    margin-top: 3rem;
    padding: 2rem 0;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 호버 효과 */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* 강조 텍스트 */
.highlight-text {
    color: #3182ce;
    font-weight: 600;
}

/* 정보 섹션 스타일 */
.info-section {
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-section:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.info-content {
    color: #4a5568;
    line-height: 1.6;
}

.info-content h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* 제품 이미지 스타일 */
.product-image-container {
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-image-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.product-image {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.product-image:hover {
    transform: scale(1.02);
}

/* Breadcrumb 스타일 */
.breadcrumb {
    background: #f8fafc;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #718096;
    font-weight: 600;
}

.breadcrumb-item a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #4a5568;
    font-weight: 500;
}

/* 관련 제품 섹션 스타일 */
.related-product-card {
    transition: all 0.3s ease;
}

.related-product-card .card {
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}

.related-product-card .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.related-product-card .product-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-product-card .card:hover .product-icon {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    color: white;
    transform: scale(1.05);
}

.related-product-card .card-title a {
    transition: color 0.3s ease;
}

.related-product-card .card:hover .card-title a {
    color: #3182ce !important;
}

.related-product-card .product-functionality {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-product-card .card:hover .product-functionality {
    background: #ffffff;
    border-color: #cbd5e0;
}

.related-product-card .product-header {
    flex-shrink: 0;
}

.related-product-card .product-functionality {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.related-product-card .card:hover .product-functionality {
    background: #ffffff;
    border-color: #cbd5e0;
}

.related-product-card .product-info {
    flex-shrink: 0;
}

.related-product-card .info-item {
    padding: 0.5rem;
    border-radius: 4px;
    background: #f8fafc;
    transition: all 0.3s ease;
    text-align: center;
}

.related-product-card .card:hover .info-item {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.related-product-card .info-item code {
    font-size: 0.65rem;
    font-weight: 600;
    color: #2d3748;
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e0;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    display: block;
    word-break: break-all;
    line-height: 1.3;
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

.related-product-card .info-item code:hover {
    background: #cbd5e0 !important;
    border-color: #a0aec0;
}

.related-product-card .info-item .badge {
    font-size: 0.65rem;
    padding: 0.3em 0.6em;
}

.related-product-card .card-footer {
    background: transparent;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
}

.related-product-card .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.related-product-card .btn-primary {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.2);
}

.related-product-card .btn-primary:hover {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a365d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* 관련 제품 섹션 헤더 */
.related-products-header {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 2px solid #e2e8f0;
}

.related-products-header h2 {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.related-products-header p {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 반응형 관련 제품 카드 */
@media (max-width: 768px) {
    .related-product-card .product-icon {
        width: 40px;
        height: 40px;
    }
    
    .related-product-card .card-title {
        font-size: 1rem;
    }
    
    .related-product-card .product-functionality {
        padding: 0.5rem;
    }
    
    .related-product-card .info-item {
        padding: 0.25rem;
    }
    
    .related-product-card .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .related-product-card .card-body {
        padding: 1rem;
    }
    
    .related-product-card .card-footer {
        padding: 0.75rem 1rem;
    }
    
    .related-products-header h2 {
        font-size: 1.5rem;
    }
    
    .related-products-header p {
        font-size: 0.9rem;
    }
}

/* 상품 이미지 스타일 */
.product-image-container {
    width: 300px !important;
    height: 300px !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* 상품 카드에서 이미지 컨테이너 스타일 */
.product-card .product-image-container {
    width: 300px !important;
    height: 300px !important;
    flex-shrink: 0;
}

/* 상세페이지 상품 이미지 스타일 */
.hero-section .product-image-container {
    width: 100% !important;
    max-width: 300px !important;
    height: 300px !important;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-section .product-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.hero-section .product-image {
    border-radius: 16px;
}

/* 상세페이지 레이아웃 개선 */
.hero-section .row {
    margin: 0;
}

.hero-section .col-lg-4,
.hero-section .col-md-5 {
    padding-right: 1rem;
}

.hero-section .col-lg-8,
.hero-section .col-md-7 {
    padding-left: 1rem;
}

/* 반응형 상품 이미지 */
@media (max-width: 1200px) {
    .product-image-container {
        width: 250px !important;
        height: 250px !important;
    }
    
    .product-card .product-image-container {
        width: 250px !important;
        height: 250px !important;
    }
}

@media (max-width: 992px) {
    .product-image-container {
        width: 200px !important;
        height: 200px !important;
    }
    
    .product-card .product-image-container {
        width: 200px !important;
        height: 200px !important;
    }
    
    .hero-section .product-image-container {
        width: 100% !important;
        max-width: 200px !important;
        height: 200px !important;
    }
}

@media (max-width: 768px) {
    .product-image-container {
        width: 150px !important;
        height: 150px !important;
    }
    
    .product-card .product-image-container {
        width: 150px !important;
        height: 150px !important;
    }
    
    .hero-section .product-image-container {
        width: 100% !important;
        max-width: 150px !important;
        height: 150px !important;
    }
    
    .hero-section .col-lg-4,
    .hero-section .col-md-5,
    .hero-section .col-lg-8,
    .hero-section .col-md-7 {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .product-image-container {
        width: 120px !important;
        height: 120px !important;
    }
    
    .product-card .product-image-container {
        width: 120px !important;
        height: 120px !important;
    }
    
    .hero-section .product-image-container {
        width: 100% !important;
        max-width: 120px !important;
        height: 120px !important;
    }
} 