/* ============================================================
   SHOP DIRECTORY  (archive-sc_shop.php)
   Scoped component styles — layout handled by utility classes.
============================================================ */


/* ---- Shop tile (initials + tint) ---- */

.sc-shop-tile {
    flex-shrink: 0;
    display: grid; place-items: center;
    font-family: var(--sc-font-display);
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(255,255,255,0.08);
    background: #1e1e1e;
    color: #666;
    user-select: none;
}

.sc-shop-tile--0 { background: var(--sc-tile-0-bg); border-color: var(--sc-tile-0-line); color: var(--sc-tile-0-fg); }
.sc-shop-tile--1 { background: var(--sc-tile-1-bg); border-color: var(--sc-tile-1-line); color: var(--sc-tile-1-fg); }
.sc-shop-tile--2 { background: var(--sc-tile-2-bg); border-color: var(--sc-tile-2-line); color: var(--sc-tile-2-fg); }
.sc-shop-tile--3 { background: var(--sc-tile-3-bg); border-color: var(--sc-tile-3-line); color: var(--sc-tile-3-fg); }
.sc-shop-tile--4 { background: var(--sc-tile-4-bg); border-color: var(--sc-tile-4-line); color: var(--sc-tile-4-fg); }
.sc-shop-tile--5 { background: var(--sc-tile-5-bg); border-color: var(--sc-tile-5-line); color: var(--sc-tile-5-fg); }

.sc-shop-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: inherit;
}


/* ---- Directory row hover ---- */

.sc-shop-dir-row {
    transition: border-color 150ms ease, background-color 150ms ease;
}
.sc-shop-dir-row:hover {
    border-color: #333;
    background: #181818;
}


/* ---- Category pills ---- */

.sc-shop-rail {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sc-shop-rail::-webkit-scrollbar { display: none; }

.sc-shop-chip {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999rem;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55);
    background: #1a1a1a;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.sc-shop-chip:hover { border-color: rgba(255,255,255,0.16); }

/* "All" — active matches the plain (no category color) state */
.sc-shop-chip.is-active:not([style*="--chip-c"]) {
    color: #fff;
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.10);
}

/* Category chips — active uses the category's tile color */
.sc-shop-chip[style*="--chip-c"].is-active {
    color: #fff;
    border-color: color-mix(in srgb, var(--chip-c) 55%, transparent);
    background: color-mix(in srgb, var(--chip-c) 18%, transparent);
}

.sc-shop-chip-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--chip-c);
}


/* ---- Dashed border (shared with shop-profile, duplicated to avoid
        loading the full profile sheet on the archive) ---- */

.sc-shop-dashed { border: 1px dashed rgba(255,255,255,0.12); }
