﻿@charset "utf-8";
/* ============================================================
   레브슈슈 관리자 (LevChuChu Admin) 스타일시트
   ============================================================ */
:root {
  --ap: #FF6F91;
  --ap-d: #E5587A;
  --ap-soft: #FFEAF0;
  --aink: #2B2A35;
  --aink2: #6C6878;
  --aink3: #9B97A6;
  --abg: #F1EFF4;
  --aline: #E6E2EC;
  --aside: #262430;
  --amint: #34B89A;
  --aamber: #F0A431;
  --ared: #E0556B;
  --afont: "Pretendard Variable", "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--afont); background: var(--abg); color: var(--aink); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
form { display: block; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; }
img, svg { display: block; max-width: 100%; }

/* ---------- 로그인 ---------- */
.ani-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFE7EF, #E9E5F8); padding: 20px;
}
.ani-login__card {
  width: 100%; max-width: 400px; background: #fff; border-radius: 22px;
  box-shadow: 0 24px 60px rgba(43,42,53,.18); padding: 40px 36px;
}
.ani-login__logo {
  display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 8px;
}
.ani-login__mark {
  width: 46px; height: 46px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 5px 14px rgba(120,140,165,.3);
}
.ani-login__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ani-login__brand { font-size: 22px; font-weight: 800; }
.ani-login__brand b { color: var(--ap); }
.ani-login__title { text-align: center; font-size: 15px; color: var(--aink2); margin-bottom: 26px; font-weight: 600; }
.ani-login__field { margin-bottom: 14px; }
.ani-login__field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.ani-login .ani-input { width: 100%; }
.ani-login__msg {
  display: block; font-size: 13px; font-weight: 700; margin: 4px 0 14px;
  padding: 10px 14px; border-radius: 10px; background: #FDECEF; color: var(--ared);
}
.ani-login__msg:empty { display: none; }
.ani-login__hint {
  margin-top: 18px; text-align: center; font-size: 12px; color: var(--aink3);
  background: var(--abg); padding: 10px; border-radius: 10px;
}

