/* ═══════════════════════════════════════════════════════════════════
   TabuTech Filter System v4 — არქივის გვერდი
   ფერი: --tfs-brand (ვიჯეტში) → --tb-brand (ჰედერი) → #5b4ce6
   ═══════════════════════════════════════════════════════════════════ */
.tfs {
    --b: var(--tfs-brand, var(--tb-brand, #5b4ce6));
    --ink: #171a3a; --mut: #7c8099; --line: #eceef7; --soft: #eef0ff; --r: var(--tfs-r, 18px);
    --side: var(--tfs-side, 280px);
    color: var(--ink);
    font-family: var(--tabutech-font-family, inherit);
    position: relative;
    -webkit-font-smoothing: antialiased;
}
@supports (background: color-mix(in srgb, red 10%, white)) { .tfs { --soft: color-mix(in srgb, var(--b) 10%, #fff); } }
.tfs *, .tfs *::before, .tfs *::after { box-sizing: border-box; }
.tfs a { text-decoration: none; color: inherit; }
.tfs button { font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; text-transform: none; letter-spacing: normal; text-shadow: none; box-shadow: none; margin: 0; line-height: normal; }
.tfs input, .tfs select { font-family: inherit; }
.tfs .tfs-i { display: block; flex-shrink: 0; }
.tfs [hidden] { display: none !important; }
.tfs em { font-style: normal; }

/* ── ქვეკატეგორიები ── */
.tfs-subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tfs-sc { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: 12px; border: 1px solid #dfe2ee; background: #fff; font-size: 13.5px; color: #22254a; white-space: nowrap; transition: border-color .15s, color .15s; }
.tfs-sc em { font-size: 11.5px; color: #8a90b8; }
.tfs-sc:hover { border-color: var(--b); color: var(--b); }
.tfs-sc.on { background: var(--soft); border-color: var(--b); color: var(--b); font-weight: 600; }

/* ── განლაგება ── */
.tfs-layout { display: flex; gap: 24px; align-items: flex-start; }
.tfs-side { width: var(--side); flex: 0 0 var(--side); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px 12px; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.tfs-main { flex: 1 1 auto; min-width: 0; }
.tfs-grab, .tfs-side-f, .tfs-bar, .tfs-scrim, .tfs-sortsheet { display: none; }

.tfs-side-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 12px; }
.tfs-side-h b { font-size: 16px; font-weight: 700; }
.tfs-side-h > div { display: flex; align-items: center; gap: 6px; }
.tfs .tfs-lnk { background: none; border: 0; padding: 0 2px; font-size: 13px; font-weight: 600; color: var(--b); }
.tfs .tfs-x { display: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f1f2f8; color: #5b6080; align-items: center; justify-content: center; }

/* გადამრთველები */
.tfs-tog { border-top: 1px solid var(--line); padding: 6px 0; }
.tfs-sw { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 14px; cursor: pointer; }
.tfs-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.tfs-sw i { width: 40px; height: 24px; border-radius: 12px; background: #d5d8e6; position: relative; transition: background .15s; flex-shrink: 0; }
.tfs-sw i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(23,26,58,.3); transition: left .15s; }
.tfs-sw input:checked + i { background: var(--b); }
.tfs-sw input:checked + i::after { left: 19px; }
.tfs-sw input:focus-visible + i { outline: 2px solid var(--b); outline-offset: 2px; }
.tfs-sw em { color: #8a90b8; font-size: 12px; margin-left: 6px; }

/* ჯგუფები */
.tfs-g { border-top: 1px solid var(--line); }
.tfs-g > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 15px 0; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.tfs-g > summary::-webkit-details-marker { display: none; }
.tfs-g-r { display: flex; align-items: center; gap: 8px; color: var(--mut); }
.tfs-g-r svg { transition: transform .15s; }
.tfs-g[open] > summary .tfs-g-r svg { transform: rotate(180deg); }
.tfs-n { min-width: 20px; height: 20px; border-radius: 10px; background: var(--b); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.tfs-g-b { padding: 0 0 16px; }
.tfs-g > summary:focus-visible { outline: 2px solid var(--b); outline-offset: 2px; border-radius: 6px; }

.tfs-cb { position: relative; display: flex; align-items: center; gap: 11px; min-height: 38px; font-size: 14px; color: #22254a; cursor: pointer; }
.tfs-cb input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.tfs-cb i { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid #c3c7db; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.tfs-cb i svg { opacity: 0; }
.tfs-cb input:checked + i { background: var(--b); border-color: var(--b); }
.tfs-cb input:checked + i svg { opacity: 1; }
.tfs-cb input:checked ~ span { font-weight: 600; }
.tfs-cb input:focus-visible + i { outline: 2px solid var(--b); outline-offset: 2px; }
.tfs-cb em { margin-left: auto; font-size: 12px; color: #8a90b8; }
.tfs-cb.is-zero { opacity: .42; cursor: default; }
.tfs-cb.is-zero input { pointer-events: none; }
.tfs-cb.is-more { display: none; }
.tfs-list.is-open .tfs-cb.is-more { display: flex; }
.tfs .tfs-more { background: none; border: 0; padding: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--b); }
.tfs-find { height: 40px; border: 1px solid #dfe2ee; border-radius: 12px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #8a90b8; margin-bottom: 8px; }
.tfs-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); padding: 0; height: 100%; box-shadow: none; }
.tfs-find:focus-within { border-color: var(--b); }
.tfs-cb.is-hide { display: none !important; }

.tfs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tfs-chip { position: relative; display: inline-flex; }
.tfs-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.tfs-chip span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 12px; border: 1px solid #dfe2ee; background: #fff; font-size: 13px; color: #22254a; white-space: nowrap; }
.tfs-chip em { font-size: 11.5px; color: #8a90b8; }
.tfs-chip input:checked + span { background: var(--soft); border-color: var(--b); color: var(--b); font-weight: 600; }
.tfs-chip input:checked + span em { color: var(--b); }
.tfs-chip input:focus-visible + span { outline: 2px solid var(--b); outline-offset: 2px; }
.tfs-chip.is-zero { opacity: .42; }
.tfs-chip.is-zero input { pointer-events: none; }

/* ფასი */
.tfs-pin { display: flex; align-items: center; gap: 8px; }
.tfs-pin label { flex: 1; min-width: 0; height: 42px; border: 1px solid #dfe2ee; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; gap: 6px; }
.tfs-pin label:focus-within { border-color: var(--b); }
.tfs-pin small { font-size: 12px; color: #8a90b8; }
.tfs-pin input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; text-align: right; font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; box-shadow: none; -moz-appearance: textfield; }
.tfs-pin input::-webkit-outer-spin-button, .tfs-pin input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tfs-pin > span { color: #8a90b8; }
.tfs-hist { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 14px; }
.tfs-hist i { flex: 1; background: #dcdff3; border-radius: 2px 2px 0 0; }
.tfs-hist i.on { background: #b9b1f7; }
.tfs-rng { position: relative; height: 24px; margin: 0 2px; }
.tfs-rng::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 4px; background: #dcdff3; border-radius: 2px; }
.tfs-rng input[type=range] { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 24px; margin: 0; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; }
.tfs-rng input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 24px; }
.tfs-rng input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #fff; border: 2px solid var(--b); box-shadow: 0 2px 6px rgba(23,26,58,.25); cursor: grab; }
.tfs-rng input[type=range]::-moz-range-track { background: transparent; }
.tfs-rng input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--b); box-shadow: 0 2px 6px rgba(23,26,58,.25); cursor: grab; }
.tfs-rng input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid color-mix(in srgb, var(--b) 35%, transparent); }

/* ── ინსტრუმენტები ── */
.tfs-tool { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.tfs-cnt { font-size: 14px; color: var(--mut); }
.tfs-cnt b { color: var(--ink); }
.tfs-sel { position: relative; height: 42px; border: 1px solid #dfe2ee; border-radius: 12px; background: #fff; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; font-size: 13.5px; }
.tfs-sel small { color: #8a90b8; font-size: 12px; }
.tfs-sel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--ink); padding-right: 4px; outline: 0; cursor: pointer; }
.tfs-sel svg { pointer-events: none; color: #8a90b8; }
.tfs-sel:focus-within { border-color: var(--b); }

.tfs-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.tfs-tags:empty { display: none; }
.tfs .tfs-tag { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 9px 0 13px; border-radius: 12px; background: var(--b); color: #fff; font-size: 13px; font-weight: 600; border: 0; white-space: nowrap; }
.tfs .tfs-tag svg { opacity: .85; }
.tfs .tfs-tag.is-o { background: #fff; color: #22254a; border: 1px solid #dfe2ee; font-weight: 500; padding: 0 13px; }
.tfs .tfs-clear-all { background: none; border: 0; height: 34px; padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--b); }

/* ── ბადე და ბარათი ── */
.tfs-res { min-height: 320px; transition: opacity .15s; }
.tfs-res.is-busy { opacity: .45; pointer-events: none; }
.tfs-grid { display: grid; grid-template-columns: repeat(var(--tfs-cols, 4), minmax(0, 1fr)); gap: 16px; }
.tfs-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.tfs-card:hover { border-color: #d5d8e6; box-shadow: 0 10px 28px rgba(23,26,58,.09); }
.tfs-im { display: flex; align-items: center; justify-content: center; height: 214px; padding: 14px; background: #fff; }
.tfs-im { overflow: hidden; }
/* ფოტო ყოველთვის მთლიანად ჩანს (არ იჭრება, არ იზუმება): ფართო ფოტო სიგანეს ავსებს, მაღალი — სიმაღლეს, პატარა იზრდება ყუთის ზომამდე */
.tfs .tfs-img { display: block; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; object-position: center !important; }
.tfs-card.is-out .tfs-im { opacity: .5; }
.tfs-bd { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; pointer-events: none; }
.tfs-b { height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 700; display: flex; align-items: center; color: #fff; }
.tfs-b--sale { background: #d92d20; } .tfs-b--new { background: var(--soft); color: var(--b); } .tfs-b--out { background: #e9ebf5; color: #5b6080; }
.tfs-cb2 { padding: 0 16px 16px; display: flex; flex-direction: column; flex: 1; }
.tfs-br { font-size: 11px; letter-spacing: .07em; font-weight: 700; color: #8a90b8; text-transform: uppercase; }
.tfs-nm { font-size: 14px; line-height: 1.38; font-weight: 500; margin-top: 4px; height: 39px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tfs-nm:hover { color: var(--b); }
.tfs-spec { font-size: 12px; color: var(--mut); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfs-stock { font-size: 12px; margin-top: 10px; display: flex; align-items: center; gap: 6px; color: #16794a; }
.tfs-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.tfs-stock.is-no { color: #8a90b8; } .tfs-stock.is-no::before { background: #b5b9cf; }
.tfs-pr { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.tfs-pv { display: flex; flex-direction: column; min-width: 0; }
.tfs-pv b { font-size: 18px; font-weight: 800; line-height: 1.1; }
.tfs-pv b small { font-size: 12px; font-weight: 500; color: var(--mut); }
.tfs-pv b.is-sale { color: #d92d20; }
.tfs-pv s { font-size: 12px; color: #8a90b8; margin-bottom: 2px; }
.tfs-pv .woocommerce-Price-currencySymbol { font-weight: inherit; }
.tfs .tfs-add { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--b); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .12s, background-color .15s; }
.tfs .tfs-add:hover { filter: brightness(1.08); }
.tfs .tfs-add:active { transform: scale(.94); }
.tfs .tfs-add.is-off { background: #eceef7; color: #a3a8c6; cursor: default; }
.tfs .tfs-add.is-ok { background: #e3f6ec; color: #0f7a4a; width: auto; padding: 0 14px; gap: 6px; font-size: 13px; font-weight: 600; }
.tfs-add--choose { width: auto; padding: 0 16px; background: #fff; color: var(--b); border: 1.5px solid var(--b); font-size: 13.5px; font-weight: 600; }
.tfs .tfs-add.is-load svg { animation: tfs-sp 1s linear infinite; }
@keyframes tfs-sp { to { transform: rotate(360deg); } }
.tfs .tfs-add:focus-visible, .tfs-nm:focus-visible, .tfs-pg a:focus-visible, .tfs .tfs-loadmore:focus-visible { outline: 3px solid color-mix(in srgb, var(--b) 40%, transparent); outline-offset: 2px; }

/* ── გვერდები / მეტის ჩატვირთვა ── */
.tfs-more-wrap { display: flex; justify-content: center; margin: 32px 0 18px; }
.tfs .tfs-loadmore { height: 48px; border-radius: 14px; background: #fff; border: 1.5px solid var(--b); color: var(--b); font-size: 14px; font-weight: 700; padding: 0 28px; display: inline-flex; align-items: center; gap: 8px; }
.tfs .tfs-loadmore:hover { background: var(--soft); }
.tfs .tfs-loadmore.is-load { opacity: .6; pointer-events: none; }
.tfs-pg { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tfs-pg a { min-width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #22254a; border: 1px solid transparent; }
.tfs-pg a.on { background: var(--b); color: #fff; font-weight: 700; }
.tfs-pg a.tfs-ar { border-color: #dfe2ee; background: #fff; }
.tfs-dots { color: #8a90b8; padding: 0 4px; }

/* ── ცარიელი ── */
.tfs-empty { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 44px 24px; }
.tfs-empty-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--soft); color: var(--b); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.tfs-empty b { font-size: 18px; font-weight: 700; }
.tfs-empty p { font-size: 14px; color: var(--mut); margin: 6px 0 18px; line-height: 1.5; }
.tfs-empty-a { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tfs .tfs-ghost { height: 46px; border-radius: 14px; border: 1.5px solid var(--b); color: var(--b); background: #fff; font-weight: 700; font-size: 14px; padding: 0 18px; }
.tfs .tfs-solid { height: 46px; border-radius: 14px; background: var(--b); color: #fff !important; border: 0; font-weight: 700; font-size: 14px; padding: 0 18px; }

.tfs .tfs-top { position: fixed; right: 14px; bottom: 74px; z-index: 30; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; border: 0; display: none; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(23,26,58,.3); }

/* ═════════════ ტაბლეტი ═════════════ */
@media (max-width: 1100px) and (min-width: 769px) { .tfs-grid { grid-template-columns: repeat(var(--tfs-cols-t, 3), minmax(0, 1fr)); } .tfs { --side: 250px; } }

/* ═════════════ მობილური ═════════════ */
@media (max-width: 768px) {
    .tfs-layout { display: block; }
    .tfs-subcats { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(50% - 50vw) 12px; padding: 0 16px; scrollbar-width: none; }
    .tfs-subcats::-webkit-scrollbar { display: none; }
    .tfs-sc { height: 36px; flex: 0 0 auto; }

    .tfs-bar { display: flex; align-items: center; gap: 8px; position: sticky; top: var(--tfs-stick, 56px); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 12px rgba(23,26,58,.05); height: 56px; padding: 0 12px; margin: 0 calc(50% - 50vw) 12px; }
    .tfs .tfs-fbtn { height: 40px; border-radius: 12px; background: var(--ink); color: #fff; border: 0; display: flex; align-items: center; gap: 8px; padding: 0 13px; font-size: 13.5px; font-weight: 600; flex-shrink: 0; }
    .tfs-fn { min-width: 20px; height: 20px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
    .tfs-quick { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: none; min-width: 0; }
    .tfs-quick::-webkit-scrollbar { display: none; }
    .tfs-quick .tfs .tfs-tag { flex: 0 0 auto; }
    .tfs .tfs-sbtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid #dfe2ee; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #22254a; }

    .tfs-tool { display: block; margin-bottom: 8px; }
    .tfs-sel { display: none; }
    .tfs-tags { display: none; }

    .tfs-grid { grid-template-columns: repeat(var(--tfs-cols-m, 2), minmax(0, 1fr)); gap: 10px; }
    .tfs-card { border-radius: 16px; }
    .tfs-im { height: 150px; padding: 10px; }
    .tfs-bd { left: 8px; top: 8px; } .tfs-b { height: 22px; font-size: 11.5px; padding: 0 8px; }
    .tfs-cb2 { padding: 0 12px 12px; }
    .tfs-nm { font-size: 13px; height: 36px; margin-top: 2px; }
    .tfs-spec { font-size: 11.5px; margin-top: 4px; }
    .tfs-stock { display: none; }
    .tfs .tfs-add { width: 38px; height: 38px; border-radius: 12px; }
    .tfs-add--choose { padding: 0 12px; font-size: 12.5px; height: 38px; }
    .tfs-more-wrap { margin: 20px 0 12px; }
    .tfs-pg { display: none; }

    /* ფილტრები — ქვედა ფურცელი */
    .tfs-side { position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); top: max(64px, 8vh); z-index: 10160; width: auto; flex: none; max-height: none; border: 0; border-radius: 22px 22px 0 0; padding: 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 -12px 40px rgba(23,26,58,.3); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
    .tfs.is-open .tfs-side { transform: none; visibility: visible; transition-delay: 0s; }
    .tfs-grab { display: block; width: 38px; height: 4px; margin: 9px auto 0; border-radius: 2px; background: #d5d8e6; flex-shrink: 0; }
    .tfs-side-h { padding: 10px 18px; flex-shrink: 0; }
    .tfs .tfs-x { display: flex; }
    .tfs-side-b { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px; }
    .tfs-side-f { display: block; flex-shrink: 0; padding: 12px 18px 14px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 20px rgba(23,26,58,.05); }
    .tfs .tfs-apply { width: 100%; height: 50px; border-radius: 14px; background: var(--b); color: #fff; border: 0; font-size: 15px; font-weight: 700; }
    .tfs .tfs-apply.is-load { opacity: .7; }
    .tfs-scrim { display: block; position: fixed; inset: 0; z-index: 10150; background: rgba(15,17,45,.55); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; }
    .tfs.is-open .tfs-scrim, .tfs.is-sort .tfs-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
    .tfs-cb { min-height: 44px; } .tfs-chip span { height: 40px; } .tfs-sw { min-height: 50px; }

    .tfs-sortsheet { display: block; position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); z-index: 10160; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(23,26,58,.3); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
    .tfs.is-sort .tfs-sortsheet { transform: none; visibility: visible; transition-delay: 0s; }
    .tfs-sortlist { padding: 0 18px 18px; }
    .tfs-rad { position: relative; display: flex; align-items: center; gap: 14px; height: 54px; font-size: 15px; border-bottom: 1px solid var(--line); cursor: pointer; }
    .tfs-rad:last-child { border-bottom: 0; }
    .tfs-rad input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; }
    .tfs-rad i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c3c7db; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .tfs-rad input:checked + i { border-color: var(--b); }
    .tfs-rad input:checked + i::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--b); }
    .tfs-rad input:checked ~ span { font-weight: 700; color: var(--b); }
    .tfs .tfs-top { display: flex; }
    .tfs .tfs-top[hidden] { display: none !important; }
    .tfs-empty { padding: 32px 20px; }
    .tfs-empty-a { flex-direction: column; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tfs *, .tfs *::before, .tfs *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
html.tfs-lock, html.tfs-lock body { overflow: hidden; }

/* Elementor-ის რედაქტორის ტილო: ფიქსირებული/მიმაგრებული ელემენტები არ ერეოდეს პანელში */
.elementor-editor-active .tfs-side { position: static; max-height: none; }
.elementor-editor-active .tfs-top { display: none !important; }
@media (max-width: 768px) {
    .elementor-editor-active .tfs-bar { position: static; margin: 0 0 12px; }
}

/* WooCommerce-ის „View cart" ბმული (a.added_to_cart) ბარათში არასდროს ჩანდეს */
.tfs .added_to_cart, .tfs a.wc-forward { display: none !important; }

/* თემის/Elementor Kit-ის ღილაკის hover/focus/active სტილები ჩვენს ღილაკებს ფერს ვერ შეუცვლის (შეხებაზე „ჩარჩენილი" hover-იც) */
.tfs .tfs-fbtn:hover, .tfs .tfs-fbtn:focus, .tfs .tfs-fbtn:active { background: var(--ink) !important; color: #fff !important; }
.tfs .tfs-sbtn:hover, .tfs .tfs-sbtn:focus, .tfs .tfs-sbtn:active { background: #fff !important; color: #22254a !important; border: 1px solid #dfe2ee !important; }
.tfs .tfs-add:hover, .tfs .tfs-add:focus, .tfs .tfs-add:active { background: var(--b) !important; color: #fff !important; }
.tfs .tfs-add.is-off:hover, .tfs .tfs-add.is-off:focus { background: #eceef7 !important; color: #a3a8c6 !important; }
.tfs .tfs-add.is-ok, .tfs .tfs-add.is-ok:hover, .tfs .tfs-add.is-ok:focus { background: #e3f6ec !important; color: #0f7a4a !important; }
.tfs .tfs-add--choose, .tfs .tfs-add--choose:hover, .tfs .tfs-add--choose:focus { background: #fff !important; color: var(--b) !important; border: 1.5px solid var(--b) !important; }
.tfs .tfs-tag:hover, .tfs .tfs-tag:focus, .tfs .tfs-tag:active { background: var(--b) !important; color: #fff !important; }
.tfs .tfs-tag.is-o, .tfs .tfs-tag.is-o:hover, .tfs .tfs-tag.is-o:focus { background: #fff !important; color: #22254a !important; border: 1px solid #dfe2ee !important; }
.tfs .tfs-x:hover, .tfs .tfs-x:focus, .tfs .tfs-x:active { background: #f1f2f8 !important; color: #5b6080 !important; }
.tfs .tfs-apply:hover, .tfs .tfs-apply:focus, .tfs .tfs-apply:active { background: var(--b) !important; color: #fff !important; }
.tfs .tfs-loadmore:hover, .tfs .tfs-loadmore:focus { background: var(--soft) !important; color: var(--b) !important; border: 1.5px solid var(--b) !important; }
.tfs .tfs-lnk:hover, .tfs .tfs-lnk:focus, .tfs .tfs-clear-all:hover, .tfs .tfs-clear-all:focus, .tfs .tfs-more:hover, .tfs .tfs-more:focus { background: none !important; color: var(--b) !important; }
.tfs .tfs-top:hover, .tfs .tfs-top:focus { background: var(--ink) !important; color: #fff !important; }
.tfs .tfs-ghost:hover, .tfs .tfs-ghost:focus { background: #fff !important; color: var(--b) !important; }
.tfs .tfs-solid:hover, .tfs .tfs-solid:focus { background: var(--b) !important; color: #fff !important; }
/* იკონიანი ღილაკები: თემის padding/ზომა სვგ-ს არ ჭყლეტს */
.tfs .tfs-add, .tfs .tfs-sbtn, .tfs .tfs-x, .tfs .tfs-top { padding: 0; min-width: 0; min-height: 0; line-height: 1; letter-spacing: 0; text-transform: none; font-size: 14px; }
.tfs .tfs-add--choose { padding: 0 16px; }
.tfs .tfs-fbtn, .tfs .tfs-tag, .tfs .tfs-apply, .tfs .tfs-loadmore { letter-spacing: 0; text-transform: none; line-height: 1.2; min-height: 0; }
.tfs .tfs-fbtn { padding: 0 13px; } .tfs .tfs-tag { padding: 0 9px 0 13px; } .tfs .tfs-tag.is-o { padding: 0 13px; }


/* ═══ სიგანე: ეკრანი 2K/4K იქნება თუ 1440 — შიგთავსი ჰედერის „მაქს. სიგანეზე" (--tb-maxw, ნაგულისხმევი 2000px) მეტად არ ფართოვდება ═══ */
@media (min-width: 769px) {
    .tfs.tfs--limit {
        width: 100%;
        max-width: calc(var(--tb-maxw, 2000px) + 2 * var(--tb-pad, 40px));
        margin-left: auto;
        margin-right: auto;
        /* JS ზუსტად ჰედერის შიგთავსის კიდეებს უსწორებს (კონტეინერის padding-ის მიუხედავად); JS-ის გარეშე — იგივე დაშორება */
        padding-left: var(--tw-pl, var(--tb-pad, 40px));
        padding-right: var(--tw-pr, var(--tb-pad, 40px));
    }
}

/* ფასი ვიწრო ეკრანზე ერთ ხაზზე რჩება */
.tfs .tfs-pv b { white-space: nowrap; }
@media (max-width: 768px) {
    .tfs .tfs-pv s { white-space: nowrap; }
    .tfs .tfs-pr { gap: 6px; }
    .tfs .tfs-add { width: 36px; height: 36px; }
}


/* ფასი ტელეფონზე უფრო პატარაა (12–14px), ძველი ფასი 10.5px, ₾ სიმბოლო ოდნავ მცირე */
@media (max-width: 768px) {
    .tfs .tfs-pv b { font-size: clamp(12px, 3.5vw, 14px); font-weight: 700; }
    .tfs .tfs-pv s { font-size: 10.5px; }
    .tfs .tfs-pv .woocommerce-Price-currencySymbol { font-size: .88em; }
}


/* ═════════════════════════════════════════════════════════════════════════
   ერთიანი ზომები — სამივე პლაგინში (ვიტრინა, ბადე ტაბებით, არქივი) იდენტურია.
   ტელეფონი: სათაური 16px · სახელი 12px · ბრენდი 10px · ფასი 13px · ძველი ფასი 10px · ღილაკი 34px
   ═════════════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
    
}
@media (max-width: 768px) {
    .tfs .tfs-im { height: 112px; padding: 8px; }
    .tfs .tfs-cb2 { padding: 0 10px 10px; }
    .tfs .tfs-br { font-size: 10px; letter-spacing: .06em; }
    .tfs .tfs-nm { font-size: 12px; line-height: 1.3; height: 31px; margin-top: 2px; }
    .tfs .tfs-pv b { font-size: 13px; font-weight: 700; }
    .tfs .tfs-pv s { font-size: 10px; }
    .tfs .tfs-pv .woocommerce-Price-currencySymbol { font-size: .9em; }
    .tfs .tfs-add { width: 34px; height: 34px; border-radius: 11px; }
    .tfs .tfs-add--choose { height: 34px; padding: 0 11px; font-size: 12px; }
    .tfs .tfs-b { height: 20px; font-size: 10.5px; padding: 0 7px; border-radius: 7px; }
    .tfs .tfs-bd { left: 7px; top: 7px; gap: 4px; }
}
