/* shop.css - 상점 UI 스타일 (Linear Design 일관성) */

/* ===== 상점 컨테이너 ===== */
.shop-container {
  max-width: 100%;
  margin: 0 auto;
}

/* ===== 상점 헤더 배너 ===== */
.shop-hero {
  position: relative;
  background: linear-gradient(135deg, #1D2F4E 0%, #2a4a7f 50%, #5FB2C9 100%);
  padding: 48px 32px;
  border-radius: var(--radius-premium);
  text-align: center;
  color: white;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(29, 47, 78, 0.25);
  overflow: hidden;
}

.shop-hero__logo {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  height: 85%;
  max-height: 140px;
  opacity: 0.1;
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
}

.shop-hero__content {
  position: relative;
  z-index: 1;
}

.shop-hero__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 12px;
}

.shop-hero__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  color: white;
  letter-spacing: -0.5px;
}

.shop-hero__subtitle {
  font-size: 15px;
  opacity: 0.85;
  font-weight: 400;
}

/* ===== 타입 필터 (인강/자료/패키지) ===== */
.shop-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 4px;
}

.shop-filter-btn {
  padding: 9px 22px;
  border: 1px solid rgba(29, 47, 78, 0.1);
  background: #FFFFFF;
  color: var(--deep-sea-gray, #6F7C8B);
  border-radius: 9999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: -0.2px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-filter-btn:hover {
  background: #F8F9FA;
  border-color: rgba(95, 178, 201, 0.5);
  color: var(--penguin-navy, #1D2F4E);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(95, 178, 201, 0.15);
}

.shop-filter-btn.active {
  background: var(--penguin-navy, #1D2F4E);
  color: #FFFFFF;
  border-color: var(--penguin-navy, #1D2F4E);
  box-shadow: 0 4px 12px rgba(29, 47, 78, 0.2);
  transform: translateY(-1px);
}

/* ===== 상품 그리드 ===== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* ===== 상품 카드 ===== */
.shop-card {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(29, 47, 78, 0.04);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(95, 178, 201, 0.2);
}

/* 썸네일 — 이미지 카드 너비 꽉 채움 */
.shop-card__thumb {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  line-height: 0;
  overflow: hidden;
}

.shop-card__thumb img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  max-width: none;
}

.shop-card:hover .shop-card__thumb img {
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

/* 썸네일 플레이스홀더 (이미지 없을 때) */
.shop-card__thumb-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, var(--penguin-navy, #1D2F4E) 0%, var(--penguin-skyblue, #5FB2C9) 100%);
  color: rgba(255, 255, 255, 0.8);
}

/* 타입 뱃지 */
.shop-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.shop-card__badge--video {
  background: rgba(95, 178, 201, 0.95);
  color: white;
}

.shop-card__badge--pdf,
.shop-card__badge--ppt {
  background: rgba(234, 88, 12, 0.85);
  color: white;
}

.shop-card__badge--bundle {
  background: rgba(234, 88, 12, 0.85);
  color: white;
}

/* 구매완료 뱃지 */
.shop-card__purchased {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(5, 150, 105, 0.9);
  color: white;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

/* 카드 바디 */
.shop-card__body {
  padding: 12px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shop-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--penguin-navy, #1D2F4E);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card__desc {
  font-size: 13px;
  color: var(--deep-sea-gray, #6F7C8B);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #adb5bd;
  margin-bottom: 10px;
}

.shop-card__meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* 리뷰 별점 */
.shop-card__review {
  font-size: 13px;
  font-weight: 600;
  color: #f59e0b;
  margin-bottom: 8px;
}

.shop-card__review-count {
  font-weight: 400;
  color: #9ca3af;
  font-size: 12px;
}

/* 가격 */
.shop-card__footer {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.shop-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--penguin-navy, #1D2F4E);
}

.shop-card__price--free {
  color: #059669;
}

.shop-card__original-price {
  font-size: 13px;
  color: #adb5bd;
  text-decoration: line-through;
}

.shop-card__discount {
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
}

/* ===== 빈 상태 ===== */
.shop-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--deep-sea-gray, #6F7C8B);
}

.shop-empty__icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.shop-empty__text {
  font-size: 16px;
  font-weight: 600;
}

/* ===== 로딩 ===== */
.shop-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--deep-sea-gray, #6F7C8B);
}

.shop-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e9ecef;
  border-top-color: var(--penguin-skyblue, #5FB2C9);
  border-radius: 50%;
  animation: shopSpin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes shopSpin {
  to { transform: rotate(360deg); }
}

/* ===== 반응형 ===== */
@media (min-width: 768px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .shop-card__title {
    font-size: 16px;
  }

  .shop-card__body {
    padding: 16px;
  }

  .shop-hero {
    padding: 48px 40px;
  }

  .shop-hero__title {
    font-size: 32px;
  }
}

@media (min-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .shop-grid {
    gap: 12px;
  }

  .shop-card__body {
    padding: 12px;
  }

  .shop-card__title {
    font-size: 14px;
  }

  .shop-card__desc {
    font-size: 12px;
    -webkit-line-clamp: 1;
  }

  .shop-card__price {
    font-size: 16px;
  }

  .shop-filters {
    gap: 6px;
  }

  .shop-filter-btn {
    padding: 7px 16px;
    font-size: 13px;
    min-height: 34px;
  }

  .shop-hero {
    padding: 32px 20px;
    margin-bottom: 20px;
  }

  .shop-hero__title {
    font-size: 22px;
  }

  .shop-hero__label {
    font-size: 10px;
  }
}


/* ============================================================
   상품 상세 페이지 (product-detail.html)
   ============================================================ */

.detail-container {
  width: 100%;
  max-width: 960px;
  margin: 72px auto 60px;
  padding: 0 24px;
  box-sizing: border-box;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--penguin-navy, #1D2F4E);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.detail-back:hover {
  color: var(--penguin-skyblue, #5FB2C9);
}

/* 상단 영역 (썸네일 + 기본정보) */
.detail-top {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 28px;
  margin-bottom: 36px;
  min-width: 0;
}


.detail-thumb {
  width: 100%;
  min-width: 100%;
  min-height: 300px;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f7;
}

/* 모바일에서는 grid 1열이라 stretch 의미 없음 — aspect-ratio로 박스 보장 */
@media (max-width: 768px) {
  .detail-thumb {
    aspect-ratio: 3 / 2;
    height: auto;
  }
}

.detail-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== 상품 이미지 갤러리 ===== */
.gallery {
  width: 100%;
  position: relative;
  user-select: none;
}

.gallery__main {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(24px) brightness(1.05);
  transform: scale(1.15);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1d1d1f;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.gallery:hover .gallery__arrow,
.gallery__arrow:focus-visible {
  opacity: 1;
}

.gallery__arrow--prev { left: 10px; }
.gallery__arrow--next { right: 10px; }
.gallery__arrow:hover { background: #ffffff; }

.gallery__counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
}

.gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs { cursor: grab; }
.gallery__thumbs:active { cursor: grabbing; }

.gallery__thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery__thumb--active {
  border-color: #1d1d1f;
  opacity: 1;
}

.gallery__thumb:hover {
  opacity: 0.85;
}

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

/* 모바일에서 화살표 항상 표시 */
@media (max-width: 734px) {
  .gallery__arrow {
    opacity: 1;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .gallery__thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }

  .gallery__thumbs {
    gap: 6px;
    margin-top: 10px;
  }
}

.detail-thumb__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: linear-gradient(135deg, var(--penguin-navy, #1D2F4E) 0%, var(--penguin-skyblue, #5FB2C9) 100%);
  color: rgba(255, 255, 255, 0.7);
}

/* 기본 정보 — 썸네일 높이에 맞춰 균등 배치 */
.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  width: fit-content;
}

.detail-badge--video {
  background: var(--penguin-navy, #1D2F4E);
  color: white;
}

.detail-badge--pdf,
.detail-badge--ppt {
  background: #febc00;
  color: white;
}

.detail-badge--bundle {
  background: #ea580c;
  color: white;
}

.detail-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--penguin-navy, #1D2F4E);
  line-height: 1.3;
  margin-bottom: 10px;
}

.detail-desc {
  font-size: 14px;
  color: var(--deep-sea-gray, #6F7C8B);
  line-height: 1.6;
  margin-bottom: 14px;
  white-space: pre-line;
}

/* 메타 정보 (강의수, 페이지수 등) */
.detail-meta {
  margin-bottom: 16px;
}

.detail-meta__item {
  font-size: 14px;
  color: #86868b;
  letter-spacing: -0.01em;
}

/* 가격 영역 */
.detail-price-box {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.detail-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--penguin-navy, #1D2F4E);
}

.detail-price--free {
  color: #059669;
}

.detail-original-price {
  font-size: 16px;
  color: #adb5bd;
  text-decoration: line-through;
}

.detail-discount {
  font-size: 16px;
  font-weight: 700;
  color: #ef4444;
}

.detail-price-note {
  font-size: 13px;
  color: #6e6e73;
}

/* 구매 버튼 */
.detail-buy-btn {
  width: 100%;
  padding: 18px;
  background: var(--penguin-navy, #1D2F4E);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.detail-buy-btn:hover {
  background: #2a4366;
  transform: scale(1.01);
}

.detail-buy-btn:active {
  transform: scale(0.99);
}

.detail-buy-btn:disabled {
  background: #d2d2d7;
  cursor: not-allowed;
  transform: none;
}

/* 이미 구매한 경우 */
.detail-purchased-btn {
  width: 100%;
  padding: 18px;
  background: #1d1d1f;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.detail-purchased-btn:hover {
  background: #424245;
  transform: scale(1.01);
}

/* 상세 설명 카드 */
.detail-section {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.06);
}

.detail-section__title {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}

.detail-section__content {
  font-size: 15px;
  color: #495057;
  line-height: 1.8;
  white-space: pre-line;
}

/* 상세/커리큘럼 탭 */
.detail-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5ea;
}

.detail-tabs__btn {
  flex: 1;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: #aeaeb2;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-sans);
}

.detail-tabs__btn:hover {
  color: #1d1d1f;
}

.detail-tabs__btn--active {
  color: #1d1d1f;
  border-bottom-color: #1d1d1f;
}

.detail-tab-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 에피소드 목록 */
.episode-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.episode-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.episode-item:last-child {
  border-bottom: none;
}

.episode-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #f1f3f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--penguin-navy, #1D2F4E);
}

.episode-info {
  flex: 1;
  min-width: 0;
}

.episode-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.episode-duration {
  font-size: 12px;
  color: #adb5bd;
}

.episode-free {
  flex-shrink: 0;
  padding: 3px 8px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.episode-lock {
  flex-shrink: 0;
  font-size: 14px;
  color: #dee2e6;
}

/* 패키지 포함 상품 */
.bundle-includes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bundle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.bundle-item:last-child {
  border-bottom: none;
}

.bundle-item__icon {
  font-size: 20px;
}

.bundle-item__title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* 환불 안내 */
.detail-refund {
  background: #fff7ed;
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
}

.detail-refund__title {
  font-size: 14px;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 8px;
}

.detail-refund__text {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* ===== 상세페이지 반응형 ===== */
@media (min-width: 768px) {
  .detail-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }

  .detail-title {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .detail-container {
    margin: 70px auto 40px;
  }

  .detail-title {
    font-size: 22px;
  }

  .detail-price {
    font-size: 22px;
  }

  .detail-section {
    padding: 20px;
  }
}

/* ===== 리뷰 시스템 ===== */

/* 통계 */
.review-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: #f5f5f7;
  border-radius: 12px;
  margin-bottom: 20px;
}
.review-stats__rating {
  font-size: 36px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1;
}
.review-stats__stars { line-height: 1; }
.review-stats__count {
  font-size: 13px;
  color: #86868b;
}

/* 작성 폼 */
.review-form {
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  margin-bottom: 24px;
}
.review-form__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1d1d1f;
}
.review-form__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.review-star {
  font-size: 28px;
  color: #d2d2d7;
  cursor: pointer;
  transition: color 0.15s;
  user-select: none;
}
.review-form__rating-text {
  font-size: 13px;
  color: #86868b;
  margin-left: 8px;
}
.review-form__textarea-wrap {
  position: relative;
  margin-bottom: 12px;
}
.review-form__textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  line-height: 1.6;
}
.review-form__textarea:focus {
  outline: none;
  border-color: #1d1d1f;
}
.review-form__counter {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 12px;
  color: #aeaeb2;
}
.review-form__images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.review-form__image-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
}
.review-form__image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-form__image-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.review-form__image-btn {
  padding: 8px 16px;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.review-form__image-hint {
  font-weight: 400;
  color: #86868b;
  font-size: 12px;
  margin-left: 4px;
}
.review-form__submit {
  padding: 8px 24px;
  background: #1d1d1f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.review-form__submit:disabled {
  background: #aeaeb2;
  cursor: not-allowed;
}
.review-form__error {
  margin-top: 8px;
  font-size: 13px;
  color: #ff3b30;
}
.review-form-notice {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #86868b;
  background: #f5f5f7;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* 리뷰 목록 */
.review-list { display: flex; flex-direction: column; gap: 0; }
.review-card {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.review-card:last-child { border-bottom: none; }
.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.review-card__info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-card__author {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}
.review-card__date {
  font-size: 12px;
  color: #aeaeb2;
}
.review-card__content {
  font-size: 14px;
  color: #1d1d1f;
  line-height: 1.6;
  white-space: pre-wrap;
}
.review-card__images {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.review-card__thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #e5e5e5;
}
.review-card__actions {
  display: flex;
  gap: 4px;
}
.review-edit-btn,
.review-delete-btn {
  font-size: 12px;
  color: #aeaeb2;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
}
.review-edit-btn:hover { color: #1d1d1f; }
.review-delete-btn:hover { color: #ff3b30; }
.review-card__edited {
  font-size: 11px;
  color: #aeaeb2;
}

/* 후기 인라인 수정 폼 */
.review-card--editing {
  background: #fafafa;
  border-radius: 8px;
  padding: 16px;
  margin: 8px 0;
}
.review-edit__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.review-edit__stars .edit-star {
  font-size: 22px;
  cursor: pointer;
  user-select: none;
}
.review-edit__rating-text {
  font-size: 13px;
  color: #86868b;
  margin-left: 6px;
}
.review-edit__textarea-wrap {
  position: relative;
  margin-bottom: 12px;
}
.review-edit__textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}
.review-edit__counter {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 12px;
  color: #aeaeb2;
  background: rgba(255,255,255,0.9);
  padding: 1px 4px;
}
.review-edit__images {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.review-edit__image-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1d1d1f;
  color: #fff;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.review-edit__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.review-edit__buttons {
  display: flex;
  gap: 6px;
}
.review-edit__cancel,
.review-edit__save {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.review-edit__cancel {
  background: #fff;
  color: #1d1d1f;
  border-color: #e5e5e5;
}
.review-edit__save {
  background: #1d1d1f;
  color: #fff;
}
.review-edit__save:disabled {
  background: #aeaeb2;
  cursor: default;
}
.review-edit__error {
  margin-top: 8px;
  font-size: 13px;
  color: #ff3b30;
}
.review-empty {
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: #86868b;
}

/* 이미지 모달 */
.review-image-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}
.review-image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
}
.review-image-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .review-stats { padding: 16px; gap: 8px; }
  .review-stats__rating { font-size: 28px; }
  .review-form { padding: 16px; }
  .review-star { font-size: 24px; }
  .review-card__thumb { width: 56px; height: 56px; }
}
