:root {
    --primary-red: #D62828;
    --secondary-yellow: #F3CA40;
    --background-coral: #FF7F50;  
    --background-light-coral: #FFA07A;  
    --text-dark: #333;
    --app-background: #FFF5EE;  
    --header-background: rgba(214, 40, 40, 0.95);  
    --header-text: white;
    --modal-bg: rgba(30,30,30,0.85);
    --soft-shadow: 0 4px 10px rgba(0,0,0,0.08);
    --hover-effect: scale(1.02);
    --header-gradient: linear-gradient(135deg, #FF7F50 0%, #FFA07A 100%);
    --header-shadow: 0 2px 5px rgba(0,0,0,0.1);
    --header-height: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Arial', sans-serif;
}

html, body {
    height: 100%;
    background: var(--app-background);
    color: var(--text-dark);
    line-height: 1.6;
    overscroll-behavior-y: contain;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--app-background);  
    box-shadow: var(--soft-shadow);
    position: relative;
    overflow: hidden;
}

header {
    display: none;
}

.banner-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    background: var(--header-gradient);
}

.banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

main {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

#salgados {
    background: transparent;
    border-radius: 0;
    padding: 10px 5px;
    margin: 15px 0;
    box-shadow: none;
    overflow: visible;
    position: relative;
}

#salgados h2 {
    text-align: left;
    color: var(--text-dark);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 15px;
    margin-left: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    display: flex;
    align-items: center;
}

#salgados h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--primary-red);
    margin-right: 10px;
    border-radius: 2px;
}

#salgados h2::after {
    display: none;
}

.salgados-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 5px 0;
}

.salgado-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 12px 15px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.salgado-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.salgado-item:hover::before {
    opacity: 1;
}

.salgado-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.salgado-img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.4s ease;
}

.salgado-item:hover .salgado-img {
    transform: scale(1.05) rotate(2deg);
}

.salgado-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    overflow: hidden;
}

.salgado-item span.nome {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.salgado-item:hover span.nome {
    color: var(--primary-red);
}

.descricao-card {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.salgado-item .preco {
    font-size: 1.15rem;
    color: var(--primary-red);
    font-weight: 800;
    margin-top: auto;
}

.btn-adicionar-direto {
    background: linear-gradient(135deg, var(--primary-red), #e63946);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-adicionar-direto:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.btn-adicionar-direto:active {
    transform: scale(0.96);
}

/* Modal Produto */
.modal-produto {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--modal-bg);
    animation: modal-fade-in 0.3s;
}
.modal-produto .modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.20);
    width: 90%;
    max-width: 350px;
    padding: 25px 20px;
    position: relative;
    text-align: center;
    animation: modal-pop-in 0.28s;
}
.modal-produto .modal-close {
    position: absolute;
    top: 5px;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    font-size: 2.2rem;
    cursor: pointer;
}
.produto-detalhe-imagem {
    text-align: center;
    margin-bottom: 15px;
}
.produto-detalhe-imagem img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}
.modal-produto h2 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.modal-produto .modal-produto-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}
.modal-produto .modal-produto-preco {
    font-size: 1.6rem;
    color: var(--primary-red);
    font-weight: 900;
    margin-bottom: 20px;
}
.modal-produto-acoes {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.quantidade-controle {
    display: flex;
    align-items: center;
    background: #f4f4f4;
    border-radius: 8px;
    padding: 0 5px;
}
.quantidade-controle button {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary-red);
    font-weight: bold;
    cursor: pointer;
    width: 35px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quantidade-controle input {
    width: 40px;
    text-align: center;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    -moz-appearance: textfield;
}
.quantidade-controle input::-webkit-outer-spin-button,
.quantidade-controle input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.modal-produto .btn-adicionar {
    flex-grow: 1;
    background: linear-gradient(135deg, var(--primary-red), #e63946);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Badges e Adicionais */
.badge-promocional {
    position: absolute;
    top: 0;
    right: 0;
    background: #F3CA40;
    color: var(--primary-red);
    font-size: 0.70rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 0 16px 0 12px;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.1);
    z-index: 5;
    text-transform: uppercase;
}
.badge-esgotado {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 53, 69, 0.95);
    color: white;
    font-size: 1.1rem;
    font-weight: 900;
    padding: 6px 18px;
    border-radius: 8px;
    z-index: 6;
    letter-spacing: 1px;
}
.modal-adicionais {
    text-align: left;
    margin-bottom: 20px;
    background: #fdfdfd;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    max-height: 180px;
    overflow-y: auto;
}
.adc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}
.adc-item:last-child {
    border-bottom: none;
}
.adc-item label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    color: #444;
}
.adc-preco {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 0.9rem;
}
.quantidade-controle-adc {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 0 2px;
}
.quantidade-controle-adc button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-red);
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quantidade-controle-adc input {
    width: 25px;
    text-align: center;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    pointer-events: none;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.salgados-grid .salgado-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.salgados-grid .salgado-item:nth-child(1) { animation-delay: 0.1s; }
.salgados-grid .salgado-item:nth-child(2) { animation-delay: 0.2s; }
.salgados-grid .salgado-item:nth-child(3) { animation-delay: 0.3s; }
.salgados-grid .salgado-item:nth-child(4) { animation-delay: 0.4s; }
.salgados-grid .salgado-item:nth-child(5) { animation-delay: 0.5s; }
.salgados-grid .salgado-item:nth-child(6) { animation-delay: 0.6s; }
.salgados-grid .salgado-item:nth-child(7) { animation-delay: 0.7s; }
.salgados-grid .salgado-item:nth-child(8) { animation-delay: 0.8s; }

/* MODAL FINALIZAR PEDIDO --------------------------------------- */
.modal-finalizar {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--modal-bg);
    animation: modal-fade-in 0.3s;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-finalizar .modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.20), 0 2px 7px rgba(230,70,70,0.13);
    width: 95%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
    animation: modal-pop-in 0.28s cubic-bezier(.29,.8,.31,1.21);
}

