/* ============================================
   TicketPortal Navigation 2026
   CategoryBar + SubcategoryBar
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Colors LO */
    --tp-navy: #264382;
    --tp-navy-hover: #3d4778;
    --tp-bg-category-bar: #F0EEF4;
    --tp-border-category-bar: #E0DCE8;
    --tp-bg-page: #F9FAFB;
    --tp-white: #edf2f5;
    --tp-o2-red: #F0141E;
    --tp-overlay: rgba(0, 0, 0, 0.4);
    --tp-pill-border: #C5C1CE;
    --tp-pill-hover-bg: #E8E5EE;
    --tp-text-muted: #6B6880;
    --tp-catbar-hover-glow: rgba(45, 53, 97, 0.06);
    /* Typography kua*/
    --tp-font-family: 'Roboto', sans-serif;
    --tp-font-weight-medium: 500;
    --tp-font-size-category-desktop: 14.5px;
    --tp-font-size-category-mobile: 13.5px;
    --tp-font-size-pill: 13px;
    --tp-font-size-badge: 10px;
    --tp-line-height: 1.5em;
    /* Dimensions */
    --tp-category-bar-height: 62px;
    --tp-active-border-width: 4px;
    --tp-pill-border-radius: 9999px;
    --tp-bottom-sheet-radius: 16px;
    --tp-dropdown-max-width: 1200px;
    /* Animations */
    --tp-transition-speed: 0.25s;
    --tp-transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === DARK THEME — CategoryBar only (desktop) === */
@media (min-width: 768px) {
  .tp-category-bar--dark {
    --tp-bg-category-bar: #264382;
    --tp-border-category-bar: rgba(255, 255, 255, 0.12);
    --tp-navy: #FFFFFF;
    --tp-navy-hover: #E0DCE8;
    --tp-white: #264382;
    --tp-catbar-hover-glow: rgba(255, 255, 255, 0.08);
  }
}


/* --- CategoryBar --- */
.tp-category-bar {
  background: var(--tp-bg-category-bar);
  border-bottom: 0.67px solid var(--tp-border-category-bar);
  height: var(--tp-category-bar-height);
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: var(--tp-font-family);
}

.tp-category-bar__container {
  max-width: var(--tp-dropdown-max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

/* "Na mape" link — right side of CategoryBar, desktop only */
.tp-category-bar__map-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 0 14px 0 24px;
  height: 100%;
  font-size: var(--tp-font-size-category-desktop);
  font-weight: var(--tp-font-weight-medium);
  color: var(--tp-navy);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--tp-transition-speed) var(--tp-transition-easing);
  position: relative;
  flex-shrink: 0;
  border-left: 1px solid var(--tp-border-category-bar);
}

.tp-category-bar__map-link:hover {
  color: var(--tp-navy-hover);
  text-decoration: none;
}



.tp-category-bar__map-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tp-category-bar__list {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  position: relative;
}

.tp-category-bar__item {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  position: relative;
  cursor: pointer;
  font-size: var(--tp-font-size-category-desktop);
  font-weight: var(--tp-font-weight-medium);
  color: var(--tp-navy);
  line-height: var(--tp-line-height);
  white-space: nowrap;
  border: none;
  background: none;
  transition: color var(--tp-transition-speed) var(--tp-transition-easing);
  user-select: none;
  -webkit-user-select: none;
}

/* Hover background glow (shared for items and map link) */
.tp-category-bar__item::before,
.tp-category-bar__map-link::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 4px;
  right: 4px;
  border-radius: 8px;
  background: var(--tp-catbar-hover-glow);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s var(--tp-transition-easing),
              transform 0.2s var(--tp-transition-easing);
  z-index: -1;
}

.tp-category-bar__item:hover::before,
.tp-category-bar__map-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.tp-category-bar__item--active::before {
  opacity: 0 !important;
}

.tp-category-bar__item:hover {
  color: var(--tp-navy-hover);
}

.tp-category-bar__item:focus-visible {
  outline: 2px solid var(--tp-navy);
  outline-offset: -2px;
  border-radius: 4px;
}

