.wpbay-search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-family: 'Manrope';
}

.wpbay-filter-sidebar {
    flex: 1 1 250px;
    max-width: 300px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
}

.wpbay-filter-sidebar h4 {
    margin-top: 1.2rem;
    font-size: 1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.2rem;
}

.wpbay-filter-sidebar label {
    display: block;
    margin: 0.3rem 0;
    cursor: pointer;
}

.wpbay-filter-sidebar input[type="text"],
.wpbay-filter-sidebar input[type="number"],
.wpbay-filter-sidebar select {
    width: 100%;
    padding: 6px 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.wpbay-filter-sidebar button {
    margin-top: 1rem;
    background-color: #0073aa;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.wpbay-filter-sidebar button:hover {
    background-color: #005177;
}

.wpbay-results-area {
    flex: 3;
    min-width: 300px;
}

.wpbay-results-area .loading {
    font-style: italic;
    color: #666;
}
#min_sales {
    width: 100%;
    margin-top: 10px;
}

#sales-label {
    display: block;
    margin-top: 8px;
    font-weight: bold;
    color: #555;
}
.wpbay-categories-scroll {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    background: #fff;
    resize: vertical; 
    overflow: auto;   
    max-height: 400px; 
    min-height: 200px;
}
.wpbay-categories-scroll label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}
.subcat {
    margin-left: 15px;
    padding-left: 10px;
    border-left: 2px solid #eee;
    margin-bottom: 10px;
}
.col-lg-6,
.col-sm-6 {
    flex: none;
    max-width: none;
}
.wpbay-placeholder {
    font-style: italic;
    color: #888;
    padding: 10px;
    font-size: 15px;
}
.wpbay-pagination {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}
.wpbay-page-btn {
    margin: 0 5px;
    padding: 6px 10px;
    background-color: #eaeaea;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
}
.wpbay-page-btn.active {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}
#wpbay-search-form
{
    border: 1px solid;
    border-color: var(--mercury);
    border-radius: 16px;
    padding: 16px;
}
.searchkey
{
    align-items: center;
    align-self: stretch;
    background-color: white;
    border: 1px solid;
    border-color: var(--mercury);
    border-radius: 999px;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    padding: 10px 12px;
    position: relative;
    width: 100%;
}
.frame-291 {
    align-items: center;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-color: var(--mercury);
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 0px 0px 16px;
    position: relative;
    width: 268px;
}
.frame {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
    position: relative;
}
.filter {
    height: 16px;
    position: relative;
    width: 16px;
}

.filter-1 {
    color: var(--shark);
    font-weight: 800;
    line-height: 26.6px;
    margin-top: -1.00px;
    position: relative;
    white-space: nowrap;
    width: fit-content;
}
.block-price
{
    display: block;
}
.float-right
{
    float: right;
}
.price-margin
{
    width: 48% !important;
    align-items: center !important;
    align-self: stretch !important;
    border: 1px solid !important;
    border-color: var(--mercury) !important;
    border-radius: 8px !important;
    gap: 8px !important;
    padding: 8px 16px !important;
}
#wpbay-search-btn
{
    align-items: center;
    background-color: var(--red-violet);
    border-radius: 9999999px;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 10px;
    justify-content: center;
    padding: 8px 16px;
    position: relative;
}
.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #A23BAA 0%, #A23BAA 0%, #eee 0%, #eee 100%);
  outline: none;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #A23BAA;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  position: relative;
  z-index: 2;
}

.custom-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #A23BAA;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
.custom-slider::-ms-thumb {
  width: 20px;
  height: 20px;
  background: #A23BAA;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
.frame-307 label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 400;
  cursor: pointer;
}

