/* ── Inventory page overrides — re-apply after Bootstrap cascade ── */

/* Card container */
.inventories-page .card {
  margin-bottom: 20px;
  width: 100%;
  border: 1px solid #e9eff6;
  border-radius: 8px;
  box-shadow: none;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.inventories-page .col-12.col-sm-6.col-lg-4.d-flex {
  display: flex !important;
  margin-bottom: 10px;
}

/* Card photo */
.card__photo { position: relative; overflow: hidden; }
.card__photo a.inventory__card-lin {
  display: flex;
  justify-content: center;
  align-items: center;
}
.card__photo a.inventory__card-lin img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}
.card__photo a.watchVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Card content */
.card__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__content .card-title {
  font-size: 18px;
  font-weight: 400;
  color: #222d48;
  text-decoration: none;
  display: block;
  line-height: 1.3;
  margin-bottom: 8px;
}
.card__content .card-title:hover { color: #2356A5; }
.card__content p {
  font-size: 14px;
  color: #85878b;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card bottom: price + stats + button */
.card__content-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 20px;
  margin-top: auto;
}
.card__data {
  display: flex;
  flex-direction: column;
}
.card__data .truck__status-green .price {
  font-size: 14px;
  font-weight: 400;
  color: #67bb66;
}
.card__data .elaboration {
  display: flex;
  gap: 20px;
  margin-top: 6px;
}
.card__data .elaboration div span:first-child {
  display: block;
  font-size: 12px;
  color: #939bae;
  text-transform: uppercase;
}
.card__data .elaboration div span:last-child {
  font-size: 16px;
  font-weight: 400;
  color: #303133;
}

/* More Details button */
.card__btns {
  display: flex;
  align-items: flex-end;
}
.card__btns .btn.quaternary-btn {
  background: #f4f4f4;
  color: #2356a5;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.card__btns .btn.quaternary-btn:hover {
  background: #e9eff6;
}

/* ── Sidebar ── */
.categories__wrapper {
  background: transparent;
}
.categories__content .title {
  font-size: 16px;
  padding: 7px 0 0;
  color: #222d48;
  margin-bottom: 0;
}
.categories__content .search {
  display: block;
  margin-bottom: 24px;
  position: relative;
}
.categories__content .search input {
  width: 100%;
  border: 1px solid #e9eff6;
  border-radius: 8px;
  padding: 8px 35px 8px 15px;
  font-size: 14px;
  color: #303133;
  outline: none;
}
.categories__content .search input:focus {
  border-color: #2356a5;
}
.categories__content .search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #2356a5;
  padding: 4px;
}
.categories__content figure {
  margin: 0;
}
.categories__content figure p {
  font-size: 12px;
  color: #2356a5;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 16px 0 8px;
}
.categories__content figure ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.categories__content figure ul li {
  padding: 5px 0;
}
.categories__content figure ul li fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.categories__content figure ul li label {
  font-size: 14px;
  color: #27365c;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.categories__content figure ul li label a {
  color: #27365c;
  text-decoration: none;
}
.categories__content figure ul li label a:hover {
  color: #2356a5;
}
.categorie-counter {
  color: rgba(39, 54, 92, 0.7);
  margin-left: 10px;
  font-size: 14px;
}

/* ── Breadcrumb ── */
.inventories-page .breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 16px;
}
.inventories-page .breadcrumb a.with-back-arrow {
  color: #222d48;
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
}
.inventories-page .breadcrumb a.with-back-arrow::before {
  content: "‹ ";
  margin-right: 4px;
}

/* ── Layout header ── */
.inventories-page .layout__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

/* ── Inventory title bar ── */
.inventory__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
  padding-bottom: 17px;
}
.inventory__title .trucksResult {
  font-size: 16px;
  font-weight: 400;
  color: #222d48;
}

/* ── Sort dropdown ── */
.select-groupe {
  margin-left: auto;
}
.select-groupe label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #85878b;
  margin: 0;
}
.select-groupe select.form-control {
  width: auto;
  min-width: 200px;
  font-size: 14px;
  border: 1px solid #e9eff6;
  border-radius: 4px;
  color: #303133;
  height: auto;
  padding: 6px 12px;
}

/* ── Layout ── */
.inventories-page .layout__content.layout-with-sidebar {
  display: flex;
  gap: 30px;
}
.inventories-page .layout__content .sidebar {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
}
.inventories-page .layout__content .content {
  flex: 1;
  min-width: 0;
}

/* ── Pagination ── */
.inventories-page .pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.inventories-page .pagination .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e9eff6;
  border-radius: 4px;
  color: #85878b;
  text-decoration: none;
  font-size: 14px;
}
.inventories-page .pagination .page-item.active .page-link {
  background: #2356a5;
  color: #fff;
  border-color: #2356a5;
}
.inventories-page .pagination .page-item .page-link:hover {
  background: #f4f4f4;
}
.inventories-page .pagination .page-item.active .page-link:hover {
  background: #1e4a8f;
}

/* ── No photo placeholder ── */
.no-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #939bae;
  font-size: 14px;
}

/* ── Categories page ── */
.categories-page {
  background: #fafafa;
  padding: 50px 0 100px;
}
.categories-page__title {
  font-size: 36px;
  font-weight: 700;
  color: #222d48;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.36px;
}
.categories-section {
  margin-bottom: 24px;
}
.categories-section__heading {
  font-size: 16px;
  font-weight: 500;
  color: #85878b;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}
.category-tile {
  padding: 0 8px;
  margin-bottom: 16px;
}
.category-tile__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 63px 44px;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
  height: 100%;
}
.category-tile__link:hover {
  border-color: #2356a5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}
.category-tile__icon {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 250px;
  height: 140px;
  margin-bottom: 43px;
}
.category-tile__icon img {
  display: block;
  max-width: 250px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.category-tile__name {
  font-size: 22px;
  color: #222d48;
  padding: 0 10px;
  border-radius: 6px;
  display: block;
  margin-bottom: 4px;
}
.category-tile__available {
  font-size: 16px;
  color: #67bb66;
  display: block;
}

@media (max-width: 991px) {
  .category-tile__link {
    padding: 40px 24px;
  }
  .category-tile__icon {
    width: 200px;
    height: 112px;
    margin-bottom: 30px;
  }
  .category-tile__icon img {
    max-width: 200px;
    max-height: 112px;
  }
}
@media (max-width: 767px) {
  .categories-page {
    padding: 30px 0 60px;
  }
  .categories-page__title {
    font-size: 28px;
  }
  .category-tile__link {
    padding: 32px 20px;
  }
  .category-tile__icon {
    width: 180px;
    height: 100px;
    margin-bottom: 24px;
  }
  .category-tile__icon img {
    max-width: 180px;
    max-height: 100px;
  }
  .category-tile__name {
    font-size: 18px;
  }
}
