/* ==== PC Card – stile unico riusabile ==== */
.pc-card {
    display: block;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    color: inherit;
    text-decoration: none
}

.pc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
    border-color: #e3e3e3
}

.pc-thumb {
    position: relative;
    padding-top: 70%;
    background: #f7f7f7;
    overflow: hidden
}

.pc-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px
}

.pc-body {
    padding: 12px 12px 14px
}

.pc-title {
    font-size: .95rem;
    line-height: 1.25;
    margin: 0 0 6px;
    height: 2.4em;
    overflow: hidden
}

.pc-meta {
    font-size: .82rem;
    color: #6c757d
}

/* Skeleton (caricamento) */
.pc-skel .pc-thumb,
.pc-skel .pc-line {
    background: linear-gradient(110deg, #f0f0f0 8%, #ececec 18%, #f0f0f0 33%);
    background-size: 200% 100%;
    animation: 1.2s shine linear infinite
}

.pc-skel .pc-line {
    height: 10px;
    border-radius: 6px;
    margin: 8px 0
}

@keyframes shine {
    to {
        background-position-x: -200%
    }
}

/* Pager compatto */
.pagination .page-link {
    min-width: 34px;
    text-align: center
}

.categories-wrapper .pc-title {
    color: #111;
    /* testo leggibile su sfondo bianco */
    font-weight: 600;
    text-transform: none;
    /* niente maiuscolo forzato */
    font-size: .95rem;
    line-height: 1.3;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* massimo 2 righe */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-body .btn {
    font-size: .82rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 6px 0;
}

.pc-body .btn+.btn {
    margin-left: 6px;
    /* spazio orizzontale tra Dettagli e Add to Cart */
}

.pc-body .d-flex {
    justify-content: space-between;
    /* i bottoni occupano la stessa riga */
}

.pc-body .btn-outline-primary {
    min-width: 50%;
    /* fa sì che Dettagli non diventi troppo stretto */
}

.pc-body .btn-primary {
    min-width: 50%;
}

/* Bottoni Partscollector (giallo/arancio + grigio/nero) */

/* Details = giallo/arancione */
.pc-body .btn-outline-primary {
    background: #fcb818;
    /* giallo Zooy */
    color: #202020;
    /* testo scuro */
    border: 1px solid #fcb818;
}

.pc-body .btn-outline-primary:hover {
    background: #202020;
    /* nero/grigio scuro */
    color: #fff;
    border-color: #202020;
}

/* Add to Cart = nero/grigio scuro */
.pc-body .btn-primary {
    background: #202020;
    /* nero/grigio */
    color: #fff;
    border: 1px solid #202020;
}

.pc-body .btn-primary:hover {
    background: #fcb818;
    /* giallo Zooy */
    color: #202020;
    border-color: #fcb818;
}