/* ============================================================
   고객 후기 페이지 — mobile-first
   ============================================================ */

.reviews-page {
    padding: 24px 0 60px;
}

.reviews-page__title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 24px;
}

/* 정렬 */
.reviews-sort {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
}

.reviews-sort__btn {
    background: none;
    border: none;
    font-size: 13px;
    color: #777;
    cursor: pointer;
    padding: 0 10px;
    position: relative;
    line-height: 19px;
    text-decoration: none;
}

.reviews-sort__btn:first-child { padding-left: 0; }

.reviews-sort__btn + .reviews-sort__btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: #ddd;
}

.reviews-sort__btn.is-active,
.reviews-sort__btn:hover {
    color: #333;
    font-weight: 600;
}

/* 카드 그리드 — 모바일: 2열 (Figma 기준) */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

/* 후기 카드 */
.review-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.review-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.review-card__img-wrap {
    width: 100%;
    aspect-ratio: 305 / 228;
    overflow: hidden;
    flex-shrink: 0;
}

.review-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-card__body {
    padding: 14px 12px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.review-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.review-card__stars {
    display: flex;
    gap: 2px;
}

.review-card__star {
    width: 16px;
    height: 16px;
    color: #e74c3c;
    font-size: 14px;
    line-height: 1;
}

.review-card__option {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-card__text {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card__author-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #555;
}

.review-card__author { font-weight: 500; }

.review-card__certified {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #555;
}

.review-card__certified-icon {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-card__certified-icon::after {
    content: '';
    display: block;
    width: 6px;
    height: 4px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.review-card__sep {
    display: inline-block;
    width: 1px;
    height: 11px;
    background: #ddd;
}

.review-card__date {
    font-size: 12px;
    color: #999;
}

.review-card__product {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #eee;
    padding: 10px 0;
    margin-top: auto;
}

.review-card__product-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.review-card__product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-card__product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-card__product-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.review-card__product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #555;
}

.review-card__product-score {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
}

.review-card__product-score-star {
    width: 12px;
    height: 12px;
    color: #e74c3c;
    font-size: 11px;
}

.review-card__product-sep {
    width: 1px;
    height: 12px;
    background: #ddd;
}

.review-card__product-count { color: #777; }

/* 페이지네이션 */
.reviews-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.reviews-pagination__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #eee;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.reviews-pagination__btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.reviews-pagination__btn.is-active {
    background: #333;
    color: #fff;
    border-color: #333;
    font-weight: 700;
}

.reviews-pagination__btn--arrow {
    font-size: 16px;
    border-color: #eee;
    color: #999;
}

/* ── 데스크탑 오버라이드 ─────────────────────────────────── */
@media (min-width: 768px) {
    /* 태블릿: 2열 */
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1280px) {
    .reviews-page {
        padding: 50px 0 80px;
    }

    .reviews-page__title {
        font-size: 28px;
        margin-bottom: 50px;
    }

    .reviews-sort {
        margin-bottom: 20px;
    }

    .reviews-sort__btn {
        font-size: 14px;
        padding: 0 12px;
    }

    /* PC: 4열 */
    .reviews-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px 20px;
        margin-bottom: 50px;
    }

    .review-card__body {
        padding: 16px 15px 0;
    }

    .review-card__star {
        width: 18px;
        height: 18px;
        font-size: 16px;
    }

    .review-card__text {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .review-card__author-row {
        margin-bottom: 14px;
        font-size: 13px;
        gap: 8px;
    }

    .review-card__product {
        padding: 12px 0;
    }

    .review-card__product-img {
        width: 60px;
        height: 60px;
    }

    .review-card__product-name { font-size: 13px; }
    .review-card__product-rating { font-size: 12px; }
}

.review-card__video-hero {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    vertical-align: top;
}

@media (min-width: 768px) {
    .review-card__video-hero {
        height: 200px;
    }
}

.review-card__media-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    margin: 10px -4px 12px -4px;
    padding-bottom: 4px;
}

.review-card__thumb {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f4f6;
}

.review-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-card__thumb--video-wrap .review-card__thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-card__datetime-abbr {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.reviews-more-wrap {
    margin-bottom: 40px;
}

.reviews-more-btn {
    display: block;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
}

.reviews-more-btn:hover {
    background: #f9f9f9;
}

.reviews-more-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
