.trending-menu {
    margin-top: 5.5%;
}

.trending-tabs {
    display: flex;
    justify-content: space-between;
    margin: 0 15%;
    background: transparent;
}

.trending-tab-label {
    background: transparent;
    color: #aaa;
    border: none;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    cursor: pointer;
    padding: 0.6rem 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.trending-tab-label:hover {
    color: #FFCC00;
}

.trending-tab-content-left-wrapper {
    margin: 2% 0 0 7%;
    flex: 2;
}


.trending-tab-content-right-wrapper {
    margin: 2% 7% 0 0;
    flex: 1;
}

.trending-tab-content {
    display: none;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #262B31 0%, #090909 100%);
    gap: 5%;
}

.trending-tab-content-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.trending-tab-content-item {
    display: flex;
    align-items: center;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    height: 8vw;
    cursor: pointer;
    position: relative;
}

.item-index-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: #FFCC00;
}

.item-index-bg {
    background-color: transparent;
    border-radius: 15px;
    min-width: 4rem;
    max-width: 4rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trending-tab-item-image-wrapper {
    width: 15%;
    height: 100%;
    margin: 0 1rem 0 1.8rem;
    position: relative;
}

.trending-tab-item-image {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 15px;
}

.trending-item-middle-section {
    display: flex;
    flex-direction: column;
    height: 85%;
    width: 80%;
}

.category-block {
    hyphenate-character: auto;
}

.trending-item-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: white;
}

.trending-item-subtitle {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: white;
    font-size: 1.2rem;
}

.trending-item-artist {
    font-family: inherit;
    font-weight: inherit;
    color: #FF3b30;
}

.trending-item-bottom-wrapper {
    height: 100%;
    display: flex;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: white;
    font-size: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    width: 100%;
}

.trending-item-bottom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trending-item-price-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: rgba(255, 204, 0, 0.6);
    margin-bottom: 2%;
    margin-left: auto;
    /* Pushes the element to the far right */
    text-align: right;
}

.trending-tab-preview-image-wrapper {
    width: 28.75vw;
    height: 38.75vw;
}

.trending-tab-preview-image {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: cover;
    cursor: pointer;
}

#trending-item-panel1-1:checked~.trending-tab-content#panel1 .preview-panel1-1,
#trending-item-panel1-2:checked~.trending-tab-content#panel1 .preview-panel1-2,
#trending-item-panel1-3:checked~.trending-tab-content#panel1 .preview-panel1-3,
#trending-item-panel1-4:checked~.trending-tab-content#panel1 .preview-panel1-4,
#trending-item-panel2-1:checked~.trending-tab-content#panel2 .preview-panel2-1,
#trending-item-panel2-2:checked~.trending-tab-content#panel2 .preview-panel2-2,
#trending-item-panel2-3:checked~.trending-tab-content#panel2 .preview-panel2-3,
#trending-item-panel2-4:checked~.trending-tab-content#panel2 .preview-panel2-4,
#trending-item-panel3-1:checked~.trending-tab-content#panel3 .preview-panel3-1,
#trending-item-panel3-2:checked~.trending-tab-content#panel3 .preview-panel3-2,
#trending-item-panel3-3:checked~.trending-tab-content#panel3 .preview-panel3-3,
#trending-item-panel3-4:checked~.trending-tab-content#panel3 .preview-panel3-4,
#trending-item-panel4-1:checked~.trending-tab-content#panel4 .preview-panel4-1,
#trending-item-panel4-2:checked~.trending-tab-content#panel4 .preview-panel4-2,
#trending-item-panel4-3:checked~.trending-tab-content#panel4 .preview-panel4-3,
#trending-item-panel4-4:checked~.trending-tab-content#panel4 .preview-panel4-4,
#trending-item-panel5-1:checked~.trending-tab-content#panel5 .preview-panel5-1,
#trending-item-panel5-2:checked~.trending-tab-content#panel5 .preview-panel5-2,
#trending-item-panel5-3:checked~.trending-tab-content#panel5 .preview-panel5-3,
#trending-item-panel5-4:checked~.trending-tab-content#panel5 .preview-panel5-4 {
    display: block;
}

.trending-items-load-more {
    display: flex;
    gap: 1.75rem;
    margin-top: 1rem;
    margin-left: calc(1.8rem + 4rem);
}

.trending-item-load-more-arrow-container {
    background-color: rgba(255, 204, 0, 0.45);
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
}

.trending-item-load-more-arrow {
    width: 0.75rem;
    height: 0.75rem;
    filter: brightness(0) saturate(100%);
}

