/* Base styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
}

/* --- Responsive Sidebar Integration and Sticky Layout --- */
@media (min-width: 992px) {
  .container > .row {
    align-items: flex-start;
  }
  .category-ticker-container {
        display: none!important;
  }
  .col-lg-9 {
    padding-right: 0.75rem;
  }
  .col-lg-3 {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    min-width: 290px;
    max-width: 330px;
    padding-left: 0.75rem;
    position: sticky;
    top: 2.5rem;
    z-index: 10;
  }
  .card.p-3 {
    height: 100%;
    min-height: 90vh;
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(44, 44, 62, 0.06);
    border: 1.5px solid #ededed;
    background: #fff;
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 991.98px) {
  .col-lg-3 {
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 1.5rem;
    position: static;
    padding-left: 0;
  }
  #machines-grid {
      margin-top: 12rem;
      margin-left: 0.5rem;
  }
  .filter-wrapper {
      margin-left: 10px!important;
  }
  .category-ticker-container {
      display: none!important;
  }
  .card.p-3 {
    min-height: unset;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 18px 0 rgba(44,44,62,0.09);
  }
}
@media (min-width: 1200px) {
  .col-lg-3 {
    max-width: 340px;
  }
}
.card.p-3 {
  border: 1.5px solid #eee;
  box-shadow: 0 4px 18px 0 rgba(44,44,62,0.06);
  background: #fff;
  border-radius: 0.8rem;
  min-height: 80rem;
}