@keyframes modal-pop-in {
    from { transform: scale(0.91) translateY(10%); opacity: 0;}
    to   { transform: scale(1) translateY(0); opacity: 1;}
}

.modal-finalizar .modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--primary-red);
    font-size: 2rem;
    cursor: pointer;
    z-index: 8;
    padding: 4px;
}

.modal-finalizar h2 {
    color: var(--primary-red);
    text-align: center;
    margin-top: 5px;
    margin-bottom: 17px;
}

.modal-form-group {
    margin-bottom: 16px;
}

.modal-form-group label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-red);
    display: block;
    margin-bottom: 5px;
}

.modal-form-group input[type="text"] {
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 7px;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 9px;
    background: #fafafa;
    transition: border .2s;
}

.modal-form-group input[type="text"]:focus {
    border-color: var(--secondary-yellow);
    outline: none;
}

.modal-form-group span.modal-required {
    color: #d62828;
    font-weight: bold;
}

.modal-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 7px;
}

.modal-radio label, .modal-radio {
    font-size: 1em;
    color: var(--primary-red);
    background: #fdebe6;
    border-radius: 5px;
    padding: 6px 13px;
    cursor: pointer;
    align-items: center;
    display: flex;
    width: 100%;
    justify-content: flex-start;
}

.modal-radio input[type="radio"] {
    accent-color: var(--primary-red);
    margin-right: 7px;
}

.modal-help-text {
    font-size: 0.90em;
    color: #c36d26;
    margin-top: 3px;
}

.modal-form-summary {
    background: #fff8e0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1.06em;
    color: #6d3d03;
    margin-bottom: 12px;
}

/* Modal buttons */
.modal-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn-cancelar, .modal-btn-confirmar {
    border: none;
    border-radius: 8px;
    font-size: 1em;
    padding: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.11s, color 0.11s;
    width: 100%;
}

.modal-btn-cancelar {
    background: #eee;
    color: #d62828;
}

.modal-btn-cancelar:hover {
    background: #ffc2bb;
}

