/**
 * Phone app-style category layout (loaded with media="(max-width: 575.98px)").
 * Pilot: Akuvox category pages only (linked from category-akuvox-info.tpl).
 * To roll out, link this file from layout-both-columns.tpl instead.
 */

/* —— Breadcrumb becomes a back link to the parent, Quick browse on the same row —— */
#wrapper nav.breadcrumb--modern {
  margin-bottom: 4px;
  padding-top: 6px;
  padding-bottom: 6px;
}
#wrapper nav.breadcrumb--modern > .row {
  flex-wrap: nowrap;
  gap: 8px;
}
#wrapper nav.breadcrumb--modern .breadcrumb__item::before {
  content: none !important;
}
#wrapper nav.breadcrumb--modern .row > .col {
  min-width: 0;
}
#wrapper nav.breadcrumb--modern .breadcrumb__list {
  flex-wrap: nowrap;
  margin: 0;
}
#wrapper nav.breadcrumb--modern .breadcrumb__item--current,
#wrapper nav.breadcrumb--modern .breadcrumb__item:not(:nth-last-child(2)) {
  display: none !important;
}
#wrapper nav.breadcrumb--modern .breadcrumb__item:nth-last-child(2) {
  min-width: 0;
}
#wrapper nav.breadcrumb--modern .breadcrumb__item:nth-last-child(2) .breadcrumb__sep,
#wrapper nav.breadcrumb--modern .breadcrumb__item:nth-last-child(2) .breadcrumb__home-icon {
  display: none;
}
#wrapper nav.breadcrumb--modern .breadcrumb__item:nth-last-child(2) .breadcrumb__link {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 6px 8px 6px 2px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}
#wrapper nav.breadcrumb--modern .breadcrumb__item:nth-last-child(2) .breadcrumb__link::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin: 0 3px 0 4px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}
#wrapper nav.breadcrumb--modern .breadcrumb__item:nth-last-child(2) .breadcrumb__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#wrapper nav.breadcrumb--modern .breadcrumb__after {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}
#wrapper nav.breadcrumb--modern .ift-qb-trigger {
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  gap: 0;
  border-radius: 10px;
}
#wrapper nav.breadcrumb--modern .ift-qb-trigger svg {
  width: 17px;
  height: 17px;
}
#wrapper nav.breadcrumb--modern .ift-qb-trigger__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* —— Title row: name + count on one line —— */
.ift-cat-header__title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 10px;
  margin: 2px 0 10px !important;
  padding: 0 8px;
}
.ift-cat-header__eyebrow,
.ift-cat-header__rule {
  display: none !important;
}
.ift-cat-header .page-title,
.ift-cat-header__title {
  font-size: 20px !important;
  line-height: 1.2 !important;
}
.ift-cat-header__meta {
  margin: 0 !important;
  font-size: 12px;
  white-space: nowrap;
}
.ift-cat-header {
  margin-bottom: 8px;
}

/* —— Toolbar: sort only, compact —— */
#products .products-selection {
  margin: 0 0 8px !important;
  padding: 4px 0 !important;
  border: 0 !important;
}
#products .products-selection .products-nb-per-page {
  display: none !important;
}
#products .products-selection .products-sort-order .select-title {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 10px;
}

/* Product grid: shared phone card style in ift-mobile-product-lists.css (loaded from layout-both-columns.tpl). */
