/* Public Product View Page Styles */

.product-view-page {
    min-height: 100vh;
}

/* Product Header Section */
.product-header-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-price {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    display: block;
}

.price-label {
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* Product Main Section */
.product-main-section {
    padding: 3rem 0;
    background: #ffffff;
}

.product-gallery {
    position: sticky;
    top: 2rem;
}

.main-image-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.main-product-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.no-image-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

/* Product Info Panel */
.product-info-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 2rem;
}

.features-title, .pricing-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 0.5rem 0;
    color: #475569;
}

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

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.price-tier {
    font-weight: 600;
    color: #475569;
}

.price-amount {
    font-weight: 700;
    color: #3b82f6;
    font-size: 1.2rem;
}

.stock-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stock-text {
    font-weight: 600;
    color: #475569;
}

.stock-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-badge.in-stock {
    background: #dcfce7;
    color: #166534;
}

.stock-badge.low-stock {
    background: #fef3c7;
    color: #92400e;
}

.stock-badge.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

.action-buttons .btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trust-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
    padding: 0.5rem 0;
}

/* Product Tabs */
.product-tabs {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.product-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.product-tabs .nav-link:hover {
    color: #3b82f6;
    background: #f8fafc;
}

.product-tabs .nav-link.active {
    color: #3b82f6;
    background: #ffffff;
    border-bottom: 2px solid #3b82f6;
}

.product-tab-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.product-description {
    line-height: 1.7;
    color: #475569;
    font-size: 1.1rem;
}

.specifications-content {
    line-height: 1.7;
    color: #475569;
}

.support-options {
    padding: 1rem 0;
}

.support-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.support-card h6 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.support-card p {
    color: #64748b;
    margin-bottom: 1rem;
}

/* Product Video Section */
.product-video-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.product-video-section h5 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Related Products Section */
.related-products-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-header-section {
        padding: 2rem 0;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-item {
        justify-content: center;
    }
    
    .product-main-section {
        padding: 2rem 0;
    }
    
    .product-info-panel {
        margin-top: 2rem;
        position: static;
    }
    
    .product-gallery {
        position: static;
    }
    
    .main-image-container {
        padding: 1rem;
    }
    
    .product-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .product-tab-content {
        padding: 1.5rem;
    }
    
    .pricing-options {
        gap: 0.5rem;
    }
    
    .price-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stock-indicator {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .trust-badges {
        gap: 0.5rem;
    }
    
    .video-container {
        padding-bottom: 60%; /* Slightly taller on mobile */
    }
    
    .product-video-section {
        padding: 1rem;
    }
}