.frame-307 input[type="radio"] {
  accent-color: #A23BAA; 
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.rating-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.rating-radio input[type="radio"] {
  accent-color: #A23BAA;
  cursor: pointer;
}

.star-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.rating-badge {
  background: #eee;
  color: #555;
  font-size: 12px;
  border-radius: 8px;
  padding: 2px 6px;
  margin-left: 4px;
}
.wpbay-categories-scroll input[type="checkbox"] {
  accent-color: #A23BAA;
  cursor: pointer;
  width: 16px;
  height: 16px;
}
.wpbay-filter-sidebar input[type="checkbox"] {
  accent-color: #A23BAA;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.arrows-2.rotated {
  transform: rotate(-90deg);
  transition: transform 0.2s ease;
}
.arrows-2 {
  transition: transform 0.3s ease;
}

.arrows-2.rotated {
  transform: rotate(-90deg);
}

.collapse-me {
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.collapse-me.collapsed {
  max-height: 0;
}
@media (max-width: 768px) {

  .wpbay-search-container {
    flex-direction: column;
  }

  .wpbay-filter-sidebar {
    max-width: 100%;
    width: 100%;
  }

  .col-lg-6,
  .col-sm-6 {
    max-width: 100%;
    width: 100%;
  }
}
#wpbay-results-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    min-width: 0;
}

#wpbay-results-container > .wpbay-item {
    width: auto;
    min-width: 0;
    max-width: none;
}

#wpbay-results-container > .wpbay-pagination,
#wpbay-results-container > .wpbay-placeholder,
#wpbay-results-container > .wpbay-no-results {
    grid-column: 1 / -1;
}

@media (max-width: 1180px) {
    #wpbay-results-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .wpbay-search-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .wpbay-filter-sidebar,
    .wpbay-results-area {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    #wpbay-results-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 480px) {
    #wpbay-results-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
/* Search page layout */
.wpbay-search-container {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    width: 100%;
    font-family: Manrope, Arial, sans-serif;
}

.wpbay-filter-sidebar {
    position: sticky;
    top: 24px;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
}

.wpbay-results-area {
    width: 100%;
    min-width: 0;
}

/* Results grid */
#wpbay-results-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

#wpbay-results-container > .wpbay-item {
    width: auto;
    min-width: 0;
    max-width: none;
}

/* Required card structure */
#wpbay-results-container .wpbay-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    padding: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    box-sizing: border-box;
    box-shadow: 0 14px 35px rgba(22, 25, 37, 0.08);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#wpbay-results-container .wpbay-product-card:hover {
    transform: translateY(-4px);
    border-color: #d9dce6;
    box-shadow: 0 20px 45px rgba(22, 25, 37, 0.12);
}

#wpbay-results-container .wpbay-product-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 9px;
    background: #f4f5f8;
}

#wpbay-results-container .wpbay-product-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#wpbay-results-container .wpbay-product-card__body {
    flex: 1;
    min-width: 0;
    padding: 10px 6px 8px;
}

#wpbay-results-container .wpbay-product-card__title {
    display: -webkit-box;
    min-height: 40px;
    margin: 0 0 20px;
    overflow: hidden;
    color: #222832;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

#wpbay-results-container .wpbay-product-card__title a {
    color: inherit;
    text-decoration: none;
}

#wpbay-results-container .wpbay-product-card__price-row,
#wpbay-results-container .wpbay-product-card__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: 10px;
}

#wpbay-results-container .wpbay-product-card__stars {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
    overflow: hidden;
    font-size: 17px;
    line-height: 1;
    white-space: nowrap;
}

#wpbay-results-container .wpbay-product-card__stars .is-filled {
    color: #f5b400;
}

#wpbay-results-container .wpbay-product-card__stars .is-empty {
    color: #b9bec8;
}

#wpbay-results-container .wpbay-product-card__price,
#wpbay-results-container .wpbay-product-card__price *,
#wpbay-results-container .wpbay-product-card__price .amount,
#wpbay-results-container .wpbay-product-card__price bdi {
    color: #10a82f;
    font-size: 20px;
    font-weight: 900 !important;
    line-height: 1.1;
    white-space: nowrap;
}

#wpbay-results-container .wpbay-product-card__meta-row {
    margin-top: 8px;
}

#wpbay-results-container .wpbay-product-card__seller,
#wpbay-results-container .wpbay-product-card__sales {
    min-width: 0;
    color: #4f5662;
    font-size: 12px;
    line-height: 1.35;
}

#wpbay-results-container .wpbay-product-card__seller {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#wpbay-results-container .wpbay-product-card__seller a {
    color: inherit;
    text-decoration: none;
}

#wpbay-results-container .wpbay-product-card__sales {
    flex: 0 0 auto;
    white-space: nowrap;
}

#wpbay-results-container .wpbay-product-card__actions {
    display: flex;
    gap: 8px;
    padding-top: 8px;
}

