/* Përfitimet: katalogu i bizneseve ([katalogu_bizneseve]) dhe dritarja e detajeve.
   Struktura dhe logjika vijnë nga shtojca (e njëjtë si më parë); pamja vjen nga tema: fonti, ngjyrat e kartës,
   hapësirat. Më parë ky CSS ishte brenda faqes, me !important dhe me ngjyra të tjera (blu #0b5cff, portokalli). */

.sk-cat-v2 {
  --sk-red: var(--kess-red, #e1282f);
  --sk-red-d: #c61f26;
  --sk-blue: var(--kess-blue, #0c3f75);
  --sk-ink: #1c1c1c;
  --sk-muted: #5a6272;
  --sk-line: #e3e8ef;
  --sk-soft: #f5f9fa;
  --sk-green: #15803d;
  --sk-r: 16px;
  --sk-shadow: 0 1px 2px rgba(7, 16, 59, .05), 0 12px 26px -16px rgba(7, 16, 59, .28);
  color: var(--sk-ink);
}
.sk-cat-v2 a { color: inherit; text-decoration: none; }
.sk-cat-v2 .sk-i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk-cat-v2 .wrap { padding: 0 0 12px; }

/* Titulli i faqes (i vetmi: tema s'shfaq më një titull të dytë sipër) */
.sk-cat-v2 .header { margin: 4px 0 20px; }
.sk-cat-v2 h1 { margin: 0; color: var(--sk-blue); font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.sk-cat-v2 .sub { margin-top: 8px; color: var(--sk-muted); font-size: 15px; line-height: 1.55; }

/* Kërkimi dhe qyteti */
.sk-cat-v2 .toolbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--sk-line); border-radius: var(--sk-r); background: var(--sk-soft); }
.sk-cat-v2 .field { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--sk-line); border-radius: 12px; background: #fff; color: var(--sk-muted); transition: border-color .15s; }
.sk-cat-v2 .field:focus-within { border-color: var(--sk-blue); }
.sk-cat-v2 .field .sk-i { font-size: 18px; }
.sk-cat-v2 .field input, .sk-cat-v2 .field select { flex: 1; min-width: 0; width: 100%; height: 46px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--sk-ink); }
@media (max-width: 800px) { .sk-cat-v2 .toolbar { grid-template-columns: 1fr; padding: 10px; } }

/* Kategoritë */
.sk-cat-v2 #skChips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.sk-cat-v2 .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--sk-line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; color: #283044; cursor: pointer; user-select: none; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.sk-cat-v2 .chip:hover { border-color: #c4cfdd; }
.sk-cat-v2 .chip.active { border-color: var(--sk-blue); background: var(--sk-blue); color: #fff; }
@media (max-width: 768px) {
  .sk-cat-v2 #skChips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 14px calc(var(--kess-gut, 18px) * -1) 6px; padding: 2px var(--kess-gut, 18px) 6px; }
  .sk-cat-v2 #skChips::-webkit-scrollbar { display: none; }
  .sk-cat-v2 #skChips .chip { flex: 0 0 auto; scroll-snap-align: start; }
}

/* Seksionet */
.sk-cat-v2 .section { margin-top: 28px; }
.sk-cat-v2 .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sk-cat-v2 .section-head h2 { margin: 0; color: var(--sk-blue); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.25; }
.sk-cat-v2 .section-head h2 .sk-i { margin-right: 8px; font-size: 22px; vertical-align: -3px; color: var(--sk-red); }
.sk-cat-v2 .section-head .hint { flex: none; color: var(--sk-muted); font-size: 13px; }
.sk-cat-v2 .section-head--line { padding-bottom: 12px; border-bottom: 1px solid var(--sk-line); }

/* Ofertat e fundit / Më të rekomanduarat: rresht që rrëshqet */
.sk-cat-v2 .row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sk-cat-v2 .row::-webkit-scrollbar { display: none; }
.sk-cat-v2 .mini { flex: 0 0 280px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--sk-line); border-radius: var(--sk-r); background: #fff; box-shadow: var(--sk-shadow); scroll-snap-align: start; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
@media (max-width: 600px) { .sk-cat-v2 .mini { flex-basis: 78%; } .sk-cat-v2 .row { margin-inline: calc(var(--kess-gut, 18px) * -1); padding-inline: var(--kess-gut, 18px); } }
.sk-cat-v2 .mini:hover, .sk-cat-v2 .card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(7, 16, 59, .06), 0 18px 34px -18px rgba(7, 16, 59, .35); }
.sk-cat-v2 .mini .img { position: relative; flex: none; height: 150px; background: var(--sk-soft); }
.sk-cat-v2 .mini .body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.sk-cat-v2 .title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.sk-cat-v2 .meta { color: var(--sk-muted); font-size: 13px; }
.sk-cat-v2 .pill, .sk-cat-v2 .fact { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 10px; border-radius: 999px; background: var(--sk-soft); color: #3b4252; font-size: 12px; font-weight: 500; }
.sk-cat-v2 .pill { margin-top: 6px; }
/* Rreshtat e kartave të vogla i mbush JS-ja pas ngarkimit: lartësia rezervohet që faqja të mos lëvizë (Lighthouse CLS 0,31).
   Titulli zë gjithmonë 2 rreshta, që çdo kartë të ketë të njëjtën lartësi (310 px; rreshti 4 + 310 + 18). */
.sk-cat-v2 .mini .title { display: -webkit-box; min-height: 2.6em; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sk-cat-v2 #skSliderNew, .sk-cat-v2 #skSliderRec { min-height: 332px; }
.sk-cat-v2 .pill .sk-i, .sk-cat-v2 .fact .sk-i { font-size: 14px; color: var(--sk-red); }

/* Katalogu i plotë */
.sk-cat-v2 .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-top: 4px; }
@media (max-width: 600px) { .sk-cat-v2 .grid { grid-template-columns: 1fr; gap: 16px; } }
.sk-cat-v2 .card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--sk-line); border-radius: var(--sk-r); background: #fff; box-shadow: var(--sk-shadow); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.sk-cat-v2 .card .img { position: relative; flex: none; height: 180px; background: var(--sk-soft); }
.sk-cat-v2 .mini .img img, .sk-cat-v2 .card .img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.sk-cat-v2 .badge { position: absolute; top: 12px; left: 12px; padding: 7px 11px; border-radius: 10px; background: var(--sk-red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1; box-shadow: 0 8px 18px -10px rgba(225, 40, 47, .9); }
.sk-cat-v2 .badge.free { background: var(--sk-green); box-shadow: 0 8px 18px -10px rgba(21, 128, 61, .9); }
.sk-cat-v2 .logo-box { position: absolute; right: 14px; bottom: -18px; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 4px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px -6px rgba(7, 16, 59, .35); }
.sk-cat-v2 .card .logo-box img { object-fit: contain; }
.sk-cat-v2 .card .body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 16px 16px; }
.sk-cat-v2 .card .desc { margin: 0; color: var(--sk-muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk-cat-v2 .facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.sk-cat-v2 .actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--sk-line); }
.sk-cat-v2 .link { color: var(--sk-blue); font-size: 14px; font-weight: 600; }
.sk-cat-v2 .smallbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--sk-red); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 20px -14px rgba(225, 40, 47, .9); transition: background .15s; }
.sk-cat-v2 .smallbtn:hover { background: var(--sk-red-d); }

