/* wishlist.css */

/* إعدادات عامة */
body {
    font-family: 'Cairo', sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.wishlist-section {
    padding: 60px 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.breadcrumb ol {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 14px;
    color: #95a5a6;
}

.breadcrumb ol li::after {
    content: "/";
    margin: 0 6px;
    color: #ccc;
}

.breadcrumb ol li:last-child::after {
    content: "";
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* شبكة المنتجات */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
}

/* بطاقة المنتج */
.product-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* زر الإزالة */
.remove-from-wishlist {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: transparent;
    border: none;
    color: #e74c3c;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s ease;
}

.remove-from-wishlist:hover {
    color: #c0392b;
}

/* صورة المنتج */
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

/* أزرار الإجراءات */
.product-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 10px;
}

.product-actions button {
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 16px;
    color: #2c3e50;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease;
}

.product-actions button:hover {
    background-color: #f1f1f1;
}

.add-to-cart.added {
    background-color: #27ae60;
    color: #fff;
}

.add-to-cart.added:hover {
    background-color: #219150;
}

/* تفاصيل المنتج */
.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: #2980b9;
}

.product-rating {
    font-size: 15px;
    color: #f1c40f;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.product-rating i {
    margin-left: 2px;
}

.product-rating span {
    color: #666;
    font-size: 13px;
    margin-right: 5px;
}

/* الوصف المختصر */
.product-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: auto;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* الفوتر */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.product-price {
    font-weight: bold;
    font-size: 16px;
    display: flex;
    flex-direction: column;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

.discounted-price {
    color: #e74c3c;
}

.normal-price {
    color: #3498db;
}

.btn {
    background-color: #3498db;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 13px;
}

/* حالة عدم وجود عناصر */
.empty-wishlist {
    text-align: center;
    padding: 60px 20px;
}

.empty-wishlist img {
    max-width: 180px;
    margin-bottom: 20px;
}

.empty-wishlist h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.empty-wishlist p {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 20px;
}