/* ---------- 레이아웃 ---------- */
.ani-shell { display: flex; min-height: 100vh; }
.ani-side {
  width: 232px; flex-shrink: 0; background: var(--aside); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.ani-side__brand {
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 11px;
}
.ani-side__logo { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; object-fit: cover; display: block; }
.ani-side__brandtxt { font-size: 19px; font-weight: 800; line-height: 1.12; }
.ani-side__brand b { color: var(--ap); }
.ani-side__brand span {
  display: block; font-size: 10.5px; font-weight: 700; color: var(--aink3);
  letter-spacing: .14em; margin-top: 2px;
}
.ani-side__nav { padding: 14px 12px; flex: 1; }
.ani-side__nav a {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 11px;
  font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.66); margin-bottom: 3px;
  transition: background .15s ease, color .15s ease;
}
.ani-side__nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.ani-side__nav a.is-active { background: var(--ap); color: #fff; font-weight: 700; }
.ani-side__nav a .ico { width: 18px; height: 18px; flex-shrink: 0; }
.ani-side__site {
  margin: 12px; padding: 12px 14px; border-radius: 11px; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.78); text-align: center;
}
.ani-side__site:hover { background: rgba(255,255,255,.12); color: #fff; }

.ani-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ani-top {
  background: #fff; border-bottom: 1px solid var(--aline); padding: 0 28px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.ani-top__title { font-size: 17px; font-weight: 800; }
.ani-top__user { display: flex; align-items: center; gap: 14px; font-size: 13.5px; }
.ani-top__user b { color: var(--ap); }
.ani-main { padding: 28px; flex: 1; }

/* ---------- 페이지 헤더 ---------- */
.ani-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ani-head h1 { font-size: 23px; font-weight: 800; }
.ani-head p { font-size: 13.5px; color: var(--aink2); margin-top: 4px; }

/* ---------- 카드 ---------- */
.ani-card {
  background: #fff; border: 1px solid var(--aline); border-radius: 16px;
  padding: 22px 24px; margin-bottom: 20px;
}
.ani-card__title { font-size: 16px; font-weight: 800; margin-bottom: 16px; }

/* ---------- 통계 ---------- */
.ani-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 22px; }
.ani-stat {
  background: #fff; border: 1px solid var(--aline); border-radius: 16px; padding: 20px 22px;
}
.ani-stat__label { font-size: 13px; color: var(--aink2); font-weight: 600; }
.ani-stat__num { font-size: 32px; font-weight: 900; margin-top: 6px; letter-spacing: -.02em; }
.ani-stat__num span { font-size: 16px; color: var(--aink3); }
.ani-stat--pink .ani-stat__num { color: var(--ap); }
.ani-stat--mint .ani-stat__num { color: var(--amint); }
.ani-stat--amber .ani-stat__num { color: var(--aamber); }

/* ---------- 버튼 ---------- */
.ani-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
  cursor: pointer; border: 1.5px solid transparent; transition: all .14s ease; white-space: nowrap;
  font-family: inherit;
}
.ani-btn--primary { background: var(--ap); color: #fff; }
.ani-btn--primary:hover { background: var(--ap-d); }
.ani-btn--ghost { background: #fff; color: var(--aink); border-color: var(--aline); }
.ani-btn--ghost:hover { border-color: var(--ap); color: var(--ap-d); }
.ani-btn--dark { background: var(--aink); color: #fff; }
.ani-btn--dark:hover { background: #1b1a24; }
.ani-btn--danger { background: #fff; color: var(--ared); border-color: #F0CDD3; }
.ani-btn--danger:hover { background: var(--ared); color: #fff; border-color: var(--ared); }
.ani-btn--sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.ani-btn--lg { padding: 13px 24px; font-size: 15px; }
.ani-btn--block { width: 100%; }

/* ---------- 폼 ---------- */
.ani-input, .ani-select, .ani-textarea {
  width: 100%; border: 1.5px solid var(--aline); border-radius: 10px; padding: 10px 13px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--aink);
  transition: border-color .14s ease;
}
.ani-input:focus, .ani-select:focus, .ani-textarea:focus { outline: none; border-color: var(--ap); }
.ani-textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.ani-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.ani-field { margin-bottom: 4px; }
.ani-field--full { grid-column: 1 / -1; }
.ani-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.ani-field label i { color: var(--ap); font-style: normal; }
.ani-field .hint { font-size: 11.5px; color: var(--aink3); margin-top: 4px; }
.ani-form-actions { display: flex; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--aline); }

/* ---------- 테이블 ---------- */
.ani-table { width: 100%; border-collapse: collapse; background: #fff; }
.ani-table th, .ani-table td {
  padding: 13px 14px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--aline);
  vertical-align: middle;
}
.ani-table th {
  background: #FAF8FC; font-weight: 800; color: var(--aink2); font-size: 12.5px;
  white-space: nowrap;
}
.ani-table tr:hover td { background: #FCFAFE; }
.ani-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ani-table td.center { text-align: center; }
.ani-table__media {
  width: 46px; height: 46px; border-radius: 10px; padding: 6px; display: grid; place-items: center;
}
.ani-tablewrap { border: 1px solid var(--aline); border-radius: 14px; overflow: hidden; }
.ani-table tr:last-child td { border-bottom: 0; }

/* ---------- 배지 / 칩 ---------- */
.ani-badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800;
}
.ani-badge--on { background: #E1F4EF; color: #1d8a72; }
.ani-badge--off { background: #F0EDF2; color: var(--aink3); }
.ani-badge--BEST { background: var(--aink); color: #fff; }
.ani-badge--NEW { background: var(--amint); color: #fff; }
.ani-badge--SALE { background: var(--ap); color: #fff; }
.ani-pill {
  display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 700;
  background: var(--ap-soft); color: var(--ap-d);
}

/* ---------- 알림 ---------- */
.ani-alert {
  padding: 12px 16px; border-radius: 11px; font-size: 13.5px; font-weight: 700; margin-bottom: 18px;
}
.ani-alert--ok { background: #E2F5EF; color: #1d8a72; }
.ani-alert--err { background: #FDECEF; color: var(--ared); }
.ani-alert:empty { display: none; }

/* ---------- 토글 스위치 (체크박스) ---------- */
.ani-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ani-check input { width: 18px; height: 18px; accent-color: var(--ap); cursor: pointer; }

/* ---------- 유틸 ---------- */
.ani-row-actions { display: flex; gap: 6px; }
.ani-muted { color: var(--aink3); }
.ani-empty { text-align: center; padding: 50px 20px; color: var(--aink3); font-size: 14px; }
.is-hidden { display: none !important; }

/* ---------- 사이트 설정 — 리스트 편집기 ---------- */
.ss-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.ss-row .ani-input { flex: 1; }
.ss-slide { border: 1px solid var(--aline); border-radius: 12px; padding: 14px 16px 4px; margin-bottom: 14px; background: #FBFAFC; }
.ss-slide__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ss-slide__num { font-size: 13.5px; font-weight: 800; color: var(--ap-d); }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .ani-side { width: 64px; }
  .ani-side__nav a span, .ani-side__site { font-size: 0; }
  .ani-side__brand { padding: 16px 0; justify-content: center; }
  .ani-side__brandtxt { display: none; }
  .ani-side__nav a { justify-content: center; padding: 14px 0; }
  .ani-stats { grid-template-columns: repeat(2,1fr); }
  .ani-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ani-main { padding: 18px; }
  .ani-top { padding: 0 16px; }
  .ani-stats { grid-template-columns: 1fr; }
  .ani-table th, .ani-table td { padding: 10px 9px; font-size: 12.5px; }
}

/* ---------- 상품 이미지 업로드 ---------- */
.ani-imgup { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ani-imgup__preview {
  width: 116px; height: 116px; flex-shrink: 0; border-radius: 12px;
  border: 1.5px solid var(--aline); background: #FAF8FC;
  display: grid; place-items: center; overflow: hidden;
}
.ani-imgup__preview img { width: 100%; height: 100%; object-fit: cover; }
.ani-imgup__none { font-size: 11px; font-weight: 700; color: var(--aink3); text-align: center; line-height: 1.5; }
.ani-imgup__body { flex: 1; min-width: 230px; }
.ani-imgup__body input[type=file] { padding: 8px 10px; font-size: 13px; cursor: pointer; }
.ani-imgup__del { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--aink2); }

/* ---------- 상품 목록 셀 (썸네일 + 텍스트) ---------- */
.ani-prodcell { display: flex; align-items: center; gap: 11px; }
.ani-prodcell__thumb {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--aline); background: #FAF8FC; display: grid; place-items: center;
}
.ani-prodcell__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ani-prodcell__thumb i { font-size: 10.5px; font-style: normal; font-weight: 700; color: var(--aink3); }
.ani-prodcell__txt { min-width: 0; }

/* ---------- 모달 (수정 / 추가 팝업) ---------- */
.ani-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: flex-start; justify-content: center;
  background: rgba(38,36,48,.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  padding: 38px 18px; overflow-y: auto;
}
.ani-modal.is-open { display: flex; }
.ani-modal__panel {
  width: 100%; max-width: 760px; margin: auto; background: #fff;
  border-radius: 18px; box-shadow: 0 30px 70px rgba(38,36,48,.42);
  animation: aniModalIn .22s ease;
}
@keyframes aniModalIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.ani-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 22px; border-bottom: 1px solid var(--aline);
}
.ani-modal__title { font-size: 16px; font-weight: 800; }
.ani-modal__x {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px;
  font-size: 22px; line-height: 1; color: var(--aink2);
  display: grid; place-items: center;
}
.ani-modal__x:hover { background: var(--abg); color: var(--aink); }
.ani-modal__body { padding: 22px; }
.ani-modal__foot {
  display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--aline);
}
body.ani-noscroll { overflow: hidden; }
@media (max-width: 620px) {
  .ani-modal { padding: 0; }
  .ani-modal__panel { border-radius: 0; min-height: 100vh; }
}

/* ---------- 카테고리 탭 (상품 관리) ---------- */
.ani-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ani-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
  background: #fff; border: 1.5px solid var(--aline); color: var(--aink2);
  cursor: pointer; font-family: inherit; transition: all .14s ease; white-space: nowrap;
}
.ani-tab:hover { border-color: var(--ap); color: var(--ap-d); }
.ani-tab.is-on { background: var(--ap); border-color: var(--ap); color: #fff; }
.ani-tab span {
  font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px;
  background: var(--abg); color: var(--aink2);
}
.ani-tab.is-on span { background: rgba(255,255,255,.24); color: #fff; }

/* ---------- 상세 정보 이미지 미리보기 ---------- */
.ani-detgrid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ani-detgrid:empty { display: none; }
.ani-detgrid img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--aline);
}

/* ---------- 특징 카드 편집기 (＋/− 박스) ---------- */
.ani-feats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ani-feats:empty { display: none; }
.ani-feat {
  display: flex; gap: 8px; align-items: stretch;
  background: #FAF8FC; border: 1px solid var(--aline); border-radius: 11px; padding: 10px;
}
.ani-feat__fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ani-feat__t { font-weight: 700; }
.ani-feat__del {
  width: 38px; flex-shrink: 0; border-radius: 9px;
  border: 1.5px solid #F0CDD3; background: #fff; color: var(--ared);
  font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; font-family: inherit;
}
.ani-feat__del:hover { background: var(--ared); color: #fff; border-color: var(--ared); }

/* ---------- 색상 옵션 편집기 (컬러 피커 + 핵사코드) ---------- */
.ani-colors { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ani-colors:empty { display: none; }
.ani-color {
  display: flex; gap: 8px; align-items: center;
  background: #FAF8FC; border: 1px solid var(--aline); border-radius: 11px; padding: 8px 10px;
}
.ani-color__pick {
  width: 46px; height: 44px; flex-shrink: 0; padding: 2px; cursor: pointer;
  border: 1.5px solid var(--aline); border-radius: 9px; background: #fff;
}
.ani-color__hex { width: 96px; flex-shrink: 0; text-align: center; }
.ani-color__name { flex: 1; min-width: 0; }
.ani-color__del { height: 44px; }

/* ---------- 테마 색상 스와치 ---------- */
.ani-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.ani-theme { cursor: pointer; }
.ani-theme input { position: absolute; opacity: 0; width: 0; height: 0; }
.ani-theme__body {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 13px 8px 9px; border-radius: 10px;
  border: 1.5px solid var(--aline); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--aink2);
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.ani-theme:hover .ani-theme__body { border-color: var(--ap); }
.ani-theme input:checked + .ani-theme__body {
  border-color: var(--ap); background: var(--ap-soft); color: var(--ap-d);
}
.ani-theme__dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
