/* mypoker.ge — catalog: List / Index for a visual product range.
   Heading + lead, sticky toolbar (icon category tabs, Filters dialog, quick pills, search), result heading, card grid. */

.cat-page { --wrap: 1320px; }
.cat-page .hud { background: rgba(250, 250, 247, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.cat-page main { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 2.4vw, 32px); }

.chead { padding: 108px 0 22px; }
.chead__h { font-size: clamp(44px, 5vw, 76px); color: var(--ink); }
.chead__lead { margin-top: 18px; max-width: 52ch; font-size: 15px; color: #5d615a; }

/* toolbar, Airbnb-style: icon category tabs, then Filters + quick pills + search */
.bar { position: sticky; top: 66px; z-index: 40; margin: 0 calc(-1 * clamp(16px, 2.4vw, 32px)); padding: 0 clamp(16px, 2.4vw, 32px) 14px; background: rgba(250, 250, 247, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: clamp(14px, 1.7vw, 28px); overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); scrollbar-width: none; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 2px 12px; border: 0; background: none; color: #74786f; font-family: var(--f-text); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: color var(--m-150) var(--ease-out); }
.tab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .8; transition: opacity var(--m-150); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform var(--m-300) var(--ease-out); }
.tab:hover { color: var(--ink); }
.tab:hover::after { transform: scaleX(1); background: #c9cbc4; }
.tab[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.tab[aria-pressed="true"] svg { opacity: 1; }
.tab[aria-pressed="true"]::after { transform: scaleX(1); background: var(--ink); }
.tab--sep { flex: 0 0 1px; width: 1px; margin: 18px 0; padding: 0; background: var(--line); }

.bar__tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid #d3d5ce; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--f-text); font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color var(--m-150) var(--ease-out), background-color var(--m-150) var(--ease-out), box-shadow var(--m-150) var(--ease-out); }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { border-color: var(--ink); background: #f1f2ec; box-shadow: inset 0 0 0 1px var(--ink); }
.pill--filter svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill--filter b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.pill--filter b:empty { display: none; }
.bar__sep { flex: 0 0 1px; width: 1px; height: 26px; background: var(--line); }
.bar__quick { display: flex; gap: 8px; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.bar__quick::-webkit-scrollbar { display: none; }
.bar__search { position: relative; flex: 0 1 320px; min-width: 200px; display: flex; align-items: center; }
.bar__search svg { position: absolute; left: 16px; width: 18px; height: 18px; fill: none; stroke: #6d7169; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.bar__search input { width: 100%; height: 42px; padding: 0 16px 0 42px; border: 1px solid #d3d5ce; border-radius: 999px; background: #fff; font-family: var(--f-text); font-size: 14px; transition: border-color var(--m-150), box-shadow var(--m-150); }
.bar__search input::placeholder { color: #8a8e86; }
.bar__search input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(170, 180, 126, .45); }

.results { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 28px 0 0; }
.results__h { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.01em; }
.results__note { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.results__note svg { width: 24px; height: 24px; fill: none; stroke: var(--olive); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* filters dialog */
.fdlg { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; background: rgba(20, 22, 19, .5); opacity: 0; transition: opacity var(--m-200) var(--ease-out); }
.fdlg.is-on { opacity: 1; }
.fdlg__box { width: min(640px, 100%); max-height: min(780px, 100%); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 30px 80px -20px rgba(20, 22, 19, .45); transform: translateY(16px); transition: transform var(--m-300) var(--ease-out); }
.fdlg.is-on .fdlg__box { transform: none; }
.fdlg__head { position: relative; display: grid; place-items: center; height: 64px; border-bottom: 1px solid var(--line); }
.fdlg__head h2 { font-size: 16px; font-weight: 700; }
.fdlg__x { position: absolute; left: 16px; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; border: 0; border-radius: 50%; background: none; }
.fdlg__x:hover { background: var(--paper); }
.fdlg__x svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.fdlg__body { flex: 1; overflow: auto; padding: 0 24px; }
.fsec { padding: 24px 0; }
.fsec + .fsec { border-top: 1px solid var(--line); }
.fsec h3 { margin-bottom: 14px; font-size: 18px; font-weight: 600; }
.fsec__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.fsec__pills button { height: 42px; padding: 0 18px; border: 1px solid #d3d5ce; border-radius: 999px; background: #fff; font-family: var(--f-text); font-size: 14px; font-weight: 500; }
.fsec__pills button:hover { border-color: var(--ink); }
.fsec__pills button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fsec__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.fsec__checks label { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.fsec__checks input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.fsec__checks small { color: #8a8e86; font-size: 13px; }
.fdlg__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); }
.fdlg__clear { border: 0; background: none; padding: 10px 4px; font-family: var(--f-text); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fdlg__go { height: 48px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--f-text); font-size: 15px; font-weight: 600; }
.fdlg__go:hover { background: #000; }

/* grid: Airbnb-style cards. Full-bleed rounded image, pill badges and the cart action on the image,
   then name, grey details and price below. */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; padding: 24px 0 8px; }
.tile { position: relative; display: flex; flex-direction: column; cursor: pointer; outline-offset: 4px; border-radius: 16px; }
.tile__img { position: relative; aspect-ratio: 20 / 19; overflow: hidden; border-radius: 16px; background: #f1f1ee; }
.tile__img img { width: 100%; height: 100%; padding: 9%; object-fit: contain; mix-blend-mode: multiply; transition: transform var(--m-300) var(--ease-out); will-change: transform; }
.tile:hover .tile__img img, .tile:focus-visible .tile__img img { transform: scale(1.05); }
.tile__badges { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 6px; }
.badge { padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--f-text); font-size: 13px; font-weight: 600; line-height: 1.2; box-shadow: 0 2px 6px rgba(20, 22, 19, .12); }
.badge--sale { color: var(--red); }
.tile__add { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 2px 8px rgba(20, 22, 19, .16); transition: transform var(--m-150) var(--ease-out), background-color var(--m-150), color var(--m-150); }
.tile__add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile__add:hover { transform: scale(1.08); }
.tile__add:active { transform: scale(.94); }
.tile__add.is-in { background: var(--ink); color: #fff; }
.tile__add .i-in { display: none; }
.tile__add.is-in .i-add { display: none; }
.tile__add.is-in .i-in { display: block; }
.tile__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px 0; }
.tile__name { font-size: 15px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__meta { font-size: 14px; line-height: 1.4; color: #6d7169; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__tags { display: flex; flex-wrap: wrap; gap: 6px; height: 24px; margin-top: 8px; overflow: hidden; }
.tag { flex: 0 0 auto; padding: 2px 10px; border: 1px solid #dedfd9; border-radius: 999px; color: #5d615a; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.tile__price { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-size: 15px; }
.tile__price s { color: #6d7169; }
.tile__price b { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tile__price.is-sale b { color: var(--red); }
.grid__foot { padding: 28px 0 0; text-align: center; font-size: 13px; color: #7d817a; }

.empty { padding: 72px 0; display: grid; gap: 14px; justify-items: center; text-align: center; }
.empty .d { font-size: clamp(30px, 3.4vw, 52px); }
.empty .paren { font-size: 14px; }

.cfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding: 24px 0; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; color: var(--grey); }

/* quick view: same language as the cards and the filters dialog */
.qv { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(20, 22, 19, .5); opacity: 0; transition: opacity var(--m-200) var(--ease-out); }
.qv.is-on { opacity: 1; }
.qv__box { position: relative; width: min(940px, 100%); max-height: min(640px, 100%); display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; padding: 24px; overflow: auto; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px -20px rgba(20, 22, 19, .45); transform: translateY(16px); transition: transform var(--m-300) var(--ease-out); }
.qv.is-on .qv__box { transform: none; }
.qv__x { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(20, 22, 19, .14); }
.qv__x:hover { background: var(--paper); }
.qv__x svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.qv__img { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #f1f1ee; }
.qv__img img { width: 100%; height: 100%; padding: 8%; object-fit: contain; mix-blend-mode: multiply; }
.qv__badges { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 6px; }
.qv__info { display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 4px 0; min-width: 0; }
.qv__cat { font-size: 13px; color: #6d7169; }
.qv__name { font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; line-height: 1.25; padding-right: 32px; }
.qv__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qv__spec { font-size: 14px; line-height: 1.55; color: #5d615a; }
.qv__price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 12px; font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.qv__price s { font-size: 17px; font-weight: 400; color: #8a8e86; }
.qv__price.is-sale b { color: var(--red); }
.qv__actions { display: flex; gap: 10px; }
.qv__add, .qv__call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 12px; font-family: var(--f-text); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color var(--m-150), border-color var(--m-150); }
.qv__add { flex: 1; border: 0; background: var(--ink); color: #fff; }
.qv__add:hover { background: #000; }
.qv__add.is-in { background: var(--olive); }
.qv__call { border: 1px solid #d3d5ce; background: #fff; color: var(--ink); }
.qv__call:hover { border-color: var(--ink); }
.qv__add svg, .qv__call svg, .qv__note svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qv__note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5d615a; }
.qv__note svg { color: var(--olive); }

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .chead { padding: 84px 0 12px; }
  .chead__lead { font-size: 14px; }
  /* phones: two compact rows, search + filter button, then small tabs; quick pills live in the dialog */
  .bar { top: 56px; display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 0; }
  .bar__tools { order: -1; gap: 8px; }
  .bar__search { flex: 1; order: 0; margin: 0; min-width: 0; }
  .bar__search input { height: 40px; font-size: 16px; }
  .pill--filter { position: relative; order: 1; width: 40px; height: 40px; padding: 0; justify-content: center; }
  .pill--filter span { display: none; }
  .pill--filter b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; font-size: 10px; }
  .bar__sep, .bar__quick { display: none; }
  .tabs { gap: 20px; margin: 4px calc(-1 * clamp(16px, 2.4vw, 32px)) 0; padding: 0 clamp(16px, 2.4vw, 32px); border-bottom: 0; }
  .tab { flex-direction: row; gap: 5px; padding: 9px 0 10px; font-size: 12.5px; }
  .tab svg { width: 17px; height: 17px; }
  .tab--sep { margin: 12px 0; }
  .results { padding-top: 18px; }
  .results__note { font-size: 12.5px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; padding-top: 16px; }
  .tile, .tile__img { border-radius: 12px; }
  .tile__badges { top: 8px; left: 8px; }
  .badge { padding: 4px 9px; font-size: 11px; }
  .badge + .badge { display: none; }
  .tile__add { top: 8px; right: 8px; width: 34px; height: 34px; }
  .tile__add svg { width: 17px; height: 17px; }
  .tile__name { font-size: 14px; }
  .tile__meta, .tile__price { font-size: 13px; }
  .tag { font-size: 11px; padding: 1px 8px; }
  .fdlg { padding: 0; align-items: end; }
  .fdlg__box { width: 100%; max-height: 92svh; border-radius: 16px 16px 0 0; }
  .fsec__checks { grid-template-columns: 1fr; }
  .qv { padding: 0; align-items: end; }
  .qv__box { grid-template-columns: 1fr; gap: 14px; width: 100%; max-height: 92svh; padding: 16px 16px 20px; border-radius: 20px 20px 0 0; }
  .qv__img { aspect-ratio: 4 / 3; }
  .qv__info { padding: 0; gap: 8px; }
  .qv__name { font-size: 19px; padding-right: 0; }
  .qv__spec { font-size: 13px; }
  .qv__price { font-size: 24px; padding-top: 4px; }
  .qv__add, .qv__call { height: 48px; padding: 0 14px; font-size: 14px; }
}
