/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* ====== WCF – panel filtrów (jak na screenie) ====== */
.wcf-filters {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 22px;
    padding: 18px 16px;
}

/* Sekcje + separatory */
.wcf-block {
    padding: 18px 4px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    margin: 0;
}

.wcf-block:first-child {
    border-top: 0;
    padding-top: 0;
}

.wcf-block__title {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 12px 0;
    color: #111;
}

/* Nagłówek (dodamy niżej w HTML) */
.wcf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 4px 14px 4px;
}

.wcf-head__title {
    font-weight: 800;
    font-size: 18px;
    margin: 0;
}

/* Pill button / select */
.wcf-pill,
.wcf-select {
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    background: #fff;
}

.wcf-pill {
    cursor: pointer;
    line-height: 1;
}

/* Select w formie pill */
.wcf-select {
    width: auto;
}

/* Slider */
.wcf-range {
    margin-top: 10px;
}

.wcf-range__label {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(0, 0, 0, .72);
}

.wcf-currency {
    margin-left: 4px;
}

/* Track/Thumb (webkit) */
.wcf-filters input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    outline: none;
}

.wcf-filters input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
}

.wcf-filters input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #1f3d2a;
    /* zielony jak na screenie */
    border: 3px solid #fff;
    margin-top: -5px;
    /* wycentrowanie na track */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

/* Track/Thumb (Firefox) */
.wcf-filters input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
}

.wcf-filters input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #1f3d2a;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

/* Lista checkboxów */
.wcf-list {
    display: grid;
    gap: 14px;
    margin-top: 6px;
}

.wcf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.wcf-item span {
    color: rgba(0, 0, 0, .72);
}

/* Custom checkbox */
.wcf-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, .25);
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.wcf-item input[type="checkbox"]:checked {
    background: #1f3d2a;
    border-color: #1f3d2a;
}

.wcf-item input[type="checkbox"]:checked::after {
    content: "✓";
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

/* ukrywanie + link "See all" */
.wcf-item.is-hidden {
    display: none;
}

.wcf-seeall {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f3d2a;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
}

/* loading results */
.wcf-results.is-loading {
    opacity: .55;
    pointer-events: none;
}

/* GRID */
.wcf-grid {
    display: grid;
    gap: 24px;
}

.wcf-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .wcf-grid--cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wcf-grid--cols-3 {
        grid-template-columns: 1fr;
    }
}

/* CARD */
.wcf-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 32px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wcf-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    overflow: hidden;
}

.wcf-card__img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    display: block;
}

.wcf-card__title {
    font-weight: 800;
    font-size: 34px;
    line-height: 1.05;
    color: #111;
    text-decoration: none;
}

.wcf-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* PRICES */
.wcf-price {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.wcf-price__regular {
    text-decoration: line-through;
    opacity: .55;
    font-size: 20px;
}

.wcf-price__sale {
    font-size: 24px;
    font-weight: 500;
}

/* ATC BUTTON */
.wcf-atc {
    background: #1f3d2a;
    color: #fff !important;
    border-radius: 999px;
    padding: 16px 26px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none !important;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    white-space: nowrap;
}

.wcf-atc:hover {
    filter: brightness(.95);
}

.wcf-atc.is-disabled {
    background: rgba(0, 0, 0, .1);
    color: rgba(0, 0, 0, .6) !important;
}
/* ===== WCF product card – typography overrides ===== */

/* Title as H3 */
.wcf-card__title{
  font-family: "Forma DJR Text Medium" !important;
  font-style: normal !important;
  font-weight: 400 !important;
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  /* zostawiamy CSS variables jak podałeś */
  --fontSize: 24;
  --minFontSize: 24;
}

.wcf-card__title a{
  color: #111;
  text-decoration: none;
}

/* Price block */
.wcf-price{
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

/* Main price = 14px */
.wcf-price__sale{
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* Striked price = 12px */
.wcf-price__regular{
  font-size: 12px !important;
  font-weight: 400 !important;
  text-decoration: line-through;
  opacity: .65;
}

/* Button smaller + text 13px */
.wcf-atc{
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  min-width: 160px !important;
}

/* Optional: align bottom row nicer */
.wcf-card__bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Optional: stop huge title from taking too much space */
.wcf-card{
  gap: 14px;
}
