File size: 11,150 Bytes
423654a
 
 
 
 
a6e19ae
 
423654a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a6e19ae
 
423654a
a6e19ae
 
423654a
a6e19ae
 
423654a
a6e19ae
 
423654a
a6e19ae
 
 
 
423654a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>محصولات - قالیشویی کاپیتان</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');
    </style>
</head>
<body class="font-vazir bg-gray-50">
    <custom-navbar></custom-navbar>
    
    <!-- Products Header -->
    <section class="bg-amber-700 text-white py-12">
        <div class="container mx-auto px-4">
            <h1 class="text-4xl font-bold text-center mb-4">محصولات ما</h1>
            <p class="text-center text-amber-100 max-w-2xl mx-auto">
            مجموعه‌ای از زیباترین و باکیفیت‌ترین فرش‌های دستباف ایرانی
            </p>
        </div>
    </section>

    <!-- Filter Section -->
    <section class="py-8 bg-white shadow-sm">
        <div class="container mx-auto px-4">
            <div class="flex flex-wrap gap-4 justify-center">
            <button onclick="filterProducts('all')" class="bg-amber-600 text-white px-6 py-2 rounded-lg hover:bg-amber-700 transition duration-300" data-category="all">
                    همه خدمات
                </button>
                <button onclick="filterProducts('carpet')" class="bg-gray-200 text-gray-700 px-6 py-2 rounded-lg hover:bg-gray-300 transition duration-300" data-category="carpet">
                    فرش
                </button>
                <button onclick="filterProducts('carpet')" class="bg-gray-200 text-gray-700 px-6 py-2 rounded-lg hover:bg-gray-300 transition duration-300">
                    موکت
                </button>
                <button onclick="filterProducts('furniture')" class="bg-gray-200 text-gray-700 px-6 py-2 rounded-lg hover:bg-gray-300 transition duration-300" data-category="furniture">
                    مبلمان
                </button>
                <button onclick="filterProducts('mattress')" class="bg-gray-200 text-gray-700 px-6 py-2 rounded-lg hover:bg-gray-300 transition duration-300">
                    تشک تخت
                </button>
