/* =========================================================
   PLASTONAX FILTERS – LIGHT UI (WooCommerce)
   =========================================================
   - Drop-in restyle for the TachTek Product Filters plugin.
   - Colors are driven by CSS variables below.
   - You can override variables in Elementor / theme Custom CSS.
*/

:root{
  /* Brand */
  --plx-primary: #0094e5;      /* Plastonax blue */
  --plx-primary-2: #006faf;    /* darker hover */

  /* Neutrals */
  --plx-bg: #ffffff;
  --plx-surface: #f8fafc;
  --plx-border: rgba(15,23,42,0.14);
  --plx-text: #0f172a;
  --plx-muted: rgba(15,23,42,0.70);

  /* Effects */
  --plx-radius: 14px;
  --plx-shadow: 0 12px 30px rgba(2, 6, 23, 0.10);
  --plx-focus: 0 0 0 4px rgba(0,148,229,0.18);
}

.tt-filters{
  background: var(--plx-surface);
  border-radius: var(--plx-radius);
  padding: 18px;
  border: 1px solid var(--plx-border);
  box-shadow: var(--plx-shadow);
  color: var(--plx-text);
  max-width: 100%;
}

.tt-filters *{ box-sizing: border-box; }

/* Section titles */
.tt-filters .tt-label{
  color: var(--plx-text);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px 0;
}

/* Inputs */
.tt-input{
  background: var(--plx-bg);
  color: var(--plx-text);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--plx-border);
  width: 100%;
  max-width: 100%;
  display: block;
}

.tt-input:focus{
  border-color: var(--plx-primary);
  box-shadow: var(--plx-focus);
  outline: none;
}

/* Checkboxes */
.tt-check{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.2;
  margin: 6px 0;
}

/* count pill next to option */
.tt-check__count{
  margin-left: auto;
  font-size: 12px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.55);
}

/* when option is selected but currently has 0 results */
.tt-check.is-zero{
  opacity: 0.7;
}

.tt-check input{
  width: 16px;
  height: 16px;
  accent-color: var(--plx-primary);
}

/* Category parent */
.tt-cat-parent{
  font-weight: 800;
  margin: 8px 0;
  color: var(--plx-muted);
}

/* Attribute group title */
.tt-attr__title{
  font-weight: 900;
  margin: 12px 0 8px;
}

/* Actions row */
.tt-actions{
  display:flex;
  gap: 10px;
  margin-top: 14px;
}

/* Buttons */
.tt-btn{
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  border: 1px solid var(--plx-border);
  background: var(--plx-bg);
  color: var(--plx-text);
  cursor: pointer;
}

.tt-btn--primary{
  background: var(--plx-primary);
  border-color: var(--plx-primary);
  color: #fff;
}

.tt-btn--primary:hover{
  background: var(--plx-primary-2);
  border-color: var(--plx-primary-2);
}

.tt-btn--ghost{
  background: transparent;
}

.tt-btn--ghost:hover{
  background: rgba(0,148,229,0.08);
  border-color: rgba(0,148,229,0.28);
}


/* =========================================================
   PRICE SECTION – layout
   ========================================================= */

.tt-filters .tt-price{
  margin: 0 0 14px 0;
  padding: 0 0 14px 0;
  border-bottom: 1px solid var(--plx-border);
}

.tt-filters .tt-price__values{
  display: flex;
  gap: 12px;
  width: 100%;
  margin: 0 0 12px 0;
}

.tt-filters .tt-price__val{
  flex: 1 1 0;
  min-width: 0;
}

.tt-filters .tt-price__cap{
  display:block;
  font-size: 12px;
  font-weight: 700;
  color: var(--plx-muted);
  margin: 0 0 6px 0;
}


/* =========================================================
   PRICE SLIDER (jQuery UI)
   ========================================================= */

.tt-filters .tt-slider{
  width: 100%;
  margin: 6px 0 0 0;
  padding: 0;
}

.tt-filters .ui-slider{
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--plx-border);
}

.tt-filters .ui-slider .ui-slider-range{
  height: 100%;
  background: var(--plx-primary);
  border-radius: 999px;
}

.tt-filters .ui-slider .ui-slider-handle{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--plx-primary);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-left: -9px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  z-index: 20;
  display: block;
  opacity: 1;
  visibility: visible;
}

.tt-filters .ui-slider .ui-slider-handle:focus{
  outline: none;
  box-shadow: var(--plx-focus);
}


/* =========================================================
   Safety / layout
   ========================================================= */

.tt-filters .tt-filter{ position: relative; }


/* =========================================================
   ASTRA: hide short description in product cards (archive)
   (keep if you want cleaner cards; remove if you need it)
   ========================================================= */

