/* Trending Items Bar Styles */
.trending-bar-section {
    padding: 0;
    margin-top: var(--space-3);
    overflow: hidden;
    position: relative;
    height: 50px;
    width: 100%;
    background: transparent;
    border-bottom: none;
    z-index: 5px;
}

.trending-bar-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.trending-logo-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(248, 250, 252, 1) 70%, rgba(248, 250, 252, 0));
}

.trending-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.25);
}

.trending-items-scroll {
    display: flex;
    align-items: center;
    height: 100%;
    animation: scrollRightToLeft 30s linear infinite;
    white-space: nowrap;
    gap: 20px;
    padding-left: 170px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 10px;
    min-width: 220px;
    height: 44px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trending-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.trending-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.trending-item-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.trending-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.trending-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.trending-item-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.original-price {
    font-size: 10px;
    color: #94a3b8;
    text-decoration: line-through;
}

.discount {
    font-size: 10px;
    background: #ef4444;
    color: #fff;
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 700;
}

.trending-bar-section:hover .trending-items-scroll {
    animation-play-state: paused;
}

@keyframes scrollRightToLeft {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 992px) {
    .trending-bar-section {
        height: 54px;
    }

    .trending-logo {
        padding: 5px 14px;
        font-size: 12px;
    }

    .trending-items-scroll {
        padding-left: 150px;
        gap: 16px;
        animation-duration: 35s;
    }

    .trending-item {
        min-width: 200px;
        height: 40px;
        padding: 5px 8px;
    }

    .trending-item-image {
        width: 36px;
        height: 36px;
    }
}

@media screen and (max-width: 768px) {
    .trending-bar-section {
        height: 54px;
        padding: var(--space-1) 0;
    }
}

@media screen and (max-width: 600px) {
    .trending-bar-section {
        height: 48px;
        padding: var(--space-1) 0;
    }

    .trending-logo-wrapper {
        padding-left: 6px;
    }

    .trending-logo {
        padding: 4px 12px;
        font-size: 11px;
    }

    .trending-items-scroll {
        padding-left: 120px;
        gap: 14px;
        animation-duration: 40s;
    }

    .trending-item {
        min-width: 180px;
        height: 38px;
        padding: 4px 6px;
    }

    .trending-item-image {
        width: 32px;
        height: 32px;
    }

    .trending-item-name {
        font-size: 11px;
    }

    .current-price {
        font-size: 11px;
    }

    .original-price {
        font-size: 9px;
    }

    .discount {
        font-size: 9px;
    }
}

@media screen and (max-width: 420px) {
    .trending-bar-section {
        height: 44px;
    }

    .trending-items-scroll {
        padding-left: 110px;
        gap: 12px;
        animation-duration: 38s;
    }

    .trending-item {
        min-width: 160px;
        height: 34px;
        padding: 3px 6px;
    }

    .trending-item-image {
        width: 28px;
        height: 28px;
    }

    .trending-item-name {
        font-size: 10px;
    }

    .current-price {
        font-size: 10px;
    }

    .original-price {
        font-size: 8px;
    }

    .discount {
        font-size: 8px;
    }
}
