/* WC Bundle Product - Frontend */
.wcbp-bundle-box {
    margin: 20px 0;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    direction: rtl;
    font-family: Tahoma, 'IRANSans', inherit;
    background: #fff;
}

.wcbp-bundle-title {
    font-size: 15px;
    font-weight: 700;
    padding: 12px 16px;
    margin: 0;
    background: #f5f8ff;
    border-bottom: 1px solid #e0e8f5;
    color: #1a1a2e;
    text-align: right;
}

/* ── لیست آیتم‌ها ── */
.wcbp-bundle-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wcbp-bundle-item {
    display: flex;
    align-items: center;
    flex-direction: row; /* راست به چپ: تصویر | اطلاعات | قیمت */
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    direction: rtl;
    text-align: right;
}
.wcbp-bundle-item:last-child { border-bottom: none; }
.wcbp-bundle-item:hover { background: #fafcff; }

/* تصویر — سمت راست */
.wcbp-item-thumb {
    flex-shrink: 0;
    order: 1;
}
.wcbp-item-thumb img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    display: block;
}

/* اطلاعات — وسط */
.wcbp-item-info {
    flex: 1;
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.wcbp-item-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wcbp-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
}
.wcbp-item-name:hover { color: #c0392b; }

.wcbp-item-qty {
    font-size: 12px;
    color: #777;
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 10px;
}

.wcbp-sale-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}

/* گارانتی */
.wcbp-item-warranty {
    font-size: 12px;
    color: #555;
    display: block;
}

/* قیمت — سمت چپ */
.wcbp-item-price {
    flex-shrink: 0;
    order: 3;
    text-align: left;
    direction: ltr;
    min-width: 100px;
}
.wcbp-old-price {
    display: block;
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
}

/* ── خلاصه قیمت ── */
.wcbp-price-summary {
    padding: 12px 16px;
    background: #f9f9fb;
    border-top: 2px dashed #e0e0e0;
    direction: rtl;
}

.wcbp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
    color: #444;
}

.wcbp-subtotal { color: #999; text-decoration: line-through; }
.wcbp-discount-row { color: #c0392b; font-weight: 600; }
.wcbp-discount-amount { font-weight: 700; color: #c0392b; }

.wcbp-final-row {
    font-size: 16px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
    color: #1a6e2b;
}
.wcbp-final-price { color: #1a6e2b; font-size: 18px; }

/* ── دکمه سبد خرید ── */
.wcbp-bundle-box .custom-add-to-cart { margin-top: 0; }
.wcbp-bundle-box .buybox-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    direction: rtl;
    border-top: 1px solid #eee;
}
.wcbp-bundle-box .buybtn {
    display: inline-block;
    background: #e8192c;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    line-height: 1.4;
}
.wcbp-bundle-box .buybtn:hover { background: #c0141f; }
.wcbp-bundle-box select.number {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
}
