.tx-scope .tx-items-filters {
  gap: var(--tx-s3);
}

.tx-scope #items-list {
  overflow: visible;
}

.tx-scope #items-list .tx-list__head {
  border-radius: calc(var(--tx-r-lg) - 1px) calc(var(--tx-r-lg) - 1px) 0 0;
}

.tx-scope #items-list .tx-list__row.is-menu-open {
  position: relative;
  z-index: 30;
}

.tx-scope #items-list .tx-row-menu > div {
  inset-block-start: calc(100% + 4px);
}

.tx-scope #items-list .tx-row-menu .tx-row-menu__danger {
  color: var(--tx-danger);
  font-weight: 650;
}

.tx-scope .tx-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tx-s3);
  border-color: color-mix(in srgb, var(--tx-danger) 35%, var(--tx-border));
}

.tx-scope .tx-bulk-toolbar[hidden] {
  display: none;
}

@media (max-width: 799px) {
  .tx-scope .tx-bulk-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

.tx-scope .tx-items-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--tx-s3);
  align-items: start;
}

.tx-scope .tx-items-filter-grid .tx-field,
.tx-scope .tx-items-filter-grid .tx-combo {
  min-width: 0;
}

.tx-scope .tx-items-filter-grid .tx-input,
.tx-scope .tx-items-filter-grid .tx-select {
  width: 100%;
}

.tx-scope .tx-color-select {
  position: relative;
  min-width: 0;
}

.tx-scope .tx-color-select .tx-select,
.tx-scope .tx-color-select .tx-input {
  width: 100%;
  padding-inline-start: 2.35rem;
  cursor: pointer;
}

.tx-scope .tx-filter-swatch {
  position: absolute;
  z-index: 1;
  inset-inline-start: .75rem;
  inset-block-start: 50%;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(80, 86, 91, .55), 0 0 0 2px var(--tx-surface);
  transform: translateY(-50%);
  pointer-events: none;
}

.tx-scope .tx-filter-swatch.is-none {
  background: repeating-linear-gradient(45deg, var(--tx-surface) 0 3px, var(--tx-border-input) 3px 4px);
}

.tx-scope .tx-color-options li {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.tx-scope .tx-color-option-dot {
  flex: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(80, 86, 91, .55);
}

.tx-scope .tx-color-option-dot.is-none {
  background: repeating-linear-gradient(45deg, var(--tx-surface) 0 3px, var(--tx-border-input) 3px 4px);
}

.tx-scope .tx-items-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tx-s3);
  min-width: 0;
}

@media (max-width: 1199px) {
  .tx-scope .tx-items-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 799px) {
  .tx-scope .tx-items-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tx-scope .tx-items-search,
  .tx-scope .tx-items-seller {
    grid-column: 1 / -1;
  }

  .tx-scope .tx-items-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tx-scope .tx-items-filter-actions > *,
  .tx-scope .tx-items-filter-actions .tx-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 499px) {
  .tx-scope .tx-items-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tx-scope .tx-items-search,
  .tx-scope .tx-items-seller {
    grid-column: auto;
  }
}

@media (max-width: 699px) {
  .tx-scope #items-list .tx-row-menu > div {
    inset-block-start: auto;
  }
}

/* Suivi des articles, univers Dépôt (kraft) : grande recherche, lignes courtes avec l’image de la catégorie. */
.tx-scope .tx-items-header { align-items:end; }
.tx-scope .tx-items-summary { margin:0; color:var(--tx-muted); font-weight:600; }
.tx-scope .tx-items-header__acts { align-items:center; }
.tx-scope .tx-items-filters { background:var(--tx-u-depot-soft); border-color:transparent; }
.tx-scope .tx-items-filter-grid > .tx-items-search { grid-column:1 / -1; max-width:52rem; }
.tx-scope .tx-items-search__box { position:relative; display:block; }
.tx-scope .tx-items-search__box svg { position:absolute; inset-inline-start:1rem; top:50%; transform:translateY(-50%); color:var(--tx-u-depot-c); pointer-events:none; }
.tx-scope .tx-items-search .tx-input { min-height:var(--tx-control-h-main); padding-inline-start:3.25rem; border:2px solid var(--tx-u-depot-tag); font-size:1.15rem; }
.tx-scope .tx-items-search .tx-input:focus-visible { border-color:var(--tx-u-depot-c); }
.tx-scope .tx-items-filters .tx-chip { min-height:44px; background:var(--tx-surface); }
.tx-scope .tx-items-filters .tx-chip[aria-pressed="true"] { background:var(--tx-primary); }

.tx-scope #items-list:not(.tx-list--labels) { --tx-cols:104px minmax(0,1fr) 64px 84px 108px 28px; }
.tx-scope #items-list .tx-list__row { padding-block:var(--tx-s2); }
.tx-scope #items-list .tx-list__code { font-size:14px; }
.tx-scope .tx-item-main { display:flex; flex-direction:row; align-items:flex-start; gap:var(--tx-s3); min-width:0; }
.tx-scope .tx-item-badge { flex:none; width:40px; height:40px; }
.tx-scope .tx-item-main__t { display:grid; gap:2px; min-width:0; }
.tx-scope .tx-item-main__t > b { overflow-wrap:anywhere; }
.tx-scope .tx-item-traits { color:var(--tx-muted); white-space:normal; overflow-wrap:anywhere; }
.tx-scope .tx-item-desc { color:var(--tx-muted); font-style:italic; display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:1; }
.tx-scope .tx-item-flags { display:flex; flex-wrap:wrap; gap:var(--tx-s1); margin-block-start:2px; }
.tx-scope .tx-item-flags .tx-badge { justify-self:start; }

@media (max-width:699px) {
  .tx-scope .tx-items-header__acts { display:flex; flex-wrap:wrap; gap:var(--tx-s1) var(--tx-s2); }
  .tx-scope .tx-page-header > .tx-items-header__acts .tx-btn--quiet { width:auto; }
  .tx-scope .tx-items-search .tx-input { font-size:1rem; padding-inline-start:2.9rem; }
  .tx-scope .tx-items-search__box svg { inset-inline-start:.85rem; }
  .tx-scope .tx-items-filters .tx-quick-actions { display:flex; flex-wrap:nowrap; overflow-x:auto; }
  .tx-scope .tx-items-filters .tx-quick-actions .tx-chip { flex:none; white-space:nowrap; }
  /* Sur téléphone, marque et sous-catégorie restent dans « Filtres » pour garder la liste visible. */
  .tx-scope .tx-items-filter-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .tx-scope .tx-items-filter-grid > .tx-items-seller { grid-column:1 / -1; }
  .tx-scope .tx-items-filter-grid > .tx-field:has(#items-brand-filter),
  .tx-scope .tx-items-filter-grid > .tx-field:has(#items-subcategory-filter) { display:none; }
}
