.p_view { display: flex; gap: 40px; padding: 30px 0 40px; }
.p_view_photo {
    flex: 0 0 460px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f6;
}
.p_view_photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p_view_photo .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 40px; }

.p_view_info { flex: 1; min-width: 0; padding-top: 6px; }
.p_brand { display: inline-block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.p_badge { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 3px; padding: 2px 7px; }
.p_name { font-size: 22px; font-weight: 800; color: var(--text-strong); line-height: 1.4; margin-bottom: 16px; }

.p_price_box { padding-bottom: 18px; border-bottom: 1px solid var(--border2); margin-bottom: 18px; }
.p_price_before { font-size: 14px; color: var(--text-light); text-decoration: line-through; margin-bottom: 4px; }
.p_price_after { display: flex; align-items: baseline; gap: 8px; }
.p_price_after .percent { font-size: 22px; font-weight: 800; color: var(--accent); }
.p_price_after .won { font-size: 28px; font-weight: 800; color: var(--text-strong); }
.p_price_after .won_t { font-size: 16px; font-weight: 600; color: var(--text-strong); }

.p_info_table { margin-bottom: 20px; }
.p_info_table .row { display: flex; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--border2); }
.p_info_table .row dt { flex: 0 0 90px; color: var(--text-muted); }
.p_info_table .row dd { flex: 1; color: var(--text-dark); }

.p_buy_box { border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.qty_row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 14px; color: var(--text-dark); }
.counter_box { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.counter_box button { width: 32px; height: 32px; border: none; background: #fafafa; font-size: 16px; cursor: pointer; color: var(--text-dark); }
.counter_box input { width: 48px; height: 32px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 14px; }

.total_row { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; margin-bottom: 16px; }
.total_row span:first-child { font-size: 13px; color: var(--text-muted); margin-right: auto; }
.total_row strong { font-size: 22px; font-weight: 800; color: var(--accent2); }

.btn_row { display: flex; gap: 10px; }
.btn_row button { flex: 1; height: 46px; border-radius: 6px; font-size: 15px; font-weight: 700; cursor: pointer; border: 1px solid var(--accent2); }
.btn_cart { background: #fff; color: var(--accent2); }
.btn_cart:hover { background: #f0f7ff; }
.btn_order { background: var(--accent2); color: #fff; }
.btn_order:hover { background: #3a86e0; }

/* ===== 탭 ===== */
.p_tabs { padding: 50px 0 60px; }
.p_tab_nav { display: flex; gap: 8px; border-bottom: 2px solid var(--text-strong); margin-bottom: 30px; }
.p_tab_nav .tab { padding: 14px 22px; font-size: 15px; font-weight: 700; color: var(--text-muted); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.p_tab_nav .tab.active { color: var(--text-strong); border-bottom-color: var(--accent2); }
.p_tab_panel { display: none; }
.p_tab_panel.active { display: block; }

.product_common_notice { padding: 20px 0; font-size: 13px; line-height: 1.8; color: var(--text-dark); }
.product_common_notice:first-child { padding-top: 0; border-bottom: 1px solid var(--border2); margin-bottom: 10px; }
.product_common_notice:last-child:not(:first-child) { border-top: 1px solid var(--border2); margin-top: 10px; }
.product_common_notice ol, .product_common_notice ul { padding-left: 20px; }
.product_common_notice ol li { list-style-type: decimal; }
.product_common_notice ul li { list-style-type: disc; }
.product_common_notice p { margin: 0 0 10px; }

.disclosure_table { width: 100%; border-collapse: collapse; }
.disclosure_table th, .disclosure_table td { border: 1px solid var(--border); padding: 12px 16px; font-size: 13px; text-align: left; }
.disclosure_table th { width: 160px; background: #fafafa; color: var(--text-dark); font-weight: 600; }
.disclosure_table td { color: var(--text-dark); }

.guide_list { border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; }
.guide_list li { font-size: 14px; color: var(--text-dark); line-height: 1.9; }

@media (max-width: 900px) {
    .p_view { flex-direction: column; }
    .p_view_photo { flex: none; width: 100%; }
}

/* ===== 리뷰 탭 ===== */
.p_tab_nav .tab em { font-style: normal; color: var(--accent2); margin-left: 2px; }

.rv_summary {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 26px 30px;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 24px;
}
.rv_score { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 130px; }
.rv_score strong { font-size: 38px; font-weight: 800; color: var(--text-strong); line-height: 1; }
.rv_score .stars { color: #ffb400; font-size: 15px; letter-spacing: -1px; line-height: 1; }
.rv_total { font-size: 13px; color: var(--text-muted); }

.rv_dist { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.rv_dist li { display: flex; align-items: center; gap: 10px; }
.rv_dist_label { flex: none; width: 32px; font-size: 12px; color: var(--text-muted); }
.rv_dist_bar { flex: 1; height: 7px; background: #e8e8e8; border-radius: 4px; overflow: hidden; }
.rv_dist_bar i { display: block; height: 100%; background: #ffb400; border-radius: 4px; }
.rv_dist_cnt { flex: none; width: 32px; text-align: right; font-size: 12px; color: var(--text-muted); }

.rv_sort { display: flex; gap: 14px; margin-bottom: 8px; }
.rv_sort a { font-size: 13px; color: var(--text-muted); }
.rv_sort a.active { color: var(--text-strong); font-weight: 700; }
.rv_sort a:hover { color: var(--accent2); }

.rv_item { padding: 20px 2px; border-bottom: 1px solid var(--border); }
.rv_head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rv_head .stars { color: #ffb400; font-size: 13px; letter-spacing: -1px; line-height: 1; }
.rv_writer { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.rv_badge {
    font-size: 11px; font-weight: 700; color: var(--accent2);
    background: #eef5ff; border-radius: 100px; padding: 2px 8px;
}
.rv_badge.answered { color: #2ca85a; background: #ecf9f0; }

.qna_cta_row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 18px; margin-bottom: 16px; background: var(--bg-soft, #f9f9fa); border-radius: 8px;
}
.qna_cta_row p { font-size: 13px; color: var(--text-muted); margin: 0; }
.qna_my_title { color: var(--text-dark); font-size: 14px; }
.qna_my_title:hover { color: var(--accent2); }
.rv_date { font-size: 12px; color: var(--text-light); }
.rv_edited { font-size: 11px; color: var(--text-muted); background: #f2f2f2; border-radius: 100px; padding: 2px 8px; }

.rv_content { font-size: 14px; color: var(--text-dark); line-height: 1.7; white-space: pre-line; }
.rv_images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rv_images img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; }

.rv_reply { margin-top: 14px; padding: 14px 16px; background: #fafafa; border-radius: 8px; }
.rv_reply_head { display: block; font-size: 12px; font-weight: 700; color: var(--accent2); margin-bottom: 4px; }
.rv_reply p { font-size: 13px; color: var(--text-dark); line-height: 1.6; white-space: pre-line; }

@media (max-width: 640px) {
    .rv_summary { gap: 20px; padding: 20px; }
}

/* 옵션 선택 */
.opt_row { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.opt_row label { flex: none; width: 46px; font-size: 14px; color: var(--text-muted); }
.opt_row select {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
    background: #fff;
}
.opt_row select:focus { border-color: var(--accent2); outline: none; }

/* 전 옵션 품절 */
.p_soldout {
    padding: 26px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafafa;
    text-align: center;
}
.p_soldout i { font-size: 30px; color: var(--text-light); display: block; margin-bottom: 8px; }
.p_soldout strong { display: block; font-size: 17px; font-weight: 800; color: var(--text-strong); margin-bottom: 6px; }
.p_soldout p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