.modal-btn-confirmar {
    background: linear-gradient(90deg,#d62828 70%, #f3ca40 100%);
    color: #fff;
    box-shadow: 0 1.5px 8px rgba(214,40,40,0.07);
}

.modal-btn-confirmar:active {
    background: #e82b2b;
    color: #fffad3;
}

#modal-resumo-total {
    text-align: left;
}

.modal-finalizar .hidden {
    display: none;
}

/* Improved buttons */
.btn-adicionar, 
.btn-finalizar,
.modal-btn-confirmar,
.modal-btn-cancelar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-adicionar, 
.btn-finalizar,
.modal-btn-confirmar {
    background: linear-gradient(135deg, var(--primary-red), #ff4d4d);
    color: white;
}

.modal-btn-cancelar {
    background: #f0f0f0;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-adicionar:hover, 
.btn-finalizar:hover,
.modal-btn-confirmar:hover {
    background: linear-gradient(135deg, #ff4d4d, var(--primary-red));
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.modal-btn-cancelar:hover {
    background: #fff5f5;
    transform: translateY(-2px);
}

/* MODAL PORÇÃO */
.modal-porcao {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--modal-bg);
    animation: modal-fade-in 0.3s;
}

.modal-porcao .modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.20), 0 2px 7px rgba(230,70,70,0.13);
    max-width: 360px;
    width: 92vw;
    padding: 22px 18px 18px 18px;
    position: relative;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    animation: modal-pop-in 0.28s cubic-bezier(.29,.8,.31,1.21);
}

.modal-porcao .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(214, 40, 40, 0.1);
    border: none;
    color: var(--primary-red);
    font-size: 1.6rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.modal-porcao .modal-close:hover {
    background: rgba(214, 40, 40, 0.2);
    transform: scale(1.1);
}

.modal-porcao .modal-close:active {
    background: rgba(214, 40, 40, 0.3);
    transform: scale(0.95);
}

.modal-porcao-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-porcao-item {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    border: 2px solid var(--secondary-yellow);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.modal-porcao-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(243,202,64,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-porcao-item:hover::before {
    opacity: 1;
}

.modal-porcao-item:hover {
    border-color: var(--primary-red);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-porcao-item input {
    margin-right: 12px;
    accent-color: var(--primary-red);
    transform: scale(1.2);
}

.modal-porcao-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.modal-btn-adicionar, 
.modal-btn-cancelar {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-btn-adicionar {
    background: linear-gradient(135deg, var(--primary-red), #ff4d4d);
    color: white;
}

.modal-btn-cancelar {
    background: #f0f0f0;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.modal-btn-adicionar:hover {
    background: linear-gradient(135deg, #ff4d4d, var(--primary-red));
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.modal-btn-cancelar:hover {
    background: #fff5f5;
    transform: translateY(-2px);
}

.modal-btn-adicionar:active,
.modal-btn-cancelar:active {
    transform: scale(0.98);
}

/* Mix Modal Styles */
.modal-mix-salgados {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--modal-bg);
    animation: modal-fade-in 0.3s;
    padding: 15px;
    overflow-y: auto;
}

.modal-mix-salgados .modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.20), 0 2px 7px rgba(230,70,70,0.13);
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    padding: 20px;
    animation: modal-pop-in 0.28s cubic-bezier(.29,.8,.31,1.21);
}

.modal-mix-salgados .modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--primary-red);
    font-size: 2rem;
    cursor: pointer;
    z-index: 8;
    padding: 4px;
}

.modal-mix-selection {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mix-quantidade h3,
.mix-salgados h3 {
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.mix-quantidade-grid,
.mix-salgados-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mix-quantidade-item,
.mix-salgado-item {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    border: 2px solid var(--secondary-yellow);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.mix-quantidade-item input,
.mix-salgado-item input {
    margin-right: 10px;
    accent-color: var(--primary-red);
}

.mix-salgado-item {
    flex-direction: column;
    text-align: center;
}

.mix-salgado-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.mix-salgado-item span {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 700;
}

.mix-quantidade-item:hover,
.mix-salgado-item:hover {
    border-color: var(--primary-red);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-mix-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .mix-quantidade-grid,
    .mix-salgados-grid {
        grid-template-columns: 1fr;
    }
}

/* BUTTON VER CARRINHO */
.btn-ver-carrinho {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-ver-carrinho:hover {
    transform: scale(1.05);
    background: #b42520;
}

.btn-ver-carrinho i {
    font-size: 1.5rem;
}

.btn-ver-carrinho span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-yellow);
    color: var(--primary-red);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Rest of the styles... */

.porcao-item, .entrega-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #f3ca40;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.01em;
    box-shadow: 0 1px 6px rgba(230,170,37,0.06);
}

.porcao-item input, .entrega-item input {
    margin-right: 10px;
}

.porcao-item:hover, .entrega-item:hover {
    background: #fffdf6;
    border-color: var(--primary-red);
}

#endereco-container {
    margin-top: 15px;
}

#endereco {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--primary-red);
    border-radius: 8px;
}

#finalizar-pedido {
    width: 100%;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2rem;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#finalizar-pedido:active {
    transform: scale(0.98);
}

.hidden {
    display: none !important;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 14px;
    background: var(--primary-red);
}

.social-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.01em;
}

.carrinho-container {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 93%;
    max-width: 480px;
    background: #fff;
    border-radius: 17px 17px 0 0;
    box-shadow: 0 -5px 16px rgba(0,0,0,0.098);
    transition: bottom 0.29s cubic-bezier(.29, 1.26, .28, 1), box-shadow 0.18s;
    z-index: 200;
    padding: 13px 14px 16px 14px;
    max-height: 79vh;
    overflow-y: auto;
}

.carrinho-container.show {
    bottom: 0;
}

.carrinho-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.btn-fechar {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-red);
    cursor: pointer;
    padding: 4.5px 8px 1px 8px;
}

