body {
    background: #faf8f8;
}

/* Review Write Modal (공유 스타일) */
#review-write-modal {
    display: none;
}

.review-write-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#review-write-modal:checked ~ .review-write-overlay {
    opacity: 1;
    visibility: visible;
}

.review-write-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 4001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

#review-write-modal:checked ~ .review-write-modal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.review-write-header {
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-write-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.review-write-close {
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s;
}

.review-write-close:hover {
    color: #333;
}

.review-write-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.review-section {
    margin-bottom: 28px;
}

.review-section:last-child {
    margin-bottom: 0;
}

.review-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.required {
    color: #ff4444;
    margin-left: 4px;
}

.review-product-info {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: #faf8f8;
    border-radius: 12px;
}

.review-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.review-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-product-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px;
}

.review-product-option {
    font-size: 13px;
    color: #666;
    margin: 0 0 4px;
}

.review-product-date {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.review-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: #faf8f8;
    border-radius: 12px;
}

.star-group {
    display: flex;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: center;
}

.star-label {
    cursor: pointer;
    transition: all 0.3s;
}

.star-icon {
    stroke: #ffb800;
    fill: transparent;
    transition: all 0.3s;
}

.star-label:hover .star-icon,
.star-label:hover ~ .star-label .star-icon {
    fill: #ffb800;
}

#star5:checked ~ .star-group label[for="star5"] .star-icon,
#star5:checked ~ .star-group label[for="star5"] ~ .star-label .star-icon,
#star4:checked ~ .star-group label[for="star4"] .star-icon,
#star4:checked ~ .star-group label[for="star4"] ~ .star-label .star-icon,
#star3:checked ~ .star-group label[for="star3"] .star-icon,
#star3:checked ~ .star-group label[for="star3"] ~ .star-label .star-icon,
#star2:checked ~ .star-group label[for="star2"] .star-icon,
#star2:checked ~ .star-group label[for="star2"] ~ .star-label .star-icon,
#star1:checked ~ .star-group label[for="star1"] .star-icon {
    fill: #ffb800;
}

.rating-text {
    font-size: 14px;
    color: #666;
}

.review-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
    resize: vertical;
    transition: border-color 0.3s;
}

.review-textarea:focus {
    outline: none;
    border-color: #c76b52;
}

.review-textarea::placeholder {
    color: #999;
}

.review-textarea-count {
    text-align: right;
    margin-top: 8px;
    font-size: 13px;
    color: #999;
}

.current-count {
    color: #c76b52;
    font-weight: 700;
}

