/* =================================================
   KATEGORIA.CSS – Strona kategorii z zakładkami
   Mosaic hero + tabs layout + sidebar
================================================= */

/* ─── BREADCRUMB BAR ─── */
.kat-breadcrumb-bar {
  background: #2f2559;
  padding: 6px 0;
}
.kat-breadcrumb-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.kat-breadcrumb-in a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .2s;
}
.kat-breadcrumb-in a:hover {
  color: #fff;
  text-decoration: underline;
}
.kat-breadcrumb-in a:last-child {
  color: #fff;
  font-weight: 600;
}
.kat-breadcrumb-in .sep {
  margin: 0 6px;
  opacity: .4;
}

/* ─── MOSAIC HERO (4 equal photos in a row) ─── */
.kat-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 180px;
  overflow: hidden;
  background: #2f2559;
  gap: 3px;
}
.kat-mosaic-few {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.kat-mosaic-item {
  overflow: hidden;
}
.kat-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kat-mosaic-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    0deg,
    rgba(47,37,89,.55) 0%,
    rgba(47,37,89,.2) 40%,
    rgba(47,37,89,.1) 100%
  );
  pointer-events: none;
}
.kat-mosaic-overlay h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
  text-align: center;
}

/* (slim hero removed – using unified mosaic) */

/* ─── TITLE BAR (no photos fallback) ─── */
.kat-title-bar {
  background: linear-gradient(135deg, #3b2f7f 0%, #2f2559 100%);
  padding: 24px 14px;
}
.kat-title-in {
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
}
.kat-title-in h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

/* ─── CONTENT WRAPPER ─── */
.kat-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 14px 40px;
}

/* ─── 2-COLUMN LAYOUT ─── */
.kat-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.kat-main-col {
  min-width: 0;
}
.kat-sidebar-col {
  position: sticky;
  top: 20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── TABS NAVIGATION ─── */
.kat-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.kat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: #666;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  font-family: inherit;
}
.kat-tab svg {
  flex-shrink: 0;
  opacity: .6;
  transition: opacity .2s;
}
.kat-tab:hover {
  color: #3b2f7f;
  background: rgba(59,47,127,.04);
}
.kat-tab:hover svg {
  opacity: .8;
}
.kat-tab.active {
  color: #3b2f7f;
  border-bottom-color: #3b2f7f;
}
.kat-tab.active svg {
  opacity: 1;
  color: #3b2f7f;
}

/* ─── TAB PANELS ─── */
.kat-tab-panel {
  display: none;
}
.kat-tab-panel.active {
  display: block;
  animation: kat-fadeIn .3s ease;
}
@keyframes kat-fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SUBCATEGORY CARD GRID ─── */
.kat-subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.kat-subcat-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e9e6f5;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.kat-subcat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,47,127,.18);
}
.kat-subcat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kat-subcat-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 8px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 60%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* ─── FILTER BAR ─── */
.kat-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
}
.kat-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-right: 2px;
}
.kat-filter-btn {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  border: 1px solid rgba(59,47,127,.15);
  background: #fff;
  color: #3b2f7f;
  cursor: pointer;
  font-weight: 500;
  transition: all .2s;
  line-height: 1;
}
.kat-filter-btn:hover {
  background: #f0edf8;
  border-color: #3b2f7f;
}
.kat-filter-btn.active {
  background: #3b2f7f;
  color: #fff;
  border-color: #3b2f7f;
  font-weight: 700;
}
.kat-filter-btn .star-icon {
  color: #ffc107;
}

/* ─── PRODUCT GRID (compact cards) ─── */
.prod-section {
  margin-bottom: 24px;
}
.prod-section-h {
  font-size: 18px;
  font-weight: 800;
  color: #2f2559;
  margin: 0 0 12px;
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.prod-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.prod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,47,127,.12);
  border-color: rgba(59,47,127,.15);
}
.prod-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0edf8;
}
.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9e6f5, #d5d0ea);
}
.prod-card-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.prod-card-body h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hotel star badge */
.prod-card-stars {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0,0,0,.6);
  color: #ffc107;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 1px;
  line-height: 1;
  backdrop-filter: blur(4px);
}

/* Rating */
.prod-card-rating {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.prod-card-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3b2f7f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 28px;
}
.prod-card-votes {
  font-size: 11px;
  color: #999;
}
.prod-card-no-rating .prod-card-votes {
  font-style: italic;
  font-size: 11px;
}

/* ─── INFO CARD (O regionie) ─── */
.kat-info-card {
  background: #f8f7fc;
  border: 1px solid rgba(59,47,127,.08);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}
.kat-info-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: #2f2559;
}
.kat-info-text {
  max-height: none;
}

