/* ============================================
   Product Detail Page - Modern PC-Friendly Design
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg: #f9fafb;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color: var(--bg);
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1280px !important;
}

/* Bootstrap container 기본값 존중 */
@media (min-width: 1200px) {
    .container {
        max-width: 1280px !important;
    }
}

/* Product Detail Container */
.product-detail-wrapper {
    background-color: var(--bg) !important;
    min-height: 100vh !important;
    padding: 32px 0 !important;
}

/* Hero Section with Breadcrumb */
.product-hero-section {
    background: var(--bg-white) !important;
    padding: 20px 0 !important;
    margin-bottom: 32px !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
}

.breadcrumb {
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

.breadcrumb-item {
    font-size: 0.95rem !important;
    color: var(--text-light) !important;
}

.breadcrumb-item.active {
    color: var(--text-dark) !important;
    font-weight: 600 !important;
}

/* Main Product Container */
.product-container {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-bottom: 32px;
}

/* Gallery Section */
.product-gallery-section {
    display: flex;
    flex-direction: column;
}

.main-image-container {
    position: relative;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.main-image-container:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.placeholder-image-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    color: var(--text-light);
}

/* Gallery Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: var(--bg-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev-btn {
    left: 16px;
}

.gallery-nav-btn.next-btn {
    right: 16px;
}

/* Image Counter */
.image-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Thumbnails Gallery */
.thumbnails-container {
    background: var(--bg-white);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.thumbnails-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
}

.thumbnails-scroll::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-scroll::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.thumbnails-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.thumbnails-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.thumbnail-item {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.thumbnail-item:hover {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.2);
}

.thumbnail-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

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

.featured-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #ffc107;
    color: #333;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Product Title */
.product-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.3px;
}

.product-summary {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: var(--text-light) !important;
    margin-bottom: 24px !important;
}

/* Product Stats */
.product-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    font-size: 1.2rem;
    color: var(--primary);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.rating-stars {
    font-size: 1rem;
    letter-spacing: 2px;
    color: #ffc107;
}

/* Pricing Cards */
.pricing-cards {
    margin-bottom: 24px;
}

.pricing-cards-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 12px;
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.pricing-type {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.6px;
}

.pricing-card.featured .pricing-type {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 8px 0;
}

.pricing-card.featured .pricing-amount {
    color: white;
}

.pricing-description {
    font-size: 0.8rem;
    color: var(--text-light);
}

.pricing-card.featured .pricing-description {
    color: rgba(255, 255, 255, 0.85);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.action-buttons .btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
}

.action-buttons .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0b54cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Product Info Card */
.product-info-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.product-info-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.info-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Description Sections */
.product-description-section,
.product-requirements-section,
.product-features-section {
    background: var(--bg-white);
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}

.product-description-section h3,
.product-requirements-section h4,
.product-features-section h4 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
}

.product-description-section h3 i,
.product-requirements-section h4 i,
.product-features-section h4 i {
    color: var(--primary);
    font-size: 1.4rem;
}

.description-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #495057;
}

.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: var(--shadow-md);
}

.requirement-item,
.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: #495057;
    gap: 12px;
}

.requirement-item:last-child,
.feature-item:last-child {
    border-bottom: none;
}

.requirement-item i,
.feature-item i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 1.1rem;
}

/* ============================================
   Responsive Design - Tablet (1024px and down)
   ============================================ */

@media (max-width: 1024px) {
    .product-container {
        padding: 32px;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .main-image-wrapper {
        aspect-ratio: 1 / 1;
    }

    .pricing-grid {
        gap: 10px;
    }

    .pricing-card {
        padding: 14px;
    }

    .pricing-amount {
        font-size: 1.5rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-description-section,
    .product-requirements-section,
    .product-features-section {
        padding: 20px;
    }

    .product-description-section h3,
    .product-requirements-section h4,
    .product-features-section h4 {
        font-size: 1.2rem;
    }
}

/* ============================================
   Responsive Design - Mobile Tablet (768px and down)
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .product-detail-wrapper {
        padding: 20px 0;
    }

    .product-hero-section {
        padding: 16px 0;
        margin-bottom: 20px;
    }

    .product-container {
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .main-image-wrapper {
        aspect-ratio: 1 / 1;
    }

    .product-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .product-summary {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .product-stats {
        gap: 16px;
        padding: 16px 0;
        margin-bottom: 16px;
    }

    .pricing-grid {
        gap: 10px;
    }

    .pricing-card {
        padding: 12px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-type {
        font-size: 0.7rem;
    }

    .pricing-amount {
        font-size: 1.3rem;
        margin: 8px 0;
    }

    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .gallery-nav-btn.prev-btn {
        left: 8px;
    }

    .gallery-nav-btn.next-btn {
        right: 8px;
    }

    .thumbnail-item {
        width: 70px;
        height: 70px;
    }

    .action-buttons {
        gap: 8px;
    }

    .action-buttons .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .product-info-card {
        padding: 16px;
    }

    .product-info-card h5 {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .info-label {
        font-size: 0.7rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .product-description-section,
    .product-requirements-section,
    .product-features-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .product-description-section h3,
    .product-requirements-section h4,
    .product-features-section h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
        gap: 8px;
    }

    .description-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .requirement-item,
    .feature-item {
        padding: 8px 0;
        font-size: 0.9rem;
        gap: 8px;
    }
}

/* ============================================
   Responsive Design - Small Mobile (576px and down)
   ============================================ */

@media (max-width: 576px) {
    .product-detail-wrapper {
        padding: 16px 0;
    }

    .product-container {
        padding: 16px;
        margin-bottom: 16px;
    }

    .main-image-wrapper {
        aspect-ratio: 1 / 1.2;
    }

    .main-image-container {
        margin-bottom: 12px;
    }

    .product-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .product-summary {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .product-stats {
        gap: 12px;
        padding: 12px 0;
        margin-bottom: 12px;
        flex-direction: column;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }

    .pricing-cards-title {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .pricing-grid {
        gap: 10px;
    }

    .pricing-card {
        padding: 12px;
    }

    .pricing-type {
        font-size: 0.65rem;
    }

    .pricing-amount {
        font-size: 1.2rem;
        margin: 6px 0;
    }

    .pricing-description {
        font-size: 0.8rem;
    }

    .action-buttons .btn {
        padding: 9px 12px;
        font-size: 0.85rem;
    }

    .product-info-card {
        padding: 12px;
    }

    .product-info-card h5 {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .info-item {
        gap: 2px;
    }

    .info-label {
        font-size: 0.65rem;
    }

    .info-value {
        font-size: 0.85rem;
    }

    .product-description-section,
    .product-requirements-section,
    .product-features-section {
        padding: 12px;
        margin-bottom: 12px;
    }

    .product-description-section h3,
    .product-requirements-section h4,
    .product-features-section h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        gap: 6px;
    }

    .description-content {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .requirement-item,
    .feature-item {
        padding: 6px 0;
        font-size: 0.85rem;
        gap: 6px;
    }
}

/* ============================================
   Responsive Design - Extra Small (480px and down)
   ============================================ */

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .product-container {
        padding: 12px;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .gallery-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }

    .thumbnails-container {
        padding: 8px;
    }

    .image-counter {
        bottom: 8px;
        right: 8px;
        font-size: 10px;
        padding: 4px 8px;
    }

    .pricing-amount {
        font-size: 1.1rem;
    }

    .product-title {
        letter-spacing: 0;
    }
}
