.home-filter-search {
    display: flex;
    align-items: center;
    width: 100%;
}

.home-filter-search .title-page {
    margin: 0;
    margin-right: 24px;
    font-size: 14px;
    color: #888 !important;
    line-height: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    height: 36px;
}

.home-filter-search > * {
    color: #888 !important;
    font-size: 14px;
    line-height: 36px;
    display: flex;
    align-items: center;
    height: 36px;
}

.sort {
    font-size: 14px;
    color: #888 !important;
    cursor: pointer;
    margin-left: 16px;
    font-weight: normal;
    display: flex;
    align-items: center;
    height: 36px;
}

.sort.active {
    font-weight: normal;
    color: #888 !important;
}

.home-filter-search select[name="id_category"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    color: #888 !important;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0 32px 0 14px;
    font-size: 14px;
    cursor: pointer;
    min-width: 160px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    background-image: url('data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 16 16\'%3e%3cpath fill=\'none\' stroke=\'%23888\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'m2 5 6 6 6-6\'/%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    height: 36px;
    box-sizing: border-box;
    margin-left: 16px;
    display: flex;
    align-items: center;
}

.home-filter-search form[role="form"] {
    display: flex;
    align-items: center;
    margin-left: auto;
    height: 36px;
}

.home-filter-search .input {
    flex: 1;
    padding: 7px 14px;
    border-radius: 8px 0 0 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    border-right: none;
    color: #888 !important;
    height: 36px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.home-filter-search .button {
    padding: 7px 14px;
    border-radius: 0 8px 8px 0;
    background: #fff;
    color: #888 !important;
    border: 1px solid #ccc;
    border-left: none;
    height: 36px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.floating-wa {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 8px;
    transition: box-shadow 0.2s;
}

.floating-wa:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.floating-wa img, .floating-wa svg {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #e0e0e0;
  border-top: 6px solid #00548b; 
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading-text {
  margin-top: 18px;
  font-size: 18px;
  color: #222;
  letter-spacing: 2px;
  font-family: 'Lato', Arial, sans-serif;
  text-align: center;
}
.loading-overlay { display: none; }
.loading-overlay.active { display: flex; }
#loader .spinner {
  width: 40px;
  height: 40px;
  border-width: 5px;
  border-top-color: #00629b;
}

@media (max-width: 600px) {
  .home-filter-search .button {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
  }
  .home-filter-search .button span,
  .home-filter-search .button-text {
    display: none !important;
  }
  .home-filter-search .button i.fa-search {
    margin: 0 !important;
    font-size: 16px !important;
    display: inline-block !important;
  }
  .home-filter-search .input {
    border-radius: 8px !important;
    padding-right: 28px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .home-filter-search form[role="form"] {
    width: 100% !important;
    margin-left: 0 !important;
  }
  .search-desktop-form { display: none !important; }
  .search-mobile-btn { display: flex !important; margin-left: 8px; }
  .mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; z-index: 9999;
    background: rgba(255,255,255,0.98);
    padding: 24px 16px 16px 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    animation: fadeIn 0.2s;
  }
  .mobile-search-overlay.active { display: block !important; }
  .mobile-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
  }
  .mobile-search-form .input {
    flex: 1;
    border-radius: 8px;
    font-size: 16px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    min-width: 0;
  }
  .mobile-search-form .button {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 0;
  }
  .sort-label { font-size: 14px; color: #888; margin-right: 8px; }
  .sort-label:after { content: 'Sort'; display: inline; }
  .sort-label { content: ''; }
  .sort-label { visibility: hidden; }
  .sort-label:after { visibility: visible; content: 'Sort'; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


