/* ================== طرح ۱ ================== */
.wpof-d1-wrapper { 
    position: relative; 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 20px 10px; 
}
.wpof-slider-viewport { 
    width: 100%; 
    overflow: hidden !important; 
    border-radius: 28px; 
    touch-action: pan-y; 
}
.wpof-slider-track { 
    display: flex; 
    will-change: transform; 
    transition: transform 0.45s ease-in-out; 
}
.wpof-slider-track.is-dragging { 
    cursor: grabbing; 
}
.wpof-slider-viewport:active { 
    cursor: grabbing; 
}
.wpof-card-d1 { 
    flex: 0 0 100%; 
    max-width: 100%; 
    width: 100%; 
    min-width: 100%; 
    background: #FFFFFF; 
    border-radius: 28px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
    display: flex; 
    flex-direction: row; 
    padding: 30px; 
    gap: 35px; 
    box-sizing: border-box; 
    align-items: center; 
    user-select: none; 
}
.wpof-d1-image-box { 
    flex: 0 0 45%; 
    background: #F8F9FA; 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 380px; 
    pointer-events: auto; 
}
.wpof-d1-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}
.wpof-d1-image-box img { 
    max-width: 90%; 
    max-height: 340px; 
    object-fit: contain; 
    -webkit-user-drag: none; 
    pointer-events: auto;
}
.wpof-d1-content-box { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    min-width: 0; 
}
.wpof-d1-header-actions { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.wpof-badge-weekly { 
    font-family: 'bonyadekoodak', sans-serif; 
    font-size: 20px; 
    font-weight: 400; 
    color: #79878A; 
}
.wpof-d1-title { 
    font-family: 'abarmid', sans-serif; 
    font-size: 32px; 
    font-weight: 500; 
    color: #3EA367; 
    margin: 12px 0 6px 0; 
}
.wpof-d1-title-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.wpof-d1-title-link:hover {
    opacity: 0.85;
}
.wpof-d1-weight { 
    font-family: 'bonyadekoodak', sans-serif; 
    font-size: 16px; 
    font-weight: 400; 
    color: #525E5F; 
    margin-bottom: 20px; 
}
.wpof-d1-features { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    margin-bottom: 25px; 
}
.wpof-feature-row { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.wpof-feature-icon {
    font-size: 16px;
    color: #3EA367;
    width: 20px;
    text-align: center;
}
.wpof-feature-text { 
    font-family: 'bonyadekoodak', sans-serif; 
    font-size: 14px; 
    font-weight: 400; 
    color: #657476; 
}
.wpof-d1-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-top: 1px solid #F0F2F3; 
    padding-top: 20px; 
}
.wpof-price-label { 
    font-family: 'bonyadekoodak', sans-serif; 
    font-size: 13px; 
    color: #666666; 
    margin-left: 6px; 
}
.wpof-price-amount { 
    font-family: 'bonyadekoodak', sans-serif; 
    font-size: 20px; 
    font-weight: 600; 
    color: #298250; 
}
.wpof-actions { 
    display: flex; 
    gap: 12px; 
}
.wpof-btn-details { 
    border: 1.5px solid #3EA367; 
    color: #3EA367; 
    background: transparent; 
    padding: 9px 20px; 
    border-radius: 12px; 
    font-family: 'bonyadekoodak', sans-serif; 
    font-size: 14px; 
    text-decoration: none; 
    transition: 0.3s; 
}
.wpof-btn-addtocart { 
    background: #3EA367; 
    color: #FFFFFF; 
    border: none; 
    padding: 9px 22px; 
    border-radius: 12px; 
    font-family: 'bonyadekoodak', sans-serif; 
    font-size: 14px; 
    font-weight: 500; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    text-decoration: none; 
    transition: 0.3s; 
}
.wpof-slider-dots { 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    margin-top: 20px; 
}
.wpof-dot { 
    width: 10px; 
    height: 10px; 
    background: #D8E0E2; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: all 0.3s; 
}
.wpof-dot.active { 
    width: 24px; 
    border-radius: 10px; 
    background: #E57373; 
}
.wpof-slider-nav { 
    position: absolute; 
    top: 50%; 
    left: 0; 
    right: 0; 
    transform: translateY(-50%); 
    display: flex; 
    justify-content: space-between; 
    pointer-events: none; 
    padding: 0 5px; 
}
.wpof-nav-prev, .wpof-nav-next { 
    pointer-events: auto; 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    border: none; 
    background: #FFFFFF; 
    box-shadow: 0 4px 14px rgba(0,0,0,0.12); 
    font-size: 24px; 
    color: #3EA367; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.3s; 
}
.wpof-nav-prev:hover, .wpof-nav-next:hover { 
    background: #3EA367; 
    color: #FFFFFF; 
}
@media (max-width: 768px) { 
    .wpof-card-d1 { 
        flex-direction: column; 
        padding: 20px; 
        gap: 20px; 
    } 
    .wpof-d1-image-box { 
        width: 100%; 
        min-height: 240px; 
    } 
    .wpof-d1-footer { 
        flex-direction: column; 
        gap: 15px; 
        align-items: stretch; 
    } 
    .wpof-actions { 
        display: flex; 
        width: 100%; 
    } 
    .wpof-btn-details, .wpof-btn-addtocart { 
        flex: 1; 
        text-align: center; 
        justify-content: center; 
    } 
    .wpof-nav-prev, .wpof-nav-next { 
        display: none; 
    } 
}

/* ================== طرح ۲ ================== */
.wpof-d2-wrapper { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px 10px; 
    position: relative; 
}
.wpof-d2-container { 
    width: 100%; 
    overflow: hidden; 
    padding: 20px 0; 
}
.wpof-d2-wrapper.is-grid .wpof-d2-track { 
    display: grid; 
    grid-template-columns: 1fr 1.4fr 1fr; 
    gap: 20px; 
    align-items: center; 
}
.wpof-d2-wrapper.is-slider .wpof-d2-track { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    transition: transform 0.45s ease-in-out; 
    will-change: transform; 
}
.wpof-d2-wrapper.is-slider .wpof-card-d2 { 
    flex: 0 0 calc((100% - 40px) / 3.4); 
    min-width: 260px; 
}
.wpof-card-d2 { 
    border-radius: 24px; 
    overflow: hidden; 
    position: relative; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.06); 
    transition: all 0.4s ease; 
    box-sizing: border-box; 
    height: 400px; 
}
.wpof-card-d2.is-side { 
    transform: scale(0.95); 
    opacity: 0.85; 
}
.wpof-card-d2.is-center { 
    height: 520px; 
    transform: scale(1.05); 
    opacity: 1; 
    z-index: 2; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.12); 
}
.wpof-d2-image { 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: flex-end; 
    transition: transform 0.4s ease; 
}
.wpof-card-d2:hover .wpof-d2-image { 
    transform: scale(1.04); 
}

