/*
  The product list, part 4: the table's densities (look pref `density`), the category strip, page links and the
  empty states.
  Compact (the default) is 46 px rows with a 40 px photo; Condensed 36 px, brand and name on one line;
  Comfortable 56 px, the name on up to two lines.
*/
:root {
    --row-h: 46px;
    --row-photo: 40px;
    --cell-pad: 3px;
    --head-h: 40px;
    --buy-h: 32px;
}
:root[data-density="condensed"] {
    --row-h: 36px;
    --row-photo: 28px;
    --cell-pad: 2px;
    --head-h: 34px;
    --buy-h: 28px;
}
:root[data-density="comfortable"] {
    --row-h: 56px;
    --row-photo: 48px;
    --cell-pad: 4px;
    --head-h: 44px;
    --buy-h: 36px;
}
:root[data-density="condensed"] .row-text {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
}
:root[data-density="condensed"] .row-brand {
    flex: none;
    max-width: 40%;
}
:root[data-density="condensed"] .row-photo {
    padding: 2px;
}
:root[data-density="condensed"] .col-buy .button {
    padding: 0 10px;
    font-size: 12px;
}
:root[data-density="condensed"] .row-pricebox.is-sale {
    display: inline-flex;
    align-items: baseline;
}
:root[data-density="condensed"] .row-pricebox.is-sale del {
    display: none;
}
:root[data-density="comfortable"] .row-name {
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
:root[data-density="comfortable"] .row-id {
    gap: 12px;
}

/* ---------- the category strip under the title */
.strip-area {
    --fade: var(--canvas);
    margin: 0 0 16px;
}
.category-strip {
    display: flex;
    gap: 8px;
    padding: 2px 2px 6px;
}
.strip-chip {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 10px 0 5px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
    box-shadow: var(--list-shadow);
}
.strip-photo {
    display: grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: var(--photo);
    color: var(--accent);
}
.strip-photo img {
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
}
.strip-photo svg {
    width: 16px;
    height: 16px;
}
.strip-chip small {
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    background: var(--page);
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.strip-chip:hover {
    border-color: var(--primary);
    color: var(--ink);
}
.strip-chip.is-on,
.strip-chip.is-on:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-fill);
}
.strip-chip.is-on small {
    background: color-mix(in srgb, var(--on-fill) 12%, var(--clear));
    color: var(--on-fill);
}
:root[data-strip="tiles"] .strip-chip {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 124px;
    height: 128px;
    padding: 10px 8px;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}
:root[data-strip="tiles"] .strip-photo {
    width: 56px;
    height: 46px;
    border-radius: var(--radius-sm);
}
:root[data-strip="tiles"] .strip-photo svg {
    width: 24px;
    height: 24px;
}
:root[data-strip="tiles"] .strip-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- page links */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.pagination a.page-numbers:hover {
    border-color: var(--primary);
    color: var(--ink);
}
.pagination .page-numbers.current {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-fill);
}
.pagination .page-numbers.dots {
    border-color: var(--clear);
    background: var(--clear);
}

/* ---------- nothing matches: a friendly way on */
.catalog-results .empty-store {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--list-shadow);
}
.empty-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-pill);
    background: var(--page);
    color: var(--accent);
}
.empty-icon svg {
    width: 26px;
    height: 26px;
}
.empty-store.is-filtered h2 {
    margin: 6px 0 6px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 22px;
}
.empty-store.is-filtered p {
    margin-bottom: 16px;
    font-size: 14px;
}
.empty-store.is-filtered .eyebrow {
    color: var(--accent);
    font-size: 12px;
}
.empty-store .button svg {
    width: 16px;
    height: 16px;
}
.empty-store.is-filtered .button {
    height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.empty-store.is-filtered .empty-actions .button.secondary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}
.empty-store.is-filtered .empty-actions .button.secondary:hover {
    border-color: var(--accent-strong);
    background: var(--accent-strong);
}
.empty-store.is-filtered .empty-actions > a:last-child {
    font-size: 14px;
}
