/* Category pages: necklaces, chokers, earrings, bangles, rings, sakha, pola, silver, gemstones */
.page-head-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.4rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.7);
    font-size: 0.82rem;
    font-weight: 600;
}
.chip i {
    color: var(--gold);
}

.pillbar {
    position: sticky;
    top: var(--hh);
    z-index: 20;
    background: rgba(252, 248, 240, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.pillbar ul {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-block: 0.75rem;
    scrollbar-width: none;
}
.pillbar ul::-webkit-scrollbar {
    display: none;
}
.pillbar a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.2s,
        color 0.2s,
        border-color 0.2s;
}
.pillbar a span {
    min-width: 1.4rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-align: center;
}
@media (hover: hover) and (min-width: 701px) {
    .pillbar a:hover {
        border-color: var(--red);
        color: var(--red);
    }
}

.pillbar a.on {
    background: var(--wine);
    border-color: var(--wine);
    color: #fff3dc;
}
.pillbar a.on span {
    background: rgba(255, 255, 255, 0.16);
    color: var(--gold-soft);
}

.cat-list {
    padding: clamp(1.8rem, 3.5vw, 2.8rem) 0 clamp(4rem, 8vw, 7rem);
    min-height: 60vh;
}
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
}
.toolbar label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.toolbar select {
    padding: 0.5rem 2.2rem 0.5rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink);
    font: 600 0.88rem var(--sans);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: var(--card)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232a1a16' stroke-width='1.4'/%3E%3C/svg%3E")
        no-repeat right 0.9rem center;
}
@media (hover: hover) and (min-width: 701px) {
    .toolbar select:hover {
        border-color: var(--red);
    }
}

.grid.swap {
    animation: rise 0.4s var(--ease);
}
.empty {
    max-width: 28rem;
    padding: 3rem 0;
}
.empty h2 {
    font-size: 2rem;
    line-height: 1.1;
}
.empty p {
    margin: 0.8rem 0 1.6rem;
    color: var(--ink-soft);
}
@media (max-width: 960px) {
    :root {
        --hh: 4.1rem;
    }
}
@media (max-width: 700px) {
    .toolbar {
        font-size: 0.86rem;
    }
}

/* Individual category pages: banner on top, then a slim breadcrumb + small heading */
.cat-banner {
    padding-top: 0;
}
main > .cat-banner:first-child .wrap {
    max-width: none;
    padding: 0;
}
main > .cat-banner:first-child .banner-ph {
    border-radius: 0;
    border-width: 0 0 2px;
}
.page-head-compact {
    padding: 1rem 0 1.1rem;
    background: var(--paper);
}
.page-head-compact::after {
    display: none;
}
.page-head-compact h1 {
    margin-top: 0.35rem;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.1;
}