/* Sliding active indicator (positioned by JS) */
.tp-category-bar__indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: var(--tp-active-border-width);
  background: var(--tp-navy);
  border-radius: 4px 4px 0 0;
  transform: scaleX(0);
  transform-origin: center bottom;
  transition: transform 0.3s var(--tp-transition-easing),
              left 0.3s var(--tp-transition-easing),
              width 0.3s var(--tp-transition-easing);
  pointer-events: none;
  z-index: 1;
  will-change: transform, left, width;
}

.tp-category-bar__indicator--visible {
  transform: scaleX(1);
}

/* O2 special styling */
.tp-category-bar__o2 {
  font-size: 10.38px;
  color: var(--tp-o2-red);
  vertical-align: super;
  font-weight: var(--tp-font-weight-medium);
  margin-right: 1px;
}

/* Badge on category item */
.tp-category-bar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--tp-pill-border-radius);
  background: var(--tp-navy);
  color: var(--tp-white);
  font-size: var(--tp-font-size-badge);
  font-weight: var(--tp-font-weight-medium);
  margin-left: 6px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--tp-transition-speed) var(--tp-transition-easing),
              transform var(--tp-transition-speed) var(--tp-transition-easing);
}

.tp-category-bar__badge--visible {
  opacity: 1;
  transform: scale(1);
}

/* Badge pulse animation */
@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.tp-category-bar__badge--pulse {
  animation: badgePulse 0.3s var(--tp-transition-easing);
}

/* Chevron arrow */
.tp-category-bar__chevron {
  width: 10px;
  height: 10px;
  margin-left: 4px;
  transition: transform var(--tp-transition-speed) var(--tp-transition-easing);
  flex-shrink: 0;
}

.tp-category-bar__item--active .tp-category-bar__chevron {
  transform: rotate(180deg);
}

/* --- SubcategoryDropdown (Desktop) --- */
.tp-subcategory-dropdown {
  position: relative;
  z-index: 99;
  background: var(--tp-white);
  border-bottom: 0.67px solid var(--tp-border-category-bar);
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition: grid-template-rows 0.35s var(--tp-transition-easing),
              opacity var(--tp-transition-speed) var(--tp-transition-easing);
}

.tp-subcategory-dropdown--open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.tp-subcategory-dropdown__inner {
  overflow: hidden;
}

/* Collapse chevron at bottom center */
.tp-subcategory-dropdown__collapse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tp-white);
  border: 0.67px solid var(--tp-border-category-bar);
  border-radius: 50%;
  cursor: pointer;
  color: var(--tp-text-muted);
  padding: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: color var(--tp-transition-speed) var(--tp-transition-easing),
              border-color var(--tp-transition-speed) var(--tp-transition-easing),
              box-shadow var(--tp-transition-speed) var(--tp-transition-easing);
}

.tp-subcategory-dropdown__collapse svg {
  width: 10px;
  height: 6px;
}

.tp-subcategory-dropdown__collapse:hover {
  color: var(--tp-navy);
  border-color: var(--tp-navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  .tp-subcategory-dropdown__collapse {
    display: none;
  }
}

.tp-subcategory-dropdown__container {
  max-width: var(--tp-dropdown-max-width);
  margin: 0 auto;
  padding: 12px 30px 16px;
}

/* Header row: breadcrumb + cancel */
.tp-subcategory-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tp-subcategory-dropdown__breadcrumb {
  font-family: var(--tp-font-family);
  font-size: 13px;
  font-weight: var(--tp-font-weight-medium);
  color: var(--tp-text-muted);
}

.tp-subcategory-dropdown__breadcrumb-category {
  color: var(--tp-navy);
}

.tp-subcategory-dropdown__breadcrumb-count {
  margin-left: 8px;
  color: var(--tp-text-muted);
}

/* Cancel filter button */
.tp-subcategory-dropdown__cancel {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--tp-pill-border-radius);
  border: 1px solid var(--tp-o2-red);
  background: transparent;
  color: var(--tp-o2-red);
  font-family: var(--tp-font-family);
  font-size: var(--tp-font-size-pill);
  font-weight: var(--tp-font-weight-medium);
  cursor: pointer;
  transition: background var(--tp-transition-speed) var(--tp-transition-easing),
              color var(--tp-transition-speed) var(--tp-transition-easing);
}

