@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,400..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Stencil+Display:wght@800&display=swap");

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

body {
    background: #f0f0ea;
    color: #18261c;
    font-family: "Schibsted Grotesk", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

h1,
h2,
h3 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-variation-settings: "wdth" 86;
    color: #173b26;
    line-height: 1.05;
}

header {
    height: 72px;
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 40px;
    border-bottom: 1.5px solid #dcd9cc;
}

.logo {
    display: flex;
    align-items: center;
    color: #173b26;
    text-decoration: none;
    font-family: "Bricolage Grotesque", sans-serif;
    font-variation-settings: "wdth" 82;
    font-weight: 800;
    font-size: 25px;
}

.logo img {
    width: 40px;
    margin-right: 7px;
}

.logo span {
    color: #d9530a;
}

nav {
    display: flex;
    gap: 6px;
}

nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #4a5a4f;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.ativo {
    color: #173b26;
    background: #dfe8d3;
}

.perfil {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.2;
}

.perfil img {
    width: 26px;
}

.avatar {
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffe0c6;
    color: #173b26;
    font-weight: 800;
    border-radius: 50%;
}

.perfil b,
.perfil small {
    display: block;
}

.perfil small {
    color: #5f6d62;
    font-size: 12px;
}

@media (max-width: 1150px) {

    header {
        padding: 0 32px;
        gap: 16px;
    }

    nav a {
        padding: 9px 10px;
    }

    .perfil p {
        white-space: nowrap;
    }
}

@media (max-width: 960px) {

    .perfil p {
        display: none;
    }
}

