/* -------------------------------------------------- */
/* Catalogue-specific styles                          */
/* Extends Bootstrap 5 + small-business.css           */
/* -------------------------------------------------- */

.cat-item-image {
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
}

.cat-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ff0000;
}

.cat-avail {
  font-weight: bold;
}

.cat-avail.instock {
  color: #166116;
}

.cat-avail.unavailable {
  color: rgb(128, 128, 128);
}

.cat-deal {
  color: #ff0000;
  font-weight: bold;
}

.cat-plu {
  color: #888;
  font-size: 0.85rem;
}

/* Responsive: stack image above description on small screens */
@media (max-width: 575px) {
  .d-flex.gap-3 {
    flex-direction: column-reverse;
  }
  .cat-item-image {
    display: block;
    max-width: 160px;
    max-height: 160px;
    margin: 0 auto;
  }
}

/* Department/category navigation (index page) */
.list-group-item-action {
  cursor: pointer;
}

.dept-panel {
  display: none;
}

.dept-panel:first-of-type {
  display: block;
}

:root {
  --bs-list-group-active-bg: #ff0000;
  --bs-list-group-active-border-color: #ff0000;
}

.list-group-item.active,
.list-group-item-action.active {
  background-color: #ff0000 !important;
  border-color: #ff0000 !important;
}

.cat-link {
  color: #222;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
}

.cat-link:hover {
  color: #ff0000;
}

.cat-link i {
  color: #ff0000;
  font-size: 0.8rem;
}