/* نوار گرادیان پایین کارت - چیدمان دو ستونه در یک ردیف */
.wpof-d2-overlay { 
    width: 100%; 
    padding: 20px 22px; 
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%); 
    box-sizing: border-box; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* ستون سمت راست: عنوان و قیمت */
.wpof-d2-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}
.wpof-d2-title { 
    color: #FFFFFF; 
    font-family: 'bonyadekoodak', sans-serif; 
    font-size: 16px; 
    font-weight: 500; 
    margin: 0 0 6px 0; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wpof-d2-title-link {
    color: inherit;
    text-decoration: none;
    display: block;
}
.wpof-card-d2.is-center .wpof-d2-title { 
    font-size: 20px; 
}
.wpof-d2-price { 
    color: #FFFFFF; 
    font-family: 'bonyadekoodak', sans-serif; 
    font-size: 16px; 
    font-weight: 500; 
    margin-bottom: 0; 
    line-height: 1.2;
}
.wpof-d2-price ins {
    text-decoration: none;
}
.wpof-d2-price del {
    opacity: 0.65;
    font-size: 13px;
    margin-left: 6px;
}
.wpof-card-d2.is-center .wpof-d2-price { 
    font-size: 18px; 
}

/* ستون سمت چپ: دکمه اکشن روبه‌روی عنوان و قیمت */
.wpof-d2-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}
.wpof-btn-d2 { 
    background: #3EA367; 
    color: #FFFFFF !important; 
    font-family: 'bonyadekoodak', sans-serif; 
    text-decoration: none !important; 
    transition: all 0.3s ease; 
    line-height: 1; 
}
.wpof-btn-d2:hover { 
    background: #2E8A54; 
    color: #FFFFFF !important; 
    transform: translateY(-2px);
}
.wpof-card-d2.is-side .wpof-btn-d2-center { 
    display: none !important; 
}
.wpof-card-d2.is-side .wpof-btn-d2-icon { 
    display: inline-flex !important; 
    align-items: center; 
    justify-content: center; 
    width: 42px; 
    height: 42px; 
    border-radius: 50%;
}
.wpof-card-d2.is-center .wpof-btn-d2-center { 
    display: inline-flex !important; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 11px 22px; 
    border-radius: 25px;
    font-size: 14px; 
    font-weight: 500; 
    box-shadow: 0 4px 14px rgba(62, 163, 103, 0.4);
}
.wpof-card-d2.is-center .wpof-btn-d2-icon { 
    display: none !important; 
}

/* دکمه‌های اسلایدر */
.wpof-d2-nav { 
    position: absolute; 
    top: 50%; 
    left: 0; 
    right: 0; 
    transform: translateY(-50%); 
    display: flex; 
    justify-content: space-between; 
    pointer-events: none; 
    padding: 0 5px; 
    z-index: 5; 
}
.wpof-d2-prev, .wpof-d2-next { 
    pointer-events: auto; 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    border: none; 
    background: #FFFFFF; 
    box-shadow: 0 4px 14px rgba(0,0,0,0.12); 
    font-size: 24px; 
    color: #3EA367; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.3s; 
}
.wpof-d2-prev:hover, .wpof-d2-next:hover { 
    background: #3EA367; 
    color: #FFFFFF; 
}

