.dropdown {
  width: 100%;
  max-width: 100%;
  position: relative;
  font-family: Arial, sans-serif;
  margin-top: 30px;
}

.dropdown-toggle {
  width: 100%;
  background: #FFE0E6;
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.dropdown-toggle:focus {
  outline: none;
}

.arrow {
  font-size: 14px;
  transition: transform .3s ease;
}

.dropdown.open .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  overflow: hidden;
  display: none;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 12px 16px;
  cursor: pointer;
  transition: background .2s;
}

.dropdown-menu li:hover {
  background: #ffe4ea;
}

.cards-wrapper {
    display: flex;
    gap: 02.14285714285714%;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    display: flex;
    padding: 20px;
    max-width: 48.92857142857143%;
    width: 100%;
    margin-bottom: 30px;
}

.card-image {
    flex-shrink: 0;
}

.card-image img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
}

.card-content {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}

.card-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #333;
}

.card-content p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.card-category {
    margin-top: auto;
    font-size: 14px;
    color: #777;
}

.card-category strong {
    display: block;
    color: #444;
}

@media (max-width: 800px) {
  .cards-wrapper {
    display: flex;
    flex-direction:column;
}
    .card {
      width: 100%;
      flex-direction: column;
      max-width: 100%;
    }

    .card-image img {
        width: 100%;
        height: auto;
    }

    .card-content {
        padding-left: 0;
        padding-top: 16px;
    }
}

/* Paginação */
.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px 0;
}

.btn-paginacao {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-paginacao:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.paginas {
    display: flex;
    gap: 10px;
}

.pagina,
.pagina-atual {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 500;
    transition: all 0.3s;
}

.pagina {
    background: #f5f6fa;
    color: #333;
    text-decoration: none;
}

.pagina:hover {
    background: #e0e0e0;
}

.pagina-atual {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.info-paginacao {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

/* Sem resultados */
.sem-resultados {
    text-align: center;
    padding: 60px 20px;
}

.sem-resultados h3 {
    margin: 20px 0 10px;
    color: #333;
    font-size: 24px;
}

.sem-resultados p {
    color: #666;
    margin-bottom: 20px;
}

.btn-voltar {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-voltar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Badge destaque */
.badge-destaque {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Informações do card */
.card-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.info-item i {
    color: #667eea;
    font-size: 16px;
}

.info-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: #764ba2;
}

.btn-whatsapp-small {
    background: #25d366;
    color: white !important;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.btn-whatsapp-small:hover {
    background: #1fb855;
    color: white !important;
}

/* Dropdown ativo */
.dropdown-menu li.active a {
    background: #f0f0f0;
    font-weight: 600;
}

/* ==========================================
   FILTRO - CONTAINER
   ========================================== */

.filtro-container {
    margin: 30px auto;
    padding: 0 20px;
}

/* ==========================================
   VERSÃO DESKTOP - Dropdown Customizado
   ========================================== */

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.dropdown-toggle {
    width: 100%;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.dropdown-toggle:hover {
    border-color: #667eea;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.dropdown-toggle .arrow {
    transition: transform 0.3s;
}

.dropdown.active .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-menu li:hover a,
.dropdown-menu li.active a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dropdown-menu li:first-child:hover a {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu li:last-child:hover a {
    border-radius: 0 0 8px 8px;
}

/* ==========================================
   VERSÃO MOBILE - Select Nativo
   ========================================== */

.filtro-mobile {
    width: 100%;
}

.filtro-mobile label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.filtro-mobile label i {
    color: #667eea;
    font-size: 18px;
}

.select-mobile {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.select-mobile:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

/* ==========================================
   RESPONSIVE - BREAKPOINTS
   ========================================== */

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .filtro-container {
        margin: 20px auto;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .dropdown {
        max-width: 350px;
    }
}
