/* =================== MODAL BASE =================== */
.modal-lanche .modal-content,
.modal-pizza .modal-content {
    background: #1a1a1a;
    border: none;
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
}

.modal-lanche .modal-header,
.modal-pizza .modal-header {
    background: linear-gradient(135deg, #DA2535, #ff4d00);
    border: none;
    padding: 1rem 1.25rem;
}

.modal-lanche .modal-title,
.modal-pizza .modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.modal-lanche .modal-body,
.modal-pizza .modal-body {
    padding: 1.25rem;
    background: #1a1a1a;
}

.modal-lanche .modal-footer,
.modal-pizza .modal-footer {
    background: #141414;
    border-top: 1px solid #2a2a2a;
    padding: 1rem 1.25rem;
}

.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* =================== LANCHE MODAL =================== */
.modal-product-hero {
    text-align: center;
    margin-bottom: 1rem;
}

.modal-product-hero .img-pizza {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: .75rem;
    border: none;
    border-radius: 0;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

.modal-product-desc {
    font-size: .9rem;
    color: #bbb;
    margin: 0;
    line-height: 1.5;
}

.modal-price-tag {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #27ae60;
    padding: .75rem;
    background: rgba(39, 174, 96, .08);
    border-radius: 12px;
    border: 1px solid rgba(39, 174, 96, .15);
    margin-top: .5rem;
}

.modal-lanche .btn-primary {
    background: linear-gradient(135deg, #DA2535, #ff4d00);
    border: none;
    font-weight: 700;
    padding: .6rem 1.5rem;
    border-radius: 8px;
}

.modal-lanche .btn-primary:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.modal-lanche .btn-secondary,
.modal-pizza .btn-secondary {
    background: #2a2a2a;
    border: 1px solid #333;
    color: #999;
}

/* =================== PIZZA HERO =================== */
.pizza-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #222;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    border: 1px solid #2e2e2e;
}

.pizza-hero img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
}

.pizza-hero-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .3rem;
}

.pizza-hero-info p {
    font-size: .8rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

/* =================== PIZZA STEPS =================== */
.pizza-step {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #252525;
}

.pizza-step:last-child {
    border-bottom: none;
    margin-bottom: .5rem;
    padding-bottom: 0;
}

.step-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .85rem;
}

.step-title small {
    font-weight: 400;
    color: #666;
    font-size: .75rem;
    margin-left: auto;
}

.step-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #DA2535, #ff4d00);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* =================== OPTIONS (radio/checkbox cards) =================== */
.step-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

.option-card {
    background: #222;
    border: 2px solid #2e2e2e;
    border-radius: 12px;
    padding: .85rem .75rem;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: .65rem;
}

.option-card:hover {
    border-color: #444;
    background: #282828;
}

.option-card.selected {
    border-color: #DA2535;
    background: rgba(218, 37, 53, .1);
    box-shadow: 0 0 0 1px rgba(218, 37, 53, .2);
}

.option-card input { display: none; }

.option-radio {
    width: 22px;
    height: 22px;
    border: 2px solid #555;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.option-check {
    width: 22px;
    height: 22px;
    border: 2px solid #555;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.option-card.selected .option-radio {
    border-color: #DA2535;
}

.option-card.selected .option-radio::after {
    content: '';
    width: 11px;
    height: 11px;
    background: #DA2535;
    border-radius: 50%;
}

.option-card.selected .option-check {
    border-color: #DA2535;
    background: #DA2535;
}

.option-card.selected .option-check::after {
    content: '✓';
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

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

.option-name {
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    display: block;
    line-height: 1.3;
}

.option-detail {
    font-size: .72rem;
    color: #777;
    margin-top: .1rem;
    display: block;
}

.option-price {
    font-size: .85rem;
    font-weight: 700;
    color: #27ae60;
    white-space: nowrap;
}

.option-price.free {
    color: #666;
    font-weight: 500;
}

/* =================== FLAVORS GRID =================== */
.flavors-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .6rem;
}

.flavor-card {
    background: #222;
    border: 2px solid #2e2e2e;
    border-radius: 12px;
    padding: .7rem .85rem;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: .7rem;
}

.flavor-card:hover {
    border-color: #444;
    background: #282828;
}

