/* Product Detail CSS - Modern Theme */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 15px;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --success-color: #48bb78;
    --warning-color: #ed8936;
}

.product-detail-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem 0;
}

.product-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Product Images Section */
.product-images-section {
    padding: 3rem;
}

.product-main-display {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #f8f9fa;
}

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

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

.image-zoom-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-main-display:hover .image-zoom-overlay {
    opacity: 1;
}

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
}

.thumbnail-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail-img:hover,
.thumbnail-img.selected {
    border-color: #667eea;
    transform: scale(1.05);
}

/* Product Info Section */
.product-info-section {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-vendor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vendor-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.vendor-name {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.vendor-name:hover {
    color: #764ba2;
}

/* Pricing */
.product-pricing {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
}

.current-price.discounted {
    color: #059669;
}

.original-price {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--secondary-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.discount-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff3cd;
    color: #856404;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.discount-timer i {
    color: #f39c12;
}

.timer-text {
    font-weight: 600;
}

.timer-value {
    font-weight: 700;
    color: #e74c3c;
}

/* Product Statistics */
.product-stats {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stats-grid {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.bestseller-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.bestseller-badge svg {
    fill: currentColor;
    stroke: none;
}

/* Sizes */
.product-sizes {
    margin: 1rem 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-title .required {
    color: #e53e3e;
    margin-left: 0.25rem;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-option {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.size-option:hover,
.size-option.selected {
    border-color: #667eea;
    background: var(--primary-gradient);
    color: white;
}

/* Fabric Types */
.product-fabrics {
    margin-bottom: 1.5rem;
}

.fabric-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fabric-item {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.fabric-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.fabric-name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.fabric-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.fabric-price-modifier {
    font-weight: 600;
    color: var(--success-color);
    font-size: 0.9rem;
}

/* Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: #f7fafc;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: #e2e8f0;
}

#quantity {
    border: none;
    padding: 0.5rem;
    width: 60px;
    text-align: center;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.add-to-cart-btn {
    flex: 1;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.add-to-cart-btn.disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    opacity: 0.7;
}

.add-to-cart-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.wishlist-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wishlist-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.wishlist-btn.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.wishlist-btn.active:hover {
    background: #e55a28;
    border-color: #e55a28;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.wishlist-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.wishlist-btn svg {
    transition: all 0.3s ease;
}

.wishlist-btn.active svg {
    fill: white;
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}


/* Description */
.product-description {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.description-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-item svg {
    color: var(--success-color);
    flex-shrink: 0;
}

/* Related Products */
.related-products-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Slider Container */
.related-products-container {
    position: relative;
    overflow: hidden;
    margin: 0 40px; /* Space for navigation arrows */
}

.related-products-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    padding-bottom: 10px;
}

.related-products-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #64748b;
}

.slider-nav:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.slider-nav.prev {
    left: -20px;
}

.slider-nav.next {
    right: -20px;
}

.slider-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-nav:disabled:hover {
    background: white;
    border-color: #e2e8f0;
    color: #64748b;
}



/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 0;
        margin: 1rem;
    }
    
    .product-images-section,
    .product-info-section {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .main-product-image {
        height: 300px;
    }
}

/* Product Title Row with DMCA Button */
.product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.product-title {
    flex: 1;
    margin: 0;
}

/* DMCA Report Button - Small and Simple */
.dmca-report-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.dmca-report-btn:hover {
    background: #f1f5f9;
    color: #dc2626;
}

.dmca-report-btn:active {
    transform: scale(0.95);
}

.dmca-report-btn svg {
    display: block;
}

@media (max-width: 768px) {
    .dmca-report-btn {
        padding: 0.375rem;
    }
    
    .dmca-report-btn svg {
        width: 14px;
        height: 14px;
    }
}
