/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background: #f6e4c5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2D1B0E;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, #79210B, #5E1A08);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2%;
    box-shadow: 0 4px 15px rgba(121, 33, 11, .3);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EFBE9E, #FCF1ED, #EFBE9E);
}

#logo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .2));
    transition: transform .3s;
}

#logo:hover {
    transform: scale(1.02);
}

/* ===== MENU ===== */
.menu {
    background: linear-gradient(180deg, #79210B, #6B1D0A);
    border-top: 1px solid rgba(252, 241, 237, .3);
    border-bottom: 2px solid #FCF1ED;
    padding: 1.5% 2%;
    display: flex;
    justify-content: center;
    gap: 2%;
    box-shadow: 0 2px 10px rgba(121, 33, 11, .2);
    flex-wrap: wrap;
}

.menu-btn {
    color: #EFBE9E;
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 10px 25px;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all .3s;
    letter-spacing: .5px;
}

.menu-btn:hover {
    background: rgba(239, 190, 158, .15);
    border-color: #EFBE9E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 190, 158, .2);
}

.menu-btn:active {
    transform: scale(.95);
}

/* ===== BADGE ===== */
.carrinho-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #EFBE9E, #E8A87C);
    color: #79210B;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #79210B;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(121, 33, 11, .3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== PRODUTOS ===== */
.container-produto {
    background: #FFF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    width: 96.5%;
    margin: 2% auto;
    padding: 2%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    transition: all .3s;
}

.container-produto:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 35px rgba(121, 33, 11, .15);
}

.produto {
    width: 250px;
    max-width: 250px;
    border-radius: 12px;
    margin: 2% 4% 2% 2%;
    transition: transform .3s;
    object-fit: cover;
}

.produto:hover {
    transform: scale(1.03);
}

.texto-produto {
    padding: 1% 3%;
    flex: 1;
}

.nome-produto {
    font-size: 1.8rem;
    color: #79210B;
    font-weight: 700;
    letter-spacing: -.5px;
}

.preco-produto {
    font-size: 2rem;
    font-weight: 800;
    color: #2D1B0E;
}

.legenda-produto {
    font-size: 1rem;
    color: #666;
}