.tp-subcategory-dropdown__cancel:hover {
  background: var(--tp-o2-red);
  color: var(--tp-white);
}

.tp-subcategory-dropdown__cancel--visible {
  display: inline-flex;
}

/* Close dropdown link (shown when no subs selected) */
.tp-subcategory-dropdown__close-link {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--tp-pill-border-radius);
  border: 1px solid var(--tp-border-category-bar);
  background: transparent;
  color: var(--tp-text-muted);
  font-family: var(--tp-font-family);
  font-size: var(--tp-font-size-pill);
  font-weight: var(--tp-font-weight-medium);
  cursor: pointer;
  transition: color var(--tp-transition-speed) var(--tp-transition-easing),
              border-color var(--tp-transition-speed) var(--tp-transition-easing);
}

.tp-subcategory-dropdown__close-link:hover {
  color: var(--tp-navy);
  border-color: var(--tp-navy);
}

.tp-subcategory-dropdown__close-link--visible {
  display: inline-flex;
}

/* Pills grid */
.tp-subcategory-dropdown__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 32px;
  margin-bottom:12px;
}

/* Pill button */
.tp-subcategory-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: var(--tp-pill-border-radius);
  border: 1px solid var(--tp-pill-border);
  background: var(--tp-white);
  color: var(--tp-navy);
  font-family: var(--tp-font-family);
  font-size: var(--tp-font-size-pill);
  font-weight: var(--tp-font-weight-medium);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  transition: background var(--tp-transition-speed) var(--tp-transition-easing),
              color var(--tp-transition-speed) var(--tp-transition-easing),
              border-color var(--tp-transition-speed) var(--tp-transition-easing),
              transform 0.15s var(--tp-transition-easing);
}

.tp-subcategory-pill:hover {
  background: var(--tp-pill-hover-bg);
  border-color: var(--tp-navy);
}

.tp-subcategory-pill:focus-visible {
  outline: 2px solid var(--tp-navy);
  outline-offset: 2px;
}

.tp-subcategory-pill:active {
  transform: scale(0.97);
}

/* Pill reveal animation (staggered) */
@keyframes pillReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tp-subcategory-dropdown--animating .tp-subcategory-pill {
  animation: pillReveal 0.3s var(--tp-transition-easing) both;
  animation-delay: calc(var(--pill-index, 0) * 20ms);
}

.tp-subcategory-pill--active {
  background: var(--tp-navy);
  color: var(--tp-white);
  border-color: var(--tp-navy);
}

.tp-subcategory-pill--active:hover {
  background: var(--tp-navy-hover);
}

/* Check icon in pill */
.tp-subcategory-pill__check {
  width: 14px;
  height: 14px;
  opacity: 0.15;
  transition: opacity 0.15s var(--tp-transition-easing),
              color 0.15s var(--tp-transition-easing);
}

.tp-subcategory-pill--active .tp-subcategory-pill__check {
  opacity: 1;
}

/* "Všetko" pill - special */
.tp-subcategory-pill--all {
  font-weight: 600;
}

/* --- Mobile CategoryBar adjustments --- */
@media (max-width: 767px) {
  .tp-category-bar__container {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 12px;
  }

  .tp-category-bar__container::-webkit-scrollbar {
    display: none;
  }

  .tp-category-bar__item {
    font-size: var(--tp-font-size-category-mobile);
    padding: 0 10px;
    flex-shrink: 0;
  }

  /* Hide map link on mobile */
  .tp-category-bar__map-link {
    display: none;
  }

  /* Hide desktop dropdown on mobile */
  .tp-subcategory-dropdown {
    display: none;
  }

  /* Larger touch target for pills on mobile */
  .tp-subcategory-pill {
    padding: 14px;
  }
}

/* --- Mobile Bottom Sheet --- */
.tp-mobile-sheet-overlay {
  position: fixed;
  inset: 0;
  background: var(--tp-overlay);
  z-index: 1046;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--tp-transition-easing),
              visibility 0s 0.25s;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
}

.tp-mobile-sheet-overlay--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s var(--tp-transition-easing),
              visibility 0s 0s;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.tp-mobile-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--tp-white);
  border-radius: var(--tp-bottom-sheet-radius) var(--tp-bottom-sheet-radius) 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.tp-mobile-sheet--open {
  transform: translateY(0);
}

