/* ════════════════════════════════════════════════════
   reviews.css — 실제 후기 통합 탭 (조각2-③)
   ════════════════════════════════════════════════════ */
.rv-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* 헤더: 제목 + 글쓰기 */
.rv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.rv-title {
  font-size: 24px;
  font-weight: 800;
  color: #1c1b22;
  margin: 0;
}
.rv-write-btn {
  min-height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  background: #6c3fc5;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
.rv-write-btn:hover {
  opacity: 0.9;
}

/* 카테고리 탭 (가로 pill 버튼) */
.rv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ececf1;
}
.rv-tab {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #e0dced;
  border-radius: 6px; /* 직사각형 */
  background: #fff;
  color: #555;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.rv-tab:hover {
  border-color: #6c3fc5;
  color: #6c3fc5;
}
.rv-tab.is-active {
  background: #6c3fc5;
  border-color: #6c3fc5;
  color: #fff;
}

/* 목록 */
.rv-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) {
  .rv-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .rv-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.rv-empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
  color: #9a9aa5;
  font-size: 14px;
}

/* 최고 후기는? (좋아요 있는 후기만 — 가로 드래그 캐러셀) */
.rv-top {
  margin-bottom: 26px;
}
.rv-top[hidden] {
  display: none;
}
.rv-top-title {
  font-size: 24px;
  font-weight: 800;
  color: #1c1b22;
  margin: 0 0 14px;
}
.rv-top-carousel {
  position: relative;
}
.rv-top-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}
.rv-top-viewport::-webkit-scrollbar {
  display: none;
}
.rv-top-viewport.is-drag {
  cursor: grabbing;
  scroll-behavior: auto;
}
.rv-top-track {
  display: flex;
  gap: 14px;
  width: max-content;
}
/* 캐러셀 카드: 흰 배경 + 연보라 테두리만 (텍스트는 기본 후기와 동일) */
.rv-top-track .rv-card {
  flex: 0 0 460px;
  width: 460px;
  border: 2px solid #c3b0ee;
}
.rv-top-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e5e2ef;
  background: #fff;
  color: #6c3fc5;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.rv-top-arrow[hidden] {
  display: none;
}
.rv-top-prev {
  left: -8px;
}
.rv-top-next {
  right: -8px;
}
@media (max-width: 640px) {
  .rv-top-track .rv-card {
    flex-basis: 280px;
    width: 280px;
  }
}

/* 리뷰 카드 */
.rv-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: none; /* 테두리 제거 */
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  min-height: 200px;
}
.rv-card__thumb {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f2fa;
}
.rv-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rv-card__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rv-card__stars {
  font-size: 15px;
  letter-spacing: 2px;
  color: #ffb400;
  line-height: 1;
}
.rv-card__stars-off {
  color: #dcd7e8;
}
.rv-card__title {
  margin: 8px 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #1c1b22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rv-card__content {
  margin: 6px 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  /* 길면 3줄까지 후 말줄임 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
/* 해시태그: 한 줄 가로 정렬 — 각 태그 온전(세로 접힘 방지), 넘치면 가로 스크롤 */
.rv-card__tags {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.rv-card__tags::-webkit-scrollbar {
  display: none;
}
.rv-tag {
  flex: 0 0 auto;
  white-space: nowrap;
}
.rv-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8a8a96;
  margin-top: auto;
}
.rv-card__product {
  font-weight: 700;
  color: #4a4a55;
}
.rv-card__date {
  margin-left: auto;
}

/* 더보기 */
.rv-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.rv-more-btn {
  min-height: 44px;
  padding: 0 28px;
  border: 1px solid #1c1b22;
  border-radius: 0;
  background: transparent;
  color: #1c1b22;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.rv-more-btn:hover {
  background: #f2f2f5;
}

/* 안내/확인 모달 */
.rv-modal[hidden] {
  display: none;
}
.rv-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.rv-modal__content {
  position: relative;
  z-index: 1;
  width: calc(100% - 40px);
  max-width: 360px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px 18px;
}
.rv-modal__msg {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #1c1b22;
  white-space: pre-line;
  text-align: center;
}
.rv-modal__actions {
  display: flex;
  gap: 10px;
}
.rv-btn {
  flex: 1;
  min-height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.rv-btn--ghost {
  background: #fff;
  border: 1px solid #e0dced;
  color: #555;
}
.rv-btn--primary {
  background: #6c3fc5;
  border: 1px solid #6c3fc5;
  color: #fff;
}

@media (max-width: 640px) {
  .rv-wrap {
    padding: 20px 16px 60px;
  }
  .rv-head {
    margin-bottom: 16px;
  }
  .rv-title {
    font-size: 20px;
  }
  .rv-top-title {
    font-size: 20px;
  }
  .rv-card {
    padding: 14px;
  }
  .rv-card__thumb {
    width: 64px;
    height: 64px;
  }
}

/* ── 페이지네이션 (하단 숫자 이동, 현재 페이지 박스) ── */
.rv-pg {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.rv-pg-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: #6b6b7b;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.rv-pg-btn:hover {
  color: #6c3fc5;
  background: #f5f2fd;
}
.rv-pg-btn.is-active {
  border-color: #1c1b22;
  color: #1c1b22;
  font-weight: 700;
}
.rv-pg-nav {
  color: #9a9aa5;
}
