/* Pizza Builder Premium Design */
.pizza-builder-page {
    background: #fbfbfb;
    padding-top: 80px;
    padding-bottom: 100px;
}

.builder-intro {
    text-align: center;
    margin-bottom: 60px;
}

.builder-intro h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.builder-intro p {
    color: var(--text-body);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.builder-section {
    background: white;
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-yellow);
    background: var(--text-dark);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.builder-section h3 {
    font-size: 24px;
    margin: 0;
    text-transform: uppercase;
}

/* Options Grid */
.crust-options,
.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.crust-card,
.size-card {
    cursor: pointer;
    margin: 0;
}

.crust-card input,
.size-card input {
    display: none;
}

.crust-content,
.size-content {
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
}

.crust-card:hover .crust-content,
.size-card:hover .size-content {
    border-color: var(--primary-yellow);
    transform: translateY(-5px);
}

.crust-card input:checked+.crust-content,
.size-card input:checked+.size-content {
    border-color: var(--primary-red);
    background: rgba(206, 33, 1, 0.02);
    box-shadow: 0 10px 20px rgba(206, 33, 1, 0.1);
}

.section-error .size-options {
    border: 2px solid #e53e3e;
    border-radius: 16px;
    padding: 10px;
    background: rgba(229, 62, 62, 0.03);
    animation: shake-section 0.4s ease;
}

@keyframes shake-section {

    0%,
    100% {
        transform: translateX(0)
    }

    20%,
    60% {
        transform: translateX(-5px)
    }

    40%,
    80% {
        transform: translateX(5px)
    }
}

.validation-error-msg {
    color: #e53e3e;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 8px;
    display: none;
}

.crust-name,
.size-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.crust-price {
    font-size: 14px;
    color: var(--price-color);
    font-weight: 700;
}

.crust-price.included {
    color: #28a745;
}

/* Ingredients Section */
.ingredient-info {
    background: #FFF5F7;
    padding: 15px 25px;
    border-radius: 15px;
    color: var(--primary-red);
    font-size: 15px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px dashed var(--primary-red);
}

.ingredient-category {
    margin-bottom: 40px;
}

.ingredient-category h4 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.ingredient-category h4 i {
    color: var(--primary-red);
}

.protein-badge {
    background: var(--primary-yellow);
    color: var(--text-dark);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-left: 10px;
}

.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.ingredient-checkbox-card {
    cursor: pointer;
    margin: 0;
}

.ingredient-checkbox-card input {
    display: none;
}

.ingredient-card-inner {
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 15px;
    transition: var(--transition);
    height: 100%;
}

.ingredient-checkbox-card:hover .ingredient-card-inner {
    border-color: var(--primary-yellow);
}

.ingredient-checkbox-card input:checked+.ingredient-card-inner {
    border-color: var(--primary-red);
    background: rgba(206, 33, 1, 0.02);
}

.ingredient-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.check-icon {
    font-size: 18px;
    color: #eee;
    transition: var(--transition);
}

.ingredient-checkbox-card input:checked+.ingredient-card-inner .check-icon {
    color: var(--primary-red);
}

.ingredient-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.2;
}

.ingredient-status {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 5px;
    padding-left: 28px;
}

.ingredient-status.free {
    color: #28a745;
}

.ingredient-status.extra {
    color: var(--primary-yellow);
}

/* Order Summary Card */
.order-summary-card {
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    top: 100px;
    overflow: hidden;
    border: 3px solid var(--text-dark);
}

.summary-header {
    background: var(--text-dark);
    padding: 25px;
    text-align: center;
}

.summary-header h3 {
    color: var(--primary-yellow);
    margin: 0;
    font-size: 20px;
    letter-spacing: 1px;
}

.summary-content {
    padding: 30px;
}

.summary-item.main-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f4f4f4;
}

.item-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
}

.item-price {
    font-weight: 900;
    color: var(--primary-red);
    font-size: 20px;
}

.summary-detail {
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.detail-row strong {
    color: var(--primary-red);
}

.detail-price {
    font-weight: 700;
    color: #999;
}

.summary-section {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #f4f4f4;
}

.summary-section h5 {
    font-size: 12px;
    font-weight: 800;
    color: #999;
    margin-bottom: 12px;
}

.ingredient-list {
    margin: 0;
    padding: 0;
}

.ingredient-list li {
    font-size: 13px;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.ingredient-list li.empty {
    color: #ccc;
    font-style: italic;
}

.extra-price {
    margin-left: auto;
    font-weight: 800;
    color: var(--primary-yellow);
}

.summary-total-wrapper {
    background: #FFFDDD;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.total-label {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 18px;
}

.total-amount {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 28px;
    color: var(--primary-red);
}

.summary-actions {
    padding: 20px 30px 30px;
}

.btn-block {
    width: 100%;
    margin-bottom: 12px;
}

.btn-reset {
    background-color: transparent !important;
    color: #999 !important;
    border: 1px solid #eee !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: none !important;
}

.btn-reset:hover {
    background-color: #f4f4f4 !important;
    color: var(--text-dark) !important;
    transform: none !important;
}

.btn-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #999;
    font-size: 13px;
    font-weight: 700;
    margin-top: 15px;
    text-transform: uppercase;
}

.btn-back-link:hover {
    color: var(--primary-red);
}

.btn-back-link i {
    font-size: 18px;
}

@media (max-width: 991px) {
    .order-summary-card {
        margin-top: 40px;
        position: static;
    }
}

@media (max-width: 576px) {
    .builder-intro h2 {
        font-size: 32px;
    }

    .builder-section {
        padding: 25px;
    }

    .crust-options,
    .size-options,
    .ingredient-grid {
        grid-template-columns: 1fr;
    }
}