/* =====================================================
   FILTER SYSTEM
===================================================== */

/* naslovi */
.wpc-filter-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 16px;
}

/* card style */
.wpc-filters-section {
  background: #F4FAFA;
  padding: 16px;
  border-radius: 10px;
}

/* =========================
   GUMB FILTRI
========================= */

.wpc-filters-button-text {
  font-size: 0; /* skrije original text */
}

.wpc-filters-button-text::after {
  content: "Filtri";
  font-size: 14px;
  font-weight: 500;
}

/* skrije ikono */
.wpc-icon-html-wrapper {
  display: none;
}

.wpc-open-close-filters-button.wpc-show-counts-no {

  background: #EEF3F3;
  border: 1px solid #C8D4D4;
  border-radius: 8px !important;

  padding: 10px 14px !important; /* 🔥 ključno */

  display: inline-flex; 
  align-items: center;
  gap: 8px;

  color: #1A1A1A;
  font-weight: 500;
}

.wpc-open-close-filters-button:hover {
  background: #E3ECEC;
}

/* tekst Zapri */
.wpc-open-close-filters-button.wpc-opened 
.wpc-filters-button-text::after {
  content: "Zapri";
}

/* =========================
   FILTER SPOL (GLOBAL)
========================= */

.wpc-filter-pa_spol ul.wpc-filters-labels {
  display: block !important;
  margin: 0;
  padding: 0;
}

.wpc-filter-pa_spol li {
  display: block;
  width: 100%;
  margin-bottom: 8px;
}

.wpc-filter-pa_spol .wpc-term-item-content-wrapper {
  display: block !important;
  width: 100%;
}

.wpc-filter-pa_spol label {
  display: block !important;
  width: 100%;
  border: 1px solid #E3E8E8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.wpc-filter-pa_spol a.wpc-filter-link {
  display: block !important;
  width: 100%;
  padding: 10px 12px;
  text-align: center;
  color: #1A1A1A;
  background: transparent !important;
}

/* hover */
.wpc-filter-pa_spol label:hover {
  background: #37A1A1;
  border-color: #37A1A1;
}

.wpc-filter-pa_spol label:hover a {
  color: #fff;
}

/* active */
.wpc-filter-pa_spol .wpc-term-selected label {
  background: #37A1A1 !important;
  border-color: #37A1A1;
}

.wpc-filter-pa_spol .wpc-term-selected a {
  color: #fff !important;
}

/* =========================
   FILTER ZNAMKA (GLOBAL)
========================= */

.wpc-filter-product_brand ul.wpc-filters-labels {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0;
}

.wpc-filter-product_brand li {
  display: flex;
  justify-content: center;
}

.wpc-filter-product_brand .wpc-term-item-content-wrapper,
.wpc-filter-product_brand .wpc-filter-label-wrapper,
.wpc-filter-product_brand .wpc-term-image-wrapper {
  padding: 0 !important;
  margin: 0 !important;
}

.wpc-filter-product_brand label {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 60px;
  width: 100px;

  border: 1px solid #E3E8E8;
  border-radius: 8px;
}

.wpc-filter-product_brand a.wpc-filter-link {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0px;
  width: 100%;
  height: 100%;
}

.wpc-filter-product_brand img {
  max-height: 26px;
}

.wpc-filter-product_brand .wpc-term-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

/* =========================
   FILTER VELIKOST (GLOBAL)
========================= */

.wpc-filter-pa_velikost ul.wpc-filters-labels {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
}

.wpc-filter-pa_velikost li {
  margin: 0 !important;
  height: auto;
}

.wpc-filter-pa_velikost .wpc-term-item-content-wrapper,
.wpc-filter-pa_velikost .wpc-filter-label-wrapper {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wpc-filter-pa_velikost label {
  display: block !important;
  background: #FFF;
  width: 100%;
  height: 100%;
}

.wpc-filter-pa_velikost a.wpc-filter-link {
  display: flex !important;
  width: 100%;

  min-height: 40px;
  padding: 6px 10px;

  justify-content: center;
  align-items: center;

  border-radius: 6px;
  color: #1A1A1A;
}

/* hover */
.wpc-filter-pa_velikost a.wpc-filter-link:hover {
  background: #37A1A1 !important;
  border: 1px solid #37A1A1;
}


/* active */
.wpc-filter-pa_velikost .wpc-term-selected a {
  background: #37A1A1;
  color: #fff;
}

/* skrij input */
.wpc-filter-pa_velikost input.wpc-label-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


/* =========================
   FILTER BARVA
========================= */

/* skrij checkbox */
.wpc-filter-pa_barva_filter input {
  display: none;
}

/* GRID */
.wpc-filter-pa_barva_filter ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px !important;
}

.wpc-filter-pa_barva_filter label {
  overflow: visible !important;
}

@media (max-width:768px){
.wpc-filter-pa_barva_filter ul {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 0px;
  margin: 0;
  padding: 0;}
}

/* 🔥 ubij notranji scroll (barva) */
.wpc-filter-pa_barva_filter 
.wpc-filters-ul-list {
  overflow: visible !important;
  max-height: none !important;
}