/* دکمه مشاهده تمام پرفروش‌ها */
.wpof-d2-more { 
    text-align: center; 
    margin-top: 35px; 
}
.wpof-more-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    background: #3EA367; 
    color: #FFFFFF !important; 
    padding: 13px 38px; 
    border-radius: 14px; 
    font-family: 'bonyadekoodak', sans-serif; 
    font-size: 16px; 
    font-weight: 500; 
    text-decoration: none !important; 
    box-shadow: 0 6px 18px rgba(62, 163, 103, 0.35); 
    transition: all 0.3s ease; 
}
.wpof-more-btn:hover { 
    background: #2E8A54; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 24px rgba(62, 163, 103, 0.45); 
}

@media (max-width: 768px) {
    .wpof-d2-wrapper.is-grid .wpof-d2-track {
        grid-template-columns: 1fr;
    }
    .wpof-card-d2,
    .wpof-card-d2.is-center {
        height: 380px;
        transform: none;
    }
}

/* ================== دکمه علاقه‌مندی هماهنگ با وودمارت (تک‌آیکون بدون باگ متن) ================== */
.wpof-wishlist-box { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
}

.wpof-wishlist-box .wd-wishlist-btn, 
.wpof-wishlist-box .woodmart-wishlist-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
}

/* ساختار پایه دکمه با صفر کردن اندازه متن برای حذف پیام‌های JS */
.wpof-wishlist-box .wd-wishlist-btn a, 
.wpof-wishlist-box .woodmart-wishlist-btn a { 
    position: relative;
    width: 42px !important; 
    height: 42px !important; 
    min-width: 42px !important;
    max-width: 42px !important;
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    border-radius: 12px; 
    background: #FFF5F5 !important; 
    border: 1px solid #FFE3E3 !important; 
    color: #E57373 !important; 
    text-decoration: none !important; 
    font-size: 0 !important; 
    line-height: 0 !important;
    overflow: hidden;
    transition: all 0.25s ease; 
    cursor: pointer;
    box-sizing: border-box;
}

/* 
 * حذف ریشه‌ای آیکون دوم و عناصر متنی پیش‌فرض وودمارت:
 * تمام المان‌های داخلی (svg, span, i, wd-tools-icon) مخفی می‌شوند تا تنها ۱ آیکون رندر شود.
 */
.wpof-wishlist-box a > span,
.wpof-wishlist-box a > svg,
.wpof-wishlist-box a > i,
.wpof-wishlist-box a .wd-tools-icon,
.wpof-wishlist-box a .wd-tools-count,
.wpof-wishlist-box a .wd-tooltip-label {
    display: none !important;
}

/* آیکون قلب واحد (FontAwesome) */
.wpof-wishlist-box .wd-wishlist-btn a:before,
.wpof-wishlist-box .woodmart-wishlist-btn a:before { 
    content: "\f004" !important; 
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif !important; 
    font-weight: 400 !important; 
    font-size: 18px !important; 
    line-height: 1 !important;
    color: #E57373 !important;
    display: inline-block !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

.wpof-wishlist-box .wd-wishlist-btn a:hover,
.wpof-wishlist-box .woodmart-wishlist-btn a:hover { 
    background: #FFE8E8 !important; 
    transform: scale(1.05); 
}

.wpof-wishlist-box .wd-wishlist-btn a:hover:before,
.wpof-wishlist-box .woodmart-wishlist-btn a:hover:before {
    color: #D32F2F !important;
}

/* حالت افزوده شده به لیست (Added) */
.wpof-wishlist-box .wd-wishlist-btn.added a, 
.wpof-wishlist-box .wd-wishlist-btn a.added,
.wpof-wishlist-box .woodmart-wishlist-btn.added a,
.wpof-wishlist-box .woodmart-wishlist-btn a.added { 
    background: #3EA367 !important; 
    border-color: #3EA367 !important; 
    color: #FFFFFF !important; 
    transform: none !important;
}

/* تغییر آیکون به تیک چک‌مارک سفید در حالت ذخیره در لیست */
.wpof-wishlist-box .wd-wishlist-btn.added a:before, 
.wpof-wishlist-box .wd-wishlist-btn a.added:before,
.wpof-wishlist-box .woodmart-wishlist-btn.added a:before,
.wpof-wishlist-box .woodmart-wishlist-btn a.added:before { 
    content: "\f00c" !important; 
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif !important; 
    font-weight: 900 !important; 
    font-size: 16px !important; 
    line-height: 1 !important;
    color: #FFFFFF !important;
    display: inline-block !important;
}

/* حالت لودینگ ایجکس وودمارت */
.wpof-wishlist-box .wd-wishlist-btn.loading a:before,
.wpof-wishlist-box .woodmart-wishlist-btn.loading a:before {
    opacity: 0.4;
}