.woocommerce ul.products li.product .ast-woo-shop-product-description,
.woocommerce-page ul.products li.product .ast-woo-shop-product-description{
  display: none !important;
}

.woocommerce ul.products li.product .woocommerce-product-details__short-description,
.woocommerce-page ul.products li.product .woocommerce-product-details__short-description{
  display: none !important;
}


/* =========================================================
   Pagination + Load more
   ========================================================= */

.tt-pagination{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 22px 0 10px;
}

.tt-pagination .tt-page,
.tt-pagination .tt-load-more{
  border: 1px solid var(--plx-border);
  background: var(--plx-bg);
  color: var(--plx-text);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.tt-pagination .tt-page.is-current{
  background: var(--plx-primary);
  border-color: var(--plx-primary);
  color: #ffffff;
  cursor: default;
}

.tt-pagination .tt-page:disabled,
.tt-pagination .tt-load-more:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}

.tt-pagination .tt-page--dots{
  padding: 0 4px;
  border: 0;
  background: transparent;
  cursor: default;
}

.tt-pagination .tt-load-more{
  background: var(--plx-primary);
  border-color: var(--plx-primary);
  color: #ffffff;
  padding: 12px 16px;
}

.tt-pagination .tt-load-more:hover{
  background: var(--plx-primary-2);
  border-color: var(--plx-primary-2);
}


/* =========================================================
   ATTR ACCORDION + RANGE SLIDERS (CLEAN)
   ========================================================= */

.tt-attr{
  border-top: 1px solid var(--plx-border);
  padding-top: 10px;
  margin-top: 10px;
}

/* header row */
.tt-attr__head{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;

  background: transparent;
  border: 0;
  padding: 10px 10px;
  margin: 0;

  cursor: pointer;
  text-align: left;

  border-radius: 10px;
  transition: background .15s ease, box-shadow .15s ease;
}

.tt-attr__head:hover{
  background: rgba(15,23,42,0.04);
}

.tt-attr__head:focus{
  outline: none;
  box-shadow: var(--plx-focus);
}

/* title in header (make sure it isn't washed out) */
.tt-attr__title{
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .2px;
  color: var(--plx-text);
  margin: 0;
  text-transform: none;
}

/* open state: subtle, not a big blue bar */
.tt-attr.is-open .tt-attr__head{
  background: rgba(0,148,229,0.06);
  box-shadow: inset 0 0 0 1px rgba(0,148,229,0.18);
}

/* chevron */
.tt-attr__chev{
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15,23,42,0.55);
  border-bottom: 2px solid rgba(15,23,42,0.55);
  transform: rotate(45deg);
  transition: transform .15s ease, border-color .15s ease;
  flex: 0 0 auto;
  margin-left: 10px;
}

.tt-attr.is-open .tt-attr__chev{
  transform: rotate(-135deg);
  border-right-color: rgba(0,148,229,0.65);
  border-bottom-color: rgba(0,148,229,0.65);
}

/* body */
.tt-attr__body{
  padding: 6px 10px 12px 10px;
}

/* checkbox rows inside accordion */
.tt-attr__body .tt-check{
  margin: 8px 0;
}

/* range block */
.tt-range{
  margin-top: 8px;
}

.tt-range__values{
  display:flex;
  gap: 12px;
  margin-bottom: 10px;
}

.tt-range__val{
  flex: 1 1 0;
  min-width: 0;
}

.tt-range__hidden{ display:none; }

/* make sliders inside attributes slightly tighter */
.tt-range .ui-slider{
  height: 7px;
}

.tt-range .ui-slider .ui-slider-handle{
  width: 16px;
  height: 16px;
  margin-left: -8px;
}

.tt-attr__head,
.tt-attr__head *{
  opacity: 1 !important;
  color: inherit;
}
.tt-attr__title{
  color: var(--plx-text) !important;
}

/* FORCE unified accordion header look */
.tt-attr__head{
  background: rgba(15,23,42,0.04) !important;   /* default jemne šedé */
  color: var(--plx-text) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(15,23,42,0.10) !important;
}

/* hover */
.tt-attr__head:hover{
  background: rgba(15,23,42,0.06) !important;
}

/* open state – jemná modrá, nie mega bar */
.tt-attr.is-open .tt-attr__head{
  background: rgba(0,148,229,0.10) !important;
  border-color: rgba(0,148,229,0.25) !important;
}

/* zruš akékoľvek “button focus” pozadia z témy */
.tt-attr__head:focus,
.tt-attr__head:focus-visible{
  background: rgba(0,148,229,0.10) !important;
  outline: none !important;
  box-shadow: var(--plx-focus) !important;
}

/* title always visible */
.tt-attr__title{
  color: var(--plx-text) !important;
  opacity: 1 !important;
}