.trending-items-load-more:hover .trending-item-load-more-arrow-container {
    background-color: #FFCC00;
}

.trending-items-load-more:hover .trending-items-load-more-text {
    color: #FFCC00;

}

.trending-items-load-more-text {
    color: #999999;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    user-select: none;
}

input[type="radio"][name="trending-tab"] {
    display: none;
}

#tab1:checked~.trending-tab-panels #panel1,
#tab2:checked~.trending-tab-panels #panel2,
#tab3:checked~.trending-tab-panels #panel3,
#tab4:checked~.trending-tab-panels #panel4,
#tab5:checked~.trending-tab-panels #panel5 {
    display: flex;
}

#tab1:checked~.trending-tabs label[for="tab1"],
#tab2:checked~.trending-tabs label[for="tab2"],
#tab3:checked~.trending-tabs label[for="tab3"],
#tab4:checked~.trending-tabs label[for="tab4"],
#tab5:checked~.trending-tabs label[for="tab5"] {
    background-color: #262B31;
    color: #FFCC00;
    border-radius: 10px 10px 0 0;
    transform: scale(1.25);
}


/* Highlight selected item in each panel */
#trending-item-panel1-1:checked~#panel1 label[for="trending-item-panel1-1"] .item-index-bg,
#trending-item-panel1-2:checked~#panel1 label[for="trending-item-panel1-2"] .item-index-bg,
#trending-item-panel1-3:checked~#panel1 label[for="trending-item-panel1-3"] .item-index-bg,
#trending-item-panel1-4:checked~#panel1 label[for="trending-item-panel1-4"] .item-index-bg,
#trending-item-panel2-1:checked~#panel2 label[for="trending-item-panel2-1"] .item-index-bg,
#trending-item-panel2-2:checked~#panel2 label[for="trending-item-panel2-2"] .item-index-bg,
#trending-item-panel2-3:checked~#panel2 label[for="trending-item-panel2-3"] .item-index-bg,
#trending-item-panel2-4:checked~#panel2 label[for="trending-item-panel2-4"] .item-index-bg,
#trending-item-panel3-1:checked~#panel3 label[for="trending-item-panel3-1"] .item-index-bg,
#trending-item-panel3-2:checked~#panel3 label[for="trending-item-panel3-2"] .item-index-bg,
#trending-item-panel3-3:checked~#panel3 label[for="trending-item-panel3-3"] .item-index-bg,
#trending-item-panel3-4:checked~#panel3 label[for="trending-item-panel3-4"] .item-index-bg,
#trending-item-panel4-1:checked~#panel4 label[for="trending-item-panel4-1"] .item-index-bg,
#trending-item-panel4-2:checked~#panel4 label[for="trending-item-panel4-2"] .item-index-bg,
#trending-item-panel4-3:checked~#panel4 label[for="trending-item-panel4-3"] .item-index-bg,
#trending-item-panel4-4:checked~#panel4 label[for="trending-item-panel4-4"] .item-index-bg,
#trending-item-panel5-1:checked~#panel5 label[for="trending-item-panel5-1"] .item-index-bg,
#trending-item-panel5-2:checked~#panel5 label[for="trending-item-panel5-2"] .item-index-bg,
#trending-item-panel5-3:checked~#panel5 label[for="trending-item-panel5-3"] .item-index-bg,
#trending-item-panel5-4:checked~#panel5 label[for="trending-item-panel5-4"] .item-index-bg {
    background-color: #FFCC00;
}

#trending-item-panel1-1:checked~#panel1 label[for="trending-item-panel1-1"] .item-index-number,
#trending-item-panel1-2:checked~#panel1 label[for="trending-item-panel1-2"] .item-index-number,
#trending-item-panel1-3:checked~#panel1 label[for="trending-item-panel1-3"] .item-index-number,
#trending-item-panel1-4:checked~#panel1 label[for="trending-item-panel1-4"] .item-index-number,
#trending-item-panel2-1:checked~#panel2 label[for="trending-item-panel2-1"] .item-index-number,
#trending-item-panel2-2:checked~#panel2 label[for="trending-item-panel2-2"] .item-index-number,
#trending-item-panel2-3:checked~#panel2 label[for="trending-item-panel2-3"] .item-index-number,
#trending-item-panel2-4:checked~#panel2 label[for="trending-item-panel2-4"] .item-index-number,
#trending-item-panel3-1:checked~#panel3 label[for="trending-item-panel3-1"] .item-index-number,
#trending-item-panel3-2:checked~#panel3 label[for="trending-item-panel3-2"] .item-index-number,
#trending-item-panel3-3:checked~#panel3 label[for="trending-item-panel3-3"] .item-index-number,
#trending-item-panel3-4:checked~#panel3 label[for="trending-item-panel3-4"] .item-index-number,
#trending-item-panel4-1:checked~#panel4 label[for="trending-item-panel4-1"] .item-index-number,
#trending-item-panel4-2:checked~#panel4 label[for="trending-item-panel4-2"] .item-index-number,
#trending-item-panel4-3:checked~#panel4 label[for="trending-item-panel4-3"] .item-index-number,
#trending-item-panel4-4:checked~#panel4 label[for="trending-item-panel4-4"] .item-index-number,
#trending-item-panel5-1:checked~#panel5 label[for="trending-item-panel5-1"] .item-index-number,
#trending-item-panel5-2:checked~#panel5 label[for="trending-item-panel5-2"] .item-index-number,
#trending-item-panel5-3:checked~#panel5 label[for="trending-item-panel5-3"] .item-index-number,
#trending-item-panel5-4:checked~#panel5 label[for="trending-item-panel5-4"] .item-index-number {
    color: #090909;
    font-size: 1.5rem;
}