/* UBIJ margin od plugina */
.wpc-filter-pa_barva_filter li.wpc-checkbox-item {
  margin: 0 !important;
}

.wpc-filter-pa_barva_filter li {
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* wrapper reset */
.wpc-filter-pa_barva_filter .wpc-term-item-content-wrapper {
  display: block !important;
  height: 100%;
}

/* LABEL */
.wpc-filter-pa_barva_filter label {
  display: block !important;
  width: 100%;
  height: 100%;
}

/* LINK = ključ */
.wpc-filter-pa_barva_filter a.wpc-filter-link {
  display: flex !important;
  width: 100%;
  height: 100%;

  justify-content: center;
  align-items: center;

  margin: 0 !important;        
  padding: 0 !important;       
}

/* ubij baseline bug */
.wpc-filter-pa_barva_filter .wpc-term-swatch-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* krog naj bo block */
.wpc-filter-pa_barva_filter .wpc-term-swatch {
  display: block;
}

.wpc-filter-pa_barva_filter .wpc-term-name {
  display: none !important;
}

/* reset plugin flex */
body .wpc-filter-pa_barva_filter 
.wpc-term-item-content-wrapper,
body .wpc-filter-pa_barva_filter 
.wpc-filter-label-wrapper {
  display: block !important;
}

/* label = clickable area */
body .wpc-filter-pa_barva_filter label {
  display: flex !important;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 36px;

  margin: 0 !important;
  padding: 0 !important;

  overflow: visible !important; /* 🔥 ključ */
  cursor: pointer;
}

/* link reset */
body .wpc-filter-pa_barva_filter a.wpc-filter-link {
  display: flex !important;
  width: 100%;
  height: 100%;
}

/* swatch Force Size*/
body .wpc-filter-pa_barva_filter 
li.wpc-term-item label span.wpc-term-swatch {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
}

/* 🔥 HOVER (NA LABEL!) */
body .wpc-filter-pa_barva_filter label:hover .wpc-term-swatch {
  transform: scale(1.1);
  transition: all 0.2s ease;
  box-shadow: 0 0 0 4px rgba(55,161,161,0.25);
  border-color: #37A1A1;
}

/* 🔥 wrapper naj diha */
.wpc-filter-pa_barva_filter .wpc-term-swatch-wrapper {
  padding: 4px;
  box-sizing: content-box;
}

/* 🔥 odstrani auto white border */
.wpc-term-swatch-wrapper:has(.wpc-term-swatch[style*="#ffffff"]) {
  border: none !important;
}

/* 🔥 white swatch – enoten stil */
.wpc-term-swatch[style*="#ffffff"] {
  border: 1px solid #C7D1D1;
}

/* 🔥 FINAL ACTIVE – vedno viden */
body .wpc-filter-pa_barva_filter 
.wpc-term-selected .wpc-term-swatch {

  border-color: #37A1A1;

  box-shadow:
    inset 0 0 0 2px #ffffff,   /* notranji kontrast */
    0 0 0 2px #37A1A1;         /* zunanji brand ring */
}

/* =========================
   FILTER CENA
========================= */

.wpc-filters-widget-content 
.wpc-filters-section 
input[type="number"] {

  background: #fff !important;
  border: 1px solid #E3E8E8;
  border-radius: 8px;

  height: 40px;
  padding: 0 12px;

  font-size: 16px;
}

/* =========================
   CHIPS – FIXED STRUCTURE
========================= */

/* container */
body .wpc-filter-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

/* li reset */
body .wpc-filter-chips-list li {
  margin: 0 !important;
}

/* LINK kot chip */
body .wpc-filter-chips-list li.wpc-filter-chip a {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;

  padding: 6px 12px !important;

  border: 1px solid #37A1A1 !important;
  border-radius: 8px !important;

  background: #fff !important;
  color: #1A1A1A !important;

  font-size: 13px;
  line-height: 1;

  text-decoration: none;
}

/* INNER */
body .wpc-filter-chips-list .wpc-chip-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* remove X */
body .wpc-filter-chips-list .wpc-chip-remove-icon {
  font-size: 12px;
  opacity: 0.6;
}

/* hover */
body .wpc-filter-chips-list li.wpc-filter-chip a:hover {
  background: #37A1A1 !important;
  color: #fff !important;
}

body .wpc-filter-chips-list a:hover .wpc-chip-remove-icon {
  opacity: 1;
}

/* RESET ALL */
body .wpc-filter-chips-list li.wpc-chip-reset-all a {
  background: #FFF3F0 !important;
  border: 1px solid #FF6B35 !important;
  color: #FF6B35 !important;
  font-weight: 600 !important;
}

/* RESET ALL hover */
body .wpc-filter-chips-list li.wpc-chip-reset-all a:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* =========================
   ACTIVE CHIPS
========================= */

/* ACTIVE CHIPS – FORCE */
body .wpc-filter-chips-list li.wpc-filter-chip:not(.wpc-chip-reset-all) a {
  background: #37A1A1 !important;
  color: #fff !important;
  border-color: #37A1A1 !important;
}

/* hover */
body .wpc-filter-chips-list li.wpc-filter-chip:not(.wpc-chip-reset-all) a:hover {
  background: #2d8c8c !important;
}

