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

body {
    display: flex;
    flex-direction: column;
    font-family: 'arial';
    opacity: 0;
    transition: opacity 0.6s ease;
    min-height: 100vh;
}

body.loaded {
    opacity: 1;
}



/* Header */
.container-inner {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.navbar {
    background-color: #2c2c2c;
    padding: 0.5rem;
    position: static;
    top: 0;
    box-shadow: 10px 0 10px;
    z-index: 99;
}

ul {
    display: flex;
    list-style-type: none;
}

ul h3 {
    color: #fff;
    cursor: pointer;
    margin-right: 1.5rem;
    font-size: 1.1rem;
    font-family: "Merriweather", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-weight: 300;
}

#user-nav {
    cursor: pointer;
    margin-right: 1.5rem;
    font-size: 1.1rem;
    font-family: "Merriweather", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-weight: 300;
}

#user-nav a {
    color: #fff;
}

#user-nav span {
    color: #fff;
}

ul a {
    text-decoration: none;

}

.hover-sair:hover {
    transform: translateY(-3px);
    transition: all 0.2s;
    display: inline-block;
}

nav ul li:hover:not(#user-nav) {
    transform: translateY(-3px);
    transition: all 0.2s;
    font-weight: bold;
}

.nav-icon-container {
    display: flex;
    align-items: center;
}

.nav-icon-container img {
    width: 75px;
    margin: 0;
    cursor: pointer;
    /* Quando o usuário passar o cursor sobre a imagem ele vira uma mãozinha */
}

.nav-icon-container img:first-child {
    margin-right: 1rem;
}

.navbar > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-header {
    line-height: 1.5rem;
    color: #926c15;
    font-weight: 450;
    text-align: center;
    padding-left: 1.5rem;
    font-family: "Merriweather", serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-size: 1.6rem;
}

.logo-header span {
    color: #fff;
    font-weight: 200;
    font-size: 1.1rem;
}

.menu-button {
    display: none;
}