/* ─── SIDEBAR ─── */
.kat-sidebar-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  padding: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.kat-sidebar-card h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #2f2559;
}

/* Site search */
.kat-site-search {
  padding: 14px 16px;
}
.kat-search-wrap {
  position: relative;
}
.kat-search-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(59,47,127,.2);
  background: #f8f7fc;
  font-size: 13px;
  font-family: inherit;
  color: #333;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.kat-search-input:focus {
  border-color: #3b2f7f;
  background: #fff;
}
.kat-search-input::placeholder {
  color: #aaa;
}
.kat-search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(59,47,127,.15);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
}
.kat-sr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-decoration: none;
  color: #333;
  transition: background .15s;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.kat-sr-item:last-child {
  border-bottom: none;
}
.kat-sr-item:hover {
  background: #f0edf8;
}
.kat-sr-thumb {
  width: 48px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e9e6f5;
}
.kat-sr-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.kat-sr-info {
  min-width: 0;
  flex: 1;
}
.kat-sr-name {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.kat-sr-item:hover .kat-sr-name {
  color: #3b2f7f;
}
.kat-sr-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.kat-sr-stars {
  color: #ffc107;
  font-size: 10px;
  letter-spacing: .5px;
}
.kat-sr-rating {
  background: #3b2f7f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}
.kat-sr-votes {
  font-size: 10px;
  color: #999;
}
.kat-sr-label {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-top: 1px;
}
.kat-sr-empty {
  padding: 14px 12px;
  text-align: center;
  color: #999;
  font-size: 12px;
}

/* TravelLead widget wrapper */
.kat-widget-wrap {
  padding: 0;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: none;
  min-height: 200px;
}

/* Sidebar opinie */
.kat-sidebar-opinie-content {
  font-size: 13px;
}
.kat-sidebar-opinie-empty {
  text-align: center;
  padding: 10px 0;
  color: #999;
  font-size: 13px;
}
.kat-sidebar-opinie-empty small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: .7;
}

/* Sidebar links */
.kat-sidebar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kat-sib-link {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  color: #3b2f7f;
  background: #f0edf8;
  transition: all .2s;
  font-weight: 500;
}
.kat-sib-link:hover {
  background: #3b2f7f;
  color: #fff;
}
.kat-sib-link.active {
  background: #3b2f7f;
  color: #fff;
  font-weight: 700;
  pointer-events: none;
}

/* Sidebar ad */
.kat-sidebar-ad {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* ─── SUBCATEGORY PLACEHOLDER (no photo) ─── */
.kat-subcat-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b2f7f 0%, #5a4db8 100%);
  color: rgba(255,255,255,.25);
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.kat-subcat-count {
  font-weight: 400;
  font-size: 11px;
  opacity: .7;
  margin-left: 2px;
}

/* ─── PAGINATION ─── */
.kat-pagination-wrap {
  margin-top: 16px;
  text-align: center;
}
.kat-load-more {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 24px;
  border: 2px solid #3b2f7f;
  background: #fff;
  color: #3b2f7f;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.kat-load-more:hover {
  background: #3b2f7f;
  color: #fff;
}

/* Hidden cards (pagination + star filter) */
.prod-card.kat-hidden,
.prod-card.kat-star-hidden,
.firma-card.kat-hidden,
.rk-kat-card.kat-hidden {
  display: none !important;
}

/* ─── SECTION HEADER ─── */
.kat-section-h {
  font-size: 18px;
  font-weight: 800;
  color: #2f2559;
  margin: 0 0 14px;
}

/* ─── MOSAIC description ─── */
.kat-mosaic-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,.8);
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  max-width: 600px;
  text-align: center;
}

/* ─── OGOLNA TEMPLATE: big subcat cards ─── */
.kat-og-subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.kat-og-subcat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.kat-og-subcat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(59,47,127,.15);
  border-color: rgba(59,47,127,.15);
}
.kat-og-subcat-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9e6f5;
}
.kat-og-subcat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.kat-og-subcat-card:hover .kat-og-subcat-img img {
  transform: scale(1.05);
}
.kat-og-subcat-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kat-og-subcat-name {
  font-size: 16px;
  font-weight: 700;
  color: #2f2559;
  line-height: 1.3;
}
.kat-og-subcat-count {
  font-size: 12px;
  color: #999;
  font-weight: 400;
}

/* ─── TITLE BAR description ─── */
.kat-title-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  font-weight: 400;
}

