:root {
  --primary: #0C4B59;
  --secondary: #F22973;
  --accent: #F2AE2E;
  --tertiary: #F27B13;
  --highlight: #F23005;
  --text-light: #ffffff;
  --text-dark: #333333;
}

.header {
  background-color: var(--primary);
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;
  position: fixed;
  top: 0;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 0.5rem;
  font-size: 1.2rem;
  font-family: Poppins, Bold;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hamburger {
    display: block;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 10000;
}

.navOpen {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.navOpen.show {
    transform: translateX(0);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.overlay.show {
    display: block;
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .navOpen {
        display: none;
    }
}

.container-products {
    width: 100%;
    min-height: 100vh;
    background-color: white;
    color: black;
    padding-bottom: 1.5rem;
    text-align: center;
    font-family: Poppins, serif;
    overflow: hidden;
    padding-inline: 1.5rem;
    margin-top: 150px; /* Add margin to prevent content from going under header */
    display: block; /* Changed to block instead of flex */
    max-width: 1200px; /* Limitar largura máxima do container */
    margin: 0 auto; /* Centralizar container */
    padding: 20px;
}

.filter-menu {
    width: 200px;
    background-color: #f9f9f9;
    padding: 15px;
    margin-right: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

.filter-menu h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.filter-category, .filter-price {
    margin-bottom: 1.5rem;
}

.filter-category h4, .filter-price h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.filter-category ul, .filter-price ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.filter-category li, .filter-price li {
    margin-bottom: 0.5rem;
}

.filter-category a, .filter-price a {
    text-decoration: none;
    color: #025959;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-align: left;
}

.filter-category a:hover, .filter-price a:hover {
    color: #014747;
}

#products{
    gap: 1rem;
    margin-top: 1rem;
    flex-grow: 1;
    margin-top: 100px;
}

#products h2{
    font-size: 2rem;
    margin-top: 1rem;
    text-align: left;
    padding-block: 0.9rem;
    margin-left: 20px;
    color: #025959;
}

/* Remove or comment out carousel-specific styles */
/* .swiper-container, .swiper, .swiper-slide { ... } */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Fixed 4 columns */
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 100%;
    max-width: 250px;
    text-align: left;
    margin: 0 auto;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 450px;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(242, 174, 46, 0.2);
}

.card img {
    max-width: 100%;
    max-height: 150px; /* Altura máxima para as imagens */
    object-fit: contain; /* Ajustar a imagem para cobrir o espaço */
    border-radius: 30px;
}

.card h3 {
    margin: 10px 0;
    font-size: 0.9rem;
    height: 40px; /* Fixed height for two lines */
    line-height: 1.2; /* Better line spacing */
}

.card .price {
    font-size: 1.1rem;
    color: #333;
    margin: 10px 0;
}

.card p {
    font-size: 0.9rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card .details-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: var(--secondary);
    color: var(--text-light);
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.card .details-button:hover {
    background-color: var(--tertiary);
}

.dropdown-filter {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 15px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
}

.dropdown-btn:hover {
  background: #f8f9fa;
}

.dropdown-btn i {
  transition: transform 0.3s ease;
}

.dropdown-btn.active i {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f8f9fa;
}

.dropdown-content a.active {
  background-color: #e9ecef;
  color: #007bff;
}

.dropdown-content a i {
  font-size: 14px;
  color: #6c757d;
}

.dropdown-content a.active i {
  color: #007bff;
}

.category-select {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  background-color: #fff;
  color: #333;
  transition: border-color 0.3s ease;
}

.category-select:focus {
  border-color: #000;
  outline: none;
}

.type-select {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  background-color: #fff;
  color: #333;
  transition: border-color 0.3s ease;
}

.type-select:focus {
  border-color: #000;
  outline: none;
}

@media (max-width: 768px) {
    .filter-menu,
    aside {
        display: none !important; /* Força o desaparecimento do aside */
    }

    .container-products {
        display: block; /* Muda para display block em telas menores */
    }

    #products {
        width: 100%; /* Garante que os produtos ocupem toda largura */
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container-products {
        padding: 0 0.5rem;
    }
    
    .card {
        max-width: 160px;  /* Smaller card width */
        height: 280px;     /* Reduced height */
        padding: 8px;     /* Smaller padding */
        margin: 0;
    }

    .card img {
        max-height: 100px; /* Smaller image height */
    }

    .card h3 {
        font-size: 0.9rem;   /* Smaller title */
        margin: 5px 0;
    }

    .card .price {
        font-size: 0.9rem; /* Smaller price */
        margin: 5px 0;
    }

    .card .details-button {
        padding: 6px 10px; /* Smaller button */
        font-size: 0.8rem;
        margin-top: 5px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
        gap: 8px;         /* Smaller gap */
        padding: 8px;     /* Smaller padding */
        width: 100%;
    }

    .filter-menu {
        display: none;
    }
}

.filter-section {
    position: sticky;
    top: 80px;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    z-index: 100;
    padding: 12px 0;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 16px;
    flex-wrap: wrap;
}

.filter-item {
    position: relative;
    min-width: 140px;
    flex: 0 1 auto;
}

.filter-button {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-button:hover {
    border-color: #025959;
}

.filter-button:after {
    content: '';
    border: solid #666;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: 8px;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-top: 4px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
}

.filter-dropdown.active {
    display: block;
}

.filter-option {
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

.filter-option:hover {
    background: #f5f5f5;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
}

/* Ajustes responsivos para os filtros */
@media (max-width: 768px) {
    .filter-section {
        top: 60px;
        padding: 8px 0;
    }

    .filter-container {
        gap: 8px;
    }

    .filter-item {
        min-width: calc(50% - 8px);
    }

    .filter-dropdown {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filter-section {
        position: relative;
        top: 0;
        margin-bottom: 16px;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-item {
        min-width: 100%;
    }

    .filter-button {
        width: 100%;
    }
}

/* Remover estilos antigos dos filtros */
.dropdown-filter,
.dropdown-btn,
.dropdown-content,
.category-select,
.type-select {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