#wpbay-results-container .wpbay-product-card__preview,
#wpbay-results-container .wpbay-product-card__cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid #e1e4ea;
    border-radius: 999px;
    background: #f9fafb;
    text-decoration: none;
    box-sizing: border-box;
}

#wpbay-results-container .wpbay-product-card__preview {
    flex: 1;
    min-width: 0;
    color: #111 !important;
    font-size: 13px;
    font-weight: 800;
}

#wpbay-results-container .wpbay-product-card__cart {
    flex: 0 0 50px;
    width: 50px;
}

#wpbay-results-container .wpbay-product-card__cart img {
    width: 17px;
    height: 17px;
}

#wpbay-results-container .wpbay-product-card__preview:hover,
#wpbay-results-container .wpbay-product-card__preview:focus-visible {
    color: #fff !important;
    background: #bc28b7;
    border-color: #bc28b7;
}

#wpbay-results-container .wpbay-product-card__cart:hover,
#wpbay-results-container .wpbay-product-card__cart:focus-visible {
    background: #10a82f;
    border-color: #10a82f;
}

#wpbay-results-container .wpbay-product-card__cart:hover img,
#wpbay-results-container .wpbay-product-card__cart:focus-visible img {
    filter: brightness(0) invert(1);
}

/* Full-width result messages */
#wpbay-results-container > .wpbay-pagination,
#wpbay-results-container > .wpbay-placeholder,
#wpbay-results-container > .wpbay-no-results {
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 1180px) {
    #wpbay-results-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .wpbay-search-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .wpbay-filter-sidebar {
        position: static;
    }

    #wpbay-results-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 480px) {
    #wpbay-results-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #wpbay-results-container .wpbay-product-card__price,
    #wpbay-results-container .wpbay-product-card__price * {
        font-size: 18px;
    }
}

/* Marketplace search experience */
#wpbay-search-form.wpbay-search-form {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.wpbay-search-hero {
    position: relative;
    z-index: 10;
    margin-bottom: 28px;
    padding: 28px;
    overflow: visible;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.16), transparent 26%),
        linear-gradient(135deg, #24143d 0%, #612267 55%, #a23baa 100%);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(55, 20, 66, 0.18);
}

.wpbay-search-hero__copy {
    margin-bottom: 18px;
}

.wpbay-search-hero__copy h2 {
    margin: 0 0 6px;
    color: inherit;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    line-height: 1.2;
}

.wpbay-search-hero__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.wpbay-search-field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(16, 8, 31, 0.22);
}

.wpbay-search-field:focus-within {
    border-color: #e3b4e8;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 14px 38px rgba(16, 8, 31, 0.25);
}

.wpbay-search-field__icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0 12px;
    color: #6d6275;
}

#wpbay-search-keyword.searchkey {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0;
    color: #211b26;
    font-size: 16px;
    background: transparent;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
}

#wpbay-search-keyword::placeholder {
    color: #817889;
}

#wpbay-search-keyword::-webkit-search-cancel-button,
#wpbay-search-keyword::-webkit-search-decoration,
#wpbay-search-keyword::-webkit-search-results-button,
#wpbay-search-keyword::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

.wpbay-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-right: 6px;
    padding: 0;
    color: #68606d;
    font-size: 24px;
    line-height: 1;
    background: #f2eff4;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.wpbay-search-clear:hover,
.wpbay-search-clear:focus-visible {
    color: #211b26;
    background: #e7e2e9;
}

#wpbay-search-btn.wpbay-search-submit {
    min-width: 130px;
    min-height: 48px;
    margin: 0;
    padding: 10px 22px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    background: #a23baa;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    cursor: pointer;
}

#wpbay-search-btn.wpbay-search-submit:hover,
#wpbay-search-btn.wpbay-search-submit:focus-visible {
    background: #872d90;
}

#wpbay-search-btn.wpbay-search-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wpbay-search-spin 0.7s linear infinite;
}

@keyframes wpbay-search-spin {
    to {
        transform: rotate(360deg);
    }
}

.wpbay-search-clear[hidden],
.wpbay-filter-count[hidden],
.wpbay-clear-filters--sidebar[hidden] {
    display: none !important;
}

.wpbay-search-container {
    grid-template-columns: minmax(240px, 288px) minmax(0, 1fr);
    gap: 30px;
}

