/* Pizza Builder Styles */
.builder-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    overflow-x: auto;
}

.builder-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    background: white;
    padding: 0 10px;
    min-width: 70px;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.progress-step.completed .progress-circle {
    background: var(--success-color);
    color: white;
}

.progress-step.active .progress-circle {
    background: var(--primary-color);
    color: white;
}

.progress-label {
    font-size: 0.7rem;
    color: var(--gray-600);
    text-align: center;
}

.builder-step {
    display: none;
    min-height: 300px;
}

.builder-step.active {
    display: block;
}

.builder-step h3 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.option-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.option-card:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: #e3f2fd;
}

.option-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.option-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.option-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Toppings Grid */
.toppings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.topping-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.topping-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.topping-card.selected {
    border-color: var(--primary-color);
    background: #e3f2fd;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
}

.topping-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.topping-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
    line-height: 1.2;
    min-height: 2.4em;
}

.topping-price {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Topping controls - both placement and amount */
.topping-controls {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
}

.topping-card.selected .topping-controls {
    display: flex;
}

.topping-placement,
.topping-amount {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.placement-btn,
.amount-btn {
    flex: 1;
    padding: 0.35rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1.5px solid var(--gray-300);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 0;
    text-align: center;
}

.placement-btn {
    max-width: 32px;
}

.amount-btn {
    font-size: 0.65rem;
}

.placement-btn:hover,
.amount-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary-color);
}

.placement-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.amount-btn.active {
    background: var(--secondary-color);
    color: var(--gray-900);
    border-color: var(--secondary-color);
}

/* Responsive adjustments for toppings */
@media (max-width: 768px) {
    .toppings-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .topping-card {
        padding: 0.5rem;
        min-height: 130px;
    }
    
    .topping-icon {
        font-size: 1.5rem;
    }
    
    .topping-name {
        font-size: 0.75rem;
    }
    
    .placement-btn,
    .amount-btn {
        font-size: 0.65rem;
        padding: 0.3rem 0.2rem;
    }
}

@media (max-width: 480px) {
    .toppings-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .topping-card {
        padding: 0.5rem 0.25rem;
        min-height: 120px;
    }
}
/* Options Grid (Size, Crust, Sauce) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.option-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.option-card:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.option-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--gray-900);
}

.option-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}