/*
 * 출고후기 board — laid out to match the original one1end.com photo review
 * board: square thumbnail card, star rating, subject, two-line excerpt.
 */

.review-page {
    padding: 56px 0 96px;
}

/* ---------- listing ---------- */

.review-count {
    margin: 0 0 20px;
    font-size: 14px;
    color: #6b7280;
}

.review-count strong {
    color: #111827;
    font-weight: 600;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-card {
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.review-card:hover {
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
    transform: translateY(-2px);
}

.review-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.review-card-thumb {
    position: relative;
    padding-top: 100%;
    background: #ececec;
    border-bottom: 1px solid #ededed;
}

.review-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card-thumb.is-empty::after {
    content: "ONEEND";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #c4c4c4;
}

.review-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 24px;
}

.review-stars {
    font-size: 13px;
    line-height: 1;
    letter-spacing: 2px;
    /* The source board tints stars with the brand colour, not gold. */
    color: var(--oe-navy, #0d1b3d);
}

.review-stars .is-empty {
    color: #d4d4d4;
}

.review-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.review-card-subject {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card-date {
    margin-top: 2px;
    font-size: 13px;
    color: #9ca3af;
}

/* The source cards show no date; kept in the markup for machines only. */
.review-card .review-card-date {
    display: none;
}

.review-empty {
    padding: 80px 0;
    text-align: center;
    color: #6b7280;
}

/* ---------- detail ---------- */

.review-detail {
    max-width: 860px;
    margin: 0 auto;
}

.review-detail-head {
    padding-bottom: 18px;
}

.review-detail-head h1 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    color: #111827;
    word-break: keep-all;
}

.review-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 13px;
    color: #6b7280;
}

.review-detail-meta .review-stars {
    font-size: 14px;
}

.review-detail-meta .sep {
    width: 1px;
    height: 10px;
    background: #d1d5db;
}

.review-detail-body {
    padding: 28px 0 36px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    overflow-wrap: anywhere;
}

.review-detail-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.review-detail-body p {
    margin: 0 0 4px;
}

.review-detail-body strong {
    color: #111827;
}

.review-detail-foot {
    display: flex;
    justify-content: center;
    padding-top: 32px;
}

.review-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 13px 28px;
    border: 1px solid #111827;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.review-back:hover {
    background: #111827;
    color: #fff;
}

/* ---------- responsive ---------- */

@media (max-width: 1399px) {
    .review-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1099px) {
    .review-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }
}

@media (max-width: 479px) {
    .review-page {
        padding: 36px 0 64px;
    }

    .review-grid {
        gap: 18px 12px;
    }

    .review-card-body {
        padding: 10px 12px 18px;
    }

    .review-card-subject {
        font-size: 14px;
    }

    .review-card-excerpt {
        font-size: 13px;
    }

    .review-detail-head h1 {
        font-size: 20px;
    }
}

/* ---------- pager (shared markup: public/pagers/product) ---------- */

.product-pager {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.product-pager-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 4px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.product-pager-btn:hover {
    background: #f3f4f6;
}

.product-pager-btn.is-active {
    background: var(--oe-navy, #0d1b3d);
    color: #fff;
}

.product-pager-btn.is-disabled {
    color: #d1d5db;
    cursor: default;
}
