/* ================================================================
   Westcan Product Categories  v1.0
   Palette: #B11F28 · #111 · #fff
   ================================================================ */
:root {
    --wpc-red:     #B11F28;
    --wpc-red-dk:  #8A161D;
    --wpc-red-lt:  #FFF5F5;
    --wpc-black:   #111;
    --wpc-sub:     #555;
    --wpc-muted:   #888;
    --wpc-border:  #E5E5E5;
    --wpc-bg-alt:  #FAFAFA;
    --wpc-white:   #fff;
}

.wpc-wrapper {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 16px 0;
    color: var(--wpc-black);
}

/* ── Header ──────────────────────────────────────────────────── */
.wpc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--wpc-red);
}

.wpc-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: var(--wpc-red);
    border-radius: 5px;
    flex-shrink: 0;
}
.wpc-header-icon svg {
    width: 14px; height: 14px;
    stroke: var(--wpc-white);
}

.wpc-header-text {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wpc-black);
}

/* ── Paths list ──────────────────────────────────────────────── */
.wpc-paths {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpc-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 12px;
    background: var(--wpc-bg-alt);
    border: 1px solid var(--wpc-border);
    border-left: 3px solid var(--wpc-red);
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    list-style: none !important;
    margin: 0 !important;
}
.wpc-path::before {
    content: none !important;
}

/* ── Segments ────────────────────────────────────────────────── */
.wpc-seg {
    display: inline-block;
    color: var(--wpc-sub);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
    padding: 1px 4px;
    border-radius: 3px;
}
.wpc-seg:hover {
    color: var(--wpc-red);
    text-decoration: none;
    background: var(--wpc-red-lt);
}

/* Root segment — make it stand out as the "vehicle type" anchor */
.wpc-seg--root {
    font-weight: 700;
    color: var(--wpc-black);
}
.wpc-seg--root:hover {
    color: var(--wpc-red);
}

/* Leaf segment — bold and red since it's the most specific category */
.wpc-seg--leaf {
    font-weight: 700;
    color: var(--wpc-red);
    background: var(--wpc-red-lt);
    padding: 2px 8px;
}
.wpc-seg--leaf:hover {
    color: var(--wpc-white);
    background: var(--wpc-red);
}

/* Separator chevron between segments */
.wpc-sep {
    color: var(--wpc-muted);
    font-size: 14px;
    font-weight: 600;
    user-select: none;
    flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .wpc-path {
        font-size: 12px;
        padding: 6px 10px;
    }
    .wpc-seg--leaf {
        padding: 2px 6px;
    }
}
