
        /* --- تنظیمات مشترک --- */
        :root {
            --primary-color: #2563eb;
            --secondary-color: #f59e0b;
            --dark-color: #1e293b;
            --light-bg: #f8fafc;
            --white: #ffffff;
            --text-color: #334155;
            --border-color: #e2e8f0;
            --radius: 12px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Vazirmatn', sans-serif; background-color: var(--light-bg); color: var(--text-color); }
        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }
        img { max-width: 100%; display: block; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
        

        /* --- استایل جزئیات محصول --- */
        .page-header { background-color: var(--white); padding: 20px 0; border-bottom: 1px solid var(--border-color); }
        .breadcrumb { font-size: 0.9rem; color: #64748b; }
        
        .product-detail-container { padding: 60px 0; display: flex; gap: 50px; flex-wrap: wrap; }
        
        /* گالری */
        .gallery-section { flex: 1; min-width: 300px; }
        .main-image { width: 100%; height: 450px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid var(--border-color); }
        .thumbnails { display: flex; gap: 15px; }
        .thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
        .thumb:hover, .thumb.active { border-color: var(--primary-color); opacity: 0.8; }

        /* اطلاعات */
        .info-section { flex: 1; min-width: 300px; }
        .product-category { color: var(--secondary-color); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 10px; display: block; }
        .product-title { font-size: 2.2rem; font-weight: 900; color: var(--dark-color); margin-bottom: 15px; line-height: 1.3; }
        .sku { font-size: 0.85rem; color: #94a3b8; margin-bottom: 20px; display: block; }
        
        .price-area { background: var(--white); padding: 20px; border-radius: var(--radius); border: 1px solid var(--border-color); margin-bottom: 25px; }
        .price-value { font-size: 1.8rem; color: var(--primary-color); font-weight: 800; display: block; }
        
        .description { color: #64748b; line-height: 1.8; margin-bottom: 30px; text-align: justify; }

        /* استایل جدید تعداد (+ و -) */
        .options-wrapper { margin-bottom: 30px; }
        .option-label { font-weight: 700; display: block; margin-bottom: 10px; }
        
        .quantity-wrapper { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
        .qty-btn { width: 40px; height: 40px; border: 1px solid var(--border-color); background: white; border-radius: 8px; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
        .qty-btn:hover { background: #f1f5f9; color: var(--primary-color); }
        .qty-input { width: 80px; height: 40px; border: 1px solid var(--border-color); border-radius: 8px; text-align: center; font-family: inherit; font-weight: 700; font-size: 1.1rem; }

        .action-buttons { display: flex; gap: 15px; }
        .btn-cart { flex: 2; background-color: var(--primary-color); color: white; padding: 15px; border: none; border-radius: 8px; font-size: 1.1rem; font-family: inherit; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; }
        .btn-cart:hover { background-color: #1d4ed8; }
        .btn-wishlist { flex: 1; background-color: white; border: 1px solid var(--border-color); color: var(--dark-color); padding: 15px; border-radius: 8px; cursor: pointer; transition: 0.3s; font-size: 1.2rem; }
        .btn-wishlist:hover { background-color: #f1f5f9; color: red; }

        /* --- تب‌ها --- */
        .tabs-container { margin-top: 50px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border-color); overflow: hidden; }
        .tabs-header { display: flex; background: #f1f5f9; border-bottom: 1px solid var(--border-color); }
        .tab-btn { padding: 15px 30px; cursor: pointer; border: none; background: transparent; font-family: inherit; font-weight: 600; color: #64748b; transition: 0.3s; border-bottom: 3px solid transparent; }
        .tab-btn:hover { color: var(--primary-color); }
        /* استایل فعال برای تب (کلاس active) */
        .tab-btn.active { color: var(--primary-color); background: white; border-bottom-color: var(--primary-color); }
        
        .tab-content { padding: 30px; display: none; animation: fadeIn 0.5s; }
        /* استایل فعال برای محتوای تب */
        .tab-content.active { display: block; }

        .specs-table { width: 100%; border-collapse: collapse; }
        .specs-table td { padding: 12px; border-bottom: 1px solid var(--border-color); }
        .specs-table td:first-child { font-weight: 700; color: var(--dark-color); width: 30%; }

        /* استایل بخش نظرات */
        .comments-section { display: flex; gap: 40px; flex-wrap: wrap; }
        .comments-form-wrapper { flex: 1; min-width: 300px; background: #f8fafc; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border-color); }
        .comments-list-wrapper { flex: 1; min-width: 300px; }
        
        .form-group { margin-bottom: 15px; }
        .form-label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.9rem; }
        .form-control { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 8px; font-family: inherit; }
        .form-control:focus { outline: none; border-color: var(--primary-color); }
        
        .comment-item { border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 20px; }
        .comment-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
        .comment-author { font-weight: 700; color: var(--dark-color); }
        .comment-date { font-size: 0.8rem; color: #94a3b8; }
        .comment-text { color: #475569; line-height: 1.6; font-size: 0.95rem; }
        .stars { color: var(--secondary-color); font-size: 0.9rem; }

        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        @media (max-width: 768px) {
            .product-detail-container { flex-direction: column; }
            .main-image { height: 300px; }
            .comments-section { flex-direction: column; }
        }