.adicionar-carrinho {
    color: #FCF1ED;
    background: linear-gradient(135deg, #79210B, #5E1A08);
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 14px 35px;
    margin-top: 15px;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 4px 15px rgba(121, 33, 11, .3);
    letter-spacing: .5px;
}

.adicionar-carrinho:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(121, 33, 11, .4);
    background: linear-gradient(135deg, #8F2A12, #6B1D0A);
}

.adicionar-carrinho:active {
    transform: scale(.95);
}

/* ===== NOTIFICAÇÃO ===== */
.notificacao {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #79210B, #5E1A08);
    color: #FCF1ED;
    padding: 16px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(121, 33, 11, .4);
    transform: translateY(120px) scale(.8);
    opacity: 0;
    transition: all .5s cubic-bezier(.68, -.55, .265, 1.55);
    z-index: 1000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #EFBE9E;
    max-width: 400px;
}

.notificacao.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.notificacao-icon {
    font-size: 1.5rem;
}

/* ===== MODAL PERSONALIZAÇÃO ===== */
.modal-personalizacao {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-personalizacao.aberto {
    display: flex;
}

.modal-content-personalizacao {
    background: #f6e4c5;
    border-radius: 24px;
    max-width: 1100px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    animation: slideUpModal .4s;
}

@keyframes slideUpModal {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header-personalizacao {
    background: linear-gradient(135deg, #79210B, #5E1A08);
    color: #FCF1ED;
    padding: 20px 30px;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header-personalizacao h2 {
    margin: 0;
    font-size: 1.8rem;
}

.btn-fechar-modal {
    background: none;
    border: none;
    color: #FCF1ED;
    font-size: 2rem;
    cursor: pointer;
    transition: transform .3s;
    padding: 0 10px;
}

.btn-fechar-modal:hover {
    transform: rotate(90deg);
}

.modal-body-personalizacao {
    padding: 30px;
}

/* ===== INFO PIZZA ===== */
.info-pizza-resumo {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.img-pizza-resumo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #f6e4c5;
}

.info-pizza-texto h3 {
    color: #79210B;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.info-pizza-texto p {
    color: #666;
    font-size: 1rem;
    margin: 3px 0;
}

/* ===== SEÇÕES ===== */
.secao-sabores,
.secao-borda,
.secao-observacoes {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.secao-sabores h3,
.secao-borda h3,
.secao-observacoes h3 {
    color: #79210B;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.sub-info {
    color: #666;
    font-size: .95rem;
    margin-bottom: 15px;
}

.sub-info span {
    color: #79210B;
    font-weight: 700;
}

/* ===== GRID SABORES ===== */
.grid-sabores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.grid-sabores::-webkit-scrollbar {
    width: 8px;
}

.grid-sabores::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.grid-sabores::-webkit-scrollbar-thumb {
    background: #79210B;
    border-radius: 10px;
}

.categoria-sabores {
    grid-column: 1 / -1;
    padding: 10px 0 5px;
    border-bottom: 2px solid #f6e4c5;
}

.categoria-sabores h4 {
    color: #79210B;
    font-size: 1.1rem;
}

/* ===== CARD SABOR ===== */
.card-sabor {
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all .3s;
    cursor: pointer;
}

.card-sabor:hover {
    border-color: #79210B;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(121, 33, 11, .1);
}

.card-sabor.selecionado {
    border-color: #79210B;
    background: #f0e8e0;
}

.sabor-imagem {
    position: relative;
    flex-shrink: 0;
}

.sabor-imagem img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.badge-premium {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #FFD700, #f9a825);
    color: #333;
    font-size: .55rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.sabor-info {
    flex: 1;
    min-width: 0;
}

.sabor-info h4 {
    font-size: .95rem;
    color: #2D1B0E;
    margin-bottom: 3px;
}

.sabor-descricao {
    font-size: .8rem;
    color: #666;
    margin-bottom: 3px;
    line-height: 1.3;
}

.preco-sabor {
    font-size: .85rem;
    color: #79210B;
    font-weight: 600;
}

.sabor-selecao {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.sabor-selecao input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #79210B;
    cursor: pointer;
}

.sabor-selecao label {
    font-size: .8rem;
    color: #666;
    cursor: pointer;
}

/* ===== GRID BORDAS ===== */
.grid-bordas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.card-borda {
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all .3s;
    cursor: pointer;
}

.card-borda:hover {
    border-color: #79210B;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(121, 33, 11, .1);
}

.card-borda.selecionado {
    border-color: #79210B;
    background: #f0e8e0;
}

.borda-imagem {
    position: relative;
    margin-bottom: 8px;
}

.borda-imagem img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.borda-info h4 {
    font-size: .9rem;
    color: #2D1B0E;
    margin-bottom: 3px;
}

.borda-preco {
    font-size: .85rem;
    color: #79210B;
    font-weight: 600;
}

.borda-selecao {
    margin-top: 8px;
}

.borda-selecao input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #79210B;
    cursor: pointer;
    margin-right: 5px;
}

.borda-selecao label {
    font-size: .85rem;
    color: #666;
    cursor: pointer;
}

/* ===== OBSERVAÇÕES ===== */
#observacoes-pizza {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color .3s;
    background: #fafafa;
}

#observacoes-pizza:focus {
    outline: none;
    border-color: #79210B;
    box-shadow: 0 0 0 4px rgba(121, 33, 11, .1);
}

/* ===== PREÇO TOTAL ===== */
.preco-total-personalizacao {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: right;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2D1B0E;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.preco-total-personalizacao span:last-child {
    color: #79210B;
    font-size: 2.2rem;
}

/* ===== AÇÕES ===== */
.acoes-personalizacao {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-continuar-comprando {
    background: transparent;
    border: 2px solid #79210B;
    color: #79210B;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
}

.btn-continuar-comprando:hover {
    background: #79210B;
    color: #FCF1ED;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(121, 33, 11, .3);
}

.btn-ir-carrinho {
    background: linear-gradient(135deg, #79210B, #5E1A08);
    color: #FCF1ED;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 4px 15px rgba(121, 33, 11, .3);
}

.btn-ir-carrinho:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(121, 33, 11, .4);
}

/* ===== CARRINHO ===== */
#carrinho-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.carrinho-vazio {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.carrinho-vazio-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.carrinho-vazio h2 {
    color: #79210B;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.carrinho-vazio p {
    color: #888;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-voltar {
    background: linear-gradient(135deg, #79210B, #5E1A08);
    color: #FCF1ED;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .3s;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(121, 33, 11, .3);
}

.btn-voltar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(121, 33, 11, .4);
}

.carrinho-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.carrinho-header h2 {
    color: #79210B;
    font-size: 2rem;
    font-weight: 700;
}

.carrinho-itens-count {
    background: #f6e4c5;
    color: #79210B;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
}

.carrinho-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.carrinho-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: all .3s;
    animation: slideIn .4s forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.carrinho-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(121, 33, 11, .1);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carrinho-item-img-wrapper {
    position: relative;
    flex-shrink: 0;
}

.carrinho-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #f6e4c5;
}

.carrinho-item-qtd-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #79210B;
    color: #FCF1ED;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    border: 2px solid #fff;
}

.carrinho-item-info {
    flex: 1;
}

.carrinho-item-info h3 {
    color: #2D1B0E;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.carrinho-item-detalhes {
    font-size: .85rem;
    color: #666;
    margin: 3px 0;
}

.carrinho-item-detalhes strong {
    color: #79210B;
}

.carrinho-item-preco {
    color: #888;
    font-weight: 500;
    font-size: .95rem;
    margin-bottom: 10px;
}

.carrinho-item-acoes {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-qtd {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all .3s;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qtd-minus {
    background: #f6e4c5;
    color: #79210B;
}

.btn-qtd-minus:hover {
    background: #79210B;
    color: #FCF1ED;
}

.btn-qtd-plus {
    background: #79210B;
    color: #FCF1ED;
}

.btn-qtd-plus:hover {
    background: #5E1A08;
    transform: scale(1.05);
}

.qtd {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 35px;
    text-align: center;
    color: #2D1B0E;
}

.btn-remover {
    background: none;
    border: none;
    cursor: pointer;
    transition: all .3s;
    padding: 8px;
    border-radius: 50%;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remover:hover {
    background: #fee;
    color: #e74c3c;
    transform: scale(1.1);
}

.carrinho-item-total {
    text-align: right;
    flex-shrink: 0;
}

.carrinho-item-total-label {
    display: block;
    font-size: .75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.carrinho-item-total-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #79210B;
}

.carrinho-resumo {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    margin-top: 20px;
}

.carrinho-resumo-linha {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #555;
}

.carrinho-resumo-linha:first-child {
    padding-top: 0;
}

.carrinho-frete-gratis {
    color: #27ae60;
    font-weight: 600;
}

.carrinho-resumo-divider {
    height: 1px;
    background: #eee;
    margin: 12px 0;
}

.carrinho-resumo-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2D1B0E;
    padding: 10px 0;
}

.carrinho-resumo-total span:last-child {
    color: #79210B;
    font-size: 1.6rem;
}

.carrinho-acoes {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-limpar {
    background: transparent;
    border: 2px solid #ddd;
    color: #888;
    padding: 14px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all .3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
    flex: 1;
    justify-content: center;
}

.btn-limpar:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fee;
}

.btn-finalizar {
    background: linear-gradient(135deg, #79210B, #5E1A08);
    color: #FCF1ED;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all .3s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    flex: 2;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(121, 33, 11, .3);
}

.btn-finalizar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(121, 33, 11, .4);
}

/* ===== MODAL FINALIZAÇÃO ===== */
.modal-finalizar {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.modal-content {
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    animation: fadeIn .3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.modal-content h2 {
    color: #79210B;
    font-size: 2rem;
    margin-bottom: 20px;
}

.modal-resumo {
    background: #f6e4c5;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: left;
}

.modal-resumo p {
    margin: 5px 0;
    color: #2D1B0E;
}

.modal-divider {
    height: 1px;
    background: rgba(121, 33, 11, .2);
    margin: 12px 0;
}

.modal-agradecimento {
    color: #666;
    margin: 15px 0 25px;
    font-size: 1.1rem;
}

.btn-finalizar-modal {
    background: linear-gradient(135deg, #79210B, #5E1A08);
    color: #FCF1ED;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all .3s;
}

.btn-finalizar-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(121, 33, 11, .3);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    header {
        height: 180px;
    }

    .menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 3%;
    }

    .menu-btn {
        width: 80%;
        text-align: center;
        padding: 12px;
    }

    .container-produto {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 5%;
        width: 95%;
    }

    .produto {
        width: 90%;
        max-width: 300px;
        margin: 0 0 15px;
    }

    .texto-produto {
        width: 100%;
        padding: 0 5%;
    }

    .nome-produto {
        font-size: 1.4rem;
    }

    .preco-produto {
        font-size: 1.6rem;
    }

    .adicionar-carrinho {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    .modal-content-personalizacao {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header-personalizacao {
        border-radius: 0;
        padding: 15px 20px;
    }

    .modal-header-personalizacao h2 {
        font-size: 1.3rem;
    }

    .modal-body-personalizacao {
        padding: 15px;
    }

    .grid-sabores {
        grid-template-columns: 1fr;
        max-height: 300px;
    }

    .grid-bordas {
        grid-template-columns: 1fr 1fr;
    }

    .info-pizza-resumo {
        flex-direction: column;
        text-align: center;
    }

    .img-pizza-resumo {
        width: 100px;
        height: 100px;
    }

    .acoes-personalizacao {
        flex-direction: column;
    }

    .btn-continuar-comprando,
    .btn-ir-carrinho {
        width: 100%;
        text-align: center;
    }

    .preco-total-personalizacao {
        font-size: 1.3rem;
        text-align: center;
    }

    .preco-total-personalizacao span:last-child {
        font-size: 1.6rem;
    }

    .carrinho-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .carrinho-item-img {
        width: 100px;
        height: 100px;
    }

    .carrinho-item-acoes {
        justify-content: center;
    }

    .carrinho-item-total {
        text-align: center;
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }

    .carrinho-acoes {
        flex-direction: column;
    }

    .btn-limpar,
    .btn-finalizar {
        flex: 1;
        width: 100%;
    }

    .carrinho-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .notificacao {
        bottom: 20px;
        right: 20px;
        left: 20px;
        font-size: .9rem;
        padding: 14px 20px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .carrinho-resumo-total {
        font-size: 1.2rem;
    }

    .carrinho-resumo-total span:last-child {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    header {
        height: 140px;
    }

    .grid-bordas {
        grid-template-columns: 1fr;
    }

    .carrinho-vazio h2 {
        font-size: 1.6rem;
    }

    .carrinho-item-info h3 {
        font-size: 1rem;
    }

    .carrinho-item-img {
        width: 80px;
        height: 80px;
    }

    .nome-produto {
        font-size: 1.2rem;
    }

    .preco-produto {
        font-size: 1.3rem;
    }

    .legenda-produto {
        font-size: .9rem;
    }

    .card-sabor {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .sabor-imagem img {
        width: 80px;
        height: 80px;
    }

    .sabor-selecao {
        justify-content: center;
    }

    .modal-header-personalizacao h2 {
        font-size: 1.1rem;
    }

    .btn-fechar-modal {
        font-size: 1.5rem;
    }
}

/* ===== CONTROLE DE QUANTIDADE DE SABORES ===== */
.sabor-quantidade {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-qtd-sabor {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qtd-sabor-minus {
    background: #f6e4c5;
    color: #79210B;
}

.btn-qtd-sabor-minus:hover:not(:disabled) {
    background: #79210B;
    color: #FCF1ED;
    transform: scale(1.05);
}

.btn-qtd-sabor-minus:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-qtd-sabor-plus {
    background: #79210B;
    color: #FCF1ED;
}

.btn-qtd-sabor-plus:hover:not(:disabled) {
    background: #5E1A08;
    transform: scale(1.05);
}

.btn-qtd-sabor-plus:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qtd-sabor {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 25px;
    text-align: center;
    color: #2D1B0E;
}

/* Ajuste no card-sabor para acomodar os botões */
.card-sabor {
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.3s ease;
    cursor: default;
}

.card-sabor:hover {
    border-color: #79210B;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(121, 33, 11, 0.1);
}

.card-sabor.selecionado {
    border-color: #79210B;
    background: #f0e8e0;
}