/* Snappat - Minimal CSS (Tailwind handles the rest) */

/* Scrollbar hide for horizontal scroll */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Osclass ajax uploader */
.qq-uploader { background: transparent !important; border: none !important; }

/* Gallery mobile swipe */
@media(max-width:768px) {
  .gallery-swipe { overflow-x: auto; scroll-snap-type: x mandatory; display: flex; -webkit-overflow-scrolling: touch; }
  .gallery-swipe img { min-width: 100%; scroll-snap-align: start; flex-shrink: 0; }
}

/* Compose overlay */
.compose-overlay { display: none; }
.compose-overlay.open { display: flex; }

/* Pagination (search results) */
.sn-pag {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: 2rem !important;
  text-align: center !important;
}
.sn-pag ul {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.375rem !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  font-size: 0;
}
.sn-pag li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  line-height: 1 !important;
}
.sn-pag a, .sn-pag span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  transition: all .15s ease;
  box-sizing: border-box;
  vertical-align: middle;
}
.sn-pag a:hover {
  border-color: #3b7bbf;
  color: #3b7bbf;
  background: #eff6ff;
}
.sn-pag .searchPaginationSelected {
  background: #3b7bbf;
  border-color: #3b7bbf;
  color: #fff;
  cursor: default;
}
.sn-pag .searchPaginationPrev,
.sn-pag .searchPaginationNext {
  font-weight: 600;
}
.sn-pag .list-first.searchPaginationPrev[href=""],
.sn-pag .list-last.searchPaginationNext[href=""] {
  opacity: .35;
  pointer-events: none;
}
@media (max-width: 480px) {
  .sn-pag a, .sn-pag span {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
  }
}

/* Cat-tabs scroll-affordance (mobile fade-edges + scroll-snap) — 2026-05-07 */
.snappat-cat-tabs-wrapper {
  position: relative;
  overflow: hidden;
}
.snappat-cat-tabs-wrapper::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 32px;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity .2s;
}
.snappat-cat-tabs-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 32px;
  background: linear-gradient(to left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .2s;
}
.snappat-cat-tabs-wrapper.snappat-cat-tabs-scrolled-left::before { opacity: 1; }
.snappat-cat-tabs-wrapper.snappat-cat-tabs-at-right::after { opacity: 0; }
.snappat-cat-tabs-scroll {
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.snappat-cat-tabs-scroll > * { scroll-snap-align: start; }
.snappat-cat-tabs-wrapper.no-scroll-needed::after,
.snappat-cat-tabs-wrapper.no-scroll-needed::before { display: none; }

/* Mer-dropdown (Variant A2 — 2026-05-07) */
.snappat-mer-wrapper { position: relative; }
.snappat-mer-arrow { transition: transform .2s; }
.snappat-mer-btn[aria-expanded="true"] .snappat-mer-arrow { transform: rotate(180deg); }
.snappat-mer-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  max-width: 280px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  z-index: 50;
  display: none;
  padding: 6px;
  flex-direction: column;
  gap: 2px;
}
.snappat-mer-dropdown.is-open { display: flex; }
.snappat-mer-item {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.snappat-mer-item:hover, .snappat-mer-item:focus-visible {
  background: #eff6ff;
  color: #1f5a96;
  outline: none;
}
.snappat-mer-item.is-active {
  background: #dbeafe;
  color: #1f5a96;
  font-weight: 600;
}
.snappat-mer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 40;
}
.snappat-mer-backdrop.is-open { display: block; }
@media (min-width: 768px) {
  .snappat-mer-backdrop.is-open { display: none; }
}
body.sn-mer-open { overflow: hidden; }

/* === CAT-TABS — Underline-style + auto-wrap (Commit 1 redesign — 2026-05-07) === */
.cat-tabs-list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e5e7eb;
}
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  text-decoration: none;
}
.cat-tab:hover { color: #1f2937; }
.cat-tab.active {
  color: #4182c3;
  border-bottom-color: #4182c3;
  font-weight: 600;
}
.cat-tab i {
  font-size: 12px;
  opacity: .85;
}
@media (max-width: 768px) {
  .cat-tab { padding: 10px 12px; font-size: 12px; }
}

/* === SUB-CAT-PILLS (Commit 2 — 2026-05-07) === */
.sub-cats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.sub-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.sub-cat-pill:hover {
  background: #f3f4f6;
  color: #1f2937;
}
.sub-cat-pill.active {
  background: #eff6ff;
  color: #4182c3;
  font-weight: 600;
}
﻿
/* === FILTER SIDEBAR (Commit 3 ? 2026-05-07) === */
@media (min-width: 1024px) {
  .filter-sidebar-sticky {
    position: sticky;
    top: 80px;
    align-self: flex-start;
  }
}
.f-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.f-chip:hover {
  border-color: #4182c3;
  color: #4182c3;
}
input[type="radio"].peer:checked + .f-chip,
input[type="checkbox"].peer:checked + .f-chip {
  background: #eff6ff;
  border-color: #4182c3;
  color: #4182c3;
  font-weight: 600;
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #f0f7ff;
  border: 1px solid #c7dcf3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #1f5a96;
  cursor: pointer;
  transition: all .15s;
}
.active-filter-chip:hover {
  background: #dceaf8;
  border-color: #4182c3;
}
.active-filter-chip i {
  font-size: 10px;
  opacity: .7;
}
.active-filter-chip:hover i {
  opacity: 1;
}