.carrinho-itens {
    margin-bottom: 8.5px;
}

.carrinho-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 2px;
    border-bottom: 1px solid #f8e6ad;
    font-size: 1em;
}

.btn-remover {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3em;
    margin-left: 7px;
}

.carrinho-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 13px;
    font-size: 1.10em;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    header {
        height: 70px;
    }

    .logo-wrapper {
        width: 50px;
        height: 50px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .contact-link {
        font-size: 0.7rem;
    }
}

@media (max-width: 375px) {
    .salgados-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .salgado-item {
        padding: 8px;
    }

    .salgado-item img {
        width: 35px;
        height: 35px;
    }

    .salgado-item span {
        font-size: 0.75rem;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.48);
    display: none;
    z-index: 190;
    transition: background 0.12s;
}

.overlay.show {
    display: block;
}

@media (max-width: 480px) {
    .modal-finalizar {
        align-items: flex-end;
    }

    .modal-finalizar .modal-content {
        border-radius: 15px 15px 0 0;
        width: 100%;
        max-height: 85vh;
    }
}

@media (max-width: 375px) {
    .header-content {
        gap: 10px;
    }

    .logo-wrapper {
        width: 60px;
        height: 60px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .contact-link {
        font-size: 0.8rem;
    }
}

.modal-radio {
    tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

input[type="text"], 
input[type="radio"] {
    font-size: 16px;
    touch-action: manipulation;
}

@media (max-width: 480px) {
    .banner-container {
        width: 100%;
    }
    
    .banner-image {
        width: 100%;
    }
}

footer {
    background-color: rgba(214, 40, 40, 0);
    padding: 1px 10px;
    border-top: 1px solid rgba(214, 40, 40, 0.1);
}

.footer-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-social .social-icon {
    color: var(--primary-red);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social .social-icon:hover {
    color: #ff4d4d;
}

.footer-copyright {
    font-size: 0.5rem;
    color: rgba(0, 0, 0, 0.6);
}

.developer-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.developer-link:hover {
    color: #ff4d4d;
}

.developer-company {
    display: block;
    margin-top: 5px;
    font-size: 0.5rem;
    color: rgba(0, 0, 0, 0.5);
}