/* ===== HEAD ===== */
.pm-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    padding: 32px 0 6px;
}
.pm-head-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #1255a4;
    margin-bottom: 6px;
}
.pm-head-title {
    font-size: 28px;
    font-weight: 800;
    color: #0d1b3e;
    margin-bottom: 6px;
}
.pm-head-desc { font-size: 13px; color: #888; }

.pm-btn-write {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1255a4;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.pm-btn-write:hover { background: #0e4491; }
.pm-btn-write svg { width: 16px; height: 16px; }

/* ===== 필터 ===== */
.pm-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.pm-filter-btn {
    background: #f0f4fb;
    color: #555;
    border: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    font-family: 'Paperozi', sans-serif;
}
.pm-filter-btn.active,
.pm-filter-btn:hover {
    background: #1255a4;
    color: #fff;
}

/* ===== 인스타 그리드 ===== */
.pm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* ===== 카드 ===== */
.pm-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eaeef6;
    transition: box-shadow 0.2s, transform 0.2s;
}
.pm-card:hover {
    box-shadow: 0 8px 32px rgba(18,85,164,0.13);
    transform: translateY(-4px);
}

.pm-card-img {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.pm-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.pm-card:hover .pm-card-img img { transform: scale(1.05); }

.pm-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}
.pm-card:hover .pm-card-overlay { opacity: 1; }

.pm-card-stats {
    display: flex;
    gap: 14px;
}
.pm-card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.pm-card-stats svg { width: 16px; height: 16px; }

.pm-genre-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1255a4;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ===== 카드 하단 정보 ===== */
.pm-card-info { padding: 14px 16px 16px; }

.pm-card-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.pm-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pm-card-user > span:nth-child(2) {
    font-size: 13px;
    font-weight: 700;
    color: #1a2a4a;
    flex: 1;
}
.pm-card-date {
    font-size: 11px;
    color: #aaa;
}

.pm-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0d1b3e;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pm-card-place {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}
.pm-card-place svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ===== 더보기 ===== */
.pm-more { text-align: center; padding: 8px 0 24px; }
.pm-btn-more {
    background: #fff;
    border: 1.5px solid #1255a4;
    color: #1255a4;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 48px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.pm-btn-more:hover { background: #1255a4; color: #fff; }

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
    .pm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pm-head { flex-direction: column; align-items: flex-start; }
    .pm-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pm-head-title { font-size: 22px; }
}
@media (max-width: 420px) {
    .pm-grid { grid-template-columns: 1fr; }
}
/* ===== HEAD ===== */
.pw-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.pw-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    padding: 8px 14px;
    border: 1.5px solid #e4eaf5;
    border-radius: 50px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.pw-back:hover { color: #1255a4; border-color: #1255a4; }
.pw-back svg { width: 15px; height: 15px; }
.pw-head-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1255a4;
    margin-bottom: 4px;
}
.pw-head-title {
    font-size: 24px;
    font-weight: 800;
    color: #0d1b3e;
    margin: 0;
}

/* ===== FORM ===== */
.pw-form { display: flex; flex-direction: column; gap: 0; }

.pw-section {
    background: #fff;
    border: 1.5px solid #e4eaf5;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 20px;
}
.pw-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #0d1b3e;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid #f0f4fb;
}

/* ===== 포스터 업로드 ===== */
.pw-upload-wrap { position: relative; }
.pw-file-input { display: none; }
.pw-upload-label {
    display: block;
    cursor: pointer;
}
.pw-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 220px;
    border: 2px dashed #c5d7f5;
    border-radius: 12px;
    background: #f5f8ff;
    transition: border-color 0.2s, background 0.2s;
}
.pw-upload-inner:hover,
.pw-upload-label:hover .pw-upload-inner {
    border-color: #1255a4;
    background: #eef3fc;
}
.pw-upload-inner svg { width: 48px; height: 48px; }
.pw-upload-text {
    font-size: 14px;
    font-weight: 700;
    color: #1255a4;
    margin: 0;
}
.pw-upload-hint { font-size: 12px; color: #aaa; }

.pw-upload-preview {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #e4eaf5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pw-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pw-upload-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.pw-upload-remove:hover { background: rgba(0,0,0,0.8); }
.pw-upload-remove svg { width: 13px; height: 13px; }

/* ===== 필드 ===== */
.pw-field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
}
.pw-field-full { grid-column: 1 / -1; }

.pw-field { display: flex; flex-direction: column; gap: 7px; }
.pw-field label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}
.pw-required { color: #1255a4; }

.pw-field input,
.pw-field select,
.pw-field textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: #1a2a4a;
    background: #f8fafd;
    border: 1.5px solid #dde6f5;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.pw-field input:focus,
.pw-field select:focus,
.pw-field textarea:focus {
    border-color: #1255a4;
    background: #fff;
}
.pw-field input::placeholder,
.pw-field textarea::placeholder { color: #bbb; }
.pw-field textarea { resize: vertical; min-height: 160px; line-height: 1.65; }
.pw-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%231255a4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer; }
.pw-field-hint { font-size: 11px; color: #bbb; margin-top: -2px; }

/* ===== 동의 ===== */
.pw-section-agree { padding: 20px 28px; }
.pw-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}
.pw-checkbox input { display: none; }
.pw-checkbox-box {
    width: 20px;
    height: 20px;
    border: 1.5px solid #c5d7f5;
    border-radius: 5px;
    flex-shrink: 0;
    background: #f5f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
.pw-checkbox input:checked + .pw-checkbox-box {
    background: #1255a4;
    border-color: #1255a4;
}
.pw-checkbox input:checked + .pw-checkbox-box::after {
    content: '';
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}
.pw-checkbox a { color: #1255a4; font-weight: 700; text-decoration: none; }
.pw-checkbox a:hover { text-decoration: underline; }

/* ===== 액션 버튼 ===== */
.pw-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}
.pw-btn-cancel {
    padding: 13px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #888;
    border: 1.5px solid #dde6f5;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.pw-btn-cancel:hover { border-color: #1255a4; color: #1255a4; }
.pw-btn-submit {
    padding: 13px 36px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: #1255a4;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.pw-btn-submit:hover { background: #0e4491; }

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .pw-section { padding: 22px 20px; }
    .pw-field-grid { grid-template-columns: 1fr; gap: 16px; }
    .pw-field-full { grid-column: 1; }
    .pw-upload-inner { height: 160px; }
    .pw-actions { flex-direction: column; }
    .pw-btn-cancel, .pw-btn-submit { text-align: center; }
    .pw-head-title { font-size: 20px; }
}
@media (max-width: 480px) {
    .pw-section { padding: 18px 16px; }
    .pw-head { gap: 10px; }
    .pw-head-title { font-size: 18px; }
    .pw-upload-preview { width: 140px; height: 140px; }
}
/* ===== 포스터 영역 좋아요/공유 ===== */
.pd-poster { position: relative; }
.pdp-like-wrap {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.pdp-like-btn,
.pdp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 1.5px solid #dde6f5;
    background: #fff;
    color: #888;
}
.pdp-like-btn svg,
.pdp-share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.pdp-like-btn:hover { border-color: #e53e3e; color: #e53e3e; }
.pdp-like-btn.liked { background: #fff0f0; border-color: #e53e3e; color: #e53e3e; }
.pdp-share-btn:hover { border-color: #1255a4; color: #1255a4; }

/* ===== 장르 태그 ===== */
.pdp-genre-tag {
    display: inline-block;
    background: #1255a4;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

/* ===== 하단 액션 버튼 ===== */
.pdp-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.pdp-btn-list {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    border: 1.5px solid #dde6f5;
    color: #888;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.pdp-btn-list:hover { border-color: #1255a4; color: #1255a4; }
.pdp-btn-contact {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    background: #1255a4;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}
.pdp-btn-contact:hover { background: #0e4491; }
.pdp-btn-contact svg { width: 15px; height: 15px; }

/* ===== 탭 뱃지 ===== */
.pd-tab em {
    display: inline-block;
    background: #1255a4;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
}
.pd-tab.active em { background: #fff; color: #1255a4; }

/* ===== 평점 별 ===== */
.pd-rv-score { display: flex; align-items: center; gap: 10px; padding: 20px 0 16px; }
.pd-rv-label { font-size: 13px; font-weight: 700; color: #555; }
.pd-rv-stars { display: flex; gap: 3px; }
.pd-rv-stars svg { width: 18px; height: 18px; }
.pd-rv-num { font-size: 22px; font-weight: 900; color: #1255a4; }

/* ===== 후기 바 ===== */
.pd-rv-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
    border-top: 1.5px solid #f0f4fb;
    border-bottom: 1.5px solid #f0f4fb;
    margin-bottom: 14px;
}
.pd-rv-count { font-size: 13px; color: #555; }
.pd-rv-count strong { color: #1255a4; }
.pd-rv-bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-rv-search { display: flex; align-items: center; gap: 0; border: 1.5px solid #dde6f5; border-radius: 8px; overflow: hidden; }
.pd-rv-sel {
    border: none;
    background: #f5f8ff;
    font-size: 12px;
    padding: 7px 10px;
    color: #555;
    cursor: pointer;
    outline: none;
}
.pd-rv-input {
    border: none;
    border-left: 1px solid #dde6f5;
    font-size: 12px;
    padding: 7px 10px;
    width: 140px;
    outline: none;
    color: #333;
}
.pd-rv-btn-search {
    border: none;
    background: #1255a4;
    padding: 7px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.pd-rv-btn-search svg { width: 15px; height: 15px; stroke: white; }
.pd-rv-btn-write {
    background: #1255a4;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.pd-rv-btn-write:hover { background: #0e4491; }

/* ===== 정렬 버튼 ===== */
.pd-rv-sort {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}
.pd-rv-sort-btn {
    background: none;
    border: none;
    font-size: 13px;
    color: #aaa;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.pd-rv-sort-btn.active,
.pd-rv-sort-btn:hover { background: #f0f4fb; color: #1255a4; }

/* ===== 후기 리스트 ===== */
.pd-rv-list { display: flex; flex-direction: column; }
.pd-rv-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f4fb;
}
.pd-rv-item:last-child { border-bottom: none; }
.pd-rv-item-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.pd-rv-item-stars { display: flex; gap: 2px; }
.pd-rv-item-stars svg { width: 12px; height: 12px; }
.pd-rv-item-meta { font-size: 12px; color: #aaa; }
.pd-rv-badge-buyer {
    display: inline-block;
    background: #e8f0fe;
    color: #1255a4;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 2px;
}
.pd-rv-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #0d1b3e;
    margin-bottom: 5px;
}
.pd-rv-item-body {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 10px;
}
.pd-rv-item-foot { display: flex; align-items: center; gap: 8px; }
.pd-rv-like {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1.5px solid #dde6f5;
    background: #fff;
    color: #aaa;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pd-rv-like svg { width: 14px; height: 14px; }
.pd-rv-like:hover { border-color: #e53e3e; color: #e53e3e; }
.pd-rv-like.liked { border-color: #e53e3e; color: #e53e3e; background: #fff0f0; }

/* ===== 판매정보 테이블 ===== */
.pd-sale-section { margin-bottom: 28px; }
.pd-sale-title {
    font-size: 15px;
    font-weight: 800;
    color: #0d1b3e;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f0f4fb;
    margin-bottom: 14px;
}
.pd-sale-text { font-size: 13px; color: #555; line-height: 1.8; }
.pd-sale-tbl-wrap { overflow-x: auto; }
.pd-sale-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.pd-sale-tbl th {
    background: #f5f8ff;
    color: #555;
    font-weight: 700;
    padding: 11px 14px;
    border: 1px solid #e4eaf5;
    white-space: nowrap;
    text-align: left;
}
.pd-sale-tbl td {
    padding: 11px 14px;
    border: 1px solid #e4eaf5;
    color: #333;
    line-height: 1.6;
}
.pd-cancel-tbl {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 12px;
}
.pd-cancel-tbl th {
    background: #eef3fc;
    color: #1255a4;
    padding: 8px 12px;
    border: 1px solid #dde6f5;
    font-weight: 700;
}
.pd-cancel-tbl td {
    padding: 8px 12px;
    border: 1px solid #dde6f5;
    color: #555;
    text-align: center;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .pd-top { flex-direction: column; }
    .pdp-actions { flex-direction: column; }
    .pd-rv-bar { flex-direction: column; align-items: flex-start; }
    .pd-rv-bar-right { width: 100%; flex-direction: column; align-items: flex-start; }
    .pd-rv-input { width: 100px; }
    .pdp-like-wrap { flex-direction: row; }
}
@media (max-width: 480px) {
    .pd-sale-tbl th, .pd-sale-tbl td { padding: 8px 10px; font-size: 12px; }
    .pd-rv-search { width: 100%; }
    .pd-rv-input { flex: 1; }
}
