/* ==========================================================================
   Reset Básico e Variáveis Globais
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif; /* Considere usar uma fonte web como 'Roboto', 'Open Sans', etc. */
    background-color: #f8f8f8; /* Um cinza muito claro para o fundo geral */
    color: #333; /* Cor de texto principal */
    line-height: 1.6;
    font-size: 16px; /* Tamanho de fonte base */
}

.container {
    width: 95%;
    max-width: 1280px; /* Largura máxima para o conteúdo principal */
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color); /* Cor primária para links por padrão */
    transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
a:hover {
    color: var(--primary-color-darker); /* Um tom mais escuro da cor primária no hover */
    text-decoration: underline;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

:root {
    --primary-color: #E91E63; /* Seu rosa principal */
    --primary-color-darker: #c51350; /* Rosa mais escuro para hovers */
    --secondary-color: #f0f0f0; /* Cinza claro para fundos secundários, hovers */
    --text-color: #333;
    --text-muted-color: #6c757d; /* Cinza mais suave para texto secundário */
    --border-color: #dee2e6; /* Cor de borda padrão */
    --light-gray-bg: #f8f9fa; /* Fundo muito claro */
    --success-color: #28a745;
    --success-color-darker: #218838;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0; /* Azul claro para informações */
    --blue-link-color: #007bff; /* Azul padrão de links Bootstrap, se necessário */
}

/* ==========================================================================
   Header do Site (Topo)
   ========================================================================== */
.site-header {
    background-color: #fff;
    padding: 10px 0; /* Reduzido um pouco o padding vertical */
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000; /* Para ficar acima de outros elementos ao rolar */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Sombra sutil */
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-toggle {
    display: none; /* Escondido por padrão */
    font-size: 1.8em;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px 8px; /* Ajustar área de clique */
    margin-right: 10px;
}

.header-logo {
    flex-shrink: 0; /* Impede que o logo encolha demais */
}


 .header-logo img {
            height: 90px;
            width: auto; /* Mantém a proporção da imagem */
        }

.header-search {
    flex-grow: 1;
    margin: 0 15px; /* Espaçamento entre logo/ações */
    max-width: 450px; /* Limita a largura em telas grandes */
}
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px; /* Bordas mais arredondadas para a busca */
    overflow: hidden;
    background-color: #fff;
}
.search-form input[type="search"] {
    border: none;
    padding: 8px 15px; /* Padding interno do input */
    flex-grow: 1;
    font-size: 0.9em;
    outline: none;
    background-color: transparent;
}
.search-form button {
    background-color: transparent;
    border: none;
    padding: 0 12px;
    font-size: 1.1em;
    color: var(--text-muted-color);
    cursor: pointer;
}
.search-form button:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.header-actions .greeting {
    margin-right: 12px;
    font-size: 0.85em;
    color: var(--text-muted-color);
    white-space: nowrap;
}
.header-actions .account-link,
.header-actions .btn-login-logout {
    margin-left: 12px;
    font-size: 0.85em; /* Tamanho de fonte um pouco menor para os botões */
    display: flex;
    align-items: center;
    padding: 7px 12px; /* Padding dos botões */
    border-radius: 18px; /* Botões mais arredondados */
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent; /* Para manter alinhamento mesmo sem fundo */
    transition: all 0.2s ease;
}
.header-actions .account-link i,
.header-actions .btn-login-logout i {
    margin-right: 6px;
    font-size: 1em; /* Ícones um pouco menores */
}
.header-actions .account-link {
    color: var(--text-color);
    border-color: var(--border-color); /* Borda sutil */
}
.header-actions .account-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: #ccc;
    text-decoration: none;
}
.header-actions .btn-login-logout.login {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.header-actions .btn-login-logout.login:hover {
    background-color: var(--primary-color-darker);
    border-color: var(--primary-color-darker);
    text-decoration: none;
}
.header-actions .btn-login-logout.logout {
    background-color: var(--text-muted-color);
    color: white;
    border-color: var(--text-muted-color);
}
.header-actions .btn-login-logout.logout:hover {
    background-color: #5a6268; /* Cinza mais escuro */
    border-color: #545b62;
    text-decoration: none;
}
.header-actions .cart-info {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 18px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.85em;
}
.header-actions .cart-info:hover {
    background-color: var(--primary-color-darker);
    text-decoration: none;
}
.header-actions .cart-info i {
    margin-right: 6px;
    font-size: 1.1em;
}
.header-actions .cart-info .cart-text { display: inline; }

/* ==========================================================================
   Menu de Navegação Principal (Abaixo do Header)
   ========================================================================== */
.main-navigation {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.main-navigation ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0; padding: 0;
}
.main-navigation li a {
    display: block;
    padding: 10px 18px; /* Padding para itens do menu */
    font-size: 0.9em;
    text-transform: uppercase;
    font-weight: 500;
    color: #555; /* Cor um pouco mais escura para o menu */
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    border-bottom: 2px solid transparent; /* Para efeito hover */
}
.main-navigation li a:hover,
.main-navigation li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    text-decoration: none;
}

