/* ============================================
   PRODUCT PAGE STYLES - PART 2
   Seller Card, Tabs, Mobile Bar, Zoom Modal
   ============================================ */

/* Seller Card */
.seller-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 1rem;
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.seller-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gray-200);
}

.seller-info {
    flex: 1;
}

.seller-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.seller-joined {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Seller Badges */
.seller-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge-verified {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.badge-top {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

/* Seller Stats - AMÉLIORÉ */
.seller-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 0.75rem;
    border: 2px solid #bae6fd;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Seller Actions */
.seller-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

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

.btn-secondary-outline {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-secondary-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Seller Performance */
.seller-performance {
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-100);
}

.performance-title {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.performance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.performance-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.performance-value {
    font-weight: 700;
    color: var(--gray-900);
}

/* Seller Protection */
.seller-protection {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
}

.protection-icon {
    flex-shrink: 0;
}

.protection-title {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.protection-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Product Tabs */
.product-tabs {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: linear-gradient(to bottom, #fff7ed 0%, white 100%);
}

.tabs-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.tab-text {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 1rem;
}

/* Product Tags */
.product-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-100);
}

.tags-title {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Specifications Table */
.specs-table {
    overflow-x: auto;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--gray-200);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.spec-label {
    padding: 1rem;
    font-weight: 700;
    color: var(--gray-700);
    width: 40%;
    background: var(--gray-50);
}

.spec-value {
    padding: 1rem;
    color: var(--gray-900);
}

/* Reviews */
.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 1rem;
}

.summary-score {
    text-align: center;
}

.score-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.score-stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.score-stars svg {
    width: 1.5rem;
    height: 1.5rem;
}

.star-filled {
    color: #fbbf24;
}

.star-empty {
    color: var(--gray-300);
}

.score-count {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.summary-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 3rem;
}

.bar-track {
    flex: 1;
    height: 0.75rem;
    background: var(--gray-200);
    border-radius: 1rem;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 1rem;
    transition: width 0.5s ease-out;
}

.bar-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    min-width: 2rem;
    text-align: right;
}

.no-reviews {
    text-align: center;
    padding: 4rem 2rem;
}

.no-reviews-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 1rem 0 0.5rem;
}

.no-reviews-text {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* Shipping Info */
.shipping-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shipping-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 1rem;
}

.shipping-icon {
    flex-shrink: 0;
}

.shipping-title {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.shipping-text {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.shipping-cost {
    font-weight: 700;
    color: var(--primary-color);
}

.shipping-free {
    font-weight: 700;
    color: var(--success-color);
}

.shipping-note {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-style: italic;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: all 0.2s;
}

.section-link:hover {
    gap: 0.75rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--gray-200);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

@media (max-width: 1023px) {
    .mobile-bottom-bar {
        display: block;
    }

    .product-seller-section {
        display: none;
    }
}

.mobile-bar-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    max-width: 100%;
}

.mobile-price {
    flex-shrink: 0;
}

.price-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 0.125rem;
}

.price-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--primary-color);
}

.mobile-actions {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.mobile-form {
    flex: 1;
}

.mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

.mobile-btn-icon {
    padding: 0.75rem;
    background: white;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.mobile-btn-icon:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.mobile-btn-primary {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.mobile-btn-secondary {
    flex: 1;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.mobile-btn-disabled {
    flex: 1;
    background: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
}

/* Image Zoom Modal */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-zoom-modal.active {
    display: flex;
}

.image-zoom-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    transform: scale(1.1);
    background: var(--danger-color);
    color: white;
}

.zoom-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.zoom-nav-btn {
    width: 3rem;
    height: 3rem;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.zoom-nav-btn:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .reviews-summary {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .seller-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-item {
        padding: 0.75rem 0.5rem;
    }

    .stat-value {
        font-size: 1.125rem;
    }

    .stat-label {
        font-size: 0.625rem;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-fade-in {
    animation: slideUp 0.5s ease-out;
}