.sk-cat-v2 #noResults { display: none; margin-top: 20px; padding: 40px 20px; border: 1px dashed var(--sk-line); border-radius: var(--sk-r); background: var(--sk-soft); color: var(--sk-muted); text-align: center; font-size: 15px; }

/* Faqet e katalogut */
.sk-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.sk-page-btn { min-width: 44px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--sk-line, #e3e8ef); border-radius: 12px; background: #fff; color: #283044; font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s; }
.sk-page-btn:hover { border-color: #c4cfdd; }
.sk-page-btn.active { border-color: var(--kess-blue, #0c3f75); background: var(--kess-blue, #0c3f75); color: #fff; }

/* Dritarja e detajeve (klik mbi një ofertë) */
.sk-qv-overlay { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(7, 16, 59, .55); backdrop-filter: blur(4px); }
.sk-qv-content { position: relative; display: flex; width: 100%; max-width: 860px; max-height: 90vh; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -20px rgba(7, 16, 59, .5); animation: skQvPop .25s ease; font-family: inherit; }
@keyframes skQvPop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.sk-qv-close { position: absolute; top: 14px; right: 14px; z-index: 10; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #283044; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(7, 16, 59, .18); transition: background .15s, color .15s; }
.sk-qv-close:hover { background: var(--kess-red, #e1282f); color: #fff; }
.sk-qv-left { position: relative; flex: 1; min-height: 300px; background: #f5f9fa; }
.sk-qv-left img#qv-img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.sk-qv-badge { position: absolute; top: 18px; left: 18px; padding: 8px 13px; border-radius: 10px; background: var(--kess-red, #e1282f); color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; box-shadow: 0 8px 18px -10px rgba(225, 40, 47, .9); }
.sk-qv-logo-box { position: absolute; right: 18px; bottom: -28px; display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; padding: 5px; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px -8px rgba(7, 16, 59, .35); }
.sk-qv-logo-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.sk-qv-right { display: flex; flex: 1.2; flex-direction: column; padding: 36px 28px 28px; overflow-y: auto; color: #1c1c1c; }
.sk-qv-right h2 { margin: 0 0 10px; color: var(--kess-blue, #0c3f75); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.2; }
#qv-cat { display: inline-block; width: fit-content; padding: 5px 11px; border-radius: 999px; background: #f5f9fa; color: #3b4252; font-size: 13px; }
.sk-qv-desc { margin: 16px 0; color: #4a5263; font-size: 15px; line-height: 1.6; }
.sk-qv-details { margin-bottom: 24px; padding: 14px 16px; border-radius: 12px; background: #f5f9fa; color: #3b4252; font-size: 14px; }
.sk-qv-details p { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.sk-qv-details p:last-child { margin: 0; }
.sk-qv-details .sk-i { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--kess-blue, #0c3f75); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk-btn-full { display: inline-flex; align-items: center; justify-content: center; margin-top: auto; min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--kess-red, #e1282f); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 12px 24px -14px rgba(225, 40, 47, .9); transition: background .15s; }
.sk-btn-full:hover { background: #c61f26; color: #fff; }
@media (max-width: 768px) {
  .sk-qv-content { flex-direction: column; overflow-y: auto; }
  .sk-qv-left { flex: none; min-height: 200px; height: 200px; }
  .sk-qv-logo-box { right: 14px; bottom: -24px; width: 60px; height: 60px; }
  .sk-qv-right { padding: 34px 20px 20px; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .sk-cat-v2 *, .sk-qv-content { transition: none; animation: none; } }