/* ─── TRIP SECTIONS (Kraje → oferty z wakacje.pl) ─── */
.kat-trip-section {
  margin-bottom: 28px;
}
.kat-trip-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(59,47,127,.1);
}
.kat-trip-section-icon {
  font-size: 22px;
  line-height: 1;
}
.kat-trip-section-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #2f2559;
  flex: 1;
}
.kat-trip-more {
  font-size: 12px;
  font-weight: 600;
  color: #3b2f7f;
  text-decoration: none;
  white-space: nowrap;
}
.kat-trip-more:hover {
  text-decoration: underline;
}
.kat-trip-partner {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}
.kat-trip-partner a {
  color: #3b2f7f;
  font-weight: 600;
  text-decoration: none;
}
.kat-trip-partner a:hover {
  text-decoration: underline;
}

/* ─── BUILDING / IN PROGRESS state ─── */
.kat-building {
  padding: 60px 20px;
}
.kat-building-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ─── EMPTY STATE ─── */
.kat-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
}
.kat-empty strong {
  display: block;
  font-size: 16px;
  color: #666;
  margin-bottom: 4px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .kat-layout {
    grid-template-columns: 1fr;
  }
  .kat-sidebar-col {
    position: static;
    order: 2;
  }
}

@media (max-width: 600px) {
  .kat-mosaic { height: 120px; grid-template-columns: repeat(2, 1fr); }
  .kat-mosaic-item:nth-child(n+3) { display: none; }
  .kat-mosaic-overlay h1 { font-size: 22px; }
  .kat-mosaic-desc { font-size: 12px; }
  .kat-title-in h1 { font-size: 20px; }
  .kat-subcat-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }
  .kat-trip-section-header h3 {
    font-size: 15px;
  }
  .kat-og-subcat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .kat-og-subcat-card {
    flex-direction: row;
  }
  .kat-og-subcat-img {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: 1;
  }
  .kat-og-subcat-info {
    padding: 12px;
    justify-content: center;
  }
  .prod-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
  .kat-content {
    padding: 14px 10px 30px;
  }
  .kat-tabs {
    gap: 0;
  }
  .kat-tab {
    padding: 10px 12px;
    font-size: 13px;
    gap: 5px;
  }
  .kat-tab svg {
    width: 14px;
    height: 14px;
  }
  .kat-filter-bar {
    gap: 4px;
  }
  .kat-filter-btn {
    padding: 4px 10px;
    font-size: 11px;
  }
}

/* =====================================================
   KGS-BAR — stats bar (shared by kategoria + kategorie)
===================================================== */
.kgs-bar {
  background: #f8f7fc;
  border-bottom: 1px solid rgba(59,47,127,.08);
  padding: 12px 0;
}
.kgs-bar-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.kgs-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #475569;
}
.kgs-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.kgs-item strong {
  font-weight: 800;
  color: #2f2559;
  font-size: 15px;
}

@media (max-width: 600px) {
  .kgs-bar-in { gap: 16px; }
  .kgs-item { font-size: 12px; }
  .kgs-item strong { font-size: 13px; }
}

/* =====================================================
   BOTTOM BANNER — shared by kategoria + kategorie
===================================================== */
.kge-banner-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}
.kge-banner {
  border-top: 1px solid #e2e8f0;
  padding: 20px 0;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
}
.kge-banner-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

/* =====================================================
   FIRMA CARD — rozszerzenia do .prod-card
===================================================== */
.firma-card .prod-card-img {
  aspect-ratio: auto;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #f8f7fc;
}
.firma-card .prod-card-img img {
  max-width: 70%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.prod-card-loc {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.2;
}
.prod-card-loc svg {
  flex-shrink: 0;
}
.prod-card-placeholder span {
  font-size: 28px;
  font-weight: 900;
  color: rgba(255,255,255,.2);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.firma-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0edf8, #e9e6f5);
}
.firma-card-logo img {
  width: 60%;
  height: auto;
  object-fit: contain;
  opacity: .7;
}

/* =====================================================
   RANKING GRID — karty rankingow
===================================================== */
.rk-kat-section {
  margin-bottom: 24px;
}
.rk-kat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.rk-kat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.rk-kat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,47,127,.12);
  border-color: rgba(59,47,127,.2);
}
.rk-kat-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.rk-kat-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.rk-badge-firmy {
  background: #e9e6f5;
  color: #3b2f7f;
}
.rk-badge-produkty {
  background: #e8f5e9;
  color: #2e7d32;
}
.rk-kat-count {
  font-size: 11px;
  color: #94a3b8;
  margin-left: auto;
}
.rk-kat-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #2f2559;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rk-kat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}
.rk-kat-cat {
  padding: 1px 6px;
  background: #f0edf8;
  border-radius: 4px;
  font-weight: 500;
}
.rk-kat-loc {
  display: flex;
  align-items: center;
  gap: 2px;
}
.rk-kat-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.rk-kat-score {
  background: #3b2f7f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.rk-kat-stars {
  color: #ffc107;
  font-size: 13px;
  letter-spacing: 1px;
}

