.bagel-bundle-builder {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bundle-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.bundle-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 2em;
}

.bundle-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 10px;
}

.selection-counter {
    font-size: 1.1em;
    color: #7f8c8d;
}

.selected-count {
    font-weight: bold;
    color: #27ae60;
}

.bagel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bagel-option {
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
}

.bagel-option:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.bagel-info {
    margin-bottom: 15px;
}

.bagel-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.bagel-price {
    color: #7f8c8d;
    font-size: 0.9em;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #3498db;
    color: white;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    min-width: 30px;
    text-align: center;
}

.bundle-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #ecf0f1;
}

.selected-bagels-list h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

#selected-bagels-display {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
    min-height: 50px;
    color: #7f8c8d;
}

.add-to-cart-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #bdc3c7;
    color: white;
}

.add-to-cart-btn:disabled {
    cursor: not-allowed;
}

.add-to-cart-btn.enabled {
    background: #27ae60;
}

.add-to-cart-btn.enabled:hover {
    background: #229954;
    transform: translateY(-2px);
}

.bundle-success-message,
.bundle-error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.bundle-success-message {
    background: #27ae60;
    color: white;
}

.bundle-error-message {
    background: #e74c3c;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bagel-bundle-builder {
        padding: 15px;
    }

    .bagel-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .bundle-header h2 {
        font-size: 1.5em;
    }

    .bundle-price {
        font-size: 1.3em;
    }
}
