/* Only minimal custom overrides for Bulma */
body {
    background-color: #f5f5f5;
}

.container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

footer {
    background-color: #34495e;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Flavor Picker Styles */
.flavor-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flavor-picker-modal {
    background: white;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 768px) {
    .flavor-picker-modal {
        width: 90vw;
        height: 90vh;
        border-radius: 8px;
        max-width: 800px;
        max-height: 600px;
    }
}

.flavor-picker-header {
    padding: 0.75rem;
    padding-bottom: 0;
    border-bottom: 1px solid #e8e8e8;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 100;
}

.flavor-picker-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

.flavor-picker-footer {
    padding: 0.75rem;
    border-top: 1px solid #e8e8e8;
    background: #f8f9fa;
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0;
    position: sticky;
    top: 60px;
    background: white;
    z-index: 90;
    scrollbar-width: thin;
}

@media (min-width: 768px) {
    .category-filters {
        top: 70px;
    }
}

.category-filters::-webkit-scrollbar {
    height: 4px;
}

.category-filters::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.category-filters::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.category-chip {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    height: 32px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-chip:hover {
    background: #f0f0f0;
}

.category-chip.active {
    background: #3273dc;
    color: white;
    border-color: #3273dc;
}

.selected-flavors-summary {
    padding: 0.5rem;
    padding-top: 1rem;
    background: #e8f4fd;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    position: sticky;
    top: 102px;
    z-index: 80;
}

@media (min-width: 768px) {
    .selected-flavors-summary {
        top: 112px;
    }
}

.selected-flavors-count {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.selected-flavors-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.flavor-badge {
    background: #3273dc;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.clickable-flavor-badge {
    transition: background-color 0.2s ease;
}

.clickable-flavor-badge:hover {
    background: #2366d1;
}

.flavor-badge-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    font-size: 0.875rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.flavor-badge-remove:hover {
    opacity: 1;
}

.flavor-grid {
    display: block;
}

.flavor-category-section {
    margin-bottom: 1rem;
}

.flavor-category-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .flavor-category-items {
        gap: 0.5rem;
    }
}

.flavor-category-title {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flavor-subcategory-section {
    margin-bottom: 0.75rem;
}

.flavor-subcategory-title {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.15rem 0.5rem;
    color: #555;
    background: #f8f9fa;
    border-left: 3px solid #3273dc;
    margin-bottom: 0.4rem;
    border-radius: 0 4px 4px 0;
}

.flavor-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    background: white;
    transition: all 0.2s;
}

.flavor-item.selected {
    border-color: #3273dc;
    background: #f0f8ff;
}

.flavor-info {
    flex: 1;
    min-width: 0;
}

.flavor-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.flavor-details {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
}

.flavor-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.intensity-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.intensity-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s;
    min-height: 32px;
    min-width: 32px;
}

.intensity-btn:hover:not(:disabled) {
    background: #f0f0f0;
}

.intensity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.intensity-btn.decrease {
    color: #dc3545;
    border-color: #dc3545;
}

.intensity-btn.increase {
    color: #28a745;
    border-color: #28a745;
}

.intensity-display {
    min-width: 60px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
}

.search-input {
    width: 100%;
    padding: 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Selected flavors in main form */
.selected-flavors-display {
    margin-bottom: 1rem;
}

.selected-flavors-display .flavor-badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}