.wpbay-filter-sidebar {
    padding: 18px;
    background: #fff;
    border-color: #e4e0e7;
    box-shadow: 0 10px 30px rgba(29, 23, 34, 0.05);
}

.wpbay-filter-sidebar .frame-291 {
    width: 100%;
    padding: 0 0 14px;
}

.wpbay-filter-sidebar button.wpbay-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #29232e;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.wpbay-filter-sidebar button.wpbay-filter-toggle:hover,
.wpbay-filter-sidebar button.wpbay-filter-toggle:focus-visible {
    color: #852d8c;
    background: transparent;
}

.wpbay-filter-toggle .frame {
    display: flex;
}

.wpbay-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 4px;
    padding: 0 7px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    background: #a23baa;
    border-radius: 999px;
}

.wpbay-filter-sidebar h4 {
    margin: 19px 0 10px;
    padding: 0;
    color: #2e2832;
    font-size: 13px;
    font-weight: 850;
    border: 0;
}

.wpbay-filter-sidebar label {
    color: #4d4652;
    font-size: 13px;
}

.wpbay-filter-sidebar input[type="text"],
.wpbay-filter-sidebar input[type="number"] {
    min-height: 40px;
    border-color: #dcd7df;
    border-radius: 8px;
}

.wpbay-filter-sidebar input:focus,
.wpbay-filter-sidebar select:focus {
    border-color: #a23baa;
    outline: 3px solid rgba(162, 59, 170, 0.13);
}

.wpbay-filter-details {
    margin: 18px 0 2px;
    border: 1px solid #e7e1e9;
    border-radius: 10px;
    background: #fbf9fc;
}

.wpbay-filter-details > summary {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 13px 38px 13px 13px;
    color: #342c38;
    cursor: pointer;
    list-style: none;
}

.wpbay-filter-details > summary::-webkit-details-marker {
    display: none;
}

.wpbay-filter-details > summary::after {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #8a3b91;
    border-bottom: 2px solid #8a3b91;
    content: "";
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.18s ease;
}

.wpbay-filter-details[open] > summary::after {
    transform: translateY(-35%) rotate(225deg);
}

.wpbay-filter-details > summary span {
    font-size: 13px;
    font-weight: 850;
}

.wpbay-filter-details > summary small {
    color: #7d7482;
    font-size: 11px;
    line-height: 1.35;
}

.wpbay-filter-details__content {
    padding: 2px 12px 13px;
    border-top: 1px solid #eee8f0;
}

.wpbay-filter-control {
    margin-top: 12px;
}

.wpbay-filter-control > label,
.wpbay-filter-control__label {
    display: block;
    margin: 0;
    color: #443b48;
    font-size: 12px;
    font-weight: 750;
}

.wpbay-filter-hint {
    display: block;
    margin-top: 5px;
    color: #6f6577;
    font-size: 11px;
    line-height: 1.4;
}

.wpbay-filter-sidebar .wpbay-filter-control select {
    width: 100%;
    min-height: 40px;
    margin: 6px 0 0;
    padding: 7px 32px 7px 10px;
    color: #342d38;
    font-size: 12px;
    background-color: #fff;
    border: 1px solid #ddd6e0;
    border-radius: 8px;
}

.wpbay-filter-multiselect {
    margin-top: 6px;
    background: #fff;
    border: 1px solid #ddd6e0;
    border-radius: 8px;
}

.wpbay-filter-multiselect > summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 7px 32px 7px 10px;
    color: #342d38;
    font-size: 12px;
    cursor: pointer;
    list-style: none;
}

.wpbay-filter-multiselect > summary::-webkit-details-marker {
    display: none;
}

.wpbay-filter-multiselect > summary::after {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #615967;
    border-bottom: 1.5px solid #615967;
    content: "";
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.18s ease;
}

.wpbay-filter-multiselect[open] > summary::after {
    transform: translateY(-35%) rotate(225deg);
}

.wpbay-filter-multiselect > summary:focus-visible {
    border-radius: 8px;
    outline: 3px solid rgba(162, 59, 170, 0.13);
}

.wpbay-filter-multiselect__selection {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wpbay-filter-multiselect__options {
    display: grid;
    gap: 1px;
    max-height: 180px;
    padding: 5px;
    overflow-y: auto;
    border-top: 1px solid #eee8f0;
}

.wpbay-filter-sidebar .wpbay-filter-multiselect__options label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 7px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.wpbay-filter-sidebar .wpbay-filter-multiselect__options label:hover {
    background: #f7f2f8;
}

.wpbay-filter-multiselect__options input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 2px 0 0;
}