.tp-mobile-sheet--animating .tp-subcategory-pill {
  animation: pillReveal 0.25s var(--tp-transition-easing) both;
  animation-delay: calc(var(--pill-index, 0) * 30ms);
}

.tp-mobile-sheet__drag-handle {
  width: 40px;
  height: 4px;
  background: var(--tp-border-category-bar);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.tp-mobile-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--tp-border-category-bar);
  flex-shrink: 0;
}

.tp-mobile-sheet__title {
  font-family: var(--tp-font-family);
  font-size: 18px;
  font-weight: 600;
  color: var(--tp-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-mobile-sheet__title-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--tp-pill-border-radius);
  background: var(--tp-navy);
  color: var(--tp-white);
  font-size: 12px;
  font-weight: var(--tp-font-weight-medium);
}

.tp-mobile-sheet__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--tp-bg-category-bar);
  border-radius: 50%;
  cursor: pointer;
  color: var(--tp-navy);
  font-size: 18px;
  transition: background var(--tp-transition-speed) var(--tp-transition-easing);
}

.tp-mobile-sheet__close:hover {
  background: var(--tp-border-category-bar);
}

.tp-mobile-sheet__content {
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.tp-mobile-sheet__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tp-mobile-sheet__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--tp-border-category-bar);
  flex-shrink: 0;
  gap: 12px;
}

.tp-mobile-sheet__reset {
  background: none;
  border: none;
  color: var(--tp-navy);
  font-family: var(--tp-font-family);
  font-size: 14px;
  font-weight: var(--tp-font-weight-medium);
  cursor: pointer;
  padding: 8px 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.tp-mobile-sheet__submit {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: var(--tp-navy);
  color: var(--tp-white);
  font-family: var(--tp-font-family);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--tp-transition-speed) var(--tp-transition-easing);
  white-space: nowrap;
}

.tp-mobile-sheet__submit:hover {
  background: var(--tp-navy-hover);
}

/* --- Mobile Filter Bar (collapsed chips) --- */
.tp-mobile-filter-bar {
  display: none;
  background: var(--tp-white);
  padding: 8px 12px;
  border-bottom: 0.67px solid var(--tp-border-category-bar);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tp-mobile-filter-bar::-webkit-scrollbar {
  display: none;
}

.tp-mobile-filter-bar--visible {
  display: block;
}

.tp-mobile-filter-bar__container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: var(--tp-dropdown-max-width);
  margin: 0 auto;
  padding: 0 30px;
}

.tp-mobile-filter-bar__label {
  font-family: var(--tp-font-family);
  font-size: 13px;
  font-weight: var(--tp-font-weight-medium);
  color: var(--tp-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.tp-mobile-filter-bar__chips {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .tp-mobile-filter-bar__chips {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* Cancel button in filter bar (desktop only) */
.tp-mobile-filter-bar__cancel {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--tp-pill-border-radius);
  border: 1px solid var(--tp-o2-red);
  background: transparent;
  color: var(--tp-o2-red);
  font-family: var(--tp-font-family);
  font-size: 12px;
  font-weight: var(--tp-font-weight-medium);
  white-space: nowrap;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  transition: background var(--tp-transition-speed) var(--tp-transition-easing),
              color var(--tp-transition-speed) var(--tp-transition-easing);
}

.tp-mobile-filter-bar__cancel:hover {
  background: var(--tp-o2-red);
  color: var(--tp-white);
}

@media (min-width: 768px) {
  .tp-mobile-filter-bar__cancel {
    display: inline-flex;
  }
}

.tp-mobile-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--tp-pill-border-radius);
  background: var(--tp-navy);
  color: var(--tp-white);
  font-family: var(--tp-font-family);
  font-size: 12px;
  font-weight: var(--tp-font-weight-medium);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: background var(--tp-transition-speed) var(--tp-transition-easing);
}

.tp-mobile-filter-chip:hover {
  background: var(--tp-navy-hover);
}

.tp-mobile-filter-chip__remove {
  font-size: 14px;
  line-height: 1;
  opacity: 0.8;
}

/* Chip enter/exit animations */
@keyframes chipIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes chipOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

.tp-mobile-filter-chip {
  animation: chipIn 0.2s var(--tp-transition-easing) both;
}

.tp-mobile-filter-chip--removing {
  animation: chipOut 0.15s var(--tp-transition-easing) forwards;
}

/* --- Desktop only: show dropdown --- */
/* --- Desktop only: hide mobile sheet --- */
@media (min-width: 768px) {
  .tp-mobile-sheet-overlay,
  .tp-mobile-sheet {
    display: none !important;
  }
}

/* ============================================
   MOBILE SIDEBAR (hidden — čaká na schválenie)
   ============================================ */

/* --- Overlay --- */
.tp-sidebar__overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tp-sidebar__overlay--visible {
  opacity: 1;
  visibility: visible;
}

/* --- Sidebar panel --- */
.tp-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 85vw;
  max-width: 400px;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.tp-sidebar--open {
  transform: translateX(0);
}

/* --- Header --- */
.tp-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E5E5EA;
  flex-shrink: 0;
}