</div>
            
            <!-- Search Box -->
            <div class="mt-6 max-w-md mx-auto">
                <div class="relative">
                    <input type="text" id="search-input" placeholder="جستجو در محصولات..." 
                   class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-500 focus:border-transparent">
                    <i data-feather="search" class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400">
                </div>
            </div>
        </div>
    </section>

    <!-- Products Grid -->
    <section class="py-16">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <!-- Product 1 -->
                <div class="product-item bg-white rounded-lg shadow-lg hover-lift" data-category="classic">
                    <img src="http://static.photos/vintage/640x360/5" alt="فرش اصفهان" class="w-full h-64 object-cover rounded-t-lg">
                    <div class="p-6">
                        <h3 class="text-xl font-semibold text-gray-800 mb-3">فرش اصفهان</h3>
                        <p class="text-gray-600 mb-4">فرش دستباف اصفهان با طرح‌های سنتی و رنگ‌های طبیعی</p>
                        <div class="flex justify-between items-center">
                            <span class="text-amber-700 font-bold text-lg">۱۲,۰۰۰,۰۰۰ تومان</span>
                            <button onclick="addToCart(1, 'فرش اصفهان', 12000000)" class="bg-amber-600 text-white px-4 py-2 rounded-lg hover:bg-amber-700 transition duration-300">
                                افزودن به سبد
                            </button>
                        </div>
                    </div>
                </div>

                <!-- Product 2 -->
                <div class="product-item bg-white rounded-lg shadow-lg hover-lift" data-category="modern">
                    <img src="http://static.photos/modern/640x360/6" alt="فرش مدرن" class="w-full h-64 object-cover rounded-t-lg">
                    <div class="p-6">
                        <h3 class="text-xl font-semibold text-gray-800 mb-3">فرش مدرن</h3>
                        <p class="text-gray-600 mb-4">فرش با طراحی معاصر و رنگ‌های شاد برای فضای مدرن</p>
                        <div class="flex justify-between items-center">
                            <span class="text-amber-700 font-bold text-lg">۸,۵۰۰,۰۰۰ تومان</span>
                            <button onclick="addToCart(2, 'فرش مدرن', 8500000)" class="bg-amber-600 text-white px-4 py-2 rounded-lg hover:bg-amber-700 transition duration-300">
                                افزودن به سبد
                            </button>
                        </div>
                    </div>
                </div>

                <!-- Product 3 -->
                <div class="product-item bg-white rounded-lg shadow-lg hover-lift" data-category="antique">
                    <img src="http://static.photos/antique/640x360/7" alt="فرش آنتیک" class="w-full h-64 object-cover rounded-t-lg">
                    <div class="p-6">
                        <h3 class="text-xl font-semibold text-gray-800 mb-3">فرش آنتیک</h3>
                        <p class="text-gray-600 mb-4">فرش دستباف قدیمی با ارزش تاریخی و کیفیت استثنایی</p>
                        <div class="flex justify-between items-center">
                            <span class="text-amber-700 font-bold text-lg">۲۵,۰۰۰,۰۰۰ تومان</span>
                            <button onclick="addToCart(3, 'فرش آنتیک', 25000000)" class="bg-amber-600 text-white px-4 py-2 rounded-lg hover:bg-amber-700 transition duration-300">
                                افزودن به سبد
                            </button>
                        </div>
                    </div>
                </div>

                <!-- Product 4 -->
                <div class="product-item bg-white rounded-lg shadow-lg hover-lift" data-category="classic">
                    <img src="http://static.photos/vintage/640x360/8" alt="فرش تبریز" class="w-full h-64 object-cover rounded-t-lg">
                    <div class="p-6">
                        <h3 class="text-xl font-semibold text-gray-800 mb-3">فرش تبریز</h3>
                        <p class="text-gray-600 mb-4">فرش دستباف تبریز با گره‌های محکم و طرح‌های اصیل</p>
                        <div class="flex justify-between items-center">
                            <span class="text-amber-700 font-bold text-lg">۱۵,۰۰۰,۰۰۰ تومان</span>
                            <button onclick="addToCart(4, 'فرش تبریز', 15000000)" class="bg-amber-600 text-white px-4 py-2 rounded-lg hover:bg-amber-700 transition duration-300">
                                افزودن به سبد
                            </button>
                        </div>
                    </div>
                </div>

                <!-- Product 5 -->
                <div class="product-item bg-white rounded-lg shadow-lg hover-lift" data-category="modern">
                    <img src="http://static.photos/modern/640x360/9" alt="فرش مدرن طرح هندسی" class="w-full h-64 object-cover rounded-t-lg">
                    <div class="p-6">
                        <h3 class="text-xl font-semibold text-gray-800 mb-3">فرش مدرن طرح هندسی</h3>
                        <p class="text-gray-600 mb-4">فرش با طرح هندسی مدرن و رنگ‌های متنوع</p>
                        <div class="flex justify-between items-center">
                            <span class="text-amber-700 font-bold text-lg">۷,۲۰۰,۰۰۰ تومان</span>
                            <button onclick="addToCart(5, 'فرش مدرن طرح هندسی', 7200000)" class="bg-amber-600 text-white px-4 py-2 rounded-lg hover:bg-amber-700 transition duration-300">
                                افزودن به سبد
                            </button>
                        </div>
                    </div>
                </div>

                <!-- Product 6 -->
                <div class="product-item bg-white rounded-lg shadow-lg hover-lift" data-category="antique">
                    <img src="http://static.photos/antique/640x360/10" alt="فرش قدیمی کرمان" class="w-full h-64 object-cover rounded-t-lg">
                    <div class="p-6">
                        <h3 class="text-xl font-semibold text-gray-800 mb-3">فرش قدیمی کرمان</h3>
                        <p class="text-gray-600 mb-4">فرش دستباف کرمان با قدمت ۱۰۰ سال و کیفیت استثنایی</p>
                        <div class="flex justify-between items-center">
                            <span class="text-amber-700 font-bold text-lg">۳۰,۰۰۰,۰۰۰ تومان</span>
                            <button onclick="addToCart(6, 'فرش قدیمی کرمان', 30000000)" class="bg-amber-600 text-white px-4 py-2 rounded-lg hover:bg-amber-700 transition duration-300">
                                افزودن به سبد
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <custom-footer></custom-footer>
    
    <script src="components/navbar.js"></script>
    <script src="components/footer.js"></script>
    <script src="script.js"></script>
    <script>
        // Initialize search functionality
        document.getElementById('search-input').addEventListener('input', function(e) {
            searchProducts(e.target.value);
        });
        
        // Initialize filter buttons
        document.querySelectorAll('[data-category]').forEach(button => {
            button.addEventListener('click', function() {
                // Update active state
                document.querySelectorAll('[data-category]').forEach(btn => {
                btn.classList.remove('bg-amber-600', 'text-white');
                btn.classList.add('bg-gray-200', 'text-gray-700');
            });
            
            this.classList.remove('bg-gray-200', 'text-gray-700');
            this.classList.add('bg-amber-600', 'text-white');
        });
    });
    </script>
    <script>feather.replace();</script>
</body>
</html>