@media (max-width: 800px) {

    
    header {
        height: auto;
        padding: 12px 16px 0;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    header nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

main {
    padding: 0 48px 80px;
}

.top-row {
    margin-top: 38px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 32px;
    align-items: end;
}

h1 {
    font-size: 72px;
    font-weight: 800;
}

.top-row p {
    margin-top: 10px;
    color: #4a5a4f;
    font-size: 17px;
}

.controls {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    gap: 12px;
}

.div-lupa {
    width: 320px;
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffefa;
    border: 1.5px solid #dcd9cc;
    border-radius: 14px 17px 13px 18px;
}

.Lupa {
    color: #173b26;
    font-size: 20px;
}

.entrada {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: #18261c;
}

.seletora {
    height: 48px;
    padding: 0 12px;
    background: #fffefa;
    border: 1.5px solid #dcd9cc;
    border-radius: 14px 17px 13px 18px;
    font-family: inherit;
    font-size: 15px;
    color: #18261c;
}

.banner {
    margin-top: 32px;
    padding: 28px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    background: #173b26;
    border-radius: 28px 32px 26px 30px;
}

.stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
}

.stat {
    padding: 0 32px;
    border-left: 2px dashed #3f6a50;
}

.stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.stat small {
    display: block;
    color: #cfe3d6;
    font-size: 14px;
    font-weight: 600;
}

.stat strong {
    display: block;
    font-family: "Big Shoulders Stencil Display", sans-serif;
    font-weight: 800;
    font-size: 54px;
    line-height: 1.1;
    white-space: nowrap;
    color: #f8f7f2;
}

.stat:last-child strong {
    font-family: "Permanent Marker", cursive;
    font-weight: 400;
    font-size: 44px;
    color: #ff6a14;
    transform: rotate(-3deg);
    transform-origin: left center;
}

.btn-primary {
    display: inline-block;
    padding: 16px 28px;
    text-decoration: none;
    background: #ff6a14;
    border: 0;
    border-radius: 12px 15px 11px 14px;
    box-shadow: 0 4px 0 #b84a0a;
    font-family: inherit;
    font-weight: 700;
    font-size: 17px;
    color: #173b26;
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary::after {
    content: " →";
}

section {
    margin-top: 40px;
}

section h2 {
    display: inline-block;
    margin-right: 12px;
    font-size: 32px;
    font-weight: 700;
}

section small,
section h2 span {
    color: #5f6d62;
    font-family: "Schibsted Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.card {
    margin-top: 14px;
    padding: 14px 28px;
    display: grid;
    grid-template-columns: 290px 1.1fr 0.9fr 0.9fr 0.9fr 200px 130px;
    align-items: center;
    column-gap: 16px;
    background: #fffefa;
    border: 1.5px solid #dcd9cc;
    border-radius: 16px 20px 14px 18px;
    box-shadow: 0 2px 0 #eceae0;
}

.card:has(.retirado),
.card:has(.recusado) {
    background: #fbfaf5;
    border: 1.5px dashed #c9c5b3;
    box-shadow: none;
}

.prod {
    display: flex;
    align-items: center;
    gap: 14px;
}

.prod img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.prod b {
    display: block;
    font-family: "Bricolage Grotesque", sans-serif;
    font-variation-settings: "wdth" 86;
    font-size: 22px;
    line-height: 1.1;
    color: #173b26;
}

.prod span {
    color: #5f6d62;
    font-size: 13px;
}

.col {
    color: #5f6d62;
    font-size: 14px;
    line-height: 1.35;
}

.col b {
    color: #173b26;
    font-size: 15px;
}

.col:nth-of-type(2) {
    color: #173b26;
    font-weight: 700;
}

.col:nth-of-type(2) span {
    color: #5f6d62;
    font-size: 13px;
    font-weight: 400;
}

.col:nth-of-type(3) b {
    font-family: "Big Shoulders Stencil Display", sans-serif;
    font-weight: 800;
    font-size: 28px;
}

.col:nth-of-type(4),
.col:nth-of-type(5) {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.col:nth-of-type(4) b,
.col:nth-of-type(5) b {
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
}

.badge {
    justify-self: start;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.aguardando {
    background: #fbe9bf;
    color: #9a6400;
}

.pronto {
    background: #dcefd9;
    color: #1f5a2b;
}

.retirado {
    background: #ecebe4;
    color: #4a5a4f;
}

.recusado {
    background: #fde0df;
    color: #b4352a;
}

.btn-ver {
    justify-self: end;
    padding: 10px 18px;
    text-align: center;
    text-decoration: none;
    background: transparent;
    border: 1.5px solid #173b26;
    border-radius: 12px 15px 11px 14px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    color: #173b26;
    white-space: nowrap;
    cursor: pointer;
}

.pronto + .btn-ver {
    background: #173b26;
    color: #f8f7f2;
}

.retirado + .btn-ver,
.recusado + .btn-ver {
    padding: 4px 0;
    border: 0;
    text-decoration: underline;
    text-decoration-color: #ff6a14;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

@media (max-width: 1150px) {

    main {
        padding: 0 32px 80px;
    }

    
    .top-row {
        grid-template-columns: 1fr;
    }

    .controls {
        grid-column: 1;
        grid-row: auto;
        margin-top: 24px;
    }

    .div-lupa {
        flex: 1;
        width: auto;
    }

    .banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats {
        width: 100%;
        grid-template-columns: repeat(3, auto);
        justify-content: space-between;
    }

    .card {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 14px;
    }

    
    .prod {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {

    main {
        padding: 0 16px 80px;
    }

    h1 {
        font-size: 54px;
    }

    .controls {
        flex-direction: column;
    }

    .banner {
        padding: 24px 20px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat,
    .stat:first-child {
        padding: 0;
        border-left: 0;
    }

    .stat strong {
        font-size: 48px;
    }

    .btn-primary {
        width: 100%;
    }

    .card {
        padding: 18px 20px;
        grid-template-columns: repeat(2, 1fr);
    }
}

button {
    font: inherit;
}

.mg-botao {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 900;
    width: 74px;
    height: 74px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #173b26;
    box-shadow: 0 14px 28px -10px rgba(10, 30, 15, .6);
    cursor: pointer;
    overflow: hidden;
    transition: transform .18s;
}

.mg-botao:hover {
    transform: translateY(-3px) rotate(-4deg);
}

.mg-botao img {
    width: 100%;
    height: 100%;
    display: block;
}

.mg-botao em {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 99px;
    background: #ff6a14;
    border: 3px solid #f8f7f2;
}

.mg-convite {
    position: fixed;
    right: 24px;
    bottom: 110px;
    z-index: 900;
    background: #d6ad73;
    color: #18261c;
    font-family: "Permanent Marker", "Comic Sans MS", cursive;
    font-size: 17px;
    padding: 9px 15px 7px;
    border-radius: 6px 9px 5px 10px;
    box-shadow: 0 10px 18px -12px rgba(70, 45, 10, .8);
    transform: rotate(-3deg);
}

.mg-convite b {
    position: absolute;
    right: 26px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #d6ad73;
    transform: rotate(45deg);
}

.mg-convite button {
    position: absolute;
    left: -10px;
    top: -10px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 99px;
    background: #173b26;
    color: #f8f7f2;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.mg-janela {
    position: fixed;
    right: 26px;
    bottom: 112px;
    z-index: 901;
    width: 390px;
    max-width: calc(100vw - 32px);
    height: min(600px, calc(100vh - 150px));
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: #f8f7f2;
    border: 2px solid #173b26;
    border-radius: 26px 32px 24px 30px/30px 24px 32px 26px;
    box-shadow: 0 30px 60px -28px rgba(10, 30, 15, .65);
}

.mg-janela.aberta {
    display: flex;
}

.mg-topo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #173b26;
    color: #f8f7f2;
}

.mg-topo img {
    width: 46px;
    height: 46px;
    flex: none;
}

.mg-topo b {
    display: block;
    font-family: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
    font-weight: 800;
    font-size: 19px;
    line-height: 1.1;
}

.mg-topo small {
    font-size: 12.5px;
    color: #aac3ae;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mg-topo small i {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: #86b83a;
    display: inline-block;
}

.mg-topo button {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 99px;
    background: rgba(248, 247, 242, .14);
    color: #f8f7f2;
    font-size: 17px;
    cursor: pointer;
}

.mg-conversa {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mg-fala {
    max-width: 88%;
    font-size: 14.8px;
    line-height: 1.45;
    padding: 12px 15px;
    border-radius: 18px 20px 18px 6px;
    background: #fffefa;
    border: 1.5px solid #dcd9cc;
    color: #18261c;
}

.mg-fala.eu {
    align-self: flex-end;
    background: #173b26;
    color: #f8f7f2;
    border-color: #173b26;
    border-radius: 20px 18px 6px 18px;
}

.mg-fala b {
    font-weight: 700;
}

.mg-fala .mg-ir {
    display: inline-flex;
    margin-top: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: #173b26;
    background: #ffe0c6;
    padding: 9px 14px;
    border-radius: 999px;
    text-decoration: none;
}

.mg-pensando {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 14px 16px;
}

.mg-pensando span {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: #5f6d62;
    animation: mgp 1s infinite;
}

.mg-pensando span:nth-child(2) {
    animation-delay: .16s;
}

.mg-pensando span:nth-child(3) {
    animation-delay: .32s;
}

@keyframes mgp {
    0%,
    60%,
    100% {
        opacity: .25;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.mg-sugestoes {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 16px 12px;
}

.mg-sugestoes button {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #173b26;
    background: #dfe8d3;
    border: 1.5px solid transparent;
    border-radius: 999px;
    padding: 8px 13px;
    cursor: pointer;
}

.mg-sugestoes button:hover {
    border-color: #173b26;
}

.mg-baixo {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1.5px solid #dcd9cc;
    background: #fffefa;
}

.mg-baixo input {
    flex: 1;
    min-width: 0;
    font-family: inherit;
    font-size: 15px;
    color: #18261c;
    background: #f8f7f2;
    border: 1.5px solid #c9c5b3;
    border-radius: 999px;
    padding: 12px 16px;
}

.mg-baixo input:focus {
    outline: none;
    border-color: #173b26;
    box-shadow: 0 0 0 3px rgba(255, 106, 20, .25);
}

.mg-baixo button {
    flex: none;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 99px;
    background: #ff6a14;
    color: #173b26;
    font-size: 19px;
    cursor: pointer;
}

.mg-rodape {
    font-size: 11.5px;
    color: #5f6d62;
    text-align: center;
    padding: 0 16px 10px;
    background: #fffefa;
}

@media (max-width: 520px) {

    .mg-janela {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 96px;
        height: min(560px, calc(100vh - 128px));
    }

    .mg-botao {
        right: 16px;
        bottom: 16px;
        width: 64px;
        height: 64px;
    }

    .mg-convite {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mg-botao,
    .mg-pensando span {
        transition: none;
        animation: none;
    }
}
