/* ================================
   Estilos do Header e Navegação
================================ */

/* Container do header */
.header-container-full {
    width: 100%;
    background-color: rgba(233, 213, 177, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Quando rolar a página, o header pode mudar de aparência */
.header-container-full.scrolled {
    background-color: rgba(233, 213, 177, 0.98);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Estilos para o conteúdo do header */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

/* Estilo para o logo */
.logo {
    display: flex;
    align-items: center;
    /* transition: transform 0.3s ease; */
}

/* .logo:hover {
    transform: scale(1.05);
} */

.logo img {
    max-height: 40px;
    width: auto;
}

/* Estilos para o botão do menu mobile */
.mobile-menu-toggle {
    display: flex;
    position: relative;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

/* Ícone hamburger do menu mobile */
.mobile-menu-toggle .menu-icon {
    width: 24px;
    height: 2px;
    background: #613108;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    position: relative;
    display: block;
}

.mobile-menu-toggle .menu-icon::before,
.mobile-menu-toggle .menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #613108;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    left: 0;
}

.mobile-menu-toggle .menu-icon::before {
    transform: translateY(-8px);
}

.mobile-menu-toggle .menu-icon::after {
    transform: translateY(8px);
}

/* Animação do ícone hamburger para X */
.mobile-menu-toggle.active .menu-icon {
    background: transparent;
}

.mobile-menu-toggle.active .menu-icon::before {
    transform: translateY(0) rotate(45deg);
}

.mobile-menu-toggle.active .menu-icon::after {
    transform: translateY(0) rotate(-45deg);
}

/* Menu mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: #fff;
    z-index: 1002;
    transition: left 0.3s ease;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.mobile-menu.show {
    left: 0;
}

/* Header do menu mobile */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: #f9f5eb;
}

.mobile-menu-logo {
    flex: 1;
}

.mobile-menu-close {
    font-size: 22px;
    cursor: pointer;
    color: #613108;
    padding: 5px;
}

/* Navegação mobile */
.mobile-menu-nav {
    padding: 15px;
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav li {
    margin-bottom: 15px;
}

.mobile-menu-nav li a {
    display: block;
    color: #613108;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-menu-nav li a:hover {
    background-color: #f9f5eb;
    padding-left: 10px;
}

/* Menu principal (desktop) */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li a {
    color: #613108;
    font-weight: 500;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

/* Efeito de underline para links do menu */
.main-nav li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #613108;
    transition: width 0.3s ease;
}

.main-nav li a:hover {
    color: #8B5A2B;
}

.main-nav li a:hover::after {
    width: 100%;
}

/* Estilos para o carrinho */
.cart-icon {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

/* Badge do contador de itens no carrinho */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #613108;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
}

/* Estilos para o dropdown do carrinho */
.cart-dropdown {
    position: absolute;
    right: 0;
    top: 88% !important;
    width: 350px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1001;
    overflow: hidden;
    margin-top: 10px;
}

.cart-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cabeçalho do dropdown do carrinho */
.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: #f9f5eb;
}

.cart-dropdown-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.cart-dropdown-close {
    font-size: 20px;
    cursor: pointer;
    color: #613108;
    transition: transform 0.2s ease;
}

.cart-dropdown-close:hover {
    transform: scale(1.1);
}

/* Corpo do dropdown do carrinho */
.cart-dropdown-body {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

/* Itens do carrinho */
.cart-items {
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 10px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.cart-item-price {
    font-weight: bold;
    color: #613108;
    font-size: 14px;
    margin-bottom: 5px;
}

/* Ações de itens do carrinho (quantidade e remover) */
.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity {
    margin: 0 8px;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.remove-btn:hover {
    color: #ff0000;
    transform: scale(1.1);
}

/* Total e ações do carrinho */
.cart-dropdown-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding: 10px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.cart-dropdown-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.cart-dropdown-actions .btn-primario,
.cart-dropdown-actions .btn-outline {
    flex: 1;
    text-align: center;
    margin: 0 5px;
    font-size: 14px;
    padding: 10px 0;
    text-transform: uppercase;
}

/* Estilos para carrinho vazio */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
}

.cart-empty-icon {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 15px;
}

.cart-empty p {
    margin-bottom: 20px;
    color: #999;
}

/* Efeito de smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Ajustar posição do scroll para compensar o header fixo */
#produtos,
#sobre,
#contato {
    scroll-margin-top: 80px;
}

/* Estilos para notificações */
.notification {
    position: fixed;
    top: 70px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

/* Overlay para o menu mobile */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Media queries para responsividade */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        /* Esconder o menu principal em tablet */
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 10px 15px;
    }

    /* Ajustar posicionamento do menu e carrinho em mobile */
    .cart-dropdown {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        top: 58px !important;
        margin-top: 0;
        height: calc(100vh - 70px);
        border-radius: 0;
    }

    .cart-dropdown-body {
        max-height: calc(100vh - 70px - 50px);
    }

    /* Ajustar menu mobile para tela cheia */
    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }

    /* Ajustes para items do carrinho em mobile */
    .cart-dropdown-actions {
        position: sticky;
        bottom: 0;
        background-color: white;
        padding: 15px;
        margin-top: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    .logo img {
        max-height: 30px;
    }

    .mobile-menu-toggle,
    .cart-icon {
        transform: scale(0.9);
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
        margin: 0 auto 10px;
    }

    .cart-item-info h4 {
        text-align: center;
    }

    .cart-item-price {
        text-align: center;
    }

    .cart-item-actions {
        justify-content: space-around;
        margin-top: 10px;
    }

    .notification {
        width: 90%;
        left: 5%;
        right: 5%;
        text-align: center;
    }
}

/* Animações para transições suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cart-dropdown.show {
    animation: fadeIn 0.3s ease forwards;
}

.cart-dropdown.show .cart-item {
    animation: slideIn 0.3s ease forwards;
}

.mobile-menu.show .mobile-menu-nav li {
    animation: slideInLeft 0.3s ease forwards;
}

/* Delay para itens do menu mobile */
.mobile-menu.show .mobile-menu-nav li:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu.show .mobile-menu-nav li:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-menu.show .mobile-menu-nav li:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-menu.show .mobile-menu-nav li:nth-child(4) {
    animation-delay: 0.4s;
}

/* Animação de pulse para feedback visual */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.3s ease;
}



/* Exibir ícone de menu apenas para dispositivos móveis */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Personalização do scroll vertical do menu do carrinho */

/* Para navegadores WebKit (Chrome, Safari, etc.) */
.cart-dropdown-body::-webkit-scrollbar {
    width: 8px;
}

.cart-dropdown-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cart-dropdown-body::-webkit-scrollbar-thumb {
    background: #613108;
    border-radius: 4px;
}

.cart-dropdown-body::-webkit-scrollbar-thumb:hover {
    background: #8B5A2B;
}

/* Para Firefox */
.cart-dropdown-body {
    scrollbar-width: thin;
    scrollbar-color: #613108 #f1f1f1;
}



@media (min-width: 992px) {

    /* Garante que o container do header seja referência para posicionamento absoluto */
    .header-content {
        position: relative;
    }

    /* Centraliza os links horizontal e verticalmente */
    .main-nav {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}


/* Animação dinâmica de transparência do header */
.header-container-full {
    /* Define uma variável de opacidade inicial */
    --header-alpha: 0.95;
    /* Utiliza a variável para definir a cor de fundo de forma dinâmica */
    background-color: rgba(233, 213, 177, var(--header-alpha)) !important;
    /* Garante que a transição seja suave */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}








/* cart-dropdown.css - Versão Compacta */

/* Estrutura principal do dropdown */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    border: 1px solid #E8DBC5;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cabeçalho compacto */
.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #8B5A2B;
    color: white;
    border-radius: 5px 5px 0 0;
}

.cart-dropdown-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.cart-dropdown-close {
    font-size: 18px;
    cursor: pointer;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-dropdown-close:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Corpo do carrinho */
.cart-dropdown-body {
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #FFF5E0;
    max-height: 300px;
    scrollbar-width: thin;
    scrollbar-color: #8B5A2B #E8DBC5;
}

/* Barra de rolagem fina */
.cart-dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.cart-dropdown-body::-webkit-scrollbar-track {
    background: #E8DBC5;
    border-radius: 3px;
}

.cart-dropdown-body::-webkit-scrollbar-thumb {
    background-color: #8B5A2B;
    border-radius: 3px;
}

/* Item individual do carrinho */
.cart-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #E8DBC5;
    position: relative;
    transition: background-color 0.2s;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Imagem compacta */
.cart-item-image {
    width: 45px;
    height: 45px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Informações do item - compactas */
.cart-item-info {
    flex: 1;
    min-width: 0;
    /* Evita overflow horizontal */
    display: flex;
    flex-direction: column;
}

.cart-item-info h4 {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 600;
    color: #613108;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-price {
    font-size: 11px;
    font-weight: 600;
    color: #8B5A2B;
    margin-bottom: 5px;
}

/* Ações em linha */
.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

/* Controle de quantidade compacto */
.quantity-control {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #E8DBC5;
}

.quantity-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: none;
    cursor: pointer;
    font-size: 11px;
    color: #8B5A2B;
    padding: 0;
}

.quantity {
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: #613108;
    min-width: 14px;
    text-align: center;
}

/* Botão de remover compacto */
.remove-btn {
    background: none;
    border: none;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D0A872;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 11px;
    padding: 0;
}

.remove-btn:hover {
    color: #C14A4A;
    background-color: rgba(193, 74, 74, 0.1);
}

/* Total do carrinho */
.cart-dropdown-total {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #F2E8D8;
    font-weight: 600;
    border-top: 1px solid #E8DBC5;
}

.total-label {
    font-size: 13px;
    color: #613108;
}

.total-value {
    font-size: 13px;
    color: #613108;
}

/* Ações do carrinho (botões em linha) */
.cart-dropdown-actions {
    display: flex;
    padding: 10px;
    gap: 8px;
    background-color: #FFF5E0;
}

.cart-dropdown-actions .btn-outline,
.cart-dropdown-actions .btn-primario {
    flex: 1;
    padding: 8px 0;
    font-size: 12px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-dropdown-actions .btn-outline {
    border: 1px solid #8B5A2B;
    color: #8B5A2B;
    background-color: transparent;
}

.cart-dropdown-actions .btn-primario {
    background-color: #8B5A2B;
    color: white;
    border: none;
}

/* Carrinho vazio */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    text-align: center;
}

.cart-empty-icon {
    font-size: 30px;
    color: #D6C6A8;
    margin-bottom: 10px;
}

.cart-empty p {
    color: #8B5A2B;
    margin-bottom: 15px;
    font-size: 13px;
}

.cart-empty .btn-primario {
    padding: 8px 15px;
    font-size: 12px;
    background-color: #8B5A2B;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
}

/* Efeito de seta para o dropdown */
.cart-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #8B5A2B;
}

/* Responsividade */
@media (max-width: 400px) {
    .cart-dropdown {
        width: 280px;
        right: -5px;
    }

    .cart-dropdown::before {
        right: 10px;
    }

    .cart-item-info h4 {
        font-size: 11px;
    }

    .cart-item-price,
    .quantity-btn,
    .quantity,
    .total-label,
    .total-value {
        font-size: 10px;
    }

    .cart-dropdown-actions .btn-outline,
    .cart-dropdown-actions .btn-primario {
        font-size: 11px;
        padding: 6px 0;
    }
}











/* Animações para o carrinho */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item.updating {
    opacity: 0.7;
}

.cart-item.removing {
    transform: translateX(100%);
    opacity: 0;
}

.cart-item.highlight {
    background-color: rgba(139, 90, 43, 0.1);
}

.quantity-btn {
    cursor: pointer;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.remove-btn {
    cursor: pointer;
    border: none;
    background: transparent;
    color: #f44336;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    color: #d32f2f;
    transform: scale(1.2);
}

.quantity {
    display: inline-block;
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

/* Animação para o badge do carrinho */
.cart-badge {
    transition: transform 0.3s ease;
}

.cart-badge.highlight {
    transform: scale(1.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.6s ease;
}