/* Basic Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif; /* Or a more specific font from the image */
    background-color: #f0f2f5; /* Light grey background */
    color: #333;
}

/* HEADER BASE */
header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    width: 100%;
}

/* GRUPO DA LOGO E TEXTO */
.left-group {
    display: flex;
    align-items: center;
}

.logoDf {
    height: 40px;
    width: auto;
    border-radius: 10px;
}

.logoDf-text h5 {
    margin-left: 10px;
    font-size: 1.1rem;
    color: #333;
}

/* MENU */
nav {
    display: flex;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #991ebe;
}

/* HERO SECTION */
.hero-section {
    width: 100%;
}

.hero-carousel {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.main-hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* RESPONSIVO: manter tudo em uma linha */
@media (max-width: 768px) {
    nav {
        display: initial;
        display: flex;
    }

    nav.active {
        display: flex;
        top: 60px;
        right: 20px;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        border-radius: 6px;
        padding: 10px;
    }

    nav ul {
        flex-direction: flex;
        gap: 10px;
    }
   
}
/* Você precisará usar background-image para a imagem grande do fone de ouvido */
/* .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('path/to/large-headphone-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.8; 
} */
/* ---------------------------- */
.carousel-inner {
    display: flex;
    text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        display: flex;
        justify-content: space-around;
    }
    .logoDf-text{
        display: none;
    }

    nav ul {
        flex-direction: flex;
        gap: 10px;
        width: 100%;
    }
}

.hero-section {
    text-align: center;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Estilos para o contêiner do carrossel/imagem de fundo */

/* Estilos para o conteúdo do texto */
.hero-content {
    position: relative; /* Mantém o fluxo normal do conteúdo, mas fica acima da imagem */
    z-index: 2; /* Garante que o texto fique por cima da imagem */
    text-align: center;
    color: white; /* Cor do texto para contraste com a imagem escura */
    padding: 20px;
    max-width: 900px; /* Limita a largura do conteúdo para melhor leitura */
}

.hero-content h1 {
    font-size: 3em; /* Tamanho do título */
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para o texto para maior legibilidade */
}

.hero-content p {
    font-size: 1.2em; /* Tamanho do parágrafo */
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Sombra para o texto */
}

/* Estilos para o botão */
.btn-primary {
    background-color: #007bff; /* Exemplo de cor azul */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3; /* Cor mais escura ao passar o mouse */
}

/* Você precisará usar background-image para a imagem grande do fone de ouvido */
/* .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('path/to/large-headphone-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.8; 
} */
/* --------------------------------------- */

/* Importação de fontes (opcional, pode usar Google Fonts se preferir) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-color: #212529;
    --card-bg: #fff;
    --border-color: #dee2e6;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --orange-color: #ff8c00; /* Cor do "Ver Tudo" */
}
.carousel-item img{
    width: 100%;
}
/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header (Opcional, para complementar) */
.main-header {
    background-color: var(--card-bg);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow-light);
    margin-bottom: 20px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

/* Layout principal da página de produtos */
.product-listing-page {
    display: flex;
    max-width: 1300px;
    margin: 20px auto;
    padding: 0 20px;
    gap: 30px; /* Espaço entre a sidebar e o conteúdo principal */
    align-items: flex-start; /* Alinha o topo dos elementos */
}

/* Sidebar de Filtros */
.filters-sidebar {
    flex: 0 0 250px; /* Não cresce, não encolhe, largura base 250px */
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.filters-header h2 {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--dark-gray);
}

.clear-filters-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 0.9em;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.clear-filters-btn:hover {
    color: var(--text-color);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-title {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--medium-gray); /* Linha tracejada como na imagem */
    padding-bottom: 5px;
}

.filter-option {
    display: block; /* Cada opção em uma nova linha */
    margin-bottom: 8px;
    font-size: 0.95em;
    color: var(--text-color);
    cursor: pointer;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(
        --primary-color
    ); /* Altera a cor do radio/checkbox (Chrome/Edge/Firefox) */
}

.checkbox-option {
    font-weight: 500; /* Mais negrito para "Em Promoção" */
}

/* Seção de Produtos */
.products-content {
    flex: 1; /* Ocupa o restante do espaço disponível */
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    margin-bottom: 20px;
}

.product-count-display {
    font-size: 0.95em;
    color: var(--secondary-color);
}

.sort-by-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    color: var(--text-color);
}

.dropdown-select-wrapper {
    position: relative;
    display: inline-block;
}

.sort-select {
    appearance: none; /* Remove o estilo padrão do select */
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 8px 30px 8px 10px; /* Padding extra para a seta */
    font-size: inherit;
    cursor: pointer;
    min-width: 150px;
    color: var(--text-color);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.dropdown-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Garante que o clique passe para o select */
    color: var(--secondary-color);
}

.dropdown-arrow::after {
    content: "\25BC"; /* Caractere de seta para baixo */
    font-size: 0.8em;
}