.wpbay-filter-multiselect__empty {
    padding: 8px;
    color: #7d7482;
    font-size: 11px;
}

.wpbay-filter-switches {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}

.wpbay-filter-sidebar .wpbay-filter-switches label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding: 9px;
    background: #fff;
    border: 1px solid #e5dfe7;
    border-radius: 8px;
}

.wpbay-filter-switches input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 2px;
}

.wpbay-filter-switches span,
.wpbay-filter-switches strong,
.wpbay-filter-switches small {
    display: block;
}

.wpbay-filter-switches strong {
    color: #3b333f;
    font-size: 12px;
    line-height: 1.35;
}

.wpbay-filter-switches small {
    margin-top: 1px;
    color: #817687;
    font-size: 10px;
    line-height: 1.35;
}

.wpbay-categories-scroll {
    resize: none;
    border-color: #e3dfe6;
    border-radius: 9px;
}

.wpbay-clear-filters--sidebar {
    width: 100%;
    min-height: 40px;
    margin-top: 18px !important;
    color: #75247c !important;
    font-size: 13px;
    font-weight: 800;
    background: #f8f1f9 !important;
    border: 1px solid #ead8ec !important;
    border-radius: 9px !important;
}

.wpbay-clear-filters--sidebar:hover,
.wpbay-clear-filters--sidebar:focus-visible {
    background: #f1e3f3 !important;
}

.wpbay-results-section {
    min-width: 0;
}

#wpbay-results-container > .wpbay-results-toolbar,
#wpbay-results-container > .wpbay-seller-matches,
#wpbay-results-container > .wpbay-search-error,
#wpbay-results-container > .wpbay-loading-announcement {
    grid-column: 1 / -1;
}

.wpbay-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    gap: 18px;
    margin-bottom: -4px;
}

.wpbay-results-summary {
    margin: 0;
    color: #68616d;
    font-size: 14px;
}

.wpbay-results-summary strong {
    color: #27212b;
    font-size: 18px;
}

.wpbay-sort-control {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    margin: 0;
    color: #746c79;
    font-size: 12px;
}

.wpbay-sort-control select {
    min-height: 38px;
    margin: 0;
    padding: 7px 34px 7px 11px;
    color: #302a34;
    font-size: 13px;
    font-weight: 700;
    background-color: #fff;
    border: 1px solid #ded9e2;
    border-radius: 9px;
}

