/* ── Products screen background ── */
#screen-products { background: var(--bg); }

/* ── Products bar (sticky below header + breadcrumb) ── */
.prod-bar {
    background: var(--bg);
    border-bottom: 1px solid var(--brd);
    position: sticky;
    top: 104px;
    z-index: 100;
}

.prod-search {
    padding: 8px 16px;
    display: flex;
}

.subcat-scroll {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.subcat-scroll::-webkit-scrollbar { display: none; }

.subcat-chip {
    border-radius: 100px;
    padding: 0 14px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    background: var(--bg);
    border: 1px solid var(--brd-strong);
    color: var(--hint);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.subcat-chip.on {
    background: var(--btn);
    color: var(--btntx);
    border-color: transparent;
}
.subcat-chip.stub {
    opacity: .45;
    pointer-events: none;
}

/* ── Products toolbar (inside sticky bar) ── */
.prod-toolbar {
    display: flex;
    align-items: center;
    padding: 8px 16px;
}

.prod-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

#products-count {
    font-size: 12px;
    color: var(--text);
}

.btn-sort, .btn-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    color: var(--btn);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}
.btn-sort.active, .btn-filter.active { font-weight: 700; }

/* ── Product grid ── */
.prod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 16px 16px;
}

.pg-card {
    background: var(--bg);
    border: 1px solid var(--brd-light);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 0 12px;
    transition: transform .12s, opacity .12s;
}
.pg-card:active { transform: scale(.97); opacity: .85; }

.pg-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    overflow: hidden;
    flex-shrink: 0;
}
img.pg-img { display: block; height: 120px; object-fit: contain; }

.pg-body {
    padding: 0 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pg-name {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    line-height: 15px;
    letter-spacing: 0.08em;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pg-price {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    color: var(--btn);
    letter-spacing: 0.08em;
    line-height: 16px;
}

.pg-foot { padding: 0 12px; }

/* ── Pagination ── */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 16px 16px 0;
}
.pg-page-info { font-size: 13px; color: var(--hint); }