/* --- Machine Cards --- */
.machine-card {
  height: 100%;
  border: 1px solid #e9e9e9;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.45s cubic-bezier(.6, .1, .3, 1), transform 0.45s cubic-bezier(.6, .1, .3, 1), box-shadow 0.3s ease;
  border-radius: 1rem !important; /* Increased from default to make corners rounder */
  overflow: hidden; /* Ensure content respects the rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}
.machine-card.show {
  opacity: 1 !important;
  transform: none !important;
}
.machine-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  border-color: #dc3545;
}
/* Card image styles */
.machine-card .card-img {
  height: 200px;
  background-color: #ffffff; /* White background color */
  background-size: contain; /* Ensure image fits completely */
  background-position: center;
  background-repeat: no-repeat;
}

/* Image slider container */
.machine-card .card-img-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

/* Image slider */
.machine-card .card-img-slider {
  position: relative;
  height: 100%;
  width: 100%;
}

/* Image wrapper */
.machine-card .card-img-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

/* Individual images in slider */
.machine-card .card-img-wrapper .card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

.machine-card .card-img-wrapper .card-img.active {
  opacity: 1;
  transform: scale(1.06);
}

/* Add a cool zoom effect when hovering over the image */
.machine-card:hover .card-img-wrapper .card-img.active {
  transform: scale(1.12);
}

/* Navigation buttons - redesigned as rectangular with red arrows */
.machine-card .card-img-nav {
  position: absolute;
  width: 40px;
  height: 100%; /* Cover the full height */
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0; /* Change from 0.7 to 0 to hide by default */
  transition: all 0.3s ease;
  /* Remove border radius to make it rectangular */
  border-radius: 0;
  top: 0; /* Position at the top */
}

/* Show navigation buttons when hovering over the card or image container */
.machine-card:hover .card-img-nav,
.machine-card .card-img-container:hover .card-img-nav {
  opacity: 0.7; /* Show with initial opacity when hovering */
}

/* Position the buttons at the left and right sides */
.machine-card .card-img-prev {
  left: 0;
}

.machine-card .card-img-next {
  right: 0;
}

/* Change the arrow color to red */
.machine-card .card-img-nav svg {
  stroke: #dc3545;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

/* Add a subtle animation on hover */
.machine-card .card-img-nav:hover {
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.machine-card .card-img-prev:hover svg {
  transform: translateX(-2px);
}

.machine-card .card-img-next:hover svg {
  transform: translateX(2px);
}

/* Add a cool transition indicator at the bottom of the slider */
.machine-card .card-img-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-color: #dc3545;
  transition: width 0.6s ease;
  z-index: 3;
}

.machine-card .card-img-container.transitioning::after {
  width: 100%;
}
.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #dc3545;
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
}
.badge-neu {
  background-color: #28a745;
  color: white;
  font-size: 0.75rem;
  padding: 0.25em 0.75em;
  border-radius: 0.25rem;
}
.badge-gebraucht {
  background-color: #dc3545;
  color: white;
  font-size: 0.75rem;
  padding: 0.25em 0.75em;
  border-radius: 0.25rem;
}
.badge-ueberholt {
  background-color: #ffc107;
  color: white;
  font-size: 0.75rem;
  padding: 0.25em 0.75em;
  border-radius: 0.25rem;
}

/* --- Category Buttons --- */
.category-btn {
  min-width: 110px;
  max-width: 160px;
  min-height: 90px;
  padding: 0.8rem 0.5rem 0.7rem 0.5rem;
  font-size: 1em;
  border-radius: 0.8rem;
  margin-bottom: 0.5rem;
}
.category-btn:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.category-btn.active {
  border: 2px solid #dc3545 !important;
}
.category-btn.animated {
  animation: btn-bounce 0.22s linear;
}
@keyframes btn-bounce {
  0% { transform: scale(1);}
  35% { transform: scale(1.11);}
  70% { transform: scale(0.96);}
  100% { transform: scale(1);}
}

/* --- Loading cards --- */
.loading-card {
  min-height: 320px;
}
.loading-img {
  height: 200px;
  background-color: #eee;
  animation: pulse 1.5s infinite;
}
.loading-title {
  height: 24px;
  width: 80%;
  background-color: #eee;
  margin-bottom: 12px;
  animation: pulse 1.5s infinite;
}
.loading-text {
  height: 16px;
  width: 90%;
  background-color: #eee;
  margin-bottom: 8px;
  animation: pulse 1.5s infinite;
}
.loading-text:last-child {
  width: 60%;
}
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* --- Loader overlay for spinner --- */
.loader-overlay {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 50;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.spinner-border.custom-loader {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 0.3em;
  color: #dc3545;
  opacity: 0.93;
}

/* --- Infinite Scroll Observer --- */
#observer-element {
  height: 10px;
  width: 100%;
}

.statistics-card {
  padding: 1rem !important;
}
.statistics-card .card-body {
  padding: 0.2rem !important;
}
.statistics-card .display-5 {
  font-size: 2.2rem !important;
}
.statistics-card .fs-5 {
  font-size: 0.8rem !important;
}

/* --- Sidebar Filters: Checkbox and Label Enhancements --- */

/* Category filter label container */
.form-check-label-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
}

/* Category name styling */
.form-check-label-container .form-check-label {
  flex: 1;
  margin-right: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Count badge styling */
.count-badge {
  background-color: #ffecec;
  color: #dc3545;
  border: 1px solid #ffd5d5;
  border-radius: 10px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  min-width: 24px;
  text-align: center;
  flex-shrink: 0;
  display: inline-block;
  line-height: 1.1;
}

/* Hover effect for better visual feedback */
.form-check:hover .count-badge {
  background-color: #ffd5d5;
}

/* Active state styling */
.form-check-input:checked ~ .form-check-label-container .count-badge {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 991.98px) {
  .count-badge {
    min-width: 22px;
    padding: 0.08rem 0.35rem;
    font-size: 0.75rem;
    line-height: 1.05;
  }

  .form-check-label-container .form-check-label {
    font-size: 0.95rem;
  }
}

/* Extra small devices */
@media (max-width: 575.98px) {
  #machines-grid {
    margin-top: 12rem;
    margin-left: 0.5rem;
  }
  .filter-wrapper {
      margin-left: 10px!important;
  }
  .category-ticker-container {
      display: none!important;
  }
  .count-badge {
    min-width: 20px;
    padding: 0.06rem 0.3rem;
    font-size: 0.7rem;
    line-height: 1;
  }

  .form-check-label-container .form-check-label {
    font-size: 0.9rem;
  }

  .card .form-check {
    margin-bottom: 0.5rem;
  }
}

