body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #1a1a1a; /* Cor de fundo caso a imagem não carregue */
    color: #f2f2f2;
}

header {
    text-align: center;
    padding: 20px 0;
    background-color: #000;
    border-bottom: 5px solid #c00;
}

.logo {
    max-width: 250px;
}

#tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background-color: rgba(0,0,0,0.6);
    border-bottom: 2px solid #c00;
}

.tab-btn {
    background-color: #2b2b2b;
    color: #f2f2f2;
    border: 1px solid #555;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.tab-btn.active {
    background-color: #ffc107;
    color: #000;
    border-color: #ffc107;
}

.tab-btn:hover {
    filter: brightness(1.1);
}

main {
    padding: 20px;
}

#menu {
    max-width: 800px;
    margin: 40px auto;
    background-color: rgba(43, 43, 43, 0.9); /* Fundo do menu com leve transparência */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#menu h2, #contact h2 {
    font-family: 'Lobster', cursive;
    color: #ffc107; /* Amarelo da pizza */
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.group-label {
    display: block;
    color: #ffc107;
    font-weight: 700;
    margin-bottom: 8px;
}

.size-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #333;
    border: 1px solid #555;
    padding: 8px 12px;
    border-radius: 8px;
    color: #f2f2f2;
    cursor: pointer;
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #333;
    border: 1px solid #555;
    padding: 8px 10px;
    border-radius: 8px;
    color: #f2f2f2;
}

input[type="text"], input[type="tel"] {
    width: 100%;
    background-color: #2b2b2b;
    border: 1px solid #555;
    color: #f2f2f2;
    padding: 12px;
    border-radius: 8px;
    outline: none;
}
/* Troco (campo específico) */
#change-amount {
    width: 240px;
    max-width: 70%;
    margin-top: 10px;
}

.note-input {
    width: 70%;
    max-width: 420px;
}

.btn-primary {
    background-color: #c00;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.btn-primary:hover {
    background-color: #a00;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: #ffc107;
    color: #000;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.btn-secondary:hover {
    filter: brightness(0.95);
}

.btn-danger {
    background-color: #c00;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
}

.order-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 20px;
}

.pizza-card {
    background-color: rgba(43, 43, 43, 0.9);
    border: 1px solid #555;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.pizza-title {
    color: #ffc107;
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.price-row {
    margin-top: 10px;
    font-weight: 700;
    color: #fff;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.chip {
    background-color: #333;
    color: #ffc107;
    border: 1px solid #ffc107;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.9em;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: rgba(43, 43, 43, 0.98);
    border: 2px solid #c00;
    border-radius: 10px;
    padding: 20px;
    width: min(680px, 90vw);
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.modal-content h3 {
    color: #ffc107;
    font-family: 'Lobster', cursive;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.menu-category {
    margin-bottom: 30px;
}

.menu-subtitle {
    color: #ffc107;
    font-family: 'Lobster', cursive;
    font-size: 1.8em;
    margin: 10px 0 20px;
    text-align: center;
}

.menu-category h3 {
    color: #fff;
    border-bottom: 2px solid #c00; /* Vermelho do logo */
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.menu-category ul {
    list-style: none;
    padding: 0;
}

.menu-category li {
    padding: 12px 0;
    font-size: 1.1em;
    border-bottom: 1px dashed #555;
    line-height: 1.5;
}

.menu-category li strong {
    color: #ffc107; /* Amarelo da pizza */
}

.menu-category li:last-child {
    border-bottom: none;
}

#contact {
    max-width: 800px;
    margin: 40px auto;
    background-color: rgba(43, 43, 43, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    text-align: center;
}

#contact p {
    font-size: 1.2em;
    line-height: 1.6;
}

#contact a {
    color: #ffc107; /* Amarelo da pizza */
    text-decoration: none;
    font-weight: bold;
}

#contact a:hover {
    text-decoration: underline;
}

#order {
    max-width: 800px;
    margin: 40px auto;
    background-color: rgba(43, 43, 43, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.order-summary {
    background-color: rgba(43, 43, 43, 0.9);
    border: 1px solid #555;
    border-radius: 10px;
    padding: 16px;
    margin: 10px 0 20px;
}

.order-line {
    padding: 6px 0;
    border-bottom: 1px dashed #555;
    font-size: 1em;
}

.order-line:last-child {
    border-bottom: none;
}

.order-total {
    margin-top: 8px;
    font-weight: 700;
    color: #ffc107;
}

#order h2, #location h2 {
    color: #ffc107;
    font-family: 'Lobster', cursive;
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 25px;
}

#location {
    max-width: 800px;
    margin: 40px auto;
    background-color: rgba(43, 43, 43, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    text-align: center;
}

#location h2 {
    color: #ffc107;
}

