.loveme-wrapper {
    margin: 15px 0;
}
.loveme-toggle {
    margin-right: 10px;
}
.loveme-count {
    font-size: 0.9em;
    color: #777;
}
.loveme-list ul.products {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.loveme-list ul.products li.product {
    width: 30% !important;;
    margin: 10px;
    text-align: center;
    border: 1px solid #eee;
    padding: 10px !important;
    box-sizing: border-box;
    border-radius: 1em;
}
.loveme-list ul.products li.product img {
    max-width: 100%;
    height: auto;
}
.loveme-list ul.products li.product h2 {
    font-size: 14px;
    margin: 10px 0;
}
.loveme-list ul.products li.product .button {
    margin-top: 5px !important;
}

.loveme-wrapper-shortcode {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.loveme-wrapper-shortcode .loveme-toggle-shortcode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
    text-decoration: none !important;
    min-width: 160px;
    justify-content: center;
}

.loveme-wrapper-shortcode .loveme-toggle-shortcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.35);
    background: linear-gradient(135deg, #5a4bd1, #8f84f5);
    color: #fff;
}

.loveme-wrapper-shortcode .loveme-toggle-shortcode:active {
    transform: scale(0.96);
}

.loveme-wrapper-shortcode .loveme-toggle-shortcode:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.loveme-wrapper-shortcode .loveme-toggle-shortcode.remove {
    background: linear-gradient(135deg, #fd79a8, #e17055);
    box-shadow: 0 4px 12px rgba(225, 112, 85, 0.25);
}
.loveme-wrapper-shortcode .loveme-toggle-shortcode.remove:hover {
    background: linear-gradient(135deg, #e8436e, #d63031);
    box-shadow: 0 6px 20px rgba(225, 112, 85, 0.35);
}

.loveme-wrapper-shortcode .loveme-count-shortcode {
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
    background: #fff;
    padding: 5px 16px;
    border-radius: 50px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.loveme-wrapper-shortcode .loveme-count-shortcode::before {
    content: "❤️";
    font-size: 14px;
    margin-left: 4px;
}

.loveme-wrapper-shortcode .loveme-login-required {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #dfe6e9;
    color: #2d3436;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 1px solid #b2bec3;
}
.loveme-wrapper-shortcode .loveme-login-required:hover {
    background: #b2bec3;
    color: #000;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .loveme-wrapper-shortcode {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 12px;
    }
    .loveme-wrapper-shortcode .loveme-toggle-shortcode {
        width: 100%;
        min-width: unset;
        padding: 12px 20px;
        font-size: 14px;
    }
    .loveme-wrapper-shortcode .loveme-count-shortcode {
        justify-content: center;
        width: 100%;
    }
}

/* استایل پیام شناور */
.loveme-floating-message {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #333;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-right: 4px solid #7f54b3; /* رنگ بنفش هماهنگ با دکمه */
    font-size: 15px;
    font-weight: 500;
    z-index: 99999;
    direction: rtl; /* برای راست‌چین بودن */
    text-align: center;
    opacity: 0;
    animation: fadeInDown 0.5s forwards;
}

/* افکت ورود پیام */
@keyframes fadeInDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* تنظیم کانتینر عکس */
.main-image-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* تنظیم موقعیت دکمه روی عکس (بالا سمت چپ) */
.main-image-wrap .loveme-wrapper-shortcode,
.main-image-wrap .loveme-wrapper {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 99;
}

/* استایل دکمه دایره‌ای سفید با سایه */
.main-image-wrap .loveme-toggle.button {
    background: #ffffff !important;
    border: none !important;
    border-radius: 50%;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.3s ease;
    font-size: 0 !important; /* مخفی کردن متن نوشته شده */
    cursor: pointer;
    min-height: auto !important;
}

/* مخفی کردن تعداد علاقه‌مندی‌ها و لینک ورود روی عکس */
.main-image-wrap .loveme-count,
.main-image-wrap .loveme-login-required {
    display: none !important;
}

/* آیکون قلب SVG - حالت پیش‌فرض (افزودن) */
.main-image-wrap .loveme-toggle.add {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238c69b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px !important;
}

/* آیکون قلب پر (حالت حذف) */
.main-image-wrap .loveme-toggle.remove {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%238c69b5' stroke='%238c69b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px !important;
}

/* افکت هاور */
.main-image-wrap .loveme-toggle.button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
}