File size: 41,599 Bytes
6368485 |
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 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 |
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>كوزمتك - متجر مستحضرات التجميل</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');
body {
font-family: 'Tajawal', sans-serif;
background-color: #fef6f6;
}
.hero-section {
background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80');
background-size: cover;
background-position: center;
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.category-btn.active {
background-color: #f472b6;
color: white;
}
.cart-item {
transition: all 0.3s ease;
}
.cart-item:hover {
background-color: #fef2f2;
}
.dropdown:hover .dropdown-menu {
display: block;
}
/* Animation for notification */
@keyframes slideIn {
from { transform: translateX(100%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
from { transform: translateX(0); opacity: 1; }
to { transform: translateX(100%); opacity: 0; }
}
.notification {
animation: slideIn 0.5s forwards;
}
.notification.hide {
animation: slideOut 0.5s forwards;
}
</style>
</head>
<body class="text-gray-800">
<!-- شريط التنقل العلوي -->
<nav class="bg-white shadow-lg sticky top-0 z-50">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<!-- الشعار -->
<div class="flex items-center">
<a href="#" class="text-2xl font-bold text-pink-500">كوزمتك</a>
</div>
<!-- روابط التنقل -->
<div class="hidden md:flex space-x-6 space-x-reverse">
<a href="#" class="text-gray-700 hover:text-pink-500 font-medium">الرئيسية</a>
<a href="#products" class="text-gray-700 hover:text-pink-500 font-medium">المنتجات</a>
<a href="#categories" class="text-gray-700 hover:text-pink-500 font-medium">الأقسام</a>
<a href="#offers" class="text-gray-700 hover:text-pink-500 font-medium">العروض</a>
<a href="#about" class="text-gray-700 hover:text-pink-500 font-medium">من نحن</a>
</div>
<!-- أيقونات المستخدم والسلة -->
<div class="flex items-center space-x-4 space-x-reverse">
<a href="#" class="text-gray-700 hover:text-pink-500">
<i class="fas fa-user text-xl"></i>
</a>
<div class="relative">
<button id="cart-btn" class="text-gray-700 hover:text-pink-500 relative">
<i class="fas fa-shopping-cart text-xl"></i>
<span id="cart-count" class="absolute -top-2 -right-2 bg-pink-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">0</span>
</button>
<!-- سلة التسوق المنبثقة -->
<div id="cart-dropdown" class="hidden absolute right-0 mt-2 w-72 bg-white rounded-md shadow-lg py-2 z-50">
<div id="cart-items" class="max-h-60 overflow-y-auto px-4 py-2">
<p class="text-center text-gray-500 py-4">سلة التسوق فارغة</p>
</div>
<div class="border-t px-4 py-2">
<div class="flex justify-between mb-2">
<span>المجموع:</span>
<span id="cart-total" class="font-bold">0 ر.س</span>
</div>
<a href="checkout.html" class="block w-full bg-pink-500 text-white text-center py-2 rounded hover:bg-pink-600">الدفع</a>
</div>
</div>
</div>
<button id="mobile-menu-btn" class="md:hidden text-gray-700">
<i class="fas fa-bars text-xl"></i>
</button>
</div>
</div>
<!-- قائمة الجوال -->
<div id="mobile-menu" class="hidden md:hidden bg-white py-2 px-4">
<a href="#" class="block py-2 text-gray-700 hover:text-pink-500">الرئيسية</a>
<a href="#products" class="block py-2 text-gray-700 hover:text-pink-500">المنتجات</a>
<a href="#categories" class="block py-2 text-gray-700 hover:text-pink-500">الأقسام</a>
<a href="#offers" class="block py-2 text-gray-700 hover:text-pink-500">العروض</a>
<a href="#about" class="block py-2 text-gray-700 hover:text-pink-500">من نحن</a>
</div>
</nav>
<!-- إشعار الإضافة للسلة -->
<div id="notification" class="fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded shadow-lg hidden z-50">
<div class="flex items-center">
<i class="fas fa-check-circle mr-2"></i>
<span>تمت إضافة المنتج إلى سلة التسوق</span>
</div>
</div>
<!-- قسم البطل -->
<section class="hero-section text-white py-20">
<div class="container mx-auto px-4 text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-4">اكتشف جمالك مع كوزمتك</h1>
<p class="text-xl mb-8">أفضل مستحضرات التجميل والعناية بالبشرة من أشهر الماركات العالمية</p>
<a href="#products" class="bg-pink-500 hover:bg-pink-600 text-white font-bold py-3 px-8 rounded-full">تسوق الآن</a>
</div>
</section>
<!-- قسم العروض الخاصة -->
<section id="offers" class="py-12 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-10">عروض خاصة</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<!-- عرض 1 -->
<div class="bg-pink-50 rounded-lg p-6 flex flex-col md:flex-row items-center">
<div class="md:mr-4 mb-4 md:mb-0">
<img src="https://images.unsplash.com/photo-1596755094514-f87e34085b2c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=688&q=80" alt="عرض" class="w-32 h-32 object-cover rounded-full">
</div>
<div>
<h3 class="text-xl font-bold mb-2">خصم 30% على المكياج</h3>
<p class="text-gray-600 mb-3">احصل على خصم 30% على جميع منتجات المكياج لمدة محدودة</p>
<a href="#" class="text-pink-500 font-medium">تسوق الآن <i class="fas fa-arrow-left mr-1"></i></a>
</div>
</div>
<!-- عرض 2 -->
<div class="bg-pink-50 rounded-lg p-6 flex flex-col md:flex-row items-center">
<div class="md:mr-4 mb-4 md:mb-0">
<img src="https://images.unsplash.com/photo-1625772452859-1c03d5bf1137?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="عرض" class="w-32 h-32 object-cover rounded-full">
</div>
<div>
<h3 class="text-xl font-bold mb-2">مجموعة العناية بالبشرة</h3>
<p class="text-gray-600 mb-3">اشترِ 3 منتجات واحصل على الرابع مجانًا من منتجات العناية بالبشرة</p>
<a href="#" class="text-pink-500 font-medium">تسوق الآن <i class="fas fa-arrow-left mr-1"></i></a>
</div>
</div>
<!-- عرض 3 -->
<div class="bg-pink-50 rounded-lg p-6 flex flex-col md:flex-row items-center">
<div class="md:mr-4 mb-4 md:mb-0">
<img src="https://images.unsplash.com/photo-1596462502278-27bfdc403348?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="عرض" class="w-32 h-32 object-cover rounded-full">
</div>
<div>
<h3 class="text-xl font-bold mb-2">شحن مجاني</h3>
<p class="text-gray-600 mb-3">احصل على شحن مجاني لجميع الطلبات فوق 200 ريال</p>
<a href="#" class="text-pink-500 font-medium">تسوق الآن <i class="fas fa-arrow-left mr-1"></i></a>
</div>
</div>
</div>
</div>
</section>
<!-- قسم الأقسام -->
<section id="categories" class="py-12 bg-gray-50">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-10">تصفح حسب الأقسام</h2>
<div class="flex flex-wrap justify-center gap-4 mb-10">
<button class="category-btn active px-4 py-2 rounded-full bg-pink-100 text-pink-600 font-medium" data-category="all">الكل</button>
<button class="category-btn px-4 py-2 rounded-full bg-gray-200 text-gray-700 font-medium" data-category="makeup">المكياج</button>
<button class="category-btn px-4 py-2 rounded-full bg-gray-200 text-gray-700 font-medium" data-category="skincare">العناية بالبشرة</button>
<button class="category-btn px-4 py-2 rounded-full bg-gray-200 text-gray-700 font-medium" data-category="hair">العناية بالشعر</button>
<button class="category-btn px-4 py-2 rounded-full bg-gray-200 text-gray-700 font-medium" data-category="fragrance">العطور</button>
</div>
</div>
</section>
<!-- قسم المنتجات -->
<section id="products" class="py-12 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-10">منتجاتنا</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-8">
<!-- منتج 1 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="makeup">
<div class="relative">
<img src="https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80" alt="أحمر شفاه" class="w-full h-64 object-cover">
<span class="absolute top-2 right-2 bg-pink-500 text-white text-xs px-2 py-1 rounded">جديد</span>
</div>
<div class="p-4">
<h3 class="text-lg font-bold mb-2">أحمر شفاه مات</h3>
<p class="text-gray-600 text-sm mb-3">لون طبيعي يدوم طويلاً</p>
<div class="flex justify-between items-center">
<span class="text-pink-500 font-bold">45 ر.س</span>
<button class="add-to-cart bg-pink-500 hover:bg-pink-600 text-white px-3 py-1 rounded text-sm" data-id="1" data-name="أحمر شفاه مات" data-price="45" data-image="https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80">
<i class="fas fa-cart-plus mr-1"></i> إضافة
</button>
</div>
</div>
</div>
<!-- منتج 2 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="skincare">
<div class="relative">
<img src="https://images.unsplash.com/photo-1571781926291-c477ebfd024b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=688&q=80" alt="مرطب للبشرة" class="w-full h-64 object-cover">
<span class="absolute top-2 right-2 bg-red-500 text-white text-xs px-2 py-1 rounded">عرض</span>
</div>
<div class="p-4">
<h3 class="text-lg font-bold mb-2">مرطب يومي للبشرة</h3>
<p class="text-gray-600 text-sm mb-3">للحصول على بشرة ناعمة ورطبة</p>
<div class="flex justify-between items-center">
<span class="text-pink-500 font-bold">85 ر.س</span>
<button class="add-to-cart bg-pink-500 hover:bg-pink-600 text-white px-3 py-1 rounded text-sm" data-id="2" data-name="مرطب يومي للبشرة" data-price="85" data-image="https://images.unsplash.com/photo-1571781926291-c477ebfd024b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=688&q=80">
<i class="fas fa-cart-plus mr-1"></i> إضافة
</button>
</div>
</div>
</div>
<!-- منتج 3 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="makeup">
<div class="relative">
<img src="https://images.unsplash.com/photo-1625772452859-1c03d5bf1137?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="ظل عيون" class="w-full h-64 object-cover">
</div>
<div class="p-4">
<h3 class="text-lg font-bold mb-2">ظل عيون بألوان متعددة</h3>
<p class="text-gray-600 text-sm mb-3">مجموعة من 12 لون</p>
<div class="flex justify-between items-center">
<span class="text-pink-500 font-bold">120 ر.س</span>
<button class="add-to-cart bg-pink-500 hover:bg-pink-600 text-white px-3 py-1 rounded text-sm" data-id="3" data-name="ظل عيون بألوان متعددة" data-price="120" data-image="https://images.unsplash.com/photo-1625772452859-1c03d5bf1137?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80">
<i class="fas fa-cart-plus mr-1"></i> إضافة
</button>
</div>
</div>
</div>
<!-- منتج 4 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="hair">
<div class="relative">
<img src="https://images.unsplash.com/photo-1596703265002-68840d3e7063?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="شامبو للشعر" class="w-full h-64 object-cover">
</div>
<div class="p-4">
<h3 class="text-lg font-bold mb-2">شامبو للشعر الجاف</h3>
<p class="text-gray-600 text-sm mb-3">يغذي ويرطب الشعر</p>
<div class="flex justify-between items-center">
<span class="text-pink-500 font-bold">65 ر.س</span>
<button class="add-to-cart bg-pink-500 hover:bg-pink-600 text-white px-3 py-1 rounded text-sm" data-id="4" data-name="شامبو للشعر الجاف" data-price="65" data-image="https://images.unsplash.com/photo-1596703265002-68840d3e7063?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80">
<i class="fas fa-cart-plus mr-1"></i> إضافة
</button>
</div>
</div>
</div>
<!-- منتج 5 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="fragrance">
<div class="relative">
<img src="https://images.unsplash.com/photo-1594035910387-fea47794261f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=880&q=80" alt="عطر نسائي" class="w-full h-64 object-cover">
<span class="absolute top-2 right-2 bg-green-500 text-white text-xs px-2 py-1 rounded">الأكثر مبيعاً</span>
</div>
<div class="p-4">
<h3 class="text-lg font-bold mb-2">عطر نسائي فاخر</h3>
<p class="text-gray-600 text-sm mb-3">رائحة تدوم طوال اليوم</p>
<div class="flex justify-between items-center">
<span class="text-pink-500 font-bold">250 ر.س</span>
<button class="add-to-cart bg-pink-500 hover:bg-pink-600 text-white px-3 py-1 rounded text-sm" data-id="5" data-name="عطر نسائي فاخر" data-price="250" data-image="https://images.unsplash.com/photo-1594035910387-fea47794261f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=880&q=80">
<i class="fas fa-cart-plus mr-1"></i> إضافة
</button>
</div>
</div>
</div>
<!-- منتج 6 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="skincare">
<div class="relative">
<img src="https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="مقشر للبشرة" class="w-full h-64 object-cover">
</div>
<div class="p-4">
<h3 class="text-lg font-bold mb-2">مقشر للبشرة</h3>
<p class="text-gray-600 text-sm mb-3">لإزالة الخلايا الميتة</p>
<div class="flex justify-between items-center">
<span class="text-pink-500 font-bold">75 ر.س</span>
<button class="add-to-cart bg-pink-500 hover:bg-pink-600 text-white px-3 py-1 rounded text-sm" data-id="6" data-name="مقشر للبشرة" data-price="75" data-image="https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80">
<i class="fas fa-cart-plus mr-1"></i> إضافة
</button>
</div>
</div>
</div>
<!-- منتج 7 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="makeup">
<div class="relative">
<img src="https://images.unsplash.com/photo-1596462502278-27bfdc403348?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="كونسيلر" class="w-full h-64 object-cover">
</div>
<div class="p-4">
<h3 class="text-lg font-bold mb-2">كونسيلر عالي التغطية</h3>
<p class="text-gray-600 text-sm mb-3">يخفي العيوب والهالات</p>
<div class="flex justify-between items-center">
<span class="text-pink-500 font-bold">55 ر.س</span>
<button class="add-to-cart bg-pink-500 hover:bg-pink-600 text-white px-3 py-1 rounded text-sm" data-id="7" data-name="كونسيلر عالي التغطية" data-price="55" data-image="https://images.unsplash.com/photo-1596462502278-27bfdc403348?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80">
<i class="fas fa-cart-plus mr-1"></i> إضافة
</button>
</div>
</div>
</div>
<!-- منتج 8 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="hair">
<div class="relative">
<img src="https://images.unsplash.com/photo-1608248543803-ba0a8def4a5e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="بلسم للشعر" class="w-full h-64 object-cover">
</div>
<div class="p-4">
<h3 class="text-lg font-bold mb-2">بلسم للشعر التالف</h3>
<p class="text-gray-600 text-sm mb-3">يصلح الشعر ويجعله لامعاً</p>
<div class="flex justify-between items-center">
<span class="text-pink-500 font-bold">70 ر.س</span>
<button class="add-to-cart bg-pink-500 hover:bg-pink-600 text-white px-3 py-1 rounded text-sm" data-id="8" data-name="بلسم للشعر التالف" data-price="70" data-image="https://images.unsplash.com/photo-1608248543803-ba0a8def4a5e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80">
<i class="fas fa-cart-plus mr-1"></i> إضافة
</button>
</div>
</div>
</div>
</div>
<div class="text-center mt-10">
<a href="#" class="inline-block bg-pink-500 hover:bg-pink-600 text-white font-bold py-3 px-8 rounded-full">عرض المزيد</a>
</div>
</div>
</section>
<!-- قسم لماذا نحن -->
<section id="about" class="py-16 bg-gray-50">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">لماذا تختار كوزمتك؟</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="text-center">
<div class="bg-pink-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i class="fas fa-check-circle text-pink-500 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-2">منتجات أصلية</h3>
<p class="text-gray-600">جميع منتجاتنا أصلية وذات جودة عالية من أشهر الماركات العالمية</p>
</div>
<div class="text-center">
<div class="bg-pink-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i class="fas fa-truck text-pink-500 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-2">شحن سريع</h3>
<p class="text-gray-600">نوفر خدمة توصيل سريعة وآمنة لجميع أنحاء المملكة</p>
</div>
<div class="text-center">
<div class="bg-pink-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i class="fas fa-headset text-pink-500 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-2">دعم فني</h3>
<p class="text-gray-600">فريق دعم فني متاح على مدار الساعة لمساعدتك في أي استفسار</p>
</div>
</div>
</div>
</section>
<!-- قسم آراء العملاء -->
<section class="py-16 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">آراء عملائنا</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- رأي 1 -->
<div class="bg-gray-50 p-6 rounded-lg">
<div class="flex items-center mb-4">
<img src="https://randomuser.me/api/portraits/women/32.jpg" alt="عميلة" class="w-12 h-12 rounded-full mr-4">
<div>
<h4 class="font-bold">سارة محمد</h4>
<div class="flex text-yellow-400">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
</div>
<p class="text-gray-600">"أحب المنتجات في كوزمتك، جودتها ممتازة والتوصيل سريع جداً. أنصح الجميع بالتسوق من هنا"</p>
</div>
<!-- رأي 2 -->
<div class="bg-gray-50 p-6 rounded-lg">
<div class="flex items-center mb-4">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="عميلة" class="w-12 h-12 rounded-full mr-4">
<div>
<h4 class="font-bold">نورا أحمد</h4>
<div class="flex text-yellow-400">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
</div>
</div>
</div>
<p class="text-gray-600">"تجربة تسوق رائعة، المنتجات أصلية تماماً كما وصفوها. شكراً كوزمتك على الخدمة المميزة"</p>
</div>
<!-- رأي 3 -->
<div class="bg-gray-50 p-6 rounded-lg">
<div class="flex items-center mb-4">
<img src="https://randomuser.me/api/portraits/women/68.jpg" alt="عميلة" class="w-12 h-12 rounded-full mr-4">
<div>
<h4 class="font-bold">لمى عبدالله</h4>
<div class="flex text-yellow-400">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
</div>
<p class="text-gray-600">"اشتريت عدة مرات من الموقع وكل مرة أكون أكثر إعجاباً. فريق العمل محترف جداً والمنتجات ممتازة"</p>
</div>
</div>
</div>
</section>
<!-- قسم النشرة البريدية -->
<section class="py-16 bg-pink-50">
<div class="container mx-auto px-4 text-center">
<h2 class="text-3xl font-bold mb-4">اشترك في نشرتنا البريدية</h2>
<p class="text-gray-600 mb-8 max-w-2xl mx-auto">احصل على آخر العروض والتخفيضات مباشرة إلى بريدك الإلكتروني</p>
<form class="flex flex-col sm:flex-row justify-center max-w-md mx-auto">
<input type="email" placeholder="بريدك الإلكتروني" class="px-4 py-3 rounded-full mb-2 sm:mb-0 sm:mr-2 flex-grow border border-gray-300 focus:outline-none focus:ring-2 focus:ring-pink-500">
<button type="submit" class="bg-pink-500 hover:bg-pink-600 text-white font-bold px-6 py-3 rounded-full">اشترك الآن</button>
</form>
</div>
</section>
<!-- تذييل الصفحة -->
<footer class="bg-gray-900 text-white py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold mb-4">كوزمتك</h3>
<p class="text-gray-400">متجرك الأول لمستحضرات التجميل والعناية بالبشرة والشعر. نقدم أفضل المنتجات العالمية بأسعار تنافسية.</p>
</div>
<div>
<h3 class="text-xl font-bold mb-4">روابط سريعة</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">الرئيسية</a></li>
<li><a href="#products" class="text-gray-400 hover:text-white">المنتجات</a></li>
<li><a href="#categories" class="text-gray-400 hover:text-white">الأقسام</a></li>
<li><a href="#offers" class="text-gray-400 hover:text-white">العروض</a></li>
<li><a href="#about" class="text-gray-400 hover:text-white">من نحن</a></li>
</ul>
</div>
<div>
<h3 class="text-xl font-bold mb-4">خدمة العملاء</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">اتصل بنا</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">الأسئلة الشائعة</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">سياسة الإرجاع</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">شروط الاستخدام</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">سياسة الخصوصية</a></li>
</ul>
</div>
<div>
<h3 class="text-xl font-bold mb-4">تواصل معنا</h3>
<div class="flex space-x-4 space-x-reverse mb-4">
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-facebook-f text-xl"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitter text-xl"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-instagram text-xl"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-snapchat text-xl"></i></a>
</div>
<p class="text-gray-400"><i class="fas fa-phone-alt mr-2"></i> 920000000</p>
<p class="text-gray-400 mt-2"><i class="fas fa-envelope mr-2"></i> info@cosmetek.com</p>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400">
<p>© 2023 كوزمتك. جميع الحقوق محفوظة.</p>
</div>
</div>
</footer>
<script>
// تفعيل القائمة المتنقلة
document.getElementById('mobile-menu-btn').addEventListener('click', function() {
const menu = document.getElementById('mobile-menu');
menu.classList.toggle('hidden');
});
// تفعيل سلة التسوق المنبثقة
document.getElementById('cart-btn').addEventListener('click', function() {
const dropdown = document.getElementById('cart-dropdown');
dropdown.classList.toggle('hidden');
});
// إغلاق السلة عند النقر خارجها
document.addEventListener('click', function(event) {
const cartBtn = document.getElementById('cart-btn');
const cartDropdown = document.getElementById('cart-dropdown');
if (!cartBtn.contains(event.target) && !cartDropdown.contains(event.target)) {
cartDropdown.classList.add('hidden');
}
});
// تصفية المنتجات حسب الأقسام
const categoryBtns = document.querySelectorAll('.category-btn');
const productCards = document.querySelectorAll('.product-card');
categoryBtns.forEach(btn => {
btn.addEventListener('click', function() {
// إزالة التنشيط من جميع الأزرار
categoryBtns.forEach(b => b.classList.remove('active', 'bg-pink-100', 'text-pink-600'));
categoryBtns.forEach(b => b.classList.add('bg-gray-200', 'text-gray-700'));
// تنشيط الزر المحدد
this.classList.add('active', 'bg-pink-100', 'text-pink-600');
this.classList.remove('bg-gray-200', 'text-gray-700');
const category = this.dataset.category;
// تصفية المنتجات
productCards.forEach(card => {
if (category === 'all' || card.dataset.category === category) {
card.style.display = 'block';
} else {
card.style.display = 'none';
}
});
});
});
// سلة التسوق
let cart = [];
// تحميل السلة من localStorage إذا كانت موجودة
if (localStorage.getItem('cart')) {
cart = JSON.parse(localStorage.getItem('cart'));
updateCartUI();
}
// إضافة منتج إلى السلة
document.querySelectorAll('.add-to-cart').forEach(button => {
button.addEventListener('click', function() {
const id = this.dataset.id;
const name = this.dataset.name;
const price = parseFloat(this.dataset.price);
const image = this.dataset.image;
// التحقق مما إذا كان المنتج موجودًا بالفعل في السلة
const existingItem = cart.find(item => item.id === id);
if (existingItem) {
existingItem.quantity += 1;
} else {
cart.push({
id,
name,
price,
image,
quantity: 1
});
}
// حفظ السلة في localStorage
localStorage.setItem('cart', JSON.stringify(cart));
// تحديث واجهة المستخدم
updateCartUI();
// عرض إشعار
showNotification();
});
});
// تحديث واجهة سلة التسوق
function updateCartUI() {
const cartItemsContainer = document.getElementById('cart-items');
const cartCount = document.getElementById('cart-count');
const cartTotal = document.getElementById('cart-total');
// تحديث عدد العناصر
const totalItems = cart.reduce((sum, item) => sum + item.quantity, 0);
cartCount.textContent = totalItems;
// تحديث قائمة العناصر
if (cart.length === 0) {
cartItemsContainer.innerHTML = '<p class="text-center text-gray-500 py-4">سلة التسوق فارغة</p>';
cartTotal.textContent = '0 ر.س';
} else {
let itemsHTML = '';
let total = 0;
cart.forEach(item => {
const itemTotal = item.price * item.quantity;
total += itemTotal;
itemsHTML += `
<div class="cart-item flex items-center py-3 border-b">
<img src="${item.image}" alt="${item.name}" class="w-12 h-12 object-cover rounded mr-3">
<div class="flex-grow">
<h4 class="font-medium">${item.name}</h4>
<div class="flex justify-between text-sm text-gray-500">
<span>${item.price} ر.س × ${item.quantity}</span>
<span>${itemTotal} ر.س</span>
</div>
</div>
<button class="remove-item text-red-500 ml-2" data-id="${item.id}">
<i class="fas fa-times"></i>
</button>
</div>
`;
});
cartItemsContainer.innerHTML = itemsHTML;
cartTotal.textContent = `${total} ر.س`;
// إضافة معالجات الأحداث لأزرار الحذف
document.querySelectorAll('.remove-item').forEach(button => {
button.addEventListener('click', function() {
const itemId = this.dataset.id;
removeFromCart(itemId);
});
});
}
}
// إزالة منتج من السلة
function removeFromCart(id) {
cart = cart.filter(item => item.id !== id);
localStorage.setItem('cart', JSON.stringify(cart));
updateCartUI();
}
// عرض إشعار الإضافة للسلة
function showNotification() {
const notification = document.getElementById('notification');
notification.classList.remove('hidden');
notification.classList.add('notification');
setTimeout(() => {
notification.classList.add('hide');
setTimeout(() => {
notification.classList.remove('notification', 'hide');
notification.classList.add('hidden');
}, 500);
}, 3000);
}
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=aaboode/cosmetics" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |