/* 1. RESET E BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Georgia", serif;
}

body {
    background-color: #f6f3e8;
    color: #1b3e35;
    line-height: 1.5;
    overflow-x: hidden;
}

/* 2. NAVBAR (Logo centralizada + Hamburguer na direita) */
.navbar {
    width: 100%;
    padding: 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-icon {
    width: 170px;
    height: 170px; /* deixa igual à largura */
    border-radius: 50%;
    object-fit: cover; /* evita distorção */
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 30px;
    color: #1b3e35;
    cursor: pointer;
}

/* 3. MENU HEADER */
.menu-header {
    text-align: center;
    padding: 40px 20px;
}

.menu-header h2 {
    font-size: 36px;
    margin-bottom: 5px;
}

.menu-header p {
    font-style: italic;
    opacity: 0.8;
}

/* 4. CONTAINER E CATEGORIAS */
.menu-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px 6px 40px;
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.menu-categories button {
    background: #fff;
    border: 1px solid #fbce45;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
    color: #1b3e35;
    font-weight: 500;
}

.menu-categories button.active,
.menu-categories button:hover {
    background: #1b3e35;
    color: white;
    border-color: #fbce45;
}

.section-title {
    font-size: 28px;
    margin: 40px 0 25px;
}

/* 5. ESTILO GRID (Para Destaques/Pratos) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.menu-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-5px);
}

.menu-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.card-header h3 {
    color: #1b3e35;
    font-size: 18px;
    line-height: 1.3;
}

.price {
    font-weight: bold;
    color: #b46a1e;
    white-space: nowrap;
    font-size: 18px;
}

.card-content p {
    font-size: 15px;
    color: #777;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* 6. ESTILO LISTA HORIZONTAL */
.list-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 16px 20px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid #eee;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.list-card img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
}

.list-info {
    flex: 1;
}

.list-info h3 {
    margin: 0;
    font-size: 18px;
}

.list-info p {
    margin-top: 6px;
    color: #777;
    font-size: 14px;
}

.price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* 7. BOTÕES DE ADICIONAR */
.add-btn {
    width: 100%;
    height: 52px;
    padding: 8px 18px;
    border-radius: 28px;
    border: 2px solid #fbce45;
    background: transparent;
    color: #1b3e35;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .25s ease;
    margin-top: auto;
}

.add-btn:hover {
    background: #fbce45;
    color: #fff;
}

/* 8. MENU LATERAL E OVERLAY */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 98;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: #fcfaf7;
    padding: 40px 20px;
    transition: 0.4s;
    z-index: 99;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.side-menu.active {
    right: 0;
}

.side-menu ul {
    list-style: none;
}

.side-menu li {
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.25s;
}

.side-menu li:hover {
    background: #e7dbd2;
    transform: translateX(6px);
}

.side-menu li.active {
    background: #d8c8bd;
    font-weight: 600;
}

.order-btn {
    width: 100%;
    background: #1b3e35;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
}

/* 9. MODAIS E CARRINHO */
.custom-modal-overlay,
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

.custom-modal-overlay {
    z-index: 200;
}

.cart-overlay {
    z-index: 130;
}

.custom-modal-overlay.active,
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    width: min(92%, 430px);
    background: #fcfaf7;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-modal h3 {
    color: #1b3e35;
    font-size: 24px;
    margin-bottom: 18px;
}

.modal-field {
    margin-bottom: 16px;
}

.modal-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1b3e35;
}

.prep-options {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.prep-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
}

#modalQuantity,
#customerName,
#deliveryMethod,
#paymentMethod,
#customerAddress {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    background: white;
    color: #1b3e35;
    outline: none;
}

#deliveryMethod,
#paymentMethod {
    cursor: pointer;
}

#customerAddress {
    resize: vertical;
    min-height: 110px;
}

#modalQuantity:focus,
#customerName:focus,
#deliveryMethod:focus,
#paymentMethod:focus,
#customerAddress:focus {
    border-color: #fbce45;
    box-shadow: 0 0 0 3px rgba(251, 206, 69, 0.18);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.primary-btn,
.secondary-btn {
    flex: 1;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 14px;
}

.primary-btn {
    border: none;
    background: #1b3e35;
    color: white;
}

.primary-btn:hover {
    opacity: 0.92;
}

.secondary-btn {
    border: 1px solid #ddd;
    background: white;
    color: #1b3e35;
}

.secondary-btn:hover {
    background: #f5f1e8;
}

/* CARRINHO */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: min(100%, 400px);
    height: 100%;
    background: #fcfaf7;
    z-index: 150;
    box-shadow: -8px 0 24px rgba(0,0,0,0.12);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px;
    border-bottom: 1px solid #ece7de;
}

.cart-header h2 {
    font-size: 24px;
    color: #1b3e35;
}

.cart-header button {
    border: none;
    background: none;
    font-size: 24px;
    color: #1b3e35;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}

.cart-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.cart-item h4 {
    font-size: 17px;
    color: #1b3e35;
    margin-bottom: 8px;
}

.cart-item p {
    font-size: 14px;
    color: #777;
    margin-bottom: 6px;
}

.remove-item-btn {
    margin-top: 10px;
    border: none;
    background: transparent;
    color: #b25c2f;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
}

.remove-item-btn:hover {
    text-decoration: underline;
}

.cart-footer {
    border-top: 1px solid #ece7de;
    padding: 20px;
    background: #fff;
}

.cart-footer p {
    margin-bottom: 14px;
    font-size: 17px;
    color: #1b3e35;
}

.empty-cart {
    text-align: center;
    color: #777;
    padding: 40px 10px;
    font-style: italic;
}

/* 10. RESPONSIVIDADE */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-container {
        padding: 30px 20px 60px;
    }
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-card img {
        height: 180px;
    }

    .list-card {
        flex-direction: row;
        padding: 10px;
    }

    .list-card img {
        width: 70px;
        height: 70px;
    }

    .custom-modal {
        width: calc(100% - 24px);
        padding: 20px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar.active {
        right: 0;
    }

    .cart-header h2 {
        font-size: 22px;
    }
}

.site-footer {
    text-align: center;
    padding: 24px 16px 30px;
    margin-top: 50px;
    color: #1b3e35;
    font-size: 14px;
    opacity: 0.9;
}

.site-footer p {
    margin: 0;
}

.redsociety-link {
    color: #950101;
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
    transition: 0.25s ease;
}

.redsociety-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}