.tp-sidebar__title {
  font-family: var(--tp-font-family, 'Roboto', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--tp-color-navy, #2D3561);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tp-sidebar__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--tp-color-navy, #2D3561);
  padding: 4px 8px;
  line-height: 1;
}

/* --- Scrollable body --- */
.tp-sidebar__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Quick Links --- */
.tp-sidebar__quick-links {
  list-style: none;
  margin: 0;
  padding: 12px 0;
}

.tp-sidebar__quick-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  font-family: var(--tp-font-family, 'Roboto', sans-serif);
  font-size: 15px;
  color: var(--tp-color-navy, #2D3561);
  text-decoration: none;
  transition: background 0.15s ease;
}

.tp-sidebar__quick-link:hover,
.tp-sidebar__quick-link:focus {
  background: #F5F5F7;
  color: var(--tp-color-navy, #2D3561);
  text-decoration: none;
}

.tp-sidebar__quick-link-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
  color: var(--tp-color-navy, #2D3561);
  flex-shrink: 0;
}

/* --- Section label (KATEGÓRIE) --- */
.tp-sidebar__section-label {
  font-family: var(--tp-font-family, 'Roboto', sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: #8E8E93;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 20px 8px;
  border-top: 1px solid #E5E5EA;
}

/* --- Accordion --- */
.tp-sidebar__accordion {
  padding-bottom: 16px;
}

.tp-sidebar__accordion-item {
  border-bottom: 1px solid #E5E5EA;
}

.tp-sidebar__accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--tp-font-family, 'Roboto', sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--tp-color-navy, #2D3561);
  text-align: left;
}

.tp-sidebar__accordion-header:hover {
  background: #F5F5F7;
}

.tp-sidebar__accordion-chevron {
  font-size: 12px;
  color: #8E8E93;
  transition: transform 0.25s ease;
}

.tp-sidebar__accordion-header[aria-expanded="true"] .tp-sidebar__accordion-chevron {
  transform: rotate(90deg);
}

.tp-sidebar__accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.tp-sidebar__accordion-body ul {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}

.tp-sidebar__accordion-body ul li a {
  display: block;
  padding: 8px 20px 8px 36px;
  font-family: var(--tp-font-family, 'Roboto', sans-serif);
  font-size: 14px;
  color: var(--tp-color-navy, #2D3561);
  text-decoration: none;
  transition: background 0.15s ease;
}

.tp-sidebar__accordion-body ul li a:hover {
  background: #F5F5F7;
  text-decoration: none;
}

/* Pills inside accordion (Produkty section) */
.tp-sidebar__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 20px 12px;
}

/* --- Footer --- */
.tp-sidebar__footer {
  flex-shrink: 0;
  padding: 16px 20px;
  text-align: center;
  font-family: var(--tp-font-family, 'Roboto', sans-serif);
  font-size: 12px;
  color: #8E8E93;
  border-top: 1px solid #E5E5EA;
}

/* --- Hide sidebar on desktop --- */
@media (min-width: 768px) {
  .tp-sidebar,
  .tp-sidebar__overlay {
    display: none !important;
  }
}