.wpbay-seller-matches {
    padding: 16px;
    background: linear-gradient(135deg, #fbf7fc, #f6f2f8);
    border: 1px solid #eadfed;
    border-radius: 14px;
}

.wpbay-seller-matches__header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.wpbay-seller-matches__header h3 {
    margin: 0;
    color: #2d2531;
    font-size: 15px;
    font-weight: 900;
}

.wpbay-seller-matches__header span {
    color: #7b7280;
    font-size: 12px;
}

.wpbay-seller-matches__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.wpbay-seller-match {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    padding: 10px;
    color: #2c2630;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e6dfe8;
    border-radius: 11px;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.wpbay-seller-match:hover,
.wpbay-seller-match:focus-visible {
    color: #2c2630;
    border-color: #cfaad4;
    outline: none;
    box-shadow: 0 7px 18px rgba(67, 38, 72, 0.1);
    transform: translateY(-2px);
}

.wpbay-seller-match__avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.wpbay-seller-match__details {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.wpbay-seller-match__details strong,
.wpbay-seller-match__details small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wpbay-seller-match__details strong {
    font-size: 13px;
}

.wpbay-seller-match__details small {
    color: #817888;
    font-size: 11px;
}

.wpbay-seller-match__arrow {
    color: #a23baa;
}

#wpbay-results-container > .wpbay-no-results,
#wpbay-results-container > .wpbay-search-error {
    padding: 54px 24px;
    color: #6b6370;
    text-align: center;
    background: #faf9fb;
    border: 1px dashed #dcd6df;
    border-radius: 15px;
}

#wpbay-results-container > .wpbay-placeholder {
    padding: 64px 24px;
    color: #746c79;
    font-style: normal;
    text-align: center;
    background: #faf9fb;
    border: 1px dashed #dcd6df;
    border-radius: 15px;
}

.wpbay-placeholder > span {
    display: block;
    margin-bottom: 8px;
    font-size: 32px;
}

.wpbay-placeholder > strong {
    display: block;
    color: #302a34;
    font-size: 18px;
}

.wpbay-placeholder > p {
    max-width: 520px;
    margin: 5px auto 0;
}

.wpbay-no-results h3,
.wpbay-search-error h3 {
    margin: 8px 0 6px;
    color: #2d2731;
    font-size: 19px;
}

.wpbay-no-results p,
.wpbay-search-error p {
    max-width: 520px;
    margin: 0 auto 16px;
}

.wpbay-no-results__icon {
    font-size: 32px;
}

.wpbay-clear-filters,
.wpbay-search-retry {
    min-height: 40px;
    padding: 8px 16px;
    color: #fff;
    font-weight: 800;
    background: #a23baa;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.wpbay-search-skeleton {
    min-height: 320px;
    padding: 8px;
    background: #fff;
    border: 1px solid #ece9ee;
    border-radius: 14px;
}

.wpbay-search-skeleton > span {
    display: block;
    overflow: hidden;
    background: #ece9ef;
}

.wpbay-search-skeleton > span::after {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
    transform: translateX(-100%);
    animation: wpbay-search-shimmer 1.25s infinite;
    content: "";
}

.wpbay-search-skeleton__image {
    aspect-ratio: 16 / 9;
    border-radius: 9px;
}

.wpbay-search-skeleton__line {
    width: 62%;
    height: 12px;
    margin: 13px 7px 0;
    border-radius: 6px;
}

.wpbay-search-skeleton__line--wide {
    width: 86%;
    margin-top: 18px;
}

.wpbay-search-skeleton__actions {
    height: 38px;
    margin: 32px 7px 0;
    border-radius: 999px;
}

@keyframes wpbay-search-shimmer {
    to {
        transform: translateX(100%);
    }
}

.wpbay-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.wpbay-pagination__pages {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wpbay-page-btn {
    min-width: 38px;
    height: 38px;
    margin: 0;
    padding: 0 10px;
    color: #423b47;
    font-weight: 750;
    background: #fff;
    border-color: #ded9e2;
    border-radius: 9px;
}

.wpbay-page-btn:hover:not(:disabled),
.wpbay-page-btn:focus-visible {
    color: #832d8a;
    border-color: #bc86c1;
}

.wpbay-page-btn.active {
    color: #fff;
    background: #a23baa;
    border-color: #a23baa;
}

.wpbay-page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.wpbay-page-btn--direction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
}

.wpbay-pagination__ellipsis {
    color: #847c88;
}

@media (prefers-reduced-motion: reduce) {
    .btn-spinner,
    .wpbay-search-skeleton > span::after {
        animation: none;
    }

    #wpbay-results-container .wpbay-product-card,
    .wpbay-seller-match {
        transition: none;
    }
}

@media (max-width: 900px) {
    .wpbay-seller-matches__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wpbay-search-hero {
        padding: 22px;
        border-radius: 16px;
    }

    .wpbay-search-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .wpbay-filter-sidebar {
        padding: 14px 16px;
    }

    .wpbay-filter-sidebar .collapse-me {
        max-height: 5000px;
    }

    .wpbay-filter-sidebar .collapse-me.collapsed {
        max-height: 0;
    }
}

@media (max-width: 560px) {
    .wpbay-search-hero {
        padding: 18px;
    }

    .wpbay-search-hero__copy h2 {
        font-size: 24px;
    }

    .wpbay-search-field {
        flex-wrap: wrap;
        padding: 7px;
    }

    .wpbay-search-field__icon {
        margin-left: 8px;
    }

    #wpbay-search-keyword.searchkey {
        width: calc(100% - 86px);
    }

    #wpbay-search-btn.wpbay-search-submit {
        width: 100%;
        margin-top: 6px;
    }

    .wpbay-results-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .wpbay-sort-control {
        justify-content: space-between;
        width: 100%;
    }

    .wpbay-sort-control select {
        flex: 1;
    }

    .wpbay-seller-matches__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .wpbay-pagination {
        justify-content: space-between;
    }

    .wpbay-page-btn--direction span:not([aria-hidden]) {
        display: none;
    }
}
