@charset "utf-8";

/* Swiper 슬라이드 안의 카드 뼈대 */
.review-quote-wrap {
    background: transparent;
    width: 100%;
    height: 100%; /* 👇 슬라이드 전체 높이를 인식하게 만듦 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 👇 핵심: 빈 공간이 생겨도 무조건 위아래 정중앙에 배치! */
    text-align: center;
    box-sizing: border-box;
}

.review-swiper .swiper-wrapper {
    align-items: center;
}

/* 별점 */
.review-quote-wrap .stars {
    display: flex;
    gap: 3px;
    justify-content: center;
}
.review-quote-wrap .stars img {
    height: auto;
    width: auto;
}

/* 👇 사진 영역 뼈대 👇 */
.review-photo {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}
.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
/* 쓰레기 같은 default-photo 가짜 박스 코드는 싹 날렸습니다 */

/* 큰 제목 (후기 인용구) */
.review-quote-wrap .subj {
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    word-break: keep-all;
}
.review-quote-wrap .subj p {
    color: inherit;
    text-decoration: none;
    margin: 0;
}

/* 작성자 및 상품 정보 */
.review-quote-wrap .author-product-info {
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    display: inline-block;
}

/* 데이터 없음 */
.empty-review {
    text-align: center;
    padding: 100px 20px;
    color: #94a3b8;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
}

/* ==========================================
   반응형 1단계: 모바일 (360px 이상)
========================================= */
@media screen and (min-width: 360px) {
    .review-quote-wrap { padding: 30px 20px; }
    .review-quote-wrap .stars { margin-bottom: 15px; }
    .review-quote-wrap .stars img { height: 18px; }
    
    .review-photo { height: 180px; margin-bottom: 20px; }

    .review-quote-wrap .subj { font-size: 24px; line-height: 28px; }
    .review-quote-wrap .author-product-info { padding: 5px 20px; font-size: 16px; margin-top: 5px; }
}

/* ==========================================
   반응형 2단계: 태블릿/PC (1024px 이상)
========================================= */
@media screen and (min-width: 1024px) {
    .review-quote-wrap { padding: 40px 30px; }
    .review-quote-wrap .stars { margin-bottom: 20px; }
    .review-quote-wrap .stars img { height: 22px; }
    
    .review-photo { height: 220px; margin-bottom: 30px; }

    .review-quote-wrap .subj { font-size: 28px; line-height: 32px; }
    .review-quote-wrap .author-product-info { padding: 8px 25px; font-size: 16px; margin-top: 20px; }
}

/* ==========================================
   반응형 3단계: PC 와이드 (1440px 이상)
========================================= */
@media screen and (min-width: 1440px) {
    .review-quote-wrap { padding: 50px 40px; }
    .review-quote-wrap .stars img { height: 24px; }
    
    .review-photo { height: 250px; margin-bottom: 35px; }

    .review-quote-wrap .subj { font-size: 32px; line-height: 40px; }
    .review-quote-wrap .author-product-info { padding: 10px 30px; font-size: 18px; margin-top: 25px; }
}

/* ==========================================
   작성하기 버튼 (섹션 마우스 오버 시 표시)
========================================== */
.main-review-action {
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sec04:hover .main-review-action,
.sec04-content:hover .main-review-action {
    opacity: 1;
    visibility: visible;
}

.btn-write-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 35px;
    background-color: #ff3146;
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(255, 49, 70, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-write-review:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 49, 70, 0.4);
}