/* Trending Now — scrollable category arch boxes */
.trending-section {
    background: #fff;
    padding: 15px 10px;
    margin-top: 5px;
}

.trending-section--desktop {
    margin-top: 0;
    padding: 0;
    background: transparent;
}

.trending-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.trending-section-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

.trending-section--desktop .trending-section-header h3 {
    font-size: 1.35rem;
}

.trending-section-header a {
    font-size: 12px;
    color: var(--primary, #2874f0);
    font-weight: 700;
    text-decoration: none;
}

.trending-section--desktop .trending-section-header a {
    font-size: 0.85rem;
}

.trending-arch-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 6px;
    --trending-box-gap: 10px;
}

.trending-arch-scroll::-webkit-scrollbar {
    display: none;
}

.trending-arch-page {
    flex: 0 0 calc(
        (100% - (var(--trending-visible-boxes) - 1) * var(--trending-box-gap))
        / var(--trending-visible-boxes)
    );
    min-width: calc(
        (100% - (var(--trending-visible-boxes) - 1) * var(--trending-box-gap))
        / var(--trending-visible-boxes)
    );
    scroll-snap-align: start;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.trending-section--desktop .trending-arch-page {
    border-radius: 14px;
    padding: 12px;
}

.trending-section--desktop .trending-arch-scroll {
    --trending-box-gap: 14px;
    gap: 14px;
}

.trending-arch-grid {
    display: grid;
    grid-template-columns: repeat(var(--trending-cols, 2), minmax(0, 1fr));
    grid-template-rows: repeat(var(--trending-rows, 2), auto);
    gap: 6px;
}

.trending-section--desktop .trending-arch-grid {
    gap: 14px;
}

.trending-item {
    min-width: 0;
    text-align: center;
}

.trending-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.trending-arch {
    width: 100%;
    aspect-ratio: 5 / 6;
    background: #fce7f3;
    border-radius: 40px 40px 10px 10px;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.trending-section--desktop .trending-arch {
    border-radius: 56px 56px 14px 14px;
    margin-bottom: 8px;
}

.trending-arch img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.05);
    transition: transform 0.25s ease;
}

.trending-item:hover .trending-arch img {
    transform: scale(1.15);
}

.trending-label {
    font-size: 9px;
    font-weight: 600;
    color: #4b5563;
    display: block;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}

.trending-section--desktop .trending-label {
    font-size: 12px;
}