#location iframe {
    width: 100%;
    border-radius: 10px;
    margin-top: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #000;
    color: #777;
    border-top: 3px solid #006400; /* Verde do logo */
}

/* ===== RESPONSIVIDADE ===== */

/* Menu hambúrguer */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffc107;
    margin: 3px 0;
    transition: 0.3s;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tablets (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .logo {
        max-width: 200px;
    }
    
    #tabs {
        gap: 8px;
        padding: 10px 15px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    #menu, #order, #contact, #location {
        margin: 20px auto;
        padding: 20px;
    }
    
    #menu h2, #contact h2, #order h2, #location h2 {
        font-size: 2em;
    }
    
    .menu-subtitle {
        font-size: 1.5em;
    }
    
    .menu-category h3 {
        font-size: 1.2em;
    }
    
    .menu-category li {
        font-size: 1em;
        padding: 10px 0;
    }
    
    .flavors-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 8px;
    }
    
    .checkbox {
        padding: 6px 8px;
        font-size: 0.9em;
    }
    
    .note-input {
        width: 92%;
        margin: 0 auto;
        display: block;
    }
}

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 15px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        font-size: 1.1em;
        border-radius: 8px;
    }
    
    .logo {
        max-width: 150px;
    }
    
    main {
        padding: 15px;
    }
    
    #menu, #order, #contact, #location {
        margin: 15px auto;
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    #menu h2, #contact h2, #order h2, #location h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    .menu-subtitle {
        font-size: 1.3em;
        margin: 15px 0;
    }
    
    .menu-category {
        margin-bottom: 25px;
    }
    
    .menu-category h3 {
        font-size: 1.1em;
        padding-bottom: 8px;
        margin-bottom: 12px;
    }
    
    .menu-category li {
        font-size: 0.95em;
        padding: 10px 0;
        line-height: 1.4;
    }
    
    /* Mobile-first flavor selection */
    .flavors-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-height: 60vh;
        overflow-y: auto;
        padding: 10px;
    }
    
    .checkbox {
        padding: 12px 15px;
        font-size: 1em;
        min-height: 44px; /* Touch-friendly height */
        border-radius: 10px;
        background-color: #444;
        border: 2px solid #666;
        transition: all 0.2s ease;
    }
    
    .checkbox:active {
        transform: scale(0.98);
        background-color: #555;
    }
    
    .checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
        cursor: pointer;
    }
    
    .checkbox span {
        font-size: 1em;
        line-height: 1.3;
    }
    
    /* Pizza card mobile optimization */
    .pizza-card {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .size-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio {
        justify-content: center;
        padding: 12px;
        min-height: 44px;
        border-radius: 10px;
        font-size: 1em;
    }
    
    .radio input[type="radio"] {
        width: 18px;
        height: 18px;
    }
    
    .chips {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .chip {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .btn-secondary, .btn-danger {
        width: 100%;
        padding: 14px 16px;
        font-size: 1em;
        margin: 5px 0;
        border-radius: 10px;
        min-height: 44px;
    }
    
    .btn-danger {
        margin-left: 0;
    }
    
    .btn-primary {
        width: 100%;
        padding: 16px;
        font-size: 1.1em;
        border-radius: 10px;
        min-height: 50px;
    }
    
    .order-actions {
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        margin: 15px 0 20px;
    }
    
    input[type="text"], input[type="tel"] {
        padding: 14px;
        font-size: 1em;
        border-radius: 10px;
        width: 92%;
        margin: 0 auto;
        display: block;
    }
    #change-amount {
        width: 75%;
        margin-top: 12px;
    }
    
    .note-input {
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .group-label {
        font-size: 1em;
        margin-bottom: 10px;
    }
    
    /* Modal mobile optimization */
    .modal-content {
        width: 95vw;
        max-height: 85vh;
        padding: 25px 20px;
        margin: 20px;
        border-radius: 15px;
    }
    
    .modal-content h3 {
        font-size: 1.4em;
        margin-bottom: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }
    
    .modal-actions button {
        width: 100%;
        padding: 14px;
        font-size: 1em;
        border-radius: 10px;
    }
    
    #location iframe {
        height: 300px;
        border-radius: 8px;
    }
    
    footer {
        padding: 15px;
        font-size: 0.9em;
    }
}

/* Small mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    .logo {
        max-width: 120px;
    }
    
    #menu h2, #contact h2, #order h2, #location h2 {
        font-size: 1.5em;
    }
    
    .menu-subtitle {
        font-size: 1.2em;
    }
    
    .menu-category h3 {
        font-size: 1em;
    }
    
    .menu-category li {
        font-size: 0.9em;
        padding: 8px 0;
    }
    
    .checkbox {
        padding: 10px 12px;
        font-size: 0.95em;
        min-height: 40px;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .modal-content h3 {
        font-size: 1.2em;
    }
    
    #location iframe {
        height: 250px;
    }
    input[type="text"], input[type="tel"] {
        width: 88%;
    }

    .note-input {
        width: 88%;
    }
    #change-amount {
        width: 80%;
        margin-top: 14px;
    }
}

/* Touch and interaction improvements */
@media (hover: none) and (pointer: coarse) {
    .checkbox:hover,
    .radio:hover,
    .tab-btn:hover {
        filter: none;
    }
    
    .checkbox:active,
    .radio:active,
    .tab-btn:active {
        transform: scale(0.98);
        filter: brightness(0.9);
    }
}

/* Landscape mobile optimization */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .nav-menu {
        padding-top: 60px;
    }
    
    .flavors-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 50vh;
    }
    
    .modal-content {
        max-height: 80vh;
    }
    
    #location iframe {
        height: 200px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Menu hambúrguer animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Smooth scrolling for mobile */
@media screen and (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        overflow-x: hidden;
    }
    
    /* Focus styles for accessibility */
    .checkbox:focus-within,
    .radio:focus-within {
        outline: 2px solid #ffc107;
        outline-offset: 2px;
    }
    
    .tab-btn:focus {
        outline: 2px solid #ffc107;
        outline-offset: 2px;
    }
    
    /* Enhanced touch feedback */
    .checkbox,
    .radio,
    .tab-btn,
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    /* Prevent zoom on double tap */
    .checkbox,
    .radio {
        touch-action: manipulation;
    }
    
    /* Better form input experience */
    input[type="text"],
    input[type="tel"] {
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        border-radius: 10px;
    }
    
    /* Loading state for buttons */
    .btn-primary.loading,
    .btn-secondary.loading {
        position: relative;
        color: transparent;
    }
    
    .btn-primary.loading::after,
    .btn-secondary.loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        top: 50%;
        left: 50%;
        margin-left: -10px;
        margin-top: -10px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spinner 0.8s linear infinite;
    }
    
    @keyframes spinner {
        to {
            transform: rotate(360deg);
        }
    }
}