/* =====================================================
   EMPTY STATE — komunikat + CTA
===================================================== */
.kat-empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #94a3b8;
}
.kat-empty-icon {
  margin-bottom: 14px;
  opacity: .6;
}
.kat-empty-state p {
  margin: 0 0 16px;
  font-size: 15px;
  color: #64748b;
}
.kat-cta-btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #3b2f7f, #6c5ce7);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(59,47,127,.25);
  transition: all .2s;
}
.kat-cta-btn:hover {
  box-shadow: 0 8px 24px rgba(59,47,127,.35);
  transform: translateY(-1px);
  color: #fff;
}
.kat-cta-secondary {
  background: #fff;
  color: #3b2f7f;
  border: 2px solid #3b2f7f;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kat-cta-secondary:hover {
  background: #3b2f7f;
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,47,127,.25);
}
.kat-add-ranking-wrap {
  margin-top: 20px;
  text-align: center;
}

/* =====================================================
   LOAD MORE — generic (firmy + rankingi)
===================================================== */
.kat-load-more-wrap {
  margin-top: 16px;
  text-align: center;
}
.kat-load-more-btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 24px;
  border: 2px solid #3b2f7f;
  background: #fff;
  color: #3b2f7f;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.kat-load-more-btn:hover {
  background: #3b2f7f;
  color: #fff;
}

/* =====================================================
   OPINIE GRID — inline (category page)
===================================================== */
.kat-opinie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.opinia-card-kat {
  background: #fff;
  border: 2px solid #e9e6f5;
  border-radius: 14px;
  padding: 16px;
  transition: transform .2s, box-shadow .2s;
}
.opinia-card-kat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.opinia-card-kat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.opinia-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.opinia-badge-firma { background: #3b2f7f; }
.opinia-badge-produkt { background: #2e7d32; }
.opinia-badge-numer { background: #e65100; }
.opinia-card-kat-date {
  font-size: 11px;
  color: #999;
}
.opinia-card-kat-title {
  display: block;
  font-weight: 700;
  color: #3b2f7f;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.3;
}
.opinia-card-kat-title:hover {
  text-decoration: underline;
}
.opinia-card-kat-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}
.kat-star { color: #ddd; font-size: 14px; }
.kat-star-active { color: #3b2f7f; }
.opinia-card-kat-stars strong {
  font-size: 13px;
  color: #3b2f7f;
  margin-left: 4px;
}
.opinia-card-kat-count {
  font-size: 12px;
  color: #999;
  margin-left: 2px;
}
.opinia-card-kat-text {
  font-size: 13px;
  line-height: 1.4;
  color: #555;
  margin: 0;
}
.opinia-card-kat-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #999;
  margin-top: 6px;
}
.opinia-card-kat.kat-hidden { display: none; }

/* ─── SIDEBAR OPINIE ─── */
.kat-sidebar-opinia-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.kat-sidebar-opinia-item:last-child {
  border-bottom: none;
}
.kat-sidebar-opinia-title {
  display: block;
  font-weight: 700;
  color: #3b2f7f;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
}
.kat-sidebar-opinia-title:hover {
  text-decoration: underline;
}
.kat-sidebar-opinia-rating {
  display: flex;
  align-items: center;
  gap: 1px;
  margin: 4px 0;
}
.kat-sidebar-opinia-text {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
  margin: 4px 0 0;
}
.kat-sidebar-opinia-empty {
  color: #999;
  font-size: 13px;
}

/* =====================================================
   RESPONSIVE — nowe elementy
===================================================== */
@media (max-width: 600px) {
  .rk-kat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rk-kat-card {
    padding: 12px 14px;
  }
  .rk-kat-card h3 {
    font-size: 14px;
  }
  .kat-empty-state {
    padding: 30px 14px;
  }
  .kat-cta-btn {
    padding: 9px 22px;
    font-size: 13px;
  }
  .kat-opinie-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ─── NIP badge na karcie firmy ─── */
.firma-card-nip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: #3b2f7f;
  background: #e9e6f5;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
/* Firma card – ocena zawsze na dole karty */
.firma-card .prod-card-rating {
  margin-top: auto !important;
  padding-top: 6px;
}

/* ─── WIDGET TRAVELLEAD (bottom banner for turystyka) ─── */
.kat-travellead-wrap {
  background: #fff;
  padding: 0;
}
.kat-travellead-in {
  max-width: 100%;
  padding: 0;
}
.kat-travellead-search {
  margin: 0;
}
.kat-travellead-offers {
  margin: 0;
}
