/* Bundlesplus Frontend Styles */

/* Campaign Display */
.bundlesplus-campaign {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.bundlesplus-campaign-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.bundlesplus-campaign-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* Product Bundle */
.bundlesplus-bundle {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.bundlesplus-bundle-product {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.bundlesplus-bundle-product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.bundlesplus-bundle-product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.bundlesplus-bundle-product-price {
    font-size: 14px;
    color: #666;
}

.bundlesplus-bundle-original-price {
    text-decoration: line-through;
    color: #999;
}

.bundlesplus-bundle-discount-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
}

/* Savings Badge */
.bundlesplus-savings-badge {
    display: inline-block;
    padding: 5px 10px;
    background: #ff6b35;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Add to Cart Button */
.bundlesplus-add-to-cart {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.bundlesplus-add-to-cart:hover {
    background: #e55a2b;
    color: #fff;
}

/* Frequently Bought Together */
.bundlesplus-fbt {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.bundlesplus-fbt-main {
    flex: 2;
}

.bundlesplus-fbt-products {
    flex: 3;
    display: flex;
    gap: 10px;
}

.bundlesplus-fbt-product {
    flex: 1;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-align: center;
}

.bundlesplus-fbt-plus {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b35;
    display: flex;
    align-items: center;
}

/* Volume Discount Table */
.bundlesplus-volume-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.bundlesplus-volume-table th,
.bundlesplus-volume-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.bundlesplus-volume-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.bundlesplus-volume-table tr:hover {
    background: #f9f9f9;
}

.bundlesplus-volume-discount {
    color: #28a745;
    font-weight: 600;
}

/* Buy X Get Y */
.bundlesplus-buyxgy {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: #fff;
}

.bundlesplus-buyxgy-buy,
.bundlesplus-buyxgy-get {
    flex: 1;
    padding: 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
}

.bundlesplus-buyxgy-arrow {
    font-size: 24px;
}

/* Countdown Timer */
.bundlesplus-countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.bundlesplus-countdown-item {
    text-align: center;
    padding: 15px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    min-width: 70px;
}

.bundlesplus-countdown-value {
    font-size: 32px;
    font-weight: 700;
}

.bundlesplus-countdown-label {
    font-size: 12px;
    text-transform: uppercase;
}

/* Free Shipping Bar */
.bundlesplus-free-shipping {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.bundlesplus-free-shipping-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.bundlesplus-free-shipping-progress {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.bundlesplus-free-shipping-text {
    font-size: 16px;
    font-weight: 600;
}

/* Stock Scarcity */
.bundlesplus-stock-scarcity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    margin: 10px 0;
}

.bundlesplus-stock-scarcity .dashicons {
    color: #ffc107;
}

/* Spending Goal */
.bundlesplus-spending-goal {
    padding: 20px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 8px;
    color: #fff;
    text-align: center;
}

.bundlesplus-spending-goal-progress {
    height: 30px;
    background: rgba(255,255,255,0.3);
    border-radius: 15px;
    overflow: hidden;
    margin: 15px 0;
}

.bundlesplus-spending-goal-fill {
    height: 100%;
    background: #fff;
    transition: width 0.5s ease;
    border-radius: 15px;
}

/* Quantity Selector */
.bundlesplus-quantity {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.bundlesplus-quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

.bundlesplus-quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}

/* Popup */
.bundlesplus-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.bundlesplus-popup {
    background: #fff;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.bundlesplus-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.bundlesplus-popup-close:hover {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .bundlesplus-bundle {
        flex-direction: column;
    }

    .bundlesplus-fbt {
        flex-direction: column;
    }

    .bundlesplus-fbt-products {
        flex-direction: column;
    }

    .bundlesplus-buyxgy {
        flex-direction: column;
    }

    .bundlesplus-countdown {
        flex-wrap: wrap;
    }

    .bundlesplus-countdown-item {
        min-width: 60px;
        padding: 10px;
    }

    .bundlesplus-countdown-value {
        font-size: 24px;
    }
}
