/* 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;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    width: 100%;
}

/* GRUPO DA LOGO E TEXTO */
.left-group {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.logoDf {
    border-radius: 25px;
    height: 50px;
    width: 50px;
}
/* MENU */
.navMenu {
    justify-content: space-around;
    display: flex;
}
nav {
    width: 100%;
    display: flex;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007bff;
}

/* HAMBURGER */
/* .hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
    margin-left: 20px;
} */
/* RESPONSIVO: manter tudo em uma linha */
/* @media (max-width: 768px) {
    nav {
        display: none;
    }

    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: column;
        gap: 10px;
    }

    .hamburger {
        display: block;
    }

    header {
        flex-wrap: nowrap;
    }
} */
/* 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; 
} */
/* ---------------------------- */

/* Responsividade */
@media (max-width: 768px) {
    header {
        display: flex;
        justify-content: space-around;
    }

    nav ul {
        display: flex;
        align-items: center;
        justify-content: space-around;
        width: 100%;
    }
}
/* ------------------------------------
  HERO SECTION
------------------------------------ */
.hero-section {
    display: flex;
    justify-content: center;
}
.carousel-item {
    width: 100%;
}

.hero-section img {
    height: 45vh;
    width: 100%;
    max-width: 1200px;
}

@media (max-width: 768px) {
    .hero-section img {
        max-height: 300px;
    }
}
/* ------------------------------------
  PRODUCTS PAGE
------------------------------------ */

.product-listing-page {
    display: flex;
    max-width: 1300px;
    margin: 20px auto;
    padding: 0 20px;
    gap: 30px;
    align-items: flex-start;
}

.filters-sidebar {
    flex: 0 0 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;
}

.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);
    padding-bottom: 5px;
}

.filter-option {
    display: block;
    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);
}

.checkbox-option {
    font-weight: 500;
}

.products-content {
    flex: 1;
}

.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,
.sort-by-dropdown {
    font-size: 0.95em;
    color: var(--text-color);
}

.sort-by-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    appearance: none;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 8px 30px 8px 10px;
    font-size: inherit;
    cursor: pointer;
    min-width: 150px;
    background-color: #f7f5f5;
}

.sort-select:focus {
    outline: none;
    border-color: #222;
    box-shadow: 0 0 0 2px rgba(54, 55, 56, 0.25);
}

.dropdown-arrow {
    padding-right: 10px;
    pointer-events: none;
}

.dropdown-arrow::after {
    content: "\25BC";
    font-size: 0.8em;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    overflow: hidden;
    position: relative;
    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);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    z-index: 10;
}

.product-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    position: relative;
}

.product-category {
    font-size: 0.85em;
    color: var(--secondary-color);
    margin-bottom: 5px;
    text-transform: capitalize;
}

.product-name {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--dark-gray);
    line-height: 1.3;
    min-height: 40px;
}

.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);
    color: white;
    border: none;
    border-radius: 50%;
    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);
}

.product-card.hidden {
    display: none;
}

/* ------------------------------------
  FOOTER
------------------------------------ */
.site-footer {
    background-color: #222;
    color: #bbb;
    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));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.footer-logo {
    font-weight: bold;
    font-size: 1.6em;
    color: #fff;
    margin-bottom: 15px;
}

.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;
}

.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;
}

.contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #bbb;
}

.contact p .fas {
    margin-right: 10px;
    color: #ffaa00;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85em;
    color: #888;
}

/* ------------------------------------
  RESPONSIVE ADJUSTMENTS
------------------------------------ */
@media (max-width: 992px) {
    .product-listing-page {
        flex-direction: column;
        padding: 0 15px;
    }

    .filters-sidebar {
        width: 100%;
        margin-bottom: 20px;
        padding: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    nav.active {
        display: flex;
        flex-direction: column;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        border-radius: 6px;
        padding: 10px;
        position: absolute;
        top: 60px;
        right: 20px;
    }

    .hamburger {
        display: block;
    }

    .products-header,
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        padding: 15px 0;
        border-bottom: 1px solid #444;
    }

    .footer-column:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        max-width: 300px;
    }

    .sort-select {
        padding: 6px 25px 6px 8px;
        min-width: 120px;
    }

    .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;
    }
}
