/* ============================================================
   NOKEHUB — CUSTOMER REVIEW MARQUEE
   ============================================================ */

.nh-review-marquee {
    position: relative;
    overflow: hidden;

    padding: 22px 0 24px;

    background: #001b2b;

    border-top: 1px solid rgba(244,178,60,.18);
    border-bottom: 1px solid rgba(244,178,60,.18);
}


/* Heading */

.nh-review-marquee__heading {
    width: fit-content;

    margin: 0 auto 16px;

    padding: 6px 18px;

    border: 1px solid rgba(244,178,60,.65);
    border-radius: 999px;

    color: #f4b23c;
    background: #00121d;

    font-size: .68rem;
    font-weight: 800;

    letter-spacing: .18em;
    text-transform: uppercase;
}


/* Viewport */

.nh-review-marquee__viewport {
    width: 100%;
    overflow: hidden;
}


/* Moving track */

.nh-review-marquee__track {
    display: flex;
    align-items: stretch;

    width: max-content;

    animation: nhReviewMarquee 55s linear infinite;

    will-change: transform;
}

.nh-review-marquee__track:hover {
    animation-play-state: paused;
}


/* ============================================================
   REVIEW CARD
   ============================================================ */

.nh-review-marquee__item {

    display: flex;
    align-items: stretch;

    width: 560px;
    min-height: 118px;

    margin-right: 18px;

    padding: 10px;

    gap: 14px;

    flex: 0 0 560px;

    background: #fff;

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 14px;

    color: #17212b;

    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(0,0,0,.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.nh-review-marquee__item:hover {

    color: #17212b;

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(0,0,0,.28);
}


/* ============================================================
   PRODUCT IMAGE
   ============================================================ */

.nh-review-marquee__product-image {

    width: 112px;
    height: 98px;

    flex: 0 0 112px;

    overflow: hidden;

    display: block;

    background: #f4f5f7;

    border-radius: 10px;

    border: 1px solid #e1e5e9;
}

.nh-review-marquee__product-image img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* ============================================================
   REVIEW CONTENT
   ============================================================ */

.nh-review-marquee__content {

    min-width: 0;

    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


/* Top row */

.nh-review-marquee__top {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 3px;
}


/* Stars */

.nh-review-marquee__stars {

    color: #f4b23c;

    font-size: 14px;

    letter-spacing: 1px;

    line-height: 1;
}


/* Rating number */

.nh-review-marquee__rating {

    color: #17212b;

    font-size: .72rem;

    font-weight: 800;
}


/* Product name */

.nh-review-marquee__product-name {

    display: block;

    margin-bottom: 4px;

    color: #6f7a84;

    font-size: .72rem;

    font-weight: 700;
}


/* Review title */

.nh-review-marquee__title {

    display: block;

    margin-bottom: 3px;

    color: #17212b;

    font-size: .88rem;

    font-weight: 800;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* Review text */

.nh-review-marquee__text {

    display: block;

    max-width: 360px;

    color: #59636d;

    font-size: .76rem;

    line-height: 1.35;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* Customer */

.nh-review-marquee__customer {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 5px;

    color: #59636d;

    font-size: .68rem;

    font-weight: 700;
}


/* Verified */

.nh-review-marquee__verified {

    color: #278a55;

    font-size: .64rem;

    font-weight: 800;
}


/* Separator */

.nh-review-marquee__dot {
    display: none;
}


/* ============================================================
   ANIMATION
   ============================================================ */

@keyframes nhReviewMarquee {

    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .nh-review-marquee {

        padding: 16px 0 18px;
    }


    .nh-review-marquee__heading {

        margin-bottom: 12px;

        padding: 5px 14px;

        font-size: .58rem;
    }


    .nh-review-marquee__track {

        animation-duration: 48s;
    }


    .nh-review-marquee__item {

        width: 350px;

        min-height: 100px;

        flex-basis: 350px;

        margin-right: 12px;

        padding: 8px;

        gap: 10px;

        border-radius: 12px;
    }


    .nh-review-marquee__product-image {

        width: 88px;
        height: 82px;

        flex-basis: 88px;

        border-radius: 8px;
    }


    .nh-review-marquee__stars {

        font-size: 12px;

        letter-spacing: .5px;
    }


    .nh-review-marquee__rating {

        font-size: .65rem;
    }


    .nh-review-marquee__product-name {

        font-size: .65rem;

        margin-bottom: 2px;
    }


    .nh-review-marquee__title {

        font-size: .76rem;

        margin-bottom: 2px;
    }


    .nh-review-marquee__text {

        max-width: 210px;

        font-size: .66rem;
    }


    .nh-review-marquee__customer {

        margin-top: 3px;

        font-size: .61rem;
    }


    .nh-review-marquee__verified {

        font-size: .57rem;
    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .nh-review-marquee__track {

        animation: none;
    }

}