.products-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 16px;
  margin-top: 12px;
  align-items: flex-start;
}

.products-filter {
  background: linear-gradient(180deg, rgba(40,22,18,.92), rgba(22,14,20,.90));
  border-radius: 14px;
  border: 1px solid rgba(247,211,122,.18);
  box-shadow:
    0 18px 50px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.04);

  padding: 10px;
  font-size: 0.9rem;
  color: #f1eadc;
}

.products-filter h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #f8f3e6;
  letter-spacing: .3px;
  text-shadow: 0 2px 10px rgba(255,180,90,.14);
}

/* ===== régi (pill) szűrő stílusok - maradhatnak, nem ártanak ===== */
.filter-group { margin-bottom: 12px; }

.filter-group h4 {
  margin: 6px 0;
  font-size: 0.9rem;
  color: #e9dfcd;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}

.filter-pill {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  margin-bottom: 6px;

  border-radius: 999px;
  border: 1px solid transparent;

  background: rgba(2,6,23,.08);
  color: #f1eadc;

  cursor: pointer;
  font-size: 0.9rem;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.filter-pill:hover {
  background: rgba(247,211,122,.10);
  border-color: rgba(247,211,122,.18);
}

.filter-pill.active {
  background: linear-gradient(180deg, rgba(247,211,122,.22), rgba(184,137,46,.18));
  border-color: rgba(247,211,122,.45);

  color: #fff2d2 !important;
  font-weight: 800;

  box-shadow:
    0 10px 22px rgba(0,0,0,.22),
    inset 0 0 0 1px rgba(255,255,255,.10);
}

/* =========================================
   ===== ÚJ: TREE (FA) SZŰRŐ STÍLUSOK =====
   ========================================= */

.tree-filter .tree-node {
  margin-bottom: 10px;
}

/* platform "fej" gomb */
.tree-filter .tree-toggle {
  width: 100%;
  padding: 8px 12px;

  border-radius: 999px;
  border: 1px solid rgba(247,211,122,.18);

  background: linear-gradient(180deg, rgba(36,24,18,.95), rgba(18,12,16,.92));
  color: #f1eadc;

  font-weight: 800;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;

  box-shadow:
    0 10px 22px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(255,255,255,.06);

  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.tree-filter .tree-toggle:hover {
  filter: brightness(1.06);
  border-color: rgba(247,211,122,.34);
}

.tree-filter .tree-toggle .arrow {
  transition: transform 0.25s ease;
}

/* lenyíló rész (animáció) */
.tree-filter .tree-children {
  margin-left: 10px;
  margin-top: 8px;
  padding-left: 10px;

  border-left: 2px solid rgba(247,211,122,.16);

  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);

  transition:
    max-height 0.28s ease,
    opacity 0.20s ease,
    transform 0.28s ease;
}

.tree-filter .tree-node.open .tree-children {
  max-height: 240px; /* elég a 4 gombnak, ha több lesz: emeld */
  opacity: 1;
  transform: translateY(0);
}

.tree-filter .tree-node.open .tree-toggle .arrow {
  transform: rotate(180deg);
}

/* gyermek (típus) gombok */
.tree-filter .tree-item {
  display: block;
  width: 100%;
  text-align: left;

  padding: 6px 10px;
  margin-bottom: 6px;

  border-radius: 999px;
  border: 1px solid transparent;

  background: rgba(2,6,23,.08);
  color: #f1eadc;

  cursor: pointer;
  font-size: 0.9rem;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.tree-filter .tree-item:hover {
  background: rgba(247,211,122,.10);
  border-color: rgba(247,211,122,.18);
}

.tree-filter .tree-item.active {
  background: linear-gradient(180deg, rgba(247,211,122,.22), rgba(184,137,46,.18));
  border-color: rgba(247,211,122,.45);

  color: #fff2d2 !important;
  font-weight: 800;

  box-shadow:
    0 10px 22px rgba(0,0,0,.22),
    inset 0 0 0 1px rgba(255,255,255,.10);
}

@media (max-width: 900px) {
  .products-layout { grid-template-columns: 1fr; }
}
