/* --- Thumbs sotto il carousel --- */
.pc-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: .75rem;
}

.pc-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease;
    background: #fff;
}

.pc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pc-thumb.active,
.pc-thumb:hover {
    border-color: #999;
    transform: translateY(-2px);
}

/* --- Lightbox / Zoom --- */
.pc-lightbox .modal-dialog {
    max-width: 900px;
}

.pc-lightbox .modal-body {
    position: relative;
}

#pcLightboxImg.pc-lightbox-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .2s ease;
    cursor: zoom-in;
}

#pcLightboxImg.zoomed {
    transform: scale(2);
    /* zoom 2x */
    cursor: move;
    /* trascinamento */
}

.pc-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    padding: .25rem .5rem;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    border-radius: 6px;
    line-height: 1;
    user-select: none;
}

.pc-lightbox-prev {
    left: 8px;
}

.pc-lightbox-next {
    right: 8px;
}

/* --- Responsive mobile --- */
@media (max-width: 576px) {
    .pc-thumb {
        width: 56px;
        height: 56px;
    }

    .pc-lightbox .modal-dialog {
        max-width: 95%;
    }
}

/* ===== Stato articolo (orizzontale con variante verticale) ===== */
.pc-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.pc-status.v {
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}

.pc-status__dot svg {
    width: 28px;
    height: 28px;
}

.pc-status__label {
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    text-align: left;
}

/* Icone base */
.pcst-circle {
    fill: #e0e0e0;
}

.pcst-circle--stroke {
    fill: #ea4335;
    stroke: #111;
    stroke-width: 2.2px;
}

.pcst-check {
    fill: #fff;
}

.pcst-x {
    stroke: #111;
    stroke-width: 2.4px;
    fill: none;
    stroke-linecap: round;
}

/* Toni */
.pc-status--ok .pcst-circle {
    fill: #34a853;
}

/* verde */
.pc-status--warn .pcst-circle {
    fill: #f4b400;
}

/* arancio */
.pc-status--bad .pcst-circle {
    fill: #ea4335;
}

/* rosso  */
.pc-status--muted .pcst-circle {
    fill: #cfd4da;
}

/* Disabilitazione bottone Add to Cart */
.update-btn.disabled,
.update-btn:disabled {
    opacity: .55;
    pointer-events: none;
}

/* ===== Titolo sezione + descrizione uniforme ===== */
.pc-section-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .2px;
    margin: 12px 0 6px;
    color: #222;
}

.pc-desc {
    white-space: pre-line;
    /* rispetta \n */
    font-size: 15px;
    line-height: 1.65;
    color: #262626;
    word-break: break-word;
}

.pc-desc p {
    margin: 0 0 .6rem;
}

.pc-desc ul,
.pc-desc ol {
    margin: .5rem 0 .9rem;
    padding-left: 1.1rem;
}

.pc-desc li {
    margin: .15rem 0;
}

.pc-desc b,
.pc-desc strong {
    font-weight: 600;
}

.pc-desc em,
.pc-desc i {
    font-style: italic;
}

.pc-desc a {
    text-decoration: underline;
}

.pc-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 6px 0 10px;
}