/* Grade de Produtos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(220px, 1fr)
    ); /* 3-4 colunas, responsivo */
    gap: 20px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    overflow: hidden; /* Garante que a imagem arredonde as bordas */
    position: relative; /* Para o badge de desconto */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px var(--shadow-medium);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--danger-color); /* Cor vermelha para o desconto */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    z-index: 10; /* Garante que o badge fique por cima da imagem */
}

.product-image-wrapper {
    width: 100%;
    height: 200px; /* Altura fixa para as imagens dos produtos */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-gray); /* Fundo caso a imagem não preencha */
    border-bottom: 1px solid var(--border-color);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cobre o espaço, cortando se necessário */
    display: block;
}

.product-info {
    padding: 15px;
    position: relative; /* Para o botão de carrinho */
}

.product-category {
    font-size: 0.85em;
    color: var(--secondary-color);
    margin-bottom: 5px;
    text-transform: capitalize; /* Deixa a primeira letra maiúscula */
}

.product-name {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--dark-gray);
    line-height: 1.3;
    min-height: 40px; /* Garante altura mínima para nomes de 1 ou 2 linhas */
}

.product-price {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.add-to-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(
        --orange-color
    ); /* Laranja similar ao do carrinho na imagem */
    color: white;
    border: none;
    border-radius: 50%; /* Botão redondo */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 2px 5px var(--shadow-medium);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.add-to-cart-btn:hover {
    background-color: #e67e00;
    transform: scale(1.05);
}

/* Responsividade */
@media (max-width: 992px) {
    .product-listing-page {
        flex-direction: column; /* Coloca a sidebar em cima */
        padding: 0 15px;
    }

    .filters-sidebar {
        width: 100%;
        flex: none; /* Remove a flex-basis fixa */
        margin-bottom: 20px;
        padding: 15px;
    }

    .filters-header {
        margin-bottom: 15px;
    }

    .filter-group {
        margin-bottom: 20px;
    }

    .product-grid {
        grid-template-columns: repeat(
            auto-fill,
            minmax(180px, 1fr)
        ); /* Mais colunas em telas menores */
    }
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sort-by-dropdown {
        width: 100%;
        justify-content: space-between;
    }

    .product-grid {
        grid-template-columns: repeat(
            auto-fill,
            minmax(160px, 1fr)
        ); /* Reduz o min-width */
        gap: 15px;
    }

    .product-card {
        padding-bottom: 50px; /* Aumenta o padding para o botão do carrinho */
    }

    .add-to-cart-btn {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .product-listing-page {
        padding: 0 10px;
    }

    .filters-sidebar {
        padding: 10px;
    }

    .filters-header h2 {
        font-size: 1.3em;
    }

    .filter-title {
        font-size: 1em;
    }

    .filter-option {
        font-size: 0.9em;
    }

    .products-header {
        padding: 10px 15px;
    }

    .product-count-display {
        font-size: 0.85em;
    }

    .sort-select {
        padding: 6px 25px 6px 8px;
        min-width: 120px;
    }

    .product-grid {
        grid-template-columns: repeat(
            auto-fill,
            minmax(140px, 1fr)
        ); /* Duas colunas em telas muito pequenas */
        gap: 10px;
    }

    .product-image-wrapper {
        height: 150px;
    }

    .product-name {
        font-size: 1em;
        min-height: 35px;
    }

    .product-price {
        font-size: 1.1em;
    }
}
.product-card.hidden {
    display: none;
}

/* Footer Styling */
.site-footer {
    background-color: #222; /* Dark background as in image */
    color: #bbb; /* Light grey text */
    padding: 50px 20px 20px;
    font-size: 0.95em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(200px, 1fr)
    ); /* Responsive columns */
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444; /* Separator line */
}

.footer-column {
    padding: 10px 0;
}

.footer-logo {
    font-weight: bold;
    font-size: 1.6em;
    color: #fff; /* White logo text */
    margin-bottom: 15px;
}

.about-us p {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: #bbb;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #fff; /* White on hover */
}

.footer-column h3 {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
}

.contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact p .fas {
    margin-right: 10px;
    color: #ffaa00; /* Orange icon color */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85em;
    color: #888;
}

/* Responsive Adjustments for Product Grid (similar to previous section) */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    .section-header h2 {
        margin-bottom: 10px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    .product-card {
        margin: 0 auto;
    }
    .footer-container {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        text-align: center;
    }
    .footer-column {
        padding: 15px 0;
        border-bottom: 1px solid #444; /* Add border for separation */
    }
    .footer-column:last-child {
        border-bottom: none; /* No border for the last column */
    }
    .social-icons {
        justify-content: center;
    }
    .contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-card {
        max-width: 300px;
    }
    .section-header h2 {
        font-size: 1.5em;
    }
    .site-footer {
        padding: 30px 15px 15px;
    }
    .footer-logo {
        font-size: 1.4em;
    }
    .footer-column h3 {
        font-size: 1.1em;
    }
    .footer-column ul li a,
    .contact p {
        font-size: 0.85em;
    }
}
