/* VitaComoda Comics — Home: sezione «Trending Now» */

:root {
    --vc-pv-red: #e81818;
    --vc-pv-ink: #1a1f28;
    --vc-pv-muted: #64748b;
    --vc-pv-glass-brd: rgba(255, 255, 255, 0.82);
}

.vc-home-trending {
    max-width: 1040px;
    margin: 0 auto 1.5rem;
    padding: 0 16px;
    box-sizing: border-box;
}

.vc-pv-trending-head {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.2rem 0.65rem;
}

.vc-pv-trending-head h2 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--vc-pv-red);
    text-align: center;
}

.vc-pv-arrows { display: none !important; }

.vc-pv-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--vc-pv-glass-brd);
    background: rgba(255, 255, 255, 0.75);
    color: var(--vc-pv-ink);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.vc-pv-arrow:hover { background: var(--vc-pv-red); color: #fff; }
.vc-pv-arrow svg { width: 14px; height: 14px; }

.vc-pv-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(128px, 148px);
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 0.2rem 0.2rem 0.85rem;
}

.vc-pv-cards::-webkit-scrollbar { height: 7px; }
.vc-pv-cards::-webkit-scrollbar-thumb { background: rgba(31, 37, 48, 0.18); border-radius: 999px; }

.vc-pv-card {
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--vc-pv-glass-brd);
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    box-shadow: 0 8px 22px rgba(26, 31, 40, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vc-pv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(232, 24, 24, 0.16);
}

.vc-pv-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.vc-pv-card-media {
    position: relative;
    aspect-ratio: 63 / 88;
    max-height: 168px;
    margin: 0.55rem auto 0;
    width: calc(100% - 1rem);
    background: linear-gradient(165deg, #f8fafc, #eef2f7);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc-pv-card-media img,
.vc-pv-card-media .vc-pv-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
    display: block;
    padding: 4px;
    box-sizing: border-box;
}

.vc-pv-card-media button.vc-vendor-fav-btn--trending {
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: auto;
    left: auto;
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.vc-pv-card-body {
    padding: 0.45rem 0.55rem 0.6rem;
    text-align: center;
}

.vc-pv-card-title {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--vc-pv-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.7em;
}

.vc-pv-card-desc { display: none; }

.vc-pv-card-price {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--vc-pv-red);
}

.vc-pv-card-price del {
    color: var(--vc-pv-muted);
    font-weight: 600;
    margin-right: 0.2rem;
    font-size: 0.68rem;
}

.vc-pv-empty {
    text-align: center;
    color: var(--vc-pv-muted);
    font-size: 0.88rem;
    padding: 1.25rem;
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    .vc-pv-cards { grid-auto-columns: minmax(112px, 42%); }
    .vc-pv-card-media { max-height: 140px; }
}
