.wub-bundle-container {
    font-family: inherit;
}
.wub-products-gallery {
    margin-bottom: 30px;
}
.wub-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .wub-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
}
.wub-thumb {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    background: #fff;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}
.wub-image-wrapper {
    position: relative;
    margin-bottom: 8px;
}
.wub-thumb img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.wub-weight-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #2E7D32;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 1;
}
.wub-thumb p {
    font-weight: bold;
    margin: 8px 0 4px;
}
.wub-prices {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}
.wub-price-regular del {
    color: #999;
    font-size: 0.9em;
}
.wub-price-bundle {
    color: #2c6e2c;
    font-weight: bold;
    font-size: 1.1em;
}

/* کامپوننت شمارنده */
.wub-quantity-component {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    background: #fff;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.wub-qty-dec, .wub-qty-inc {
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border: none;
    font-size: 1.3rem;
    font-weight: bold;
    color: #2E7D32;
    cursor: pointer;
}
.wub-qty-dec {
    border-radius: 40px 0 0 40px;
    border-right: 1px solid #e2e8f0;
}
.wub-qty-inc {
    border-radius: 0 40px 40px 0;
    border-left: 1px solid #e2e8f0;
}
.wub-qty-dec:hover:not(:disabled), .wub-qty-inc:hover:not(:disabled) {
    background: #e2e8f0;
}
.wub-qty-dec:disabled, .wub-qty-inc:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.wub-quantity-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    background: #fff;
    -moz-appearance: textfield;
}
.wub-quantity-input:focus {
    outline: none;
    background: #fefce8;
}
.wub-quantity-input::-webkit-inner-spin-button,
.wub-quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.wub-add-to-bundle {
    background: #2E7D32;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-right: 8px;
}
.wub-add-to-bundle:hover {
    background: #1b5e20;
    transform: scale(0.97);
}

/* استایل کارت غیرفعال */
.wub-thumb.wub-disabled {
    opacity: 0.5;
    filter: grayscale(0.1);
}
.wub-thumb.wub-disabled .wub-add-to-bundle,
.wub-thumb.wub-disabled .wub-quantity-input,
.wub-thumb.wub-disabled .wub-qty-inc,
.wub-thumb.wub-disabled .wub-qty-dec {
    pointer-events: none;
    background-color: #ccc;
}

.wub-selected-list {
    margin-top: 30px;
}
.wub-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #f9f9f9;
}
.wub-cart-table th, .wub-cart-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}
.wub-summary {
    margin-top: 20px;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 8px;
    text-align: left;
}
.wub-summary div {
    margin: 5px 0;
}
.wub-total-price {
    font-weight: bold;
    color: #2c6e2c;
    font-size: 1.3em;
}
.wub-total-discount {
    color: red;
}
#wub-add-to-cart-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: #2c6e2c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
}
#wub-add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
#wub-error-message {
    color: red;
    margin-top: 10px;
    padding: 8px;
    background: #ffe6e6;
    border-radius: 6px;
}