.flavor-card.selected {
    border-color: #ff4d00;
    background: rgba(255, 77, 0, .1);
    box-shadow: 0 0 0 1px rgba(255, 77, 0, .2);
}

.flavor-card img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

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

.flavor-name {
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    display: block;
    line-height: 1.3;
}

.flavor-desc {
    font-size: .72rem;
    color: #777;
    display: block;
    margin-top: .1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flavor-price {
    font-size: .85rem;
    font-weight: 700;
    color: #27ae60;
    white-space: nowrap;
    flex-shrink: 0;
}

.flavor-card .option-check {
    flex-shrink: 0;
}

.flavor-card.selected .option-check {
    border-color: #ff4d00;
    background: #ff4d00;
}

/* =================== NOTES =================== */
.pizza-notes {
    width: 100%;
    background: #222;
    border: 2px solid #2e2e2e;
    border-radius: 12px;
    color: #fff;
    padding: .85rem;
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    resize: none;
    outline: none;
    transition: border-color .2s;
}

.pizza-notes:focus {
    border-color: #DA2535;
}

.pizza-notes::placeholder {
    color: #555;
}

/* =================== FOOTER =================== */
.pizza-modal-footer {
    flex-direction: column !important;
    gap: .85rem !important;
    padding: 1.25rem !important;
}

.pizza-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.pizza-qty-control {
    display: flex;
    align-items: center;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
}

.pizza-qty-control button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.pizza-qty-control button:hover {
    background: #333;
}

.pizza-qty-control span {
    min-width: 44px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.pizza-total-price {
    text-align: right;
}

.pizza-total-price small {
    display: block;
    font-size: .7rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.pizza-total-price strong {
    font-size: 1.5rem;
    color: #27ae60;
}

.btn-add-pizza {
    width: 100%;
    padding: .95rem;
    background: linear-gradient(135deg, #DA2535, #ff4d00) !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1rem;
    font-weight: 700;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.btn-add-pizza:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 37, 53, .3);
}

.btn-add-pizza:disabled {
    opacity: .35;
    cursor: not-allowed;
    background: #444 !important;
}

/* =================== FLAVOR PRICE COL =================== */
.flavor-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.flavor-price-hint {
    font-size: .65rem;
    color: #888;
    font-weight: 500;
}

/* =================== BREAKDOWN =================== */
.pizza-breakdown {
    width: 100%;
}

.breakdown-items {
    background: #1e1e1e;
    border-radius: 10px;
    padding: .75rem .85rem;
    border: 1px solid #2a2a2a;
}

.breakdown-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .3rem 0;
    font-size: .8rem;
}

.breakdown-label {
    color: #bbb;
}

.breakdown-value {
    color: #27ae60;
    font-weight: 600;
    font-size: .8rem;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: .5rem;
    margin-top: .4rem;
    border-top: 1px dashed #333;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
}

.breakdown-total span:last-child {
    color: #27ae60;
    font-size: 1rem;
}

/* =================== PIZZA MODAL SIZE =================== */
#pizzaModal .modal-dialog {
    max-width: 600px;
    width: 95%;
    margin: 1rem auto;
}

#pizzaModal .modal-body {
    max-height: 65vh;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

#pizzaModal .modal-body::-webkit-scrollbar {
    width: 4px;
}

#pizzaModal .modal-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}

/* =================== LANCHE MODAL SIZE =================== */
#exampleModal .modal-dialog {
    max-width: 450px;
    width: 90%;
}

/* =================== RESPONSIVE =================== */
@media (min-width: 768px) {
    #pizzaModal .modal-dialog {
        max-width: 640px;
    }

    #pizzaModal .modal-body {
        max-height: 70vh;
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 576px) {
    #pizzaModal .modal-dialog {
        width: 100%;
        max-width: 100%;
        margin: 0;
        min-height: 100vh;
    }

    #pizzaModal .modal-content {
        border-radius: 0 !important;
        min-height: 100vh;
    }

    #pizzaModal .modal-body {
        max-height: calc(100vh - 160px);
        padding: 1rem;
    }

    .step-options {
        grid-template-columns: 1fr;
    }

    .pizza-hero img {
        width: 70px;
        height: 70px;
    }

    .modal-product-hero .img-pizza {
        width: 140px;
        height: 140px;
    }

    .pizza-modal-footer {
        padding: 1rem !important;
    }
}