/* ==========================================================================
   Mensagens Globais e do Carrinho
   ========================================================================== */
.message-global, .cart-message {
    padding: 12px 20px;
    margin: 15px auto;
    border-radius: 5px;
    text-align: center;
    max-width: 700px; /* Largura máxima para mensagens */
    font-size: 0.95em;
    border: 1px solid transparent;
}
.message-global.sucesso, .cart-message.sucesso { background-color: #d1e7dd; color: #0f5132; border-color: #badbcc; }
.message-global.erro, .cart-message.erro { background-color: #f8d7da; color: #842029; border-color: #f5c2c7; }
.cart-message.info { background-color: #cce5ff; color: #084298; border-color: #b6d4fe; }

/* ==========================================================================
   Conteúdo da Página (Layout Principal com Sidebar)
   ========================================================================== */
.page-content { padding: 25px 0; }
.main-area { display: flex; gap: 25px; align-items: flex-start; }

.sidebar {
    width: 260px; /* Largura da sidebar */
    flex-shrink: 0;
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    position: sticky; /* Sidebar fixa ao rolar */
    top: 90px; /* Distância do topo (altura do header + margem) - AJUSTAR CONFORME ALTURA DO SEU HEADER */
    max-height: calc(100vh - 110px); /* Altura máxima com scroll interno */
    overflow-y: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0; /* Borda interna mais sutil */
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-title {
    font-size: 1.05em; /* Título do filtro um pouco maior */
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-color);
}
.filter-title i { transition: transform 0.3s; color: var(--text-muted-color); }
.filter-title.open i { transform: rotate(180deg); } /* Para o ícone de expandir */
.filter-options {
    padding-left: 5px;
    max-height: 220px; /* Scroll para muitas opções */
    overflow-y: auto;
    /* display: none; // Controlado por JS se for colapsável */
}
.filter-options label {
    display: block;
    margin-bottom: 10px; /* Mais espaço entre checkboxes */
    font-size: 0.9em;
    cursor: pointer;
    color: #555;
}
.filter-options label:hover { color: var(--primary-color); }
.filter-options input[type="checkbox"] {
    margin-right: 10px;
    vertical-align: middle;
    transform: scale(1.1); /* Checkbox um pouco maior */
    accent-color: var(--primary-color); /* Cor do checkbox quando marcado */
}
.btn-filter {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    width: 100%;
    border-radius: 5px;
    font-weight: 500; /* Um pouco menos bold */
    text-transform: uppercase;
    font-size: 0.9em;
    margin-top: 15px;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}
.btn-filter:hover { background-color: var(--primary-color-darker); }

/* Conteúdo dos Produtos */
.content-products { flex-grow: 1; }
.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap; /* Para quebrar em mobile */
    gap: 10px;
    font-size: 0.9em;
}
.product-list-header > div:first-child { flex-basis: 100%; text-align: left; margin-bottom: 5px; } /* Mobile */
.product-list-header > div:last-child { flex-grow: 1; text-align: right; }
@media (min-width: 576px) { /* Ajusta para telas sm e acima */
    .product-list-header > div:first-child { flex-basis: auto; margin-bottom: 0;}
}
.product-list-header label { font-weight: 500; margin-right: 8px; }
.product-list-header select {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1em; /* Relativo ao 0.9em do container */
    background-color: #fff;
}

/* Grid de Produtos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); /* Produtos um pouco mais largos */
    gap: 20px;
}
.product-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    padding: 12px; /* Padding interno do card */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.product-card a.product-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    color: var(--text-color);
    margin-bottom: 10px; /* Espaço antes do botão Comprar */
}
.product-card a.product-link:hover { text-decoration: none; } /* Remove sublinhado do link do card */

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1.1; /* Proporção da imagem */
    object-fit: cover;
    margin-bottom: 8px;
    border-radius: 4px; /* Borda arredondada na imagem */
}
.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Para alinhar preço/botão em baixo */
    padding: 5px 0;
}
.product-rating { margin-bottom: 6px; color: #f90; font-size: 0.85em; }
.product-rating .fa-star.empty { color: #ccc; }
.product-name {
    font-family: 'Lobster', cursive; /* APLICA A FONTE LOBSTER */
    font-size: 1.4em;                 /* Aumenta um pouco o tamanho */
    color: #a53838;                   /* Cor avermelhada/marrom como na imagem */
    font-weight: normal;              /* A fonte já é "bold", não precisa de extra */
    margin-bottom: 12px;
    line-height: 1.3;
    min-height: 0;                    /* Remove a altura mínima para se adaptar melhor */
    -webkit-line-clamp: 3;            /* Permite até 3 linhas se o nome for longo */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Sombra sutil para profundidade */
}
.product-price {
    display: inline-block;
    position: relative;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 6px 28px;
    line-height: 1;
    white-space: nowrap;
    border-radius: 4px; /* opcional, pode remover se quiser 100% pontudo */
    z-index: 1;
}

/* ponta esquerda */
.product-price::before {
    content: "";
    position: absolute;
    left: -12px; /* distância que a ponta avança pra fora */
    top: 0;
    bottom: 0;
    width: 24px; /* largura total da ponta */
    background: inherit;
    transform: skewX(-25deg);
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    z-index: -1;
}

/* ponta direita */
.product-price::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 0;
    bottom: 0;
    width: 24px;
    background: inherit;
    transform: skewX(25deg);
    clip-path: polygon(100% 50%, 0 0, 0 100%);
    z-index: -1;
}

.btn-comprar {
    background-color: var(--success-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9em;
    text-decoration: none;
    display: block;
    width: 100%;
    margin-top: auto; /* Empurra para baixo */
    transition: background-color 0.2s ease;
    letter-spacing: 0.5px;
}
.btn-comprar:hover { background-color: var(--success-color-darker); }
.btn-comprar i { margin-right: 8px; }

/* ==========================================================================
   Paginação
   ========================================================================== */
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; padding: 0; margin-top: 30px; }
.pagination li { margin: 3px; }
.pagination li a {
    color: var(--primary-color);
    display: block;
    padding: 8px 14px; /* Padding dos links de paginação */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    font-size: 0.9em;
}
.pagination li a:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); text-decoration: none; }
.pagination li.active a { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.pagination li.disabled a { color: #aaa; pointer-events: none; background-color: #f9f9f9; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer p { margin: 0; }

        /* Estilos para o rodapé */
        .site-footer .container {
            display: flex;
            flex-direction: column; /* Organiza os itens em coluna */
            align-items: center; /* Centraliza tudo */
            gap: 15px; /* Espaçamento entre os elementos do rodapé */
        }
        
        .footer-social-links ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex; /* Deixa os ícones lado a lado */
            gap: 25px; /* Espaçamento entre os ícones */
        }

        .footer-social-links a {
            color: #333; /* Cor dos ícones */
            font-size: 24px; /* Tamanho dos ícones */
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-social-links a:hover {
            color: #E91E63; /* Cor rosa do site ao passar o mouse */
        }
    

/* ==========================================================================
   Media Queries para Responsividade
   ========================================================================== */
@media (max-width: 1024px) { /* Ajustes para tablets e telas menores */
    .sidebar {
        position: static; /* Sidebar volta ao fluxo normal */
        width: 100%;
        margin-bottom: 25px;
        max-height: none; /* Remove altura máxima */
        top: auto; /* Remove sticky top */
    }
    .main-area {
        flex-direction: column; /* Empilha sidebar e conteúdo */
    }
}

@media (max-width: 768px) { /* Mobile */
    .mobile-menu-toggle { display: block; }
    .main-navigation { display: none; } /* Escondido, JS controla .active */
    .main-navigation.active {
        display: block; position: absolute; top: calc(var(--header-height, 60px) + 1px); /* Ajustar --header-height */
        left: 0; width: 100%; background-color: #fff; z-index: 999; box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    }
    .main-navigation.active ul { flex-direction: column; }
    .main-navigation.active ul li { text-align: center; border-bottom: 1px solid #eee; }
    .main-navigation.active ul li:last-child { border-bottom: none; }
    .main-navigation.active ul li a { padding: 15px; }

    .header-logo img { height: 35px; }
    .header-search { margin: 0 8px; } /* Menos margem na busca */
    .search-form input[type="search"] { font-size: 0.85em; padding: 8px 10px; }
    .search-form button { padding: 0 8px; }

    .header-actions .greeting,
    .header-actions .account-link span, /* Esconde texto "Minha Conta" */
    .header-actions .btn-login-logout span { /* Esconde texto "Entrar/Sair" */
        display: none;
    }
    .header-actions .account-link { padding: 6px 8px; margin-left: 8px; }
    .header-actions .btn-login-logout { font-size: 0.8em; padding: 6px 8px; margin-left: 8px; }
    .header-actions .cart-info { font-size: 0.8em; padding: 6px 10px; margin-left: 8px; }
    .header-actions .cart-info .cart-text { display: none; } /* Esconde valor R$ do carrinho */
    .header-actions a i, .header-actions .btn-login-logout i { margin-right: 0; }
    .header-actions .cart-info i { margin-right: 0; }
}

@media (max-width: 480px) { /* Telas muito pequenas */
    .header-search { display: none; /* Opcional: esconder busca completamente */ }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; } /* Produtos menores */
    .product-card { padding: 10px; }
    .product-name { font-size: 0.9em; }
    .product-price .current-price { font-size: 1.15em; }
    .btn-comprar { font-size: 0.85em; padding: 8px 12px;}
    .pagination li a { padding: 6px 10px; font-size: 0.85em; }
}

/* Utilitários para mostrar/esconder responsivamente (se não usar Bootstrap completo) */
.d-none { display: none !important; }
@media (min-width: 768px) { .d-md-inline { display: inline !important; } }