/* 페이스튜디오 모바일 — 상품관리 (리스트 + 드래그 정렬 + 등록/수정 시트) */
.pm-prod-wrap { padding: 16px; }

.pm-prod-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pm-prod-count { font-size: 14px; color: var(--pm-sub); }
.pm-prod-count b { color: var(--pm-green); font-weight: 700; }
.pm-prod-add {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 15px;
    border-radius: 11px;
    background: var(--pm-green);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(15, 157, 110, .28);
}
.pm-prod-add i { font-size: 17px; }

/* 리스트 */
.pm-prod-list { display: flex; flex-direction: column; gap: 10px; }
.pm-prod {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--pm-card);
    border-radius: 14px;
    padding: 13px 14px;
    box-shadow: 0 2px 10px rgba(31, 41, 51, .05);
}
.pm-prod.sortable-ghost { opacity: .4; }
.pm-prod.sortable-chosen { box-shadow: 0 8px 20px rgba(31, 41, 51, .14); }
.pm-prod__handle { color: var(--pm-muted); font-size: 22px; flex: none; cursor: grab; touch-action: none; }
.pm-prod__body { flex: 1; min-width: 0; }
.pm-prod__name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-prod__price { font-size: 13px; color: var(--pm-sub); margin-top: 2px; }
.pm-prod__edit { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--pm-muted); font-size: 20px; flex: none; }
.pm-prod-hint { text-align: center; font-size: 12px; color: var(--pm-muted); margin-top: 14px; }

/* 빈 상태 */
.pm-empty-box { display: flex; flex-direction: column; align-items: center; gap: 11px; padding: 60px 24px; color: var(--pm-muted); }
.pm-empty-box__ic {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--pm-soft);
    color: var(--pm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}
.pm-empty-box p { font-size: 14px; }

/* ===== 바텀시트 (등록/수정) ===== */
.pm-sheet { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.pm-sheet__dim { position: absolute; inset: 0; background: rgba(15, 23, 30, .45); opacity: 0; transition: opacity .25s; }
.pm-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 500px;
    margin: 0 auto;
    background: var(--pm-card);
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.32, .72, 0, 1);
    max-height: 88vh;
    overflow-y: auto;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
.pm-sheet.is-open { visibility: visible; }
.pm-sheet.is-open .pm-sheet__dim { opacity: 1; }
.pm-sheet.is-open .pm-sheet__panel { transform: translateY(0); }
.pm-sheet__bar { width: 40px; height: 4px; border-radius: 2px; background: var(--pm-line); margin: 10px auto 0; }
.pm-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 8px; }
.pm-sheet__head strong { font-size: 17px; font-weight: 700; }
.pm-sheet__x { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--pm-sub); font-size: 22px; }
.pm-sheet__form { padding: 6px 20px 8px; display: flex; flex-direction: column; gap: 16px; }

.pm-ff { display: flex; flex-direction: column; gap: 9px; }
.pm-ff__label { font-size: 14px; font-weight: 600; }
.pm-prod__input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--pm-line);
    border-radius: 11px;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--pm-text);
    background: var(--pm-card);
}
.pm-prod__input:focus { outline: none; border-color: var(--pm-green); }

.pm-prod__save {
    width: 100%;
    height: 52px;
    border-radius: 13px;
    background: var(--pm-green);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(15, 157, 110, .3);
    margin-top: 4px;
}
.pm-prod__delete {
    width: 100%;
    height: 48px;
    border-radius: 13px;
    background: none;
    color: var(--pm-danger);
    font-size: 14px;
    font-weight: 500;
    display: none;
}
