:root {
    --main-color: #ff5900;
    --black: #13131a;
    --bg: #000000;
    --border: 0.1rem solid rgba(0, 0, 0, 0.2);
    --card-bg: #1a1a22;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    transition: all 0.2s linear;
}

html {
    /* 1rem = 10px */
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    color: #fff;
    overflow-x: hidden;
}

/* Travada quando o carrinho está aberto, pra não rolar o fundo da página no mobile */
body.no-scroll {
    overflow: hidden;
}

section {
    padding: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.heading {
    text-align: center;
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.3rem;
    background: var(--main-color);
    border-radius: 1rem;
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #000000;
    border-bottom: #000000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
}

.logo img {
    height: 8rem;
    width: auto;
}

.navbar a {
    margin: 0 1.5rem;
    font-size: 1.6rem;
    color: #fff;
}

.navbar a:hover {
    color: var(--main-color);
    border-bottom: 0.2rem solid var(--main-color);
    padding-bottom: 0.5rem;
}

.icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.icon-svg {
    width: 2.5rem;
    height: 2.5rem;
    fill: #fff;
    cursor: pointer;
}

.icon-btn:hover .icon-svg {
    fill: var(--main-color);
}

.cart-icon-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -0.6rem;
    right: -0.8rem;
    background: var(--main-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    min-width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 0.3rem;
}

.menu-btn {
    background: none;
    display: none;
    cursor: pointer;
}

/* --- HOME SECTION --- */
.home-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("./img/bg.jpg") no-repeat center/cover;
}

.home-container .content {
    max-width: 60rem;
}

.home-container .content h3 {
    font-size: 4.5rem;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
}

.home-container .content p {
    font-size: 1.5rem;
    color: #ccc;
    padding: 1rem 0 2rem;
    line-height: 1.8;
}

.btn {
    display: flex;
    background: var(--main-color);
    color: #fff;
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0.5rem;
    justify-content: center;
}

.btn:hover {
    letter-spacing: 0.1rem;
    background: #e04e00;
}

/* --- CARDÁPIO --- */
.menu-container {
    padding-top: 5rem;
}

.menu-search-wrap {
    max-width: 45rem;
    margin: 0 auto 3rem;
}

.menu-search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.5rem;
    background: var(--card-bg);
    color: #fff;
    border-radius: 0.5rem;
    border: 0.1rem solid #2c2c36;
}

.menu-search-input::placeholder {
    color: #888;
}

.menu-search-input:focus {
    border-color: var(--main-color);
}

.menu-empty-search {
    display: none;
    text-align: center;
    color: #999;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

.menu-category-title {
    font-size: 2.2rem;
    color: var(--main-color);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-left: 0.4rem solid var(--main-color);
    padding-left: 1rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
    gap: 1.5rem;
}

.menu-item {
    background: var(--card-bg);
    border: 0.1rem solid #2c2c36;
    border-radius: 0.8rem;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
}

.menu-item:hover {
    border-color: var(--main-color);
    transform: translateY(-0.3rem);
}

.menu-item-info .nome-produto {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.menu-item-desc {
    font-size: 1.3rem;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.menu-item-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--main-color);
}

.btn-add-cart {
    background: transparent;
    border: 0.15rem solid var(--main-color);
    color: var(--main-color);
    padding: 1rem;
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 0.5rem;
    cursor: pointer;
}

.btn-add-cart:hover {
    background: var(--main-color);
    color: #fff;
}

/* --- ENDEREÇO --- */
.address-container {
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.address-content {
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
    background: var(--card-bg);
    border-radius: 0.8rem;
    padding: 3rem;
}

.address-content p {
    font-size: 1.6rem;
    line-height: 2.2;
    color: #ddd;
}

.footer {
    text-align: center;
    padding: 2rem;
    font-size: 1.3rem;
    color: #777;
    border-top: 0.1rem solid #1f1f27;

}

/* --- CARRINHO (GAVETA LATERAL) --- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 38rem;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh; /* respeita a barra de endereço do navegador mobile */
    background: var(--black);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    box-shadow: -0.5rem 0 2rem rgba(0, 0, 0, 0.5);
    transform: translateX(100%); /* sempre 100% do próprio tamanho, não depende de rem */
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 0.1rem solid #2c2c36;
}

.cart-header h3 {
    font-size: 2rem;
}

.cart-close {
    background: none;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
    line-height: 1;
}

.cart-close:hover {
    color: var(--main-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.cart-empty-msg {
    color: #999;
    font-size: 1.4rem;
    text-align: center;
    margin-top: 3rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "info remove"
        "qty subtotal";
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 1.5rem 0;
    border-bottom: 0.1rem solid #232330;
}

.cart-item-info {
    grid-area: info;
}

.cart-item-name {
    font-size: 1.5rem;
}

.cart-item-price {
    font-size: 1.2rem;
    color: #999;
}

.cart-item-qty {
    grid-area: qty;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    background: #2c2c36;
    color: #fff;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 1.4rem;
}

.qty-btn:hover {
    background: var(--main-color);
}

.cart-item-subtotal {
    grid-area: subtotal;
    justify-self: end;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--main-color);
}

.cart-item-remove {
    grid-area: remove;
    justify-self: end;
    background: none;
    color: #999;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.cart-item-remove:hover {
    color: var(--main-color);
}

.cart-footer {
    padding: 2rem;
    border-top: 0.1rem solid #2c2c36;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.cart-checkout-btn {
    width: 100%;
    text-align: center;
    background: #25D366;
}

.cart-checkout-btn:hover {
    background: #1ebe57;
}

.cart-checkout-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* --- RESPONSIVIDADE (MEDIA QUERIES) --- */

/* Tablets e notebooks menores */
@media (max-width: 991px) {
    html {
        font-size: 55%;
    }
}

/* Dispositivos Móveis (Smartphones) */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--black);
        border-top: var(--border);
        border-bottom: var(--border);
        display: flex;
        flex-direction: column;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Esconde o menu */
        transition: 0.3s ease;
    }

    .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Mostra o menu */
    }

    .navbar a {
        display: block;
        margin: 1.5rem 2rem;
        font-size: 2rem;
    }

    .home-container .content h3 {
        font-size: 3.5rem;
    }

    .cart-drawer {
        width: 100vw;
    }
}

/* Telas muito pequenas */
@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
}
#ppk {
    font-size: 16px;
    color: #ffffff;

}

