/* General Reset */
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding-bottom: 70px; /* space for bottom nav */
}

/* Card Styling */
.card {
  border-radius: 8px;
  overflow: hidden;
}
.card-header {
  font-size: 0.95rem;
  font-weight: 600;
}
.card-body h6,
.card-body .card-title {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Category Sidebar */
.list-group-item {
  font-size: 0.9rem;
  padding: 8px 12px;
}
.list-group-item a {
  text-decoration: none;
  color: #212529;
}
.list-group-item a:hover {
  color: #0d6efd;
}

/* Subcategory list */
.list-group-item ul {
  list-style: none;
  padding-left: 12px;
}
.list-group-item ul li {
  margin: 4px 0;
}

/* Machine Cards */
.card-img-top {
  border-bottom: 1px solid #dee2e6;
}
.card-body {
  padding: 10px;
}
.card-body p {
  font-size: 0.7rem;
  margin-bottom: 6px;
}

.description {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* show only 2 lines */
  -webkit-box-orient: vertical;
}
.description.expanded {
  -webkit-line-clamp: unset; /* remove limit */
}

.btn-sm {
  font-size: 0.8rem;
}
.product-price {
  white-space: nowrap; /* Prevents text from breaking into a new line mid-word */
  font-size: 0.9rem;    /* Slightly reduce font size on small mobile screens if needed */
}
/* Hover effect for machine cards */
.card:hover {
  transform: translateY(-3px);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Trending Badge */
.badge-trending {
  background-color: #22ff2e;
  /*color: #fff;*/
  font-size: 0.7rem;
  padding: 4px 6px;
  border-radius: 4px;
  position: absolute;
  top: 30px;
  right: 0px;
}

/* for sale Badge */
.badge-for-sale {
  background-color: red;
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 6px;
  border-radius: 4px;
  position: absolute;
  top: 1px;
  left: 8px;
}

/* Requirements Widget */
.card-header.bg-warning {
  background-color: #ffc107 !important;
}
.list-group-item small {
  font-size: 0.75rem;
}

/* Bottom Navigation */
.navbar.fixed-bottom {
  height: 70px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}
.navbar.fixed-bottom a {
  flex: 1;
  font-size: 0.75rem;
  text-decoration: none;
  color: #212529;
}
.navbar.fixed-bottom a:hover {
  color: #0d6efd;
}
.navbar.fixed-bottom i {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 2px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .card-body h6 {
    font-size: 0.85rem;
  }
  .card-body p {
    font-size: 0.75rem;
  }
  .col-6 {
    padding-left: 6px;
    padding-right: 6px;
  }
}
