/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #f5f6f8;
    color: #333;
}

/* ================= HEADER ================= */

.header-top {
    background: #0086ff;
    padding: 10px 0;
    /* 🔥 reduzido */
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* LOGO */
.logo {
    flex: 1 1 auto;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.logo img {
    height: 36px;
    /* 🔥 menor */
    object-fit: contain;
}

/* BUSCA */
.search-box {
    flex: 2 1 400px;
}

.search-box form {
    display: flex;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 6px 0 0 6px;
}

.search-box button {
    background: #ff6500;
    border: none;
    color: #fff;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
}

/* USUÁRIO */
.usuario-logado {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

.usuario-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.usuario-menu {
    display: none;
    position: absolute;
    top: 35px;
    right: -80;
    background: #0086ff;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
}

.usuario-menu a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.usuario-menu a:hover {
    background: #02215d;
}

/* AÇÕES */
.header-actions {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.header-actions a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-actions a i {
    font-size: 16px;
}

/* MENU */
.header-menu {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.header-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 12px 0;
}

.header-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.2s;
}

.header-menu a:hover {
    color: #0086ff;
}

/* BOTÃO HAMBURGUER */
.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* ================= MAIN ================= */

main {
    padding: 20px 0;
}

/* BANNER */
.banner {
    background: linear-gradient(90deg, #0086ff, #00c6ff);
    color: #fff;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.banner h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.banner p {
    font-size: 16px;
}

/* CARRINHO */
.carrinho-card {
    border-radius: 12px;
    transition: all 0.2s ease;
}

.carrinho-card:hover {
    transform: scale(1.01);
}

.carrinho-img {
    max-height: 80px;
    object-fit: contain;
}

.fw-bold {
    font-weight: 600;
}

/* ================= PRODUTOS ================= */

.produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.produto-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    transition: 0.2s;
    cursor: pointer;
    border: 1px solid #eee;
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.produto-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.produto-nome {
    font-size: 14px;
    margin: 10px 0;
    height: 40px;
    overflow: hidden;
}

.produto-preco {
    color: #00a650;
    font-size: 18px;
    font-weight: bold;
}

.pedidos-container {
    max-width: 950px;
    margin: 30px auto;
}

.pedido-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    transition: transform 0.2s ease;
}

.pedido-card:hover {
    transform: translateY(-3px);
}

.pedido-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pedido-info strong {
    font-size: 16px;
}

.pedido-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    width: fit-content;
}

.pedido-acoes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* BOTÃO PADRÃO */
.btn {
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* DETALHES */
.btn-detalhes {
    background: #0086ff;
    color: #fff;
}

.btn-detalhes:hover {
    background: #006edc;
}

/* PAGAMENTO */
.btn-pagar {
    background: #10b981;
    color: #fff;
    font-weight: bold;
}

.btn-pagar:hover {
    background: #0e9e6e;
}

.vazio {
    text-align: center;
    margin-top: 50px;
    color: #777;
}

/* ================= FOOTER ================= */
.footer {
    background: #0f172a;
    color: #fff;
    padding: 50px 20px 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #38bdf8;
}

.footer-col p {
    font-size: 14px;
    color: #cbd5f5;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col ul li i {
    margin-right: 8px;
    color: #38bdf8;
}

.footer-col ul li a {
    color: #cbd5f5;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #38bdf8;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
    color: #fff;
    font-size: 16px;
    background: #1e293b;
    padding: 10px;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #38bdf8;
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}


/* ================= RESPONSIVO ================= */

/* TABLET */
@media (max-width: 900px) {

    .header-menu ul {
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .header-top {
        padding: 8px 0;
    }

    .header-top .container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo {
        flex: 1 1 100%;
        text-align: center;
    }

    .search-box {
        flex: 1 1 100%;
        order: 3;
        margin: 5px 0;
    }

    .search-box input {
        padding: 8px;
    }

    .header-actions {
        flex: 1 1 100%;
        justify-content: space-between;
        order: 2;
    }

    .menu-toggle {
        display: block;
        padding: 10px 0;
    }

    .header-menu nav {
        display: none;
        width: 100%;
    }

    .header-menu nav.active {
        display: block;
    }

    .header-menu ul {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .header-menu li {
        padding: 10px;
        border-bottom: 1px solid #eee;
    }

    .footer {
        text-align: center;
    }

    .social-icons a {
        margin: 5px;
    }
}

/* MOBILE PEQUENO */
@media (max-width: 600px) {

    .logo a {
        font-size: 16px;
    }

    .produto-img {
        height: 140px;
    }

    .produto-preco {
        font-size: 16px;
    }

    .pedido-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .pedido-acoes {
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media print {
    .navbar {
        display: none !important;
    }
}