.review-photo-upload {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.photo-upload-btn {
    width: 120px;
    height: 120px;
    border: 2px dashed #e5e5e5;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #faf8f8;
}

.photo-upload-btn:hover {
    border-color: #c76b52;
    background: #fff8f4;
}

.photo-upload-btn span {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.photo-count {
    font-size: 12px !important;
    color: #999 !important;
    font-weight: 500 !important;
}

.photo-preview-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.review-photo-guide {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.review-recommend {
    display: flex;
    gap: 12px;
}

.recommend-btn {
    flex: 1;
    padding: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #faf8f8;
}

.recommend-btn:hover {
    border-color: #c76b52;
    background: #fff8f4;
}

#recommend-yes:checked ~ .review-recommend label[for="recommend-yes"] {
    border-color: #c76b52;
    background: #e3f2fd;
}

#recommend-no:checked ~ .review-recommend label[for="recommend-no"] {
    border-color: #f97316;
    background: #fff7ed;
}

.review-notice {
    padding: 16px;
    background: #fff8e1;
    border-radius: 12px;
    border-left: 4px solid #ffc107;
}

.review-notice-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

.review-notice-list {
    padding-left: 20px;
    margin: 0;
}

.review-notice-list li {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.review-write-footer {
    border-top: 1px solid #e5e5e5;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

.review-write-buttons {
    display: flex;
    gap: 12px;
}

.btn-cancel-review,
.btn-submit-review {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-cancel-review {
    background: #f3f4f6;
    color: #374151;
}

.btn-submit-review {
    background: #c76b52;
    color: #fff;
}

@media (max-width: 768px) {
    .review-write-modal {
        width: 95%;
        max-height: 85vh;
    }
}

.review-page {
    padding: 80px 0 120px;
}

.review-page .container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: #323232;
    margin-bottom: 8px;
    text-align: center;
}

.page-subtitle {
    color: #9b847f;
    font-size: 15px;
}

.btn-export {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    background: #bb877a;
    color: #fff;
    font-weight: 700;
}

.review-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #ece2df;
}

.stat-label {
    font-size: 14px;
    color: #9b847f;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #323232; 
}

.stat-trend {
    font-size: 13px;
    color: #9b847f;
}

.stat-trend.up {
    color: #16a34a;
}

.stat-trend.alert {
    color: #dc2626;
}

.review-filters {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #ece2df; 
    margin-bottom: 28px;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filter-tab {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid #dbe2ef;
    background: #f8fafc;
    font-weight: 600;
    color: #9b847f;
}

.filter-tab.active {
    background: #323232;
    border-color: #323232;
    color: #fff;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top:20px;
}

.chip-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 18px;
    border-radius: 999px;
    background: #f9f0ee;
    color: #4338ca;
    border: none;
    font-weight: 600;
}

.search-wrapper {
    display: flex;
    gap: 10px;
    border: 1px solid #ece2df;
    padding: 5px ;
    border-radius: 12px;
    background: #fff;
}

.search-wrapper input {
    border: none;
    min-width: 220px;
}

.search-wrapper button {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: #bb877a;
    color: #fff;
    width:100px;
    font-weight: 600;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #ece2df;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.review-card.compact {
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #9b847f;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    color: #323232;
}

.status-chip {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-chip.warning {
    background: #fef3c7;
    color: #be7b0c;
}

.status-chip.success {
    background: #dcfce7;
    color: #166534;
}

.status-chip.info {
    background: #e0f2fe;
    color: #0369a1;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #fbbf24;
}

.rating-label {
    color: #9b847f;
    font-weight: 600;
}

.review-content {
    margin: 16px 0;
    color: #1f2937;
    line-height: 1.7;
}

.review-media {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.review-media img {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
}

.admin-reply {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px 18px;
    border-left: 4px solid #bb877a;
    margin-top: 14px;
}

.reply-title {
    font-weight: 700;
    color: #323232;
    margin-bottom: 6px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.tag-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    border-radius: 12px;
    background: #f9f0ee;
    color: #4338ca;
    font-size: 13px;
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-outline,
.btn-primary,
.btn-ghost {
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
}

.btn-outline {
    border: 1.5px solid #efd4ce;
    background: #fff;
    color: #1f2937;
}

.btn-primary {
    border: none;
    background: #bb877a;
    color: #fff;
}

.btn-ghost {
    border: none;
    background: transparent;
    color: #9b847f;
}


.review-header {background:#fff;border-radius:12px;padding:20px 24px;border:1px solid #ece2df;margin-bottom:28px;}


.review-top-wrap {display: grid;grid-template-columns: 1fr 1fr;}

.review-top-wrap>div {display: flex;flex-direction: column;
justify-content: space-evenly;}


.review-num {border-right:1px solid #ddd;}

.stat-label, .stat-value {text-align: center;}

.review-stars {color:#f5b745;font-size:36px;}

.review-star-num {font-size:22px;line-height:1.2;}


@media (max-width: 768px) {

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

    .review-page {
        padding: 60px 0 100px;
    }

    .review-page .container {
        padding: 0 20px;
    }

    .page-header {
        flex-direction: column; 
    }

    .filter-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-wrapper {
        width: 100%;
    }

    .search-wrapper input {
        width: 100%;
        min-width: 0;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-value {
        font-size:24px;
    }

    .review-header {padding:10px;}

    .search-wrapper input {font-size:14px;}


    .review-num {border-right:0;border-bottom:1px solid #ddd;}

    .review-top-wrap {grid-template-columns: 1fr;}

    .review-top-wrap>div {padding:15px;}


}



@media (max-width: 480px) {

    .page-title {font-size:28px;}

    .page-subtitle {font-size:14px; word-break: keep-all;text-align: center;}

    .stat-value {font-size:22px;}

}

