/* Wrapper کلی */
.af-wishlist-wrapper {
    margin: 30px auto;
    max-width: 1200px;
}

/* تیتر و توضیحات */
.af-wishlist-header {
    margin-bottom: 20px;
    text-align: right;
}

.af-wishlist-title {
    font-size: 22px;
    margin-bottom: 5px;
}

.af-wishlist-subtitle {
    font-size: 14px;
    color: #777;
}

/* گرید کارت‌ها */
.af-wishlist-grid {
    display: flex!important;
    gap: 20px;
}

/* کارت هر محصول */
.af-wishlist-item {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* تصویر محصول + دکمه حذف */
.af-wishlist-image-wrap {
    position: relative;
    overflow: hidden;
}

.af-wishlist-image-link img {
    height: auto;
    display: block;
    transition: transform 0.25s ease;
}

.af-wishlist-image-wrap:hover img {
    transform: scale(1.03);
}

/* دکمه حذف (wishlist icon) گوشه‌ی تصویر */
.af-wishlist-remove {
    position: absolute;
    top: 8px;
    left: 8px;  /* برای قالب‌های RTL اگر دوست داشتی right: 8px هم میشه */
}

/* محتوا */
.af-wishlist-content {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* عنوان */
.af-wishlist-product-title {
    font-size: 16px;
    margin: 0;
}

.af-wishlist-product-title a {
    color: inherit;
    text-decoration: none;
}

.af-wishlist-product-title a:hover {
    text-decoration: underline;
}

/* قیمت */
.af-wishlist-price {
    font-weight: 600;
    color: #e67e22;
}

/* توضیحات کوتاه */
.af-wishlist-description p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

/* ناحیه دکمه‌ها */
.af-wishlist-actions {
    margin-top: 6px;
}

/* اگر دکمه add_to_cart از قالب است، این‌ها فقط کمی مرتب‌ترش می‌کند */
.af-wishlist-actions .button,
.af-wishlist-actions .add_to_cart_button {
    font-size: 13px;
    padding: 7px 14px;
}

/* هماهنگی با دکمه wishlist (آیکن) در لیست – اگر بخواهی رنگ حذف قرمز باشد */
.af-wishlist-remove .wishlist-button {
    background: #ffffff;
    border-color: #e74c3c;
    color: #fff;
}

.af-wishlist-remove .wishlist-button.in-wishlist {
    background: #e74c3c;
}

/* Responsive ریزتر */
@media (max-width: 480px) {
    .af-wishlist-title {
        font-size: 20px;
    }
}

.wishlist-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.modal-content .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.wishlist-button.loading {
    opacity: 0.6;
    pointer-events: none;
}
.wishlist-items{
    display:flex;
}
.wishlist-item ~ p{
    border:none!important;
}