/* الخط العام */
body {
    font-family: 'Cairo', sans-serif;
}

/* الهيدر */
header {
    background-color: #8b1f2f; /* لون خمري */
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* أيقونات الهيدر */
header .icon, header svg {
    color: #fff !important;
}

/* تحسين عرض الشعار */
header img {
    max-height: 50px;
    object-fit: contain;
}

/* القائمة العلوية الدائرية */
.category-icons {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    background: #fff;
}
.category-icons img, .category-icons .icon {
    background: #8b1f2f;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

/* أزرار التصفية */
.filters button {
    border: 1px solid #8b1f2f;
    background-color: #fff;
    color: #8b1f2f;
    border-radius: 30px;
    padding: 8px 18px;
    margin: 0 5px;
}
.filters .active {
    background-color: #8b1f2f;
    color: #fff;
}

/* بطاقات المنتجات */
.product-card {
    position: relative;
    border: 1px solid #eee;
    border-top-left-radius: 25px;
    border-bottom-right-radius: 25px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
}

/* صورة المنتج */
.product-card img {
    border-radius: 0;
    border-top-left-radius: 25px;
    border-bottom-right-radius: 25px;
    width: 100%;
    object-fit: cover;
}

/* اسم المنتج والسعر */
.product-card .product-title,
.product-card .product-price {
    text-align: center;
}
.product-card .product-title {
    font-weight: bold;
    font-size: 18px;
    margin: 10px 0 5px;
}
.product-card .product-price {
    color: #8b1f2f;
    font-size: 16px;
}

/* زر إضافة للسلة بشكل متناسق مع البطاقة */
.product-card .add-to-cart {
    background-color: #8b1f2f;
    color: #fff;
    border-radius: 0;
    border-top-left-radius: 25px;
    border-bottom-right-radius: 25px;
    padding: 12px;
    width: 100%;
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    display: block;
    box-sizing: border-box;
}
.product-card .add-to-cart:hover {
    background-color: #a32a3b;
}

/* زر القلب */
.product-card .wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border-radius: 50%;
    color: #8b1f2f;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}