/* 1. Vyhľadávacie vstupy "Hledat..." */
.scwf-filter-wrapper input[type="text"],
.scwf-filter-wrapper input[type="search"],
.scwf-filter-wrapper .scwf-search-box,
.scwf-search-input {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

.scwf-filter-wrapper input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

/* 2. Samotný Select Box (aktívny aj neaktívny stav) */
.scwf-filter-wrapper select,
.scwf-filter-wrapper .scwf-select-dropdown,
.scwf-filter-wrapper .select2-container--default .select2-selection--single {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    height: 44px !important;
}

/* 3. Text vo vnútri vybraného Selectu */
.scwf-filter-wrapper select option,
.scwf-filter-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* 4. Rozbalená ponuka (Dropdown Menu List) */
.scwf-filter-wrapper select option:hover,
.scwf-filter-wrapper select option:focus,
.scwf-filter-wrapper select option:checked,
.scwf-filter-wrapper .select2-dropdown,
.scwf-filter-wrapper .select2-results__option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* Hover / Zvýraznená položka v zozname */
.scwf-filter-wrapper .select2-results__option--highlighted[aria-selected],
.scwf-filter-wrapper select option:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

/* 5. Heading & Text Contrast Fix */
.scwf-filter-container h1,
.scwf-filter-container h2,
.scwf-filter-container h3,
.scwf-filter-container h4,
.scwf-filter-container h5,
.scwf-filter-container h6,
.scwf-filter-wrapper h1,
.scwf-filter-wrapper h2,
.scwf-filter-wrapper h3,
.scwf-filter-wrapper h4,
.scwf-filter-wrapper h5,
.scwf-filter-wrapper h6,
.scwf-results-title,
.scwf-found-products-heading {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.scwf-filter-container p,
.scwf-filter-wrapper p,
.scwf-no-products-message,
.scwf-results-info {
    color: #475569 !important;
}

/* Placeholder and Empty State Messages Contrast Fix */
.scwf-placeholder-msg,
.scwf-no-products,
.scwf-no-products-message,
.scwf-results-section .scwf-placeholder-msg,
.scwf-results-section .scwf-no-products,
#scwf-products-container .scwf-placeholder-msg,
#scwf-products-container .scwf-no-products {
    color: #1e293b !important;
    background-color: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 24px 20px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    margin: 16px 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* 1. FILTR POD SEBA (MOBIL & TABLET): */
@media (max-width: 767px) {
  .scwf-filter-container,
  .scwf-level-wrapper,
  .scwf-select {
    width: 100% !important;
    display: block !important;
    margin-bottom: 12px !important;
  }
}

@media (max-width: 767px) {
  /* Vynútenie 2 stĺpcov na WooCommerce obal */
  .scwf-products-wrapper ul.products,
  .scwf-products-grid,
  .products.columns-3,
  .products.columns-4,
  ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    grid-template-columns: none !important;
    margin: 0 -5px !important;
    padding: 0 !important;
  }

  /* Vynútenie 50% šírky pre každý jeden produkt */
  .scwf-products-wrapper ul.products li.product,
  .scwf-products-grid .product,
  .scwf-product-card,
  ul.products li.product,
  .woocommerce ul.products li.product {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding: 0 5px !important;
    margin: 0 0 15px 0 !important;
    box-sizing: border-box !important;
    clear: none !important;
    float: left !important;
  }

  /* Prispôsobenie obrázkov a textu vo vnútri karty */
  ul.products li.product img,
  .scwf-product-card img {
    width: 100% !important;
    height: auto !important;
  }

  ul.products li.product h2,
  ul.products li.product h3,
  .scwf-product-card h3 {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  ul.products li.product .price,
  .scwf-product-card .price {
    font-size: 13px !important;
  }

  ul.products li.product .button,
  .scwf-product-card button {
    font-size: 10px !important;
    padding: 6px 2px !important;
    width: 100% !important;
  }
}