.original-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: #FF3B30;
    text-decoration: line-through;
}

.trending-tab-preview-link {
    text-decoration: none;
}

.trending-menu-selected-item-cover {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease-in-out;
    z-index: 1;
}

.trending-menu-selected-item-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0px;
    height: 0px;
    border-bottom: 160px solid rgba(255, 59, 48, 0.95);
    border-left: 160px solid transparent;
    border-bottom-right-radius: 1rem;
}

.trending-menu-selected-item-price {
    position: absolute;
    top: 100px;
    right: 19px;
}

.trending-menu-selected-item-price-text {
    display: none;
    /* Price is now always hidden */
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
}

.trending-menu-header-card-arrow {
    display: block;
    /* Arrow is now always visible */
    width: 65px;
}

input[name="trending-item-..."]:checked~.trending-tab-content-right-wrapper .trending-tab-preview-image {
    display: none;
}

input[name="trending-item-..."]:checked~.trending-tab-content-right-wrapper .trending-tab-preview-image.preview-...-1 {
    display: block;
}


@media (max-width: 1024px) {
    .trending-tabs {
        margin: unset !important;
    }

    .trending-tab-content-left-wrapper {
        margin: 2% 0 0 4% !important;
    }

    .trending-tab-content-right-wrapper {
        display: flex !important;
        margin: 2% 4% 0 0 !important;
        align-items: center !important;
    }

    .trending-tab-item-image-wrapper {
        width: 25%;
        height: 100%;
        margin: 0 0.5rem 0 0.5rem;
    }

    .trending-tab-content-item {
        height: 130px !important;
    }

    .rating-text {
        font-weight: 200 !important;
        font-size: 1.0rem !important;
    }

    .star-icon {
        width: 18px !important;

    }

    .category-label,
    .type-label {
        display: none !important;
    }

    .item-index-bg {
        min-width: 3rem !important;
        max-width: 3rem !important;
        width: 3rem !important;
    }

}

@media (max-width: 768px) {
    .trending-tab-content-left-wrapper {
        margin: 2% 0 0 2% !important;
    }

    .trending-tab-content-right-wrapper {
        margin: 2% 0 0 0 !important;
    }

    .original-price {
        font-size: 1rem;
    }

    .trending-item-price-text {
        font-size: 1rem;
    }
}

@media (max-width: 750px) {
    .trending-tabs {
        flex-direction: column;
    }

    .trending-tab-content-right-wrapper {
        display: none !important;
    }

    .top-choices-container {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .top-choices-img {
        height: 250px;
        width: 320px;
    }

}


@media (max-width: 750px) {

    .trending-tab-content-item {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        height: auto !important;
    }

    .trending-tab-item-image-wrapper {
        order: 1;
        width: 90% !important;
    }

    .trending-item-middle-section {
        display: flex !important;
        order: 2;
        width: 100%;
        align-items: center;
        justify-content: center;

    }

    .trending-item-bottom-wrapper {
        display: flex !important;
        order: 3;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .trending-item-price-text {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 4;
        width: 100%;
        font-size: 32px;
    }

    #tab1:checked~.trending-tabs label[for="tab1"],
    #tab2:checked~.trending-tabs label[for="tab2"],
    #tab3:checked~.trending-tabs label[for="tab3"],
    #tab4:checked~.trending-tabs label[for="tab4"],
    #tab5:checked~.trending-tabs label[for="tab5"] {
        transform: scale(1.0);
        border-radius: 0px 0px 0px 0px;
    }
}