@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');


:root {
    --creme: #F2E4C9;
    --creme-claro: #F2E4C9;
    --marrom: #531c13;
    --marrom-escuro: #24140f;
    --dourado: #a87920;
    --branco: #ffffff;
    --preto: #17120f;
    --margem-site: 48px;
}


/* =========================
   RESET
========================= */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family: "DM Sans", Arial, sans-serif;
    background: var(--creme);
    color: var(--marrom);
}


img {
    display: block;
    max-width: 100%;
}


a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   HEADER
========================= */

.header {
    height: 74px;
    background: var(--creme-claro);
    display: flex;
    align-items: center;
    padding: 0 48px;
    position: relative;
    z-index: 10;
}


/* CABEÇALHO DA CONTA */

.site-header {
    width: 100%;
    height: 74px;
    background: var(--creme-claro);
    position: relative;
    z-index: 10;
}


.header-inner {
    width: 100%;
    height: 74px;
    padding: 0 48px;

    display: flex;
    align-items: center;
}


.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.site-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    display: block;
}


/* LOGO + NOME DA MARCA */

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


.header-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
}


.header-name {
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--marrom);
    line-height: 1;
}


/* =========================
   NAVEGAÇÃO
========================= */

.nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 34px;

    font-size: 14px;
    font-weight: 500;
}


.nav a {
    position: relative;
    white-space: nowrap;
}


.nav a:first-child::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -9px;

    height: 1px;

    background: var(--marrom);
}


/* LINK DA CONTA */

.account-link {
    position: relative;
    white-space: nowrap;
}


/* =========================
   SACOLA
========================= */

.bag {
    width: 22px;
    height: 25px;
}


.header-bag {
    margin-left: 35px;

    display: flex;
    align-items: center;

    gap: 5px;

    white-space: nowrap;
}


.bag-icon {
    width: 22px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    line-height: 1;
}


.bag-count {
    font-size: 12px;
    line-height: 1;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: var(--creme-claro);
    color: var(--marrom);

    padding: 40px 5%;
}


.footer-inner {
    max-width: 1200px;

    margin: 0 auto;
}


.footer-top {
    display: grid;

    grid-template-columns: 1fr auto;

    align-items: center;

    gap: 50px;
}


/* =========================
   FOOTER DA CONTA
========================= */

.site-footer {
    background: var(--creme-claro);
    color: var(--marrom);

    padding: 40px 5%;
}


.site-footer .footer-inner {
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr auto;

    align-items: center;

    gap: 50px;
}


/* =========================
   MENU DO RODAPÉ
========================= */

.site-footer .footer-nav {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 28px;

    font-size: 13px;

    white-space: nowrap;
}


.site-footer .footer-nav a {
    color: var(--marrom);

    text-decoration: none;

    transition: opacity 0.2s ease;
}


.site-footer .footer-nav a:hover {
    opacity: 0.6;
}


/* =========================
   INSTAGRAM + LOGO
========================= */

.site-footer .footer-brand {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 25px;
}


/*
   O HTML atual coloca a LOGO antes
   do link do Instagram.

   Aqui invertemos visualmente a ordem:
   Instagram → Logo
*/

.site-footer .footer-brand > a {
    order: 1;

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 13px;

    white-space: nowrap;

    color: var(--marrom);

    text-decoration: none;

    transition: opacity 0.2s ease;
}


.site-footer .footer-brand > img {
    order: 2;
}


/* =========================
   ÍCONE DO INSTAGRAM
========================= */

/*
   O HTML atual não possui o SVG do Instagram.
   Então criamos o ícone aqui pelo CSS.
*/

.site-footer .footer-brand > a::before {
    content: "";

    width: 17px;
    height: 17px;

    flex-shrink: 0;

    display: block;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='%23531c13' stroke-width='1.7'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='%23531c13' stroke-width='1.7'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%23531c13'/%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position: center;

    background-size: contain;
}


.site-footer .footer-brand > a:hover {
    opacity: 0.65;
}


/* =========================
   LOGO DO RODAPÉ
========================= */

.site-footer .footer-logo {
    width: 105px;
    height: 65px;

    object-fit: contain;

    object-position: center;
}


/* =========================
   FOOTER ANTIGO
========================= */

.footer-instagram {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 13px;

    white-space: nowrap;

    text-align: right;

    color: var(--marrom);

    text-decoration: none;
}


.instagram-icon {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;
}


.footer-instagram:hover {
    opacity: 0.65;
}


.footer-logo {
    width: 105px;
    height: 65px;

    object-fit: contain;

    object-position: center;
}


/* =========================
   PARTE INFERIOR
========================= */

.footer-bottom {
    border-top: 1px solid rgba(90, 24, 15, 0.25);

    margin-top: 30px;

    padding-top: 17px;

    display: flex;

    justify-content: space-between;

    font-size: 11px;

    color: var(--marrom);
}


/* =========================
   RESPONSIVO
========================= */

@media (max-width: 800px) {

    .header,
    .header-inner {
        padding: 0 24px;
    }


    .nav {
        gap: 18px;

        font-size: 13px;
    }


    .header-bag {
        margin-left: 18px;
    }


    .site-footer .footer-inner {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .site-footer .footer-brand {
        justify-content: flex-start;
    }

}


@media (max-width: 600px) {

    .header,
    .site-header {
        height: 68px;
    }


    .header-inner {
        height: 68px;

        padding: 0 18px;
    }


    .site-logo,
    .header-logo {
        width: 48px;
        height: 48px;
    }


    .nav {
        gap: 12px;

        font-size: 12px;
    }


    .nav a:nth-child(3),
    .nav a:nth-child(4) {
        display: none;
    }


    .header-bag {
        margin-left: 10px;
    }


    .site-footer {
        padding: 30px 20px;
    }


    .site-footer .footer-inner {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .site-footer .footer-brand {
        justify-content: flex-start;

        flex-wrap: wrap;
    }

}

/* =========================
   LOGO NOVA — HEADER GLOBAL
   Aplicada em todo o site
========================= */
.header-logo,
.site-logo {
    content: url("../imagens/logo-cerradense-header.svg");
    width: 190px !important;
    height: auto !important;
    max-height: 58px !important;
    object-fit: contain;
}

.header-name {
    display: none !important;
}

@media (max-width: 900px) {
    .header-logo,
    .site-logo {
        width: 150px !important;
        max-height: 52px !important;
    }
}

@media (max-width: 600px) {
    .header-logo,
    .site-logo {
        width: 125px !important;
        max-height: 48px !important;
    }
}
