/* GERAL */
:root {
    --primary-color: #FFA500; /* Laranja */
    --dark-bg: #121212;
    --content-bg: #1E1E1E;
    --text-color: #FFFFFF;
    --light-gray: #B3B3B3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.max-width {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HEADER */
.header {
    background-color: var(--content-bg);
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}


.header-info p {
    font-size: 0.9rem;
    color: var(--light-gray);
    text-align: right;
}

/* MAIN CONTENT & MENU */
main {
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.main-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.menu-category {
    margin-bottom: 2.5rem;
}

.menu-category h3 {
    font-size: 1.5rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 0.8rem;
    margin-bottom: 1.5rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr; /* Uma coluna por padrão */
    gap: 1.5rem;
}

.menu-item {
    background-color: var(--content-bg);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(255, 165, 0, 0.1);
}

.item-info {
    flex-grow: 1;
}

.item-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.item-description {
    font-size: 0.85rem;
    color: var(--light-gray);
    display: block;
    margin-top: 4px;
}

.item-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.item-price {
    font-weight: bold;
    font-size: 1.1rem;
}

.add-to-cart-btn {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 0.7rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background-color: #ffc107;
}

/* FLOATING CART BUTTON */
.cart-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-bg);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    z-index: 999;
}

.cart-btn:hover {
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    font-size: 0.8rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--content-bg);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modal-title {
    color: var(--primary-color);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* CART MODAL CONTENT */
.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.cart-item-info p {
    font-weight: bold;
}

.cart-item-info span {
    font-size: 0.9rem;
    color: var(--light-gray);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
}

.customization {
    margin-top: 0.5rem;
}

.customization textarea {
    width: 100%;
    background-color: #333;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    color: var(--text-color);
    padding: 0.5rem;
    font-size: 0.9rem;
    resize: vertical;
}

.cart-summary {
    margin-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
}

.cart-summary p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.cart-summary p.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* FORM STYLES */
#order-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--light-gray);
    background-color: #333;
    color: var(--text-color);
    font-size: 1rem;
}

.order-summary {
    background-color: #2a2a2a;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}
.order-summary h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.order-summary p {
    display: flex;
    justify-content: space-between;
}

/* BUTTONS */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

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

.btn-primary:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
}

/* POPUP DE "ADICIONADO AO CARRINHO" */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.popup.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* ESTILOS DE NOTIFICAÇÃO */
#notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.notification {
    padding: 12px 20px;
    border-radius: 6px;
    color: var(--text-color);
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    animation: slideIn 0.5s ease forwards, slideOut 0.5s ease 2.5s forwards;
    opacity: 0;
}

.notification.success {
    background-color: #28a745; /* Verde */
}

.notification.remove {
    background-color: #dc3545; /* Vermelho */
}

.notification.info {
    background-color: #17a2b8; /* Azul */
}


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

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

/* RESPONSIVE */
@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr); /* Duas colunas em telas maiores */
    }
}

@media (max-width: 768px) {
    .max-width {
        padding: 0 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo {
        text-align: center;
    }

    .header-info {
        text-align: center;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .cart-btn {
        bottom: 1rem;
        right: 1rem;
    }

    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .item-action {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}