




.woocommerce-result-count {
    font-size: 0.9em;
    color:#858585;
}

#wvf-filters h2 {
    font-size:1.5em;
    color:#222;
    letter-spacing: -1px;    
    margin-bottom: 2px;
}



.select-container {
  position: relative;
  display: inline-block; /* Or block, depending on your layout */
  width: 200px; /* Adjust as needed */
}



/* Dropdowns */

#wvf-sortby,
#wvf-filters select {
    /*appearance: auto!important;*/
    background-image:none!important;
    border-radius:4px!important;
    font-family: inherit!important;
    color:#222!important;
    font-size: 0.9em!important;
    padding:12px 12px!important;

    position: relative;
    appearance: none; /* Standard */
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none; /* Firefox */
}
#wvf-sortby {    
    padding:14px 12px!important;
}
#wvf-filters select {
    margin-right: 10px;
}
.wvf-controls select {
  
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #333;
  appearance: none;
  cursor: pointer;
}
#wvf-sortby:disabled,
.wvf-controls select:disabled { 
  cursor: not-allowed;
  background: #f2f2f2!important;
}

.select-container {
    flex: 1 1 150px;
}

/* Custom dropdown arrow using pseudo-element */
.select-container::after {
content: '';
  position: absolute;
  top: 50%;
  right: 25px; /* Adjust based on padding */
  width: 6px; /* Size of the chevron */
  height: 6px;
  border-right: 2px solid #333; /* Color and thickness */
  border-bottom: 2px solid #333;
  transform: translateY(-50%) rotate(45deg); /* Rotates to point down */
  pointer-events: none;
  transition: transform 0.2s ease; /* Optional: smooth animation */
}




#main.template-shop {
    padding-top:2em;
}

#wvf-filters {
    margin-top:20px;
    margin-bottom: 40px;
}

#wvf-sort {
    margin-bottom: 20px;
}

main.template-shop {
    width:100%!important;
}

.avia-product-sorting {
    display:none!important;
}

.searchsort {
    border-top:1px solid #e0e0e0;
    padding-top:40px;
    display: flex;
    /*justify-content: flex-end;*/
    gap: 1rem;
    margin-bottom:0px;
}
.searchsort .search {
    margin-left:auto;
}



.woocommerce-product-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.woocommerce-product-search .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
}

.woocommerce-product-search .search-field:focus {
    border-color: #999;
}

#woocommerce-product-search-field {
    border-radius: 4px!important;
    padding:14px 12px!important;
    font-size:0.9em!important; 
}
#woocommerce-product-search-field::placeholder {
    color:#111;
}

.woocommerce-product-search .search-submit {
    padding: 8px 8px;
    background-color: #EE3124;
    border: none;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    height:36px;
    transition: background-color 0.3s;
    position: absolute;
    right:7px;
    top:7px;
}

.woocommerce-product-search .search-submit:hover {
    background-color: #c0392b;
}

.woocommerce-product-search .search-submit svg {
    display: block;
}


/* Container */
#wvf-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Flex container for inputs */
.wvf-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}




/* Go button */
#wvf-go {
  padding: 13px 20px;
  background-color: #EE3124;
  text-transform: uppercase;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#wvf-go:hover {
  background-color: #b83824;
}
#wvf-sort {
    max-width:200px;
}


/* Reset link */
#wvf-reset {
  color: #004891;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9rem;
}

#wvf-reset:hover {
  text-decoration: underline;
}

/* pagination */

nav.woocommerce-pagination {
    clear:both;
    text-align: center;
}
nav.woocommerce-pagination ul {
    list-style: none;
}
nav.woocommerce-pagination ul li {
    display: inline-block;
    margin:0px;
}
nav.woocommerce-pagination ul li .page-numbers {
    display: inline-block;
    padding:2px 12px;
    border:1px solid #e0e0e0;
    border-radius: 3px;
}
.woocommerce-pagination span.page-numbers {
    background-color: #ee3124;
    border-color:#ee3124!important;
    color:#fff;
}
.woocommerce-pagination a.page-numbers {
    color:#bbb;
    transition: all 0.3s ease;
}
.woocommerce-pagination a.page-numbers:hover {
    color:#111;
    border-color:#111!important;
}
.search.mobile {
    display: none;
}


/* Responsive stacking for smaller screens */
@media (max-width: 700px) {
  #wvf-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .wvf-controls {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  #wvf-go,
  #wvf-reset {
    width: 100%;
    text-align: center;
  }
  #top.woocommerce-page select {
    width: 100%;
  }
  .search.mobile {
    display: block;
    border-top:1px solid #e0e0e0;
    padding-top:30px;
  }
  .search.desktop {
    display:none!important;
  }
  .searchsort {
    padding-top:0px;
    border-top:0;
  }

  li.product:hover {
    transform: none;
  }
  li.product {  
    margin-right:0!important;  
    width:calc(50% - 5px)!important;
  }
  li.product:nth-child(2n+1) {
    margin-right:10px!important;
  }

 .woocommerce-result-count {
    font-size:12px;
    margin-top: 5px;
    line-height: 1.2em;
 }

}