.card h4, .card h3 {
  color: #222;
  font-weight: 700;
  margin-bottom: 0.8rem !important;
  margin-top: 1.2em;
}
.card h3 {
  margin-top: 0 !important;
}
.card .form-label {
  color: #666;
  font-weight: 600;
  margin-bottom: 0.2em;
}
.card input[type="number"] {
  border-radius: 0.3em;
  border: 1px solid #e2e2e2;
  padding: 0.3em 0.5em;
  font-size: 1em;
}
/* Remove accidental pseudo-elements/bars before checkboxes */
.card .form-check::before,
.card .form-check::after {
  display: none !important;
  content: none !important;
}

#reset-filters {
  font-weight: bold;
  letter-spacing: 1px;
  border-bottom: 2px solid #dc3545;
  border-radius: 0;
  text-transform: uppercase;
  margin-left: 1em;
  padding: 0 0.2em;
  background: transparent !important;
}

@media (max-width: 767.98px) {
  .card {
    margin-bottom: 1rem;
  }
  .filter-wrapper {
        margin-left: 10px!important;
  }
  .category-ticker-container {
      display: none!important;
  }
  #machines-grid {
      margin-top: 12rem;
      margin-left: 0.5rem;
  }
  .col-lg-3 {
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 1.5rem;
    position: static;
    padding-left: 0;
  }
  .card.p-3 {
    padding: 1rem !important;
  }


  #reset-filters {
    margin-left: 0.4em;
    font-size: 0.98em;
  }
}
/* Custom Checkbox Styles for Filter Sidebar */






/* Remove accidental bars/pseudo-elements */
.card .form-check::before,
.card .form-check::after {
  display: none !important;
  content: none !important;
}

/* Checkbox Label Styling */


/* Checkbox container tidy */

/* NUCLEAR CUSTOM CHECKBOX OVERRIDE */
.card
.card
.card
.statistics-card {
  padding: 1.1rem 1rem 1.2rem 1rem !important;
  border-radius: 1.1rem;
  background: #fff;
  min-height: 150px;
  box-shadow: 0 4px 18px 0 rgba(44,44,62,0.07);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: box-shadow 0.23s;
}
.statistics-card .card-body {
  padding: 0 !important;
  width: 100%;
}
.statistics-card .display-5 {
  color: #dc3545;
  font-size: 2.0rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.1em;
  margin-top: 0.2em;
  text-align: center;
}
.statistics-card .fs-5 {
  font-size: 1.06rem !important;
  font-weight: 600;
  color: #232323;
  margin-bottom: 0.35rem;
  margin-top: 0.2rem;
  text-align: center;
}
.statistics-card p {
  color: #7c7c7c;
  font-size: 0.98rem;
  margin-bottom: 0;
  text-align: center;
}
@media (max-width: 991.98px) {
  .statistics-card {
    min-height: 110px;
    padding: 0.8rem 0.4rem 1rem 0.4rem !important;
  }
  .statistics-card .display-5 {
    font-size: 1.25rem !important;
  }
}
/* Byte's Nuclear Red Checkbox */
.card
.card
.card
.card .form-check-label,
.form-check-label {
  color: #222 !important;
  font-weight: 500 !important;
  font-size: 1.03em !important;
  cursor: pointer !important;
  margin-left: 0.12em !important;
  user-select: none !important;
  line-height: 1.38em !important;
}
.card .form-check,
.form-check {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0.33rem !important;
  padding-left: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1000 !important;
}
.card


  /* === FINAL CLEANED CHECKBOX STYLING === */
.card .form-check-input[type="checkbox"],
.form-check-input[type="checkbox"] {
  width: 1.25em;
  height: 1.25em;
  border: 2px solid #dc3545;
  border-radius: 0.25em;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  display: inline-block !important;
  vertical-align: middle;
  margin-right: 0.5em;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1001 !important;
}

