/* ========== الرسوم المتحركة ========== */
* {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
    text-decoration: none;
    text-transform: capitalize;
    transition: 0.3s ease;
}
@keyframes scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.header h3 {
    animation: scale 1s infinite ease-in-out;
}

/* تصميم عربة التسوق */
.cart-items-container {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: #333;
    color: white;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    transform: translateX(100%); /* العربة تبدأ من خارج الشاشة */
    transition: transform 0.3s ease-in-out; /* تأثير الانزلاق */
}

.cart-items-container.active {
    display: block;
    transform: translateX(0); /* العربة تظهر على الشاشة */
}

.cart-icon {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease-in-out; /* تأثير الحركة عند التمرير على الأيقونة */
}

.cart-icon:hover {
    transform: scale(1.1); /* تكبير الأيقونة عند التمرير */
}

.cart-icon .fa-shopping-cart {
    font-size: 24px;
    color: #fff;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 3px 8px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease-in-out;
}

.cart-count:hover {
    background-color: #ff8c00; /* تغيير اللون عند التمرير */
}

/* تصميم عناصر العربة */
.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
    transition: background-color 0.3s ease-in-out; /* تأثير اللون عند التمرير */
}

.cart-item:hover {
    background-color: #444; /* تغيير اللون عند التمرير */
}

.cart-item img {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.cart-item img:hover {
    transform: scale(1.05); /* تكبير الصورة عند التمرير */
}

.cart-item .content {
    flex-grow: 1;
    margin-left: 10px;
}

.cart-item .content p {
    margin: 0;
}

.total-price {
    font-weight: bold;
    margin-top: 20px;
    font-size: 20px;
    text-align: right;
}

.checkout-btn, .continue-shopping-btn, .back-btn, .refresh-btn {
    margin-top: 20px;
    display: block;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.checkout-btn:hover, .continue-shopping-btn:hover, .back-btn:hover, .refresh-btn:hover {
    background-color: #218838;
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2); /* إضافة تأثير الظل عند التمرير */
}

.quantity-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 7px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #0056b3;
}

/* تصميم المدخلات */
.user-info {
    margin-top: 20px;
}

.user-info input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s ease;
}

.user-info input:focus {
    border: 1px solid #28a745; /* تغيير لون الحدود عند التركيز */
}





.icons { 
    display: flex; /* استخدام Flexbox لتنظيم العناصر بشكل أفقي */
    align-items: center; /* محاذاة العناصر عمودياً في المنتصف */
    gap: 20px; /* إضافة مسافة بين العناصر داخل .icons */
}

.search-box {
    display: flex; 
    align-items: center; 
    background-color: #f0f0f0; 
    border-radius: 25px; 
    padding: 5px 15px; 
    width: 250px; 
}

.search-box input {
    border: none;
    outline: none; 
    flex-grow: 1; 
    padding: 8px; 
    font-size: 16px;
    color: #333; 
    border-radius: 25px; 
    background-color: #fff;
}


.search-box i {
    font-size: 20px; 
    color: #888; 
    cursor: pointer; 
}

#searchResults {
    position: absolute;
    width: 250px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

#searchResults li {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

#searchResults li:hover {
    background-color: #f0f0f0;
}
/* على الشاشات الكبيرة (أكبر من 768px)، نظهر شريط البحث */
@media (min-width: 768px) {
    .search-box {
        display: flex; /* عرض صندوق البحث على الشاشات الكبيرة */
    }
    .cart-icon {
        display: block; /* عرض سلة التسوق على الشاشات الكبيرة */
    }
}

/* على الشاشات الصغيرة (أصغر من 768px)، نظهر الأيقونة فقط ولا نظهر شريط البحث */
@media (max-width: 767px) {
    .search-box {
        display: none; /* إخفاء شريط البحث على الشاشات الصغيرة */
    }
    .cart-icon {
        display: flex; /* عرض سلة التسوق على الشاشات الصغيرة */
    }
}





.about {
    max-width: 1200px;
    margin-top: 10px;
    padding: 20px;
}

.row {
    display: flex; /* باستخدام flexbox لجعل الصورة والنص جنب بعض */
    align-items: center; /* محاذاة العناصر عمودياً */
}

.about-img {
    width: 150px; /* تغيير حجم الصورة ليكون أصغر */
    height: auto; /* الحفاظ على نسبة العرض إلى الارتفاع */
    margin-right: 20px; /* مسافة بين الصورة والنص */
    border-radius: 8px; /* إذا أردت إضافة زوايا مستديرة للصورة */
}
.about .a {
    width: 150px; /* تغيير حجم الصورة ليكون أصغر */
    height: auto; /* الحفاظ على نسبة العرض إلى الارتفاع */
    margin-right: 20px; /* مسافة بين الصورة والنص */
    border-radius: 80px; /* إذا أردت إضافة زوايا مستديرة للصورة */
}
.about-text {
    flex-grow: 1; /* لتوسيع المساحة المتبقية للنص */
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color:red;
    color: hsl(0, 100%, 100%);
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    color: hsl(0, 100%, 100%);
}



.fav-icon {
    cursor: pointer;
    color: #ff9900;
    font-size: 20px;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* تنسيق الهيدر */
header {
    padding: 10px;
    background-color: #333;
    color: white;
    text-align: center;
}

.fav-header {
    font-size: 24px;
    cursor: pointer;
}

.fav-list {
    margin-top: 20px;
}

.toggle-btn {
  margin: 20px;
  padding: 10px 20px;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

body.dark-mode .toggle-btn {
  background-color: #fff;
  color: #121212;
}




