/* Product Detail Page - Gumroad Style */
.product-detail {
    padding: 40px 0;
    background: #f8f9fa;
}

.product-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Left Column: Product Information */
.product-info {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.author {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.product-meta .rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f39c12;
    font-size: 16px;
}

.product-description h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 30px 0 15px 0;
}

.product-description h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 25px 0 15px 0;
}

.product-description p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.product-description ul {
    margin: 15px 0;
    padding-left: 20px;
}

.product-description li {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.product-features {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.feature-item i {
    font-size: 18px;
    color: #3498db;
    width: 20px;
    text-align: center;
}

.feature-item span {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.product-benefits {
    margin: 40px 0;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-item i {
    color: #27ae60;
    font-size: 16px;
}

.benefit-item span {
    font-size: 15px;
    color: #2c3e50;
}

/* Right Column: Purchase Card & Reviews */
.product-sidebar {
    position: sticky;
    top: 100px;
}

.purchase-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.product-image {
    text-align: center;
    margin-bottom: 25px;
}

.product-image .book-placeholder.large {
    width: 200px;
    height: 280px;
    margin: 0 auto;
}

.pricing-section {
    margin-bottom: 25px;
}

.price-display {
    text-align: center;
    margin-bottom: 20px;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
    margin-right: 15px;
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.purchase-options {
    margin-bottom: 20px;
}

.license-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.purchase-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.purchase-btn.primary {
    background: #3498db;
    color: white;
}

.purchase-btn.primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.purchase-btn.secondary {
    background: #ecf0f1;
    color: #2c3e50;
    border: 1px solid #ddd;
}

.purchase-btn.secondary:hover {
    background: #d5dbdb;
}

.guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #27ae60;
    font-size: 14px;
    font-weight: 500;
}

/* Reviews Section */
.reviews-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.reviews-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.rating-summary {
    margin-bottom: 25px;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-number {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
}

.stars {
    color: #f39c12;
    font-size: 18px;
}

.total-reviews {
    color: #666;
    font-size: 14px;
}

.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.rating-bar .bar {
    flex: 1;
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar .fill {
    height: 100%;
    background: #3498db;
    border-radius: 4px;
}

.reviews-list {
    margin-bottom: 20px;
}

.review-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-header .stars {
    color: #f39c12;
    font-size: 14px;
}

.reviewer-name {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.load-more-btn {
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #e9ecef;
    color: #495057;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-btn:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.back-btn i {
    font-size: 12px;
}

/* Product Media Slider */
.product-media-slider {
    margin: 30px 0;
    position: relative;
}

.slider-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.slider-track:active {
    cursor: grabbing;
}

.slider-track.dragging {
    transition: none;
}

.slide {
    flex: 0 0 100%;
    position: relative;
}

.slide-image img,
.slide-video .video-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button i {
    color: white;
    font-size: 30px;
    margin-left: 5px;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Player */
.video-player {
    width: 100%;
    height: 400px;
}

.video-player iframe {
    width: 100%;
    height: 100%;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.indicator.active {
    background: #3498db;
    border-color: #3498db;
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-info {
        padding: 25px;
    }
    
    .product-header h1 {
        font-size: 24px;
    }
    
    .product-subtitle {
        font-size: 16px;
    }
    
    .subscription-type {
        font-size: 11px;
        padding: 3px 10px;
        margin-bottom: 12px;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .product-description h2 {
        font-size: 20px;
    }
    
    .product-description h3 {
        font-size: 18px;
    }
    
    .product-description p {
        font-size: 15px;
    }
    
    .product-description li {
        font-size: 15px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-sidebar {
        position: static;
    }
    
    .purchase-card {
        padding: 25px;
    }
    
    .subscription-select {
        font-size: 14px;
        padding: 10px;
    }
    
    .plan-description {
        padding: 15px;
    }
    
    .plan-description h4 {
        font-size: 16px;
    }
    
    .plan-description p {
        font-size: 13px;
    }
    
    .benefit-badge {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .product-image .book-placeholder.large {
        width: 150px;
        height: 210px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .reviews-section {
        padding: 25px;
    }
    
    .overall-rating {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .rating-number {
        font-size: 28px;
    }
    
    /* Mobile Slider Adjustments */
    .slide-image img,
    .slide-video .video-thumbnail img {
        height: 250px;
    }
    
    .video-player {
        height: 250px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 24px;
    }
    
    .slider-indicators {
        bottom: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
} 

/* 구독 옵션 */
.subscription-options {
    margin-bottom: 25px;
}

.subscription-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #3498db;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.subscription-select:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.subscription-select option {
    padding: 10px;
    font-size: 14px;
}

/* 플랜 설명 */
.plan-description {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.plan-description h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    text-align: center;
}

.plan-description p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0;
    text-align: center;
}

/* 연간 구독 혜택 */
.yearly-benefit {
    margin-bottom: 20px;
}

.benefit-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.benefit-badge i {
    font-size: 16px;
}

/* 구독 타입 표시 */
.subscription-type {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
} 