header {
    background-image: radial-gradient(#fff, #c7c7c7);
    min-height: 80vh;
    height: auto;
    /* ocupa a tela toda */
    display: flex;
    justify-content: center;
    /* centraliza horizontalmente o conteúdo */
    align-items: center;
    /* centraliza verticalmente o conteúdo */
}

   

/* Conteiner Principal */
.container-principal {
    width: 85%;
    display: flex;
    justify-content: space-between;
    /* separa o texto e a imagem */
    align-items: center;
    /* alinha verticalmente */
    padding-top: 0;
    /* remove o padding que empurrava o conteúdo pra baixo */
}

main {
    flex: 1;
}

.container-left h2 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.container-left p {
    line-height: 1.5rem;
    margin-bottom: 1.5rem;
}

button {
    background-color: #926c15;
    border: none;
    cursor: pointer;
    padding: 0.8rem 3.8rem;
    border-radius: 9999px;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s;
}

.container-left button:hover {
    background-color: #76520e;
}

/* Produtos */
.cols-4 img {
    max-width: 100%;
}

.page-inner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cols-4 {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    justify-items: center;
}

.cols>* {
    cursor: pointer;
    transition: all 0.2s;
}

.cols>*:hover {
    transform: translateY(-5px);
}

.product {
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
    min-height: 380px;
    /* mantém todos os cards iguais */
    width: 260px;
    line-height: 1.4rem;
}

.product a {
    text-decoration: none;
    color: black;
}

.product-name {
    margin-top: 0.4rem;
    color: black;
}

.product img {
    width: 100%;
    height: 250px;
    /* MESMA ALTURA PARA TODAS */
    object-fit: contain;
}

.product img[src*="produto3"] {
    margin-left: -20px;
    /* empurra ela pra direita */
}

.product img[src*="produto5"] {
    margin-left: -20px;
    /* empurra ela pra direita */
}

.selection-title {
    text-align: center;
    margin-top: 4rem;
    font-size: 1.4rem;
}

.subtitle-underline {
    width: 100px;
    height: 5px;
    background-color: #926c15;
    border-radius: 9999px;
    margin: 8px auto 0 auto;
}

.rate {
    color: #926c15;
}

span {
    color: black;
}



footer {
    background-color: #2c2c2c;
    min-height: 220px;
    margin-top: auto;
    text-align: center;
    margin-top: 3.5rem;
}

footer p {
    font-size: 0.9rem;
    padding-top: 1rem;
    color: #fff;
}

footer a {
    color: #fff;
    text-decoration: none;
}

.redes-sociais {
    text-align: center;
}

html {
    scroll-behavior: smooth;
    /* Ao clicar no compre já a rolagem é lenta */
}



/* === Estilo do Carrinho === */
.cart-container {
    position: fixed;
    top: 0;
    right: -400px;
    /* Começa fora da tela */
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    padding: 15px;
    overflow-y: auto;
}

.cart-container.active {
    right: 0;
    /* Quando ativado, aparece */
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.close-cart {
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    margin-top: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    /* 🔥 ALINHA TUDO NO CENTRO */
    gap: 12px;
    margin-bottom: 22px;
}

.cart-item img {
    border-radius: 5px;
    width: 70px;
    /* largura fixa */
    height: 70px;
    /* altura fixa */
    object-fit: contain;
    /* mantém proporção SEM distorcer */
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 🔥 centraliza verticalmente */
    flex: 1;
    /* ocupa o espaço do meio */
}

.item-info p {
    font-size: 14px;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-actions .remove img {
    height: 35px;
}

.item-actions span {
    font-size: 18px;
}

.item-actions button {
    background-color: #fff;
    color: black;
    border: none;
    border-radius: 50%;
    /* deixa 100% arredondado (círculo) */
    width: 20px;
    /* largura fixa */
    height: 20px;
    /* altura fixa para ser círculo */
    font-size: 20px;
    cursor: pointer;
    display: inline-flex;
    /* para alinhar texto no centro */
    align-items: center;
    /* centralizar verticalmente */
    justify-content: center;
    /* centralizar horizontalmente */
    padding: 0;
    /* sem padding extra */
    user-select: none;
    /* evita seleção acidental */
    margin: 0 5px;
    /* espaçamento horizontal entre botões */
    box-sizing: border-box;
    /* garantir que width/height funcionem bem */
}

.cart-footer {
    border-top: 1px solid #ccc;
    padding-top: 10px;
    text-align: center;
}

#checkout-btn {
    margin-top: 1rem;
    background-color: #926c15;
    border: none;
    cursor: pointer;
    padding: 0.8rem 3.8rem;
    border-radius: 9999px;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s;
}

#checkout-btn:hover {
    background-color: #76520e;
}


.item-actions .decrease {
    font-size: 22px;
    border: 1px solid black;
    padding-bottom: 0.1rem;
}

.item-actions .increase {
    font-size: 20px;
    border: 1px solid black;
    padding-top: 0.1rem;
}

h3 {
    font-weight: 450;
}

.frete {
    font-weight: 750;
    font-style: normal;
    color: #08a045;
    font-size: 11px;
}

@media (max-width:900px) {
    * {
        box-sizing: border-box;
    }

    .header-inner-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .menu-button {
        display: block;
    }

    .show-menu nav {
        display: block;
    }

    .logo-header {
        padding-left: 0.5rem;
    }


    header {
        min-height: auto;
    }
    
    .navbar {
        position: fixed;
        width: 100%;
    }

    nav {
        display: none;
        position: fixed;
        text-align: center;
        top: 81px;
        left: 0;
        right: 0;
        width: 100%;
        /* ✅ nunca use 100vw */
        background: #2c2c2c;
        z-index: 9999;
        animation: slideDown .3s ease;
        overflow-x: hidden;
        border-radius: 9px;
    }

    nav ul {
        display: flex;
        list-style-type: none;
        align-items: center; /* Alinha verticalmente os textos */
        margin: 0;
        padding: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }


    nav ul li a {
        display: block;
        width: 100%;
    }

    nav ul li a h3 {
        margin: 0;
        padding: 1.2rem 2rem;
    }

    #user-nav {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        white-space: nowrap;
    }

    #user-nav p,
    #user-nav span,
    #user-nav a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    body {
        overflow-x: hidden;
        /* segurança extra */
    }

    .cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .container-principal img {
        padding-top: 3rem;
        max-width: 100%;
    }

    .container-principal {
        flex-direction: column;
        text-align: center;
        padding-top: 180px;
        padding-bottom: 60px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width:600px) {
    .navbar {
        position: fixed;
    }

    nav {
        display: none;
        position: fixed;
        top: 84px;
        left: 0;
        width: 100%; /* ✅ em vez de right: 0 */
        max-width: 100%; /* 🔥 segurança extra */
        background: #2c2c2c;
        z-index: 9999;
        overflow-x: hidden;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center; /* 🔥 centraliza todos os itens */
        width: 100%;
    }

    #user-nav a, 
    #user-nav span {
        width: auto !important;   /* Impede que ele tente ocupar a tela toda */
        display: inline-block !important; 
        padding: 0 5px !important; /* Remove aquele padding gigante de 2rem */
        margin: 0;
    }

    #user-nav {
        gap: 0; /* Ajuste o espaço entre o Olá e o Sair aqui se precisar */
        display: flex;
        justify-content: center;
        margin: 0;
        padding-bottom: 1rem;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        width: 100%;
    }

    nav ul li a h3 {
        margin: 0;
        padding: 1.2rem 2rem;
    }

    .logo-header {
        font-size: 1.3rem;
    }

    .logo-header span {
        font-size: 0.9rem;
    }

    .header-inner-content {
        padding: 0;
    }

    .container-principal {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .cart-container {
        width: 300px;
    }

    .nav-icon-container img {
        width: 70px;
    }

    .nav-icon-container img:first-child {
        margin-right: 0rem;
    }

    .cols-4 {
        grid-template-columns: repeat(1, 1fr);
    }

    footer {
        padding: 10px 10px;
        height: auto;
        min-height: unset;
    }

    footer p {
        font-size: 0.9rem;
        padding-top: 0.9rem;
        color: #fff;
    }
}