/**
 * PMC Custom Product & Publisher Subscriptions Stylesheet
 * زبان طراحی مدرن، راست‌چین شده و هماهنگ با وودمارت
 */

.pmc-product-wrapper {
    direction: rtl;
    text-align: right;
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

/* هیرو سکشن و افکت تصویر پس‌زمینه فازی */
.pmc-hero-section {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    padding: 40px;
    color: #fff;
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
    z-index: 1;
}

.pmc-hero-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.4);
    opacity: 0.6;
    z-index: -1;
}

.pmc-cover-holder {
    flex: 0 0 240px;
    text-align: center;
}

.pmc-main-img {
    width: 100%;
    max-width: 240px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.pmc-badge-type {
    display: inline-block;
    background: #83b735;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 12px;
    font-weight: bold;
}

.pmc-details-holder {
    flex: 1;
}

.pmc-product-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.pmc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 30px;
    margin-left: 10px;
    margin-bottom: 15px;
}

.pmc-action-buttons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pmc-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.pmc-btn-action.primary {
    background: #83b735;
    color: #fff;
}

.pmc-btn-action.primary:hover {
    background: #6b9c28;
}

.pmc-btn-action.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pmc-btn-action.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ساختار گرید دوستونه معکوس (طرح‌ها راست، قیمت‌ها چپ) */
.pmc-grid-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.pmc-white-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 5px;
}

.pmc-white-card h3 {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 12px;
    margin-bottom: 15px;
    color: #212529;
}

/* گرید داخل باکس اشتراک ناشران */
.pmc-subs-subtitle {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pmc-subs-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.pmc-sub-plan-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pmc-sub-plan-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

/* پلن ویژه/برجسته */
.pmc-sub-plan-item.pmc-plan-featured {
    border: 2px solid #007aff;
    background: #fbfdff;
}

.pmc-plan-ribbon-tag {
    position: absolute;
    top: -11px;
    left: 15px;
    background: #ff9500;
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(255,149,0,0.3);
}

.pmc-plan-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: bold;
    color: #1a202c;
}

.pmc-plan-price {
    font-weight: 800;
    font-size: 20px;
    color: #007aff;
    margin-bottom: 4px;
}

.pmc-plan-duration {
    font-size: 11px;
    color: #718096;
    margin-bottom: 12px;
    display: inline-block;
}

.pmc-plan-discounts-summary {
    background: #f7fafc;
    padding: 10px;
    border-radius: 6px;
    font-size: 11px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 12px;
    border: 1px dashed #edf2f7;
}

.pmc-plan-discounts-summary strong {
    color: #e53e3e;
}

.pmc-plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 12px;
    color: #4a5568;
}

.pmc-plan-features-list li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pmc-plan-features-list li i {
    color: #38a169;
}

.pmc-capacity-alert {
    color: #e53e3e !important;
    font-weight: bold;
}

.pmc-plan-action-wrapper {
    margin-top: auto;
}

.pmc-plan-buy-btn {
    width: 100%;
    background: #007aff;
    color: #fff;
    border: none;
    padding: 9px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: background 0.2s;
}

.pmc-plan-buy-btn:hover {
    background: #0062cc;
}

.pmc-plan-added-status {
    display: block;
    text-align: center;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

/* جدول قیمت سمت چپ کالا */
.pmc-pricing-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pmc-price-row {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
}

.pmc-price-row.pmc-vertical-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pmc-price-main-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.pmc-price-info-side h4 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 4px 0;
    color: #4a5568;
}

.pmc-price-amount {
    font-size: 16px;
    font-weight: 800;
    color: #2d3748;
}

.pmc-buy-submit-btn {
    background: #83b735;
    color: #fff;
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.pmc-buy-submit-btn:hover {
    background: #6b9c28;
}

/* باکس آفر هوشمند ترغیب خرید اشتراک */
.pmc-smart-incentive-box {
    width: 100%;
    background: #fffaf0;
    border: 1px dashed #dd6b20;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11px;
    color: #c05621;
    line-height: 1.5;
}

.pmc-incentive-amt {
    font-weight: bold;
    color: #e53e3e;
    font-size: 12px;
}

.pmc-owned-banner {
    background: #e6fffa;
    color: #234e52;
    border: 1px dashed #319795;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 15px;
}

.pmc-fullwidth-desc-card {
    margin-top: 15px;
}

/* مدیریت ریسپانسیو موبایل */
@media (max-width: 768px) {
    .pmc-hero-section {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    .pmc-grid-layout {
        grid-template-columns: 1fr;
    }
    .pmc-subs-grid-container {
        grid-template-columns: 1fr;
    }
    .pmc-meta-item {
        margin: 5px;
    }
    .pmc-action-buttons {
        justify-content: center;
    }
}