/* Pizza Builder and Customizable Item Styles */

/* Customizable Item Card Styles */
.customizable-item {
    border: 2px dashed #F6BA1A !important;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.customizable-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #F6BA1A 0%, #e6a800 100%);
    color: #1a1a1a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(246, 186, 26, 0.3);
    z-index: 10;
}

.customizable-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.feature-tag {
    background: rgba(246, 186, 26, 0.15);
    color: #8b6914;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.feature-tag i {
    margin-right: 4px;
}

.btn-create-pizza {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #F6BA1A 0%, #e6a800 100%);
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(246, 186, 26, 0.3);
}

.btn-create-pizza:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(246, 186, 26, 0.4);
    color: #1a1a1a;
}

.customizable-action {
    text-align: center;
    padding: 15px 0;
}

/* Pizza Builder Page Styles */
.pizza-builder-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 50px;
}

.builder-header {
    background: linear-gradient(135deg, #B2201D 0%, #8b1714 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

.builder-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.builder-container {
    max-width: 1200px;
}

.builder-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.builder-section h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-number {
    background: #F6BA1A;
    color: #1a1a1a;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

/* Crust & Size Options */
.crust-options, .size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

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

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

.crust-content, .size-content {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.crust-card input:checked + .crust-content,
.size-card input:checked + .size-content {
    border-color: #B2201D;
    background: rgba(178, 32, 29, 0.05);
}

.crust-name, .size-name {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.crust-price, .size-price {
    font-size: 14px;
    color: #666;
}

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

/* Ingredients */
.ingredient-info {
    background: #e3f2fd;
    padding: 12px 15px;
    border-radius: 8px;
    color: #1565c0;
    font-size: 14px;
    margin-bottom: 20px;
}

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

.ingredient-category h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.protein-badge {
    background: #fff3e0;
    color: #e65100;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ingredient-checkbox {
    cursor: pointer;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
    min-height: 70px;
}

.ingredient-checkbox:hover {
    border-color: #B2201D;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ingredient-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.ingredient-checkbox .ingredient-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    display: none;
    /* align-items: center;
    justify-content: center; */
    transition: all 0.2s ease;
    /* flex-shrink: 0; */
    background: white;
}

.ingredient-checkbox input:checked ~ .ingredient-header .checkmark,
.ingredient-checkbox:has(input:checked) .ingredient-header .checkmark {
    background: #B2201D;
    border-color: #B2201D;
}

.ingredient-checkbox input:checked ~ .ingredient-header .checkmark::after,
.ingredient-checkbox:has(input:checked) .ingredient-header .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.ingredient-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.ingredient-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 6px;
    display: inline-block;
}

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

.ingredient-status.extra {
    background: #F6BA1A;
    color: #1a1a1a;
}

@media (max-width: 1200px) {
    .ingredient-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ingredient-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .ingredient-grid {
        grid-template-columns: 1fr;
    }
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    top: 20px;
}

.order-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.summary-content {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-section {
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
}

.summary-section h5 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
}

.summary-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-section li {
    padding: 5px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-section li.empty {
    color: #999;
    font-style: italic;
}

.extra-price {
    color: #F6BA1A;
    font-weight: 600;
    margin-left: auto;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 2px solid #f0f0f0;
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, #B2201D 0%, #8b1714 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(178, 32, 29, 0.3);
}

.btn-back {
    display: block;
    text-align: center;
    color: #666;
    text-decoration: none;
    padding: 10px;
    font-size: 14px;
}

.btn-back:hover {
    color: #B2201D;
}

@media (max-width: 991px) {
    .order-summary {
        margin-top: 30px;
        position: relative;
        top: 0;
    }

    .builder-header h1 {
        font-size: 1.75rem;
    }

    .crust-options, .size-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .ingredient-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .builder-section {
        padding: 15px;
    }

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

    .ingredient-grid {
        grid-template-columns: 1fr;
    }
}


/* Custom Pizza Card - Full Width Display */
.custom-pizza-card-wrapper {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.custom-pizza-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border: 2px dashed #F6BA1A;
    border-radius: 16px;
    padding: 30px;
    gap: 40px;
    box-shadow: 0 4px 20px rgba(246, 186, 26, 0.15);
}

.custom-pizza-image {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    height: 200px;
}

.custom-pizza-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.custom-pizza-image .customizable-badge {
    position: absolute;
    top: -10px;
    right: -10px;
}

.custom-pizza-content {
    flex: 1;
}

.custom-pizza-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.custom-pizza-content p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
}

.custom-pizza-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.custom-pizza-price {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}

.custom-pizza-price strong {
    font-size: 1.4rem;
    color: #B2201D;
}

/* Menu Separator */
.menu-separator {
    grid-column: 1 / -1;
    text-align: center;
    margin: 10px 0 20px;
    position: relative;
}

.menu-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.menu-separator span {
    position: relative;
    background: #fff;
    padding: 0 20px;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-pizza-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    .custom-pizza-image {
        width: 150px;
        height: 150px;
    }
    
    .custom-pizza-features {
        justify-content: center;
    }
    
    .custom-pizza-content h3 {
        font-size: 1.4rem;
    }
}