.card .form-check-input[type="checkbox"]:checked,
.form-check-input[type="checkbox"]:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

.card .form-check-input[type="checkbox"]:checked::before,
.form-check-input[type="checkbox"]:checked::before {
  content: '';
  position: absolute;
  left: 0.35em;
  top: 0.15em;
  width: 0.3em;
  height: 0.6em;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* === STATISTICS CARD STYLE === */
.statistics-card {
  max-height: 220px !important;
  min-height: 180px !important;
  height: auto !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.statistics-card .card-body {
  padding: 1rem !important;
}
.statistics-card:hover {
  transform: translateY(-4px);
}
.statistics-card .display-5 {
  font-size: 2rem !important;
}
.statistics-card .fs-5 {
  font-size: 0.95rem !important;
}
.statistics-card h2,
.statistics-card h3,
.statistics-card p {
  margin-bottom: 0.4rem;
}
.statistics-card h2 {
  font-size: 1.8rem;
}
.statistics-card h3 {
  font-size: 1rem;
}
.statistics-card p {
  font-size: 0.85rem;
}



/* Fix for category/statistics cards */
.statistics-card {
  max-width: 100%;
  height: auto;
  padding: 1.25rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  border: 1px solid #eee;
  background: #fff;
  transition: transform 0.2s ease;
}
.statistics-card:hover {
  transform: translateY(-4px);
}

/* === FINAL FIXED CHECKBOX STYLE WITH SPACING === */
/* === Byte's Final Checkbox Fix === */
.card .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding-left: 0;
  margin-bottom: 0.75rem;
  flex-wrap: nowrap;
}

.card .form-check-input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #dc3545;
  border-radius: 0.25rem;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  cursor: pointer;
}

.card .form-check-input[type="checkbox"]:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

.card .form-check-input[type="checkbox"]:checked::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.1rem;
  width: 0.35rem;
  height: 0.65rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  z-index: 2;
}

.card .form-check-label {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45rem;
  color: #2a2a2a;
  cursor: pointer;
  user-select: none;
  word-break: break-word;
}

.card .form-check-label span {
  display: inline-block;
  margin-top: 0.05rem;
  word-break: break-word;
}

/* === Byte's Final Checkbox Layout Fix === */
.card .form-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 0;
  margin-bottom: 0.6rem;
  width: 100%;
}

.card .form-check-input[type="checkbox"] {
  width: 1.2em;
  height: 1.2em;
  min-width: 1.2em;
  min-height: 1.2em;
  border: 1.0px solid #dc3545;
  border-radius: 0.25em;
  background: #fff;
  margin-top: 0.05em;
  flex-shrink: 0;
  appearance: none;
  position: relative;
  transition: border-color 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
.card .form-check-input[type="checkbox"]:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}
.card .form-check-input[type="checkbox"]:checked::before {
  content: '';
  position: absolute;
  left: 0.3em;
  top: 0.15em;
  width: 0.35em;
  height: 0.65em;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.card .form-check-label {
  font-size: 1.05rem;
  font-weight: 500;
  color: #2a2a2a;
  cursor: pointer;
  line-height: 1.5rem;
  user-select: none;
  display: block;
  flex: 1 1 auto;
  width: auto;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
}

.card .form-check-label span {
  display: inline-block;
  word-break: break-word;
}
.card .form-check-label span {
  /* Removed debugging border */
}

/* === CONTACT FORM CHECKBOX FIX === */
#contact .form-check {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  padding-left: 0 !important;
  margin-bottom: 0.75rem !important;
  position: relative !important;
  z-index: 1000 !important;
  margin-left: 1.5rem !important;
}

#contact .form-check-input[type="checkbox"] {
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-width: 1.25rem !important;
  margin-top: 0.25rem !important;
  margin-right: 0 !important;
  margin-left: -2.25rem !important;
  position: absolute !important;
  left: 0 !important;
  z-index: 1001 !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#contact .form-check-label {
  position: relative !important;
  z-index: 1000 !important;
  margin-left: 0 !important;
  padding-left: 0.5rem !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  max-width: calc(100% - 2rem) !important;
}

