﻿/* =====================================================================
   Fókusz Computer – terméklista bal oldali szűrőpanel (termeklista.cshtml + Scripts/fc-szuro.js)
   .fcsz- előtag, px egységek (a sablon a html font-size-t átállítja).
   Asztali nézetben a bal oldali sávban, 992 px alatt kihúzható panel.
   ===================================================================== */
.fcsz-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
    margin-bottom: 20px;
    font-size: 14px;
    color: #1f2937;
    overflow: hidden;
}
.fcsz-fej {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 16px; border-bottom: 1px solid #eef0f3;
}
.fcsz-fej h3 { margin: 0; font-size: 18px; font-weight: 700; color: #1f2937; flex: 1; }
.fcsz-torol { font-size: 13px; font-weight: 600; color: #2460a7 !important; text-decoration: none !important; }
.fcsz-torol:hover { text-decoration: underline !important; }
.fcsz-bezar { display: none; border: 0; background: none; font-size: 28px; line-height: 1; color: #6b7280; padding: 0 4px; cursor: pointer; }

/* ---- csoportok (összecsukható) ---- */
.fcsz-csoport { border-bottom: 1px solid #eef0f3; }
.fcsz-csoport:last-of-type { border-bottom: 0; }
.fcsz-csoport > summary {
    list-style: none; cursor: pointer; user-select: none;
    display: flex; align-items: center; gap: 8px;
    padding: 13px 16px; font-weight: 700; font-size: 14px; color: #1f2937;
}
.fcsz-csoport > summary::-webkit-details-marker { display: none; }
.fcsz-csoport > summary::after {
    content: ""; margin-left: auto; width: 8px; height: 8px; flex: none;
    border-right: 2px solid #9ca3af; border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s;
}
.fcsz-csoport[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.fcsz-csoport > summary:hover { background: #f9fafb; }
.fcsz-db {
    display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px;
    background: #2460a7; color: #fff; font-size: 11px; font-weight: 700; text-align: center;
}
.fcsz-tartalom { padding: 0 16px 14px; }

/* ---- értéklista ---- */
.fcsz-lista { list-style: none; margin: 0; padding: 0; max-height: none; }
.fcsz-lista li { margin: 0; padding: 0; list-style: none; }
.fcsz-lista li.fcsz-rejtett, .fcsz-lista li.fcsz-nincs-talalat { display: none; }
.fcsz-lista label {
    display: flex; align-items: center; gap: 10px;
    margin: 0; padding: 6px 6px; border-radius: 6px; cursor: pointer;
    font-weight: 400; color: #374151; line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
}
.fcsz-lista label:hover { background: #f3f6fb; }
.fcsz-lista input[type=checkbox] {
    -webkit-appearance: none; appearance: none; flex: none;
    width: 18px; height: 18px; margin: 0; border: 1.5px solid #c3c9d2; border-radius: 4px; background: #fff;
    display: inline-grid; place-content: center; cursor: pointer; transform: none !important;
}
.fcsz-lista input[type=checkbox]::before {
    content: ""; width: 10px; height: 10px; transform: scale(0); transition: transform .1s;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    background: #fff;
}
.fcsz-lista input[type=checkbox]:checked { background: #2460a7; border-color: #2460a7; }
.fcsz-lista input[type=checkbox]:checked::before { transform: scale(1); }
.fcsz-lista input[type=checkbox]:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.fcsz-nev { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fcsz-be .fcsz-nev { font-weight: 600; color: #1f2937; }
.fcsz-szam { flex: none; font-size: 12px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.fcsz-nulla label { opacity: .45; }
.fcsz-tobb-gomb {
    margin: 6px 0 0; padding: 4px 6px; border: 0; background: none; cursor: pointer;
    color: #2460a7; font-size: 13px; font-weight: 600;
}
.fcsz-tobb-gomb:hover { text-decoration: underline; }
.fcsz-kereso {
    width: 100%; height: 34px; margin: 0 0 8px; padding: 0 10px;
    border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; background: #fff;
}
.fcsz-kereso:focus { outline: none; border-color: #2460a7; box-shadow: 0 0 0 3px rgba(36, 96, 167, .15); }

/* ---- ár ---- */
.fcsz-ar { display: flex; align-items: flex-end; gap: 6px; }
.fcsz-ar label { flex: 1; margin: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #6b7280; font-weight: 400; }
.fcsz-ar input {
    width: 100%; height: 38px; padding: 0 8px; border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 14px; color: #1f2937; background: #fff; -moz-appearance: textfield;
}
.fcsz-ar input::-webkit-outer-spin-button, .fcsz-ar input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fcsz-ar input:focus { outline: none; border-color: #2460a7; box-shadow: 0 0 0 3px rgba(36, 96, 167, .15); }
.fcsz-ar-kotojel { padding-bottom: 10px; color: #6b7280; }
.fcsz-ar-gomb {
    margin-top: 10px; width: 100%; height: 36px; border: 1px solid #2460a7; border-radius: 8px;
    background: #fff; color: #2460a7; font-weight: 700; font-size: 13px; cursor: pointer;
}
.fcsz-ar-gomb:hover { background: #2460a7; color: #fff; }
.fcsz-hiba { margin-top: 8px; font-size: 12px; color: #b91c1c; }

/* ---- alsó gomb (mobilon / JS nélkül) ---- */
.fcsz-lab { display: none; padding: 12px 16px; border-top: 1px solid #eef0f3; background: #fff; }
.fcsz-alkalmaz {
    width: 100%; height: 44px; border: 0; border-radius: 10px; cursor: pointer;
    background: #2460a7; color: #fff; font-size: 15px; font-weight: 700;
}
.fcsz-alkalmaz span { font-weight: 400; opacity: .85; }

/* ---- lista feletti sáv: mobil gomb + aktív szűrők ---- */
.fcsz-felso { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.fcsz-felso:empty { display: none; }
.fcsz-mobil-gomb {
    display: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
    border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: #1f2937;
    font-weight: 700; font-size: 14px; cursor: pointer;
}
.fcsz-cimkek { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fcsz-cimke {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px;
    border-radius: 999px; background: #eaf1fb; color: #1e4f8a !important; font-size: 13px; font-weight: 600;
    text-decoration: none !important; line-height: 1.2; border: 1px solid #d3e2f5;
}
.fcsz-cimke span { font-size: 16px; line-height: 1; opacity: .7; }
.fcsz-cimke:hover { background: #dbe8f8; }
.fcsz-cimke:hover span { opacity: 1; }
.fcsz-mind-torol { font-size: 13px; font-weight: 600; color: #6b7280 !important; text-decoration: underline !important; margin-left: 4px; }

.fcsz-hatter { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 9998; }
.fcsz-hatter[hidden] { display: none; }

/* ---- mobil / tablet: kihúzható panel ---- */
@media (max-width: 991px) {
    .fcsz-mobil-gomb { display: inline-flex; }
    .fcsz-panel {
        position: fixed; z-index: 9999; top: 0; bottom: 0; left: 0;
        width: min(380px, 92vw); margin: 0; border-radius: 0 14px 14px 0; border: 0;
        display: flex; flex-direction: column;
        transform: translateX(-105%); transition: transform .22s ease-out;
        visibility: hidden;
    }
    .fcsz-panel.fcsz-nyitva { transform: none; visibility: visible; }
    .fcsz-panel > details, .fcsz-panel > .fcsz-fej { flex: none; }
    .fcsz-panel { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
    .fcsz-fej { position: sticky; top: 0; background: #fff; z-index: 2; }
    .fcsz-bezar { display: block; }
    .fcsz-lab { display: block; position: sticky; bottom: 0; margin-top: auto; }
    .fcsz-lista label { padding: 9px 6px; }
    .fcsz-ar input, .fcsz-kereso { font-size: 16px; }   /* iOS: ne nagyítson rá */
    body.fcsz-zarolva { overflow: hidden; }
}

/* =====================================================================
   Végtelen görgetés a terméklistán (Scripts/fc-lista.js)
   ===================================================================== */
.fcl-tovabb { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 0 34px; text-align: center; }
.fcl-allapot { margin: 0; font-size: 14px; color: #6b7280; }
.fcl-allapot b { color: #1f2937; }
.fcl-tolt { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #374151; }
.fcl-tolt[hidden], .fcl-gomb[hidden] { display: none; }
.fcl-porgo { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #e5e7eb; border-top-color: #fb9935; animation: fcl-forog .8s linear infinite; }
@keyframes fcl-forog { to { transform: rotate(360deg); } }
.fcl-gomb { display: inline-block; min-width: 220px; padding: 11px 22px; border-radius: 8px; border: 1px solid #2460a7; color: #2460a7; background: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.fcl-gomb:hover, .fcl-gomb:focus { background: #2460a7; color: #fff; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .fcl-porgo { animation-duration: 2.4s; } }