/* === ✅ FINAL CHECKBOX FIX (SPAN INSIDE LABEL) === */
label.form-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
  width: 100%;
  cursor: pointer;
}

label.form-check input[type="checkbox"] {
  width: 1.2em;
  height: 1.2em;
  min-width: 1.2em;
  min-height: 1.2em;
  margin: 0;
  border: 2px solid #dc3545;
  border-radius: 0.25em;
  background: #fff;
  flex-shrink: 0;
  appearance: none;
  position: relative;
  transition: border-color 0.18s, box-shadow 0.18s;
  cursor: pointer;
}

label.form-check input[type="checkbox"]:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

label.form-check input[type="checkbox"]:checked::before {
  content: '';
  position: absolute;
  left: 0.3em;
  top: 0.15em;
  width: 0.35em;
  height: 0.65em;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  z-index: 2;
}

label.form-check span.form-check-label {
  font-size: 0.9rem!important;
  font-weight: 500!important;
  color: #2a2a2a;
  user-select: none;
  line-height: 1.45rem;
  flex: 1;
  word-break: break-word;
  white-space: normal;
}

/* === Category Ticker Styles === */

/* Ticker Wrapper */
.category-ticker-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  background-color: #f8f9fa;
  border-radius: 8px;
}

/* Inner fade effect (masking edges) */
.category-ticker-wrapper::before,
.category-ticker-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 5;
  pointer-events: none;
}

.category-ticker-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fa, transparent);
}

.category-ticker-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fa, transparent);
}

/* Ticker Track */
.category-ticker {
  display: flex;
  gap: clamp(16px, 2vw, 24px); /* Responsive gap */
  padding: 20px 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  scrollbar-width: none; /* Firefox */
  flex-wrap: nowrap;
}

.category-ticker::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.category-ticker.dragging {
  cursor: grabbing;
}

/* Individual Category Item */
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  max-width: 220px;
  width: calc(100vw / 7); /* Dynamically adjust width based on viewport */
  max-height: 220px;
  height: auto;
  padding: 16px;
  background-color: #ffffff;
  border: 2px solid #e33;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

/* Media queries for different screen sizes */
@media (min-width: 1600px) {
  .category-item {
    width: calc(100vw / 9); /* Show more items on very wide screens */
    min-width: 160px;
  }
}

@media (max-width: 1200px) {
  .category-item {
    width: calc(100vw / 5); /* Show fewer items on smaller screens */
  }
}

.category-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.category-item.active {
  border-color: #d60000;
  background-color: #ffecec;
  box-shadow: 0 0 6px 2px #ff000033;
}

/* Image inside Item */
.category-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* Label */
.category-name {
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  color: rgba(89, 14, 14, 0.79);
  margin-top: 10px;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

/* Nav Buttons */
.ticker-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  width: 60px;
  height: 60px;
  background: #fff;
  border: 2px solid #e33;
  border-radius: 50%;
  color: #e33;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.category-ticker-wrapper:hover .ticker-arrow {
  opacity: 1;
  pointer-events: all;
}

.ticker-arrow:hover {
  background-color: #ffecec;
  transform: translateY(-50%) scale(1.1);
}

.ticker-arrow.left {
  left: 10px;
}

.ticker-arrow.right {
  right: 10px;
}

/* noUiSlider custom styling */
.noUi-connect {
  background: #dc3545; /* Bootstrap danger color */
}

.noUi-handle {
  border: 1px solid #dc3545;
  background: #dc3545;
  cursor: pointer;
}

.noUi-handle:before,
.noUi-handle:after {
  display: none;
}

.noUi-horizontal {
  height: 8px;
}

.noUi-horizontal .noUi-handle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  top: -6px;
  right: -9px;
}

/* Hide filter options with zero count using data attributes */
.form-check[data-count="0"] {
    display: none !important;
}
