/* ============================================================
 * skin/board/hive_event_user/style.css
 * 이벤트·시술 예약 게시판 공통 바탕 (목록 / 상세 / 글쓰기)
 * 시술 스킨(hive_care_user)도 이 파일을 먼저 싣고 자기 특화 규칙만 더한다.
 *
 * 확정 스타일 v2 (2026-10-02): 회색 묶음 바탕 + 흰 카드, 알약 버튼, 세그먼트, 선 아이콘.
 * 글자: 제목 22 · 항목 15~16 · 본문 14 · 설명 12 (12 아래는 배지만 11.5)
 * 빌더 값: --hev-main(사이트 색) --hev-card-bg --hev-card-radius --hev-card-gap --hev-grid-ratio --hev-insta-ratio
 *   + lib hive_board_v2_tokens 가 넣는 --hev-tx/tx2/tx3/line/group/surface/soft, 바꾼 값만 들어오는 --hev-o-*
 *   (o-title-size, o-title-weight, o-body-size, o-lh, o-shadow, o-border, o-gap, o-tx-mid). 없으면 아래 v2 기본값.
 * ============================================================ */

.hev-wrap {
    --hev-main: var(--index_color, var(--main, var(--hv-main, #9b8056)));
    --hev-ink: color-mix(in srgb, var(--hev-main) 60%, #000);
    --hev-tint: color-mix(in srgb, var(--hev-main) 12%, #fff);
    --hev-group: #f5f5f7;
    --hev-line: rgba(60,60,67,.12);
    --hev-soft: rgba(118,118,128,.12);
    --hev-soft2: rgba(118,118,128,.2);
    --hev-surface: #fff;
    --hev-tx: #1d1d1f;
    --hev-tx2: #6e6e73;
    --hev-tx3: #8e8e93;
    --hev-sale: #d23f31;
    /* 사이트 색 위 글자: 밝은 색이면 진한 글자, 어두운 색이면 흰 글자(대비 확보) */
    --hev-on: #fff;
    max-width:1280px; margin:24px auto; padding:0 16px; box-sizing:border-box;
    font-family:'Pretendard Variable','Pretendard','Noto Sans KR',-apple-system,BlinkMacSystemFont,sans-serif;
    color:var(--hev-tx); word-break:keep-all; overflow-wrap:break-word;
}
@supports (color: oklch(from red l c h)) {
    .hev-wrap { --hev-on: oklch(from var(--hev-main) clamp(0, (0.6 - l) * 1000, 1) 0 0); }
}
.hev-wrap *, .hev-wrap *::before, .hev-wrap *::after { box-sizing:border-box; }
.hev-wrap :is(a,button,input,select):focus-visible { outline:2px solid var(--hev-main); outline-offset:2px; }

/* ===== 관리자 도구 ===== */
.hev-admin-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:16px; padding:10px 14px; border-radius:14px; background:#fff8e8; font-size:13px; }
.hev-admin-label { margin-right:6px; color:#5a4a20; font-weight:600; }
.hev-toggle { color:var(--hev-tx2); }
.hev-toggle a { padding:4px 10px; border-radius:8px; color:var(--hev-tx3); text-decoration:none; }
.hev-toggle a.on { background:var(--hev-main); color:var(--hev-on); }
.hev-admin-bar .hev-admin-btn:last-of-type { margin-left:auto; }
.hev-admin-btn { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:0 14px; border:0; border-radius:18px; background:var(--hev-main); color:var(--hev-on); font:inherit; font-size:13px; font-weight:600; text-decoration:none; cursor:pointer; }
.hev-admin-btn.outline { background:var(--hev-soft); color:var(--hev-tx); }
.hev-admin-btn.danger { background:rgba(210,63,49,.1); color:var(--hev-sale); }

/* ===== 분류: 가로로 넘기는 알약 ===== */
.hev-cats { display:flex; gap:8px; margin:0 0 16px; padding:2px 0; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.hev-cats::-webkit-scrollbar { display:none; }
.hev-cat { flex:0 0 auto; display:inline-flex; align-items:center; gap:4px; min-height:36px; padding:0 16px; border-radius:18px; background:var(--hev-soft); color:var(--hev-o-tx-mid,#3a3a3c); font-size:14px; font-weight:600; text-decoration:none; white-space:nowrap; transition:background-color .2s ease, color .2s ease; }
.hev-cat:hover { background:var(--hev-soft2); }
.hev-cat.active { background:var(--hev-main); color:var(--hev-on); }
.hev-cat .cnt { color:var(--hev-tx3); font-size:12px; font-weight:500; }
.hev-cat.active .cnt { color:inherit; opacity:.72; }

/* ===== 제목줄·도구 ===== */
.hev-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.hev-title { margin:0; font-size:22px; font-weight:700; letter-spacing:-.02em; }
.hev-title small { margin-left:8px; color:var(--hev-tx2); font-size:14px; font-weight:500; }
.hev-toolbar-right { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.hev-search { display:flex; align-items:center; gap:6px; }
.hev-search select, .hev-sort {
    height:40px; padding:0 32px 0 14px; border:0; border-radius:20px; background-color:var(--hev-soft); color:var(--hev-tx);
    font:inherit; font-size:14px; cursor:pointer; appearance:none; -webkit-appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236e6e73' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
    background-repeat:no-repeat; background-position:right 14px center;
}
/* 화면 읽기 전용(sound_only)으로 숨긴 정렬 칸은 위 모양 규칙이 크기를 주지 않게 다시 숨긴다 */
.hev-wrap .sound_only { position:absolute !important; width:1px !important; height:1px !important; margin:0 !important; padding:0 !important; overflow:hidden !important; clip:rect(0 0 0 0) !important; border:0 !important; white-space:nowrap !important; }
.hev-search input[type="text"] {
    height:40px; min-width:200px; padding:0 14px 0 38px; border:0; border-radius:20px; background-color:var(--hev-soft); color:var(--hev-tx); font:inherit; font-size:14px;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/></svg>");
    background-repeat:no-repeat; background-position:left 14px center;
}
.hev-search input[type="text"]:focus { outline:none; box-shadow:0 0 0 2px var(--hev-main); }
.hev-search button { height:40px; padding:0 18px; border:0; border-radius:20px; background:var(--hev-main); color:var(--hev-on); font:inherit; font-size:14px; font-weight:600; cursor:pointer; }

/* ===== 담기 토글(둥근 ＋/✓): 시술 목록·상세 공용. 켜지면 사이트 색 + 자동 글자색 ===== */
.hev-row-toggle, .care-product-toggle { display:inline-flex; flex:0 0 36px; align-items:center; justify-content:center; width:36px; height:36px; margin:0; padding:0; border:0; border-radius:50%; background:var(--hev-soft); color:var(--hev-o-tx-mid,#3a3a3c); cursor:pointer; transition:background-color .2s ease, color .2s ease, transform .15s ease; }
.hev-row-toggle svg, .care-product-toggle svg { width:18px; height:18px; }
.hev-tg-on { display:none; }
.hev-row-check:checked ~ .hev-row-toggle, .care-product-toggle[aria-pressed="true"] { background:var(--hev-main); color:var(--hev-on); }
.hev-row-check:checked ~ .hev-row-toggle .hev-tg-add, .care-product-toggle[aria-pressed="true"] .hev-tg-add { display:none; }
.hev-row-check:checked ~ .hev-row-toggle .hev-tg-on, .care-product-toggle[aria-pressed="true"] .hev-tg-on { display:block; }
.hev-row-toggle:active, .care-product-toggle:active { transform:scale(.92); }
.hev-row-check:focus-visible ~ .hev-row-toggle, .care-product-toggle:focus-visible { outline:2px solid var(--hev-main); outline-offset:2px; }

/* ===== 정원·마감 ===== */
.hev-cap { position:relative; height:6px; margin:8px 0 4px; overflow:hidden; border-radius:3px; background:var(--hev-soft); }
.hev-cap-bar { height:100%; border-radius:3px; background:var(--hev-main); transition:width .3s ease; }
.hev-cap small { display:block; margin-top:6px; color:var(--hev-tx2); font-size:12px; }
.hev-dday { position:absolute; top:10px; left:10px; z-index:2; padding:4px 9px; border-radius:999px; background:var(--hev-sale); color:#fff; font-size:11.5px; font-weight:700; }

/* ===== 목록형: 회색 묶음 안에 줄 단위 ===== */
.hev-list { overflow:hidden; border-radius:var(--hev-card-radius,16px); background:var(--hev-card-bg,var(--hev-group)); }
.hev-row { position:relative; display:flex; align-items:center; gap:16px; padding:16px 18px; }
.hev-row + .hev-row::before { content:""; position:absolute; top:0; right:0; left:18px; height:1px; background:var(--hev-line); }
.hev-row-thumb { position:relative; display:block; flex:0 0 112px; width:112px; height:112px; border-radius:14px; background:#e5e5ea center/cover no-repeat; }
.hev-row-body { flex:1 1 auto; min-width:0; }
.hev-row-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:6px; color:var(--hev-tx2); font-size:12px; }
.hev-row-cat { color:var(--hev-ink); font-weight:600; }
.hev-row-period { color:var(--hev-tx2); }
.hev-row-title { display:block; margin-bottom:4px; color:var(--hev-tx); font-size:var(--hev-o-title-size,16px); font-weight:var(--hev-o-title-weight,600); line-height:1.4; text-decoration:none; }
.hev-row-title:hover { color:var(--hev-ink); }
.hev-row-note { margin:0; color:var(--hev-tx2); font-size:var(--hev-o-body-size,14px); line-height:var(--hev-o-lh,1.5); }
.hev-row-right { display:flex; flex:0 0 auto; flex-direction:column; align-items:flex-end; gap:6px; min-width:140px; text-align:right; }
.hev-row-price-old { color:var(--hev-tx3); font-size:12px; text-decoration:line-through; }
.hev-row-price { color:var(--hev-tx); font-size:18px; font-weight:700; }
.hev-row-off { margin-right:4px; color:var(--hev-sale); font-weight:700; }
.hev-row-actions { display:flex; gap:6px; justify-content:flex-end; margin-top:4px; }

/* ===== 그리드형 ===== */
.hev-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--hev-o-gap,var(--hev-card-gap,18px)); }
@media (min-width:1025px){
    .hev-grid:has(.hev-card:nth-child(1):last-child),
    .hev-grid:has(.hev-card:nth-child(2):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:1024px){ .hev-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px){ .hev-grid { grid-template-columns:minmax(0,1fr); } }
.hev-card { overflow:hidden; border:var(--hev-o-border,0); border-radius:var(--hev-card-radius,16px); background:var(--hev-card-bg,#fff); box-shadow:var(--hev-o-shadow,0 1px 2px rgba(0,0,0,.04),0 6px 20px rgba(0,0,0,.05)); transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease; }
.hev-card:hover { transform:translateY(-3px); box-shadow:0 2px 4px rgba(0,0,0,.05),0 12px 28px rgba(0,0,0,.08); }
/* 빌더 카드 호버 옵션(card_hover): 기본 lift 는 위 규칙 */
.hev-wrap[data-card-hover="none"] .hev-card:hover { transform:none; box-shadow:var(--hev-o-shadow,0 1px 2px rgba(0,0,0,.04),0 6px 20px rgba(0,0,0,.05)); }
.hev-wrap[data-card-hover="scale"] .hev-card:hover { transform:scale(1.02); }
.hev-wrap[data-card-hover="color"] .hev-card:hover { transform:none; box-shadow:0 0 0 2px var(--hev-main); }
.hev-wrap[data-card-hover="overlay"] .hev-card:hover { transform:none; }
.hev-wrap[data-card-hover="overlay"] .hev-card:hover .hev-card-thumb { filter:brightness(.86); }
.hev-card-thumb { position:relative; display:block; width:100%; aspect-ratio:var(--hev-grid-ratio,4 / 3); background:#e5e5ea center/cover no-repeat; }
.hev-card-body { padding:16px 18px 18px; }
.hev-card-cat { margin-bottom:4px; color:var(--hev-ink); font-size:12px; font-weight:600; }
.hev-card-title { display:block; color:var(--hev-tx); font-size:var(--hev-o-title-size,16px); font-weight:var(--hev-o-title-weight,600); line-height:1.4; text-decoration:none; }
.hev-card-note { margin:6px 0; color:var(--hev-tx2); font-size:var(--hev-o-body-size,14px); line-height:var(--hev-o-lh,1.5); }
.hev-card-price { display:flex; align-items:baseline; gap:6px; margin-top:8px; }
.hev-card-price .strike { color:var(--hev-tx3); font-size:12px; text-decoration:line-through; }
.hev-card-price .price { color:var(--hev-tx); font-size:18px; font-weight:700; }

/* 썸네일형: 글자를 이미지 위에서 호버로 */
.hev-text-hover .hev-grid .hev-card { position:relative; aspect-ratio:var(--hev-grid-ratio,4 / 3); isolation:isolate; }
.hev-text-hover .hev-grid .hev-card-thumb { position:absolute; inset:0; z-index:0; height:auto; aspect-ratio:auto; border-radius:inherit; }
.hev-text-hover .hev-grid .hev-card-body { position:absolute; inset:0; z-index:2; display:flex; flex-direction:column; justify-content:flex-end; padding:18px; background:linear-gradient(180deg,rgba(0,0,0,.04) 20%,rgba(0,0,0,.84) 100%); color:#fff; opacity:0; visibility:hidden; transform:translateY(8px); pointer-events:none; transition:opacity .25s ease,visibility .25s ease,transform .25s ease; }
.hev-text-hover .hev-grid .hev-card:hover .hev-card-body,
.hev-text-hover .hev-grid .hev-card:focus-within .hev-card-body { opacity:1; visibility:visible; transform:none; }
.hev-text-hover .hev-grid :is(.hev-card-cat,.hev-card-title,.hev-card-note,.hev-card-price .price,.hev-card-price .strike) { color:#fff; }
.hev-text-hover .hev-grid :is(.hev-card-title,.hev-card-body button) { pointer-events:auto; }
.hev-text-hover .hev-grid .hev-cap { background:rgba(255,255,255,.25); }
.hev-text-hover .hev-grid .hev-cap small { color:rgba(255,255,255,.85); }

/* ===== 인스타형: 이미지 위 글자 ===== */
.hev-insta-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--hev-o-gap,var(--hev-card-gap,18px)); }
@media (max-width:1024px){ .hev-insta-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.hev-insta-card { position:relative; min-width:0; aspect-ratio:var(--hev-insta-ratio,1 / 1); overflow:hidden; border-radius:var(--hev-card-radius,16px); background:#d8d3cb center/cover no-repeat; isolation:isolate; }
.hev-insta-card::before { content:""; position:absolute; inset:0; z-index:0; background:linear-gradient(180deg,rgba(0,0,0,0) 35%,rgba(0,0,0,.82) 100%); transition:opacity .25s ease; }
.hev-insta-link { position:absolute; inset:0; z-index:1; }
.hev-insta-card .hev-dday { z-index:3; }
.hev-insta-overlay { position:absolute; inset:auto 0 0; z-index:2; padding:20px; color:#fff; pointer-events:none; }
.hev-insta-cat { margin-bottom:6px; font-size:12px; font-weight:700; opacity:.85; }
.hev-insta-title { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; color:#fff; font-size:var(--hev-o-title-size,18px); font-weight:var(--hev-o-title-weight,700); line-height:1.35; text-decoration:none; pointer-events:auto; }
.hev-insta-note { display:-webkit-box; overflow:hidden; margin-top:6px; -webkit-box-orient:vertical; -webkit-line-clamp:2; color:rgba(255,255,255,.85); font-size:var(--hev-o-body-size,13px); line-height:var(--hev-o-lh,1.45); }
.hev-insta-price { display:flex; align-items:baseline; gap:7px; margin-top:9px; }
.hev-insta-price small { color:rgba(255,255,255,.62); font-size:12px; text-decoration:line-through; }
.hev-insta-price strong { color:#fff; font-size:17px; }
.hev-insta-actions { display:flex; gap:6px; margin-top:12px; pointer-events:auto; }
.hev-insta-actions :is(.hev-btn-add,.hev-btn-book) { flex:1 1 0; min-width:0; }
.hev-insta-actions .hev-btn-add { background:rgba(255,255,255,.92); color:var(--hev-tx); }
.hev-text-hover .hev-insta-card::before { opacity:0; }
.hev-text-hover .hev-insta-overlay { opacity:0; visibility:hidden; transform:translateY(10px); transition:opacity .25s ease,visibility .25s ease,transform .25s ease; }
.hev-text-hover .hev-insta-card:is(:hover,:focus-within)::before { opacity:1; }
.hev-text-hover .hev-insta-card:is(:hover,:focus-within) .hev-insta-overlay { opacity:1; visibility:visible; transform:none; }
@media (hover:none){
    .hev-text-hover .hev-grid .hev-card-body,
    .hev-text-hover .hev-insta-overlay { opacity:1; visibility:visible; transform:none; }
    .hev-text-hover .hev-insta-card::before { opacity:1; }
}

/* ===== 담기·예약 버튼(알약) ===== */
.hev-btn-add, .hev-btn-book { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-height:38px; padding:0 16px; border:0; border-radius:19px; font:inherit; font-size:14px; font-weight:600; line-height:1.2; text-decoration:none; cursor:pointer; transition:background-color .2s ease, color .2s ease, transform .15s ease; }
.hev-btn-add:active, .hev-btn-book:active { transform:scale(.97); }
.hev-btn-add { background:var(--hev-soft); color:var(--hev-tx); }
.hev-btn-add:hover { background:var(--hev-soft2); }
.hev-btn-add.added { background:var(--hev-main); color:var(--hev-on); }
.hev-btn-book { background:var(--hev-main); color:var(--hev-on); }
.hev-btn-book:hover { filter:brightness(1.05); }
.hev-card-body :is(.hev-btn-add,.hev-btn-book) { width:100%; margin-top:6px; }

.hev-empty { padding:72px 20px; border-radius:16px; background:var(--hev-group); color:var(--hev-tx2); font-size:14px; text-align:center; }

/* ===== 페이지 번호 ===== */
.hev-paging { margin:28px 0 20px; text-align:center; }
.hev-paging .pg_wrap { display:inline-flex; flex-wrap:wrap; justify-content:center; gap:4px; }
.hev-paging :is(.pg_page,.pg_current,.pg_start,.pg_prev,.pg_end,.pg_next) { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:0 10px; border:0; border-radius:18px; background:transparent; color:var(--hev-tx2); font-size:14px; text-decoration:none; transition:background-color .15s ease; }
.hev-paging :is(.pg_page,.pg_start,.pg_prev,.pg_end,.pg_next):hover { background:var(--hev-soft); color:var(--hev-tx); }
.hev-paging .pg_current { background:var(--hev-main); color:var(--hev-on); font-weight:700; }

/* ===== 상세 ===== */
.hev-view { padding:32px; border-radius:20px; background:var(--hev-surface,#fff); }
.hev-view-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.hev-view-back { display:inline-flex; align-items:center; gap:4px; min-height:36px; padding:0 14px; border-radius:18px; background:var(--hev-soft); color:var(--hev-tx); font-size:13px; font-weight:600; text-decoration:none; }
.hev-view-actions { display:flex; gap:6px; }
.hev-view-grid { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:32px; align-items:start; }
.hev-view-grid--content-only { grid-template-columns:minmax(0,1fr); }
.hev-view-side { position:sticky; top:96px; align-self:start; }
.hev-view-cat { margin-bottom:8px; color:var(--hev-ink); font-size:13px; font-weight:600; }
.hev-view-title { margin:0 0 10px; font-size:28px; font-weight:700; line-height:1.3; letter-spacing:-.02em; }
.hev-view-note { margin:0 0 16px; color:var(--hev-tx2); font-size:15px; line-height:1.6; }
.hev-view-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; padding:12px 16px; border-radius:14px; background:var(--hev-group); color:var(--hev-tx2); font-size:13px; }
.hev-view-period { display:inline-flex; align-items:center; gap:6px; }
.hev-dday-text { padding:3px 10px; border-radius:999px; background:var(--hev-sale); color:#fff; font-size:12px; font-weight:700; }
.hev-view-content { margin-top:28px; color:var(--hev-o-tx-mid,#333); font-size:var(--hev-o-body-size,16px); line-height:var(--hev-o-lh,1.75); }
.hev-view-content :is(img) { display:block; width:auto; max-width:100% !important; height:auto !important; margin-right:auto; margin-left:auto; border-radius:12px; object-fit:contain; }
.hev-view-content :is(figure, p:has(> img)) { width:100% !important; max-width:none !important; }
.hev-view-content figure { margin:0 0 12px; }
.hev-view-content :is(table,iframe,video) { max-width:100% !important; height:auto; }
.hev-view-content iframe { width:100%; aspect-ratio:16/9; }
.hev-view-images { display:flex; flex-direction:column; gap:10px; margin-bottom:20px; }
.hev-view-images img { display:block; max-width:100%; height:auto; margin:0 auto; border-radius:12px; }
.hev-view-attachments { margin-top:28px; }
.hev-view-attachments :is(h2,h3,h4) { margin:0 0 8px; color:var(--hev-tx2); font-size:13px; font-weight:600; }
.hev-view-file { display:block; margin-bottom:6px; padding:10px 14px; border-radius:12px; background:var(--hev-group); color:var(--hev-tx); font-size:14px; text-decoration:none; }
.hev-view-file:hover { background:var(--hev-soft); }
.hev-alt-cta-card { display:grid; gap:18px; }
.hev-alt-cta-title { margin:0; color:var(--hev-tx); font-size:18px; line-height:1.45; }
.hev-alt-cta__button { display:inline-flex; align-items:center; justify-content:center; gap:9px; width:100%; min-height:52px; padding:12px 24px; border-radius:26px; background:var(--hev-main); color:var(--hev-on); font-size:16px; font-weight:700; text-align:center; text-decoration:none; }
.hev-alt-cta__button svg { flex:0 0 22px; width:22px; height:22px; fill:currentColor; }
.hev-alt-cta__button:hover { color:var(--hev-on); filter:brightness(1.05); }
.hev-alt-cta__button--k, .hev-alt-cta__button--k:hover { background:#fee500; color:#191919; }
.hev-alt-cta__button--v { background:#03c75a; }
.hev-alt-cta__button--t { background:#0068d6; }
.hev-cta-fields { display:grid; gap:8px; margin-top:10px; padding:12px; border-radius:12px; background:var(--hev-group); }
.hev-cta-fields[hidden], .hev-cta-fields label[hidden] { display:none; }
.hev-cta-fields label { display:grid; gap:5px; color:var(--hev-o-tx-mid,#374151); font-size:12px; font-weight:600; }

/* 상세 옆 예약 카드 */
.hev-buy-card { padding:22px; border-radius:20px; background:var(--hev-group); }
.hev-buy-title { margin:0 0 12px; font-size:16px; font-weight:600; line-height:1.4; }
.hev-buy-price { position:relative; margin-bottom:16px; padding:14px 0; border-bottom:1px solid var(--hev-line); }
.hev-buy-price-old { color:var(--hev-tx3); font-size:13px; text-decoration:line-through; }
.hev-buy-price-now { margin-top:4px; color:var(--hev-tx); font-size:30px; font-weight:800; letter-spacing:-.02em; }
.hev-buy-price-now small { margin-left:2px; color:var(--hev-tx2); font-size:16px; font-weight:500; }
.hev-buy-discount { position:absolute; top:14px; right:0; padding:4px 10px; border-radius:999px; background:var(--hev-sale); color:#fff; font-size:13px; font-weight:700; }
.hev-buy-paynote { display:block; margin-top:8px; color:var(--hev-tx2); font-size:12px; }
.hev-options { margin-bottom:14px; overflow:hidden; border-radius:14px; background:var(--hev-surface,#fff); }
.hev-option { position:relative; display:flex; align-items:center; gap:10px; padding:14px; cursor:pointer; }
.hev-option + .hev-option::before { content:""; position:absolute; top:0; right:0; left:14px; height:1px; background:var(--hev-line); }
.hev-option input { flex-shrink:0; width:20px; height:20px; accent-color:var(--hev-main); }
.hev-option-name { flex:1; font-size:14px; }
.hev-option-name em { display:inline-block; margin-left:4px; padding:1px 7px; border-radius:999px; background:var(--hev-tint); color:var(--hev-ink); font-size:11.5px; font-style:normal; }
.hev-option-price { font-size:14px; font-weight:600; white-space:nowrap; }
.hev-option-price .strike { margin-right:4px; color:var(--hev-tx3); font-size:12px; font-weight:400; text-decoration:line-through; }
.hev-buy-cta, .hev-buy-consult { display:block; width:100%; min-height:52px; margin-top:8px; padding:0 16px; border:0; border-radius:26px; font:inherit; font-size:16px; font-weight:700; cursor:pointer; }
.hev-buy-cta { background:var(--hev-main); color:var(--hev-on); }
.hev-buy-actions { display:flex; gap:8px; margin-top:8px; }
.hev-buy-actions .hev-buy-cta { flex:1 1 auto; margin-top:0; }
.hev-buy-actions .hev-buy-add { flex:0 0 auto; min-height:52px; padding:0 22px; border-radius:26px; font-size:16px; font-weight:700; }
.hev-buy-consult { background:var(--hev-soft); color:var(--hev-tx); }

/* ===== 목록 + 옆 장바구니 카드 ===== */
.hev-body { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; align-items:start; }
.hev-body--no-cart { grid-template-columns:minmax(0,1fr); }
.hev-body-main { min-width:0; }
.hev-cart-side { position:sticky; top:96px; }
.hev-price-reference { color:var(--hev-tx2); font-family:inherit; font-size:.78em; font-weight:600; letter-spacing:0; }
.hev-cart-card { overflow:hidden; border-radius:20px; background:var(--hev-group); }
.hev-cart-head { display:flex; align-items:center; justify-content:space-between; padding:16px 18px 8px; font-size:15px; font-weight:700; }
.hev-cart-head .cnt { color:var(--hev-ink); font-size:14px; }
.hev-cart-list { max-height:50vh; margin:0 12px; overflow-y:auto; border-radius:14px; background:var(--hev-surface,#fff); }
.hev-cart-item { position:relative; display:flex; align-items:center; gap:8px; padding:12px 14px; font-size:14px; }
.hev-cart-item + .hev-cart-item::before { content:""; position:absolute; top:0; right:0; left:14px; height:1px; background:var(--hev-line); }
.hev-cart-item-name { flex:1; min-width:0; }
.hev-cart-item-price { font-weight:600; white-space:nowrap; }
.hev-cart-item-rm { display:inline-flex; align-items:center; justify-content:center; flex:0 0 28px; width:28px; height:28px; border-radius:50%; background:var(--hev-soft); color:var(--hev-o-tx-mid,#3a3a3c); font-size:16px; line-height:1; cursor:pointer; }
.hev-cart-empty { margin:4px 12px 16px; padding:28px 16px; border-radius:14px; background:var(--hev-surface,#fff); color:var(--hev-tx2); font-size:14px; text-align:center; }
.hev-cart-foot { padding:14px 18px 18px; }
.hev-cart-total { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:12px; font-size:14px; }
.hev-cart-total b { color:var(--hev-tx); font-size:20px; }
.hev-cart-vat { color:var(--hev-tx2); font-size:12px; font-weight:400; }
.hev-cart-cta { display:block; width:100%; min-height:52px; border:0; border-radius:26px; background:var(--hev-main); color:var(--hev-on); font:inherit; font-size:16px; font-weight:700; cursor:pointer; }
.hev-cart-cta:disabled { background:var(--hev-soft); color:var(--hev-tx3); cursor:not-allowed; }
.hev-cart-note { margin:10px 0 0; color:var(--hev-tx2); font-size:12px; text-align:center; }

/* ===== 글쓰기 (이벤트·시술 공통) =====
 * 회색 묶음 바탕 위에 구역별 흰 카드. 표 구조는 그대로 두고 CSS 로 카드·줄 형태로 바꾼다.
 * 글쓰기 폼은 .hev-wrap 밖에 있어 사이트 색 변수를 여기서도 정의한다(없으면 기본 베이지로 고정됐음) */
.hev-write {
    --hev-main: var(--index_color, var(--main, var(--hv-main, #1d1d1f)));
    --hev-on: #fff;
    --hev-line: rgba(60,60,67,.12);
    --hev-soft: rgba(118,118,128,.12);
    --hev-tx: #1d1d1f; --hev-tx2: #6e6e73; --hev-tx3: #8e8e93;
    --hev-group: #f2f2f7; --hev-surface: #fff; --hev-soft2: rgba(118,118,128,.2);
    --hev-w-pt: 28px; --hev-w-px: 24px; --hev-w-pb: 32px;
    max-width:var(--hev-w-max,960px); margin:24px auto; padding:var(--hev-w-pt) var(--hev-w-px) var(--hev-w-pb); border-radius:24px; background:var(--hev-group); box-sizing:border-box;
    font-family:'Pretendard Variable','Pretendard','Noto Sans KR',-apple-system,BlinkMacSystemFont,sans-serif;
    color:var(--hev-tx); word-break:keep-all; overflow-wrap:anywhere;
}
@supports (color: oklch(from red l c h)) {
    .hev-write { --hev-on: oklch(from var(--hev-main) clamp(0, (0.6 - l) * 1000, 1) 0 0); }
}
.hev-write *, .hev-write *::before, .hev-write *::after { box-sizing:border-box; }
.hev-write :is(a,button,input,select,textarea):focus-visible { outline:2px solid var(--hev-main); outline-offset:2px; }
.hev-write-head { margin:0 4px 20px; }
.hev-write-head :is(h1,h2) { margin:0 0 6px; color:var(--hev-tx); font-size:24px; font-weight:700; letter-spacing:-.02em; }
.hev-write-help { margin:0; color:var(--hev-tx2); font-size:14px; line-height:1.6; }
/* 표 → 카드 */
.hev-form-tbl, .hev-form-tbl tbody { display:block; width:100%; margin:0; border:0; }
.hev-form-tbl colgroup { display:none; }
.hev-form-tbl tr { display:grid; grid-template-columns:168px minmax(0,1fr); gap:6px 16px; align-items:start; margin:0; padding:14px 18px; background:var(--hev-surface); position:relative; }
.hev-form-tbl tr + tr:not(.hev-section)::before { content:""; position:absolute; top:0; right:0; left:18px; height:1px; background:var(--hev-line); }
.hev-form-tbl tbody > tr:first-child, .hev-form-tbl .hev-section + tr { border-radius:16px 16px 0 0; }
.hev-form-tbl .hev-section + tr::before { display:none; }
.hev-form-tbl tr:has(+ .hev-section), .hev-form-tbl tbody > tr:last-child { border-radius:0 0 16px 16px; }
.hev-form-tbl tbody > tr:first-child:has(+ .hev-section), .hev-form-tbl .hev-section + tr:has(+ .hev-section), .hev-form-tbl .hev-section + tr:last-child { border-radius:16px; }
.hev-form-tbl :is(th,td) { display:block; width:auto; margin:0; padding:0; border:0; background:none; text-align:left; vertical-align:top; font-size:14px; }
.hev-form-tbl th { padding-top:11px; color:var(--hev-tx); font-size:14px; font-weight:600; line-height:1.4; }
.hev-form-tbl th small { color:var(--hev-tx2); font-weight:400; }
.hev-form-tbl td[colspan] { grid-column:1 / -1; }
.hev-form-tbl .req { color:#d23f31; }
/* 구역 제목: 카드 밖 회색 바탕 위 작은 제목 + 선 아이콘 */
.hev-form-tbl tr.hev-section { display:block; margin:24px 0 8px; padding:0 4px; background:none; border-radius:0; }
.hev-form-tbl tr.hev-section::before { display:none; }
.hev-form-tbl .hev-section th { display:flex; align-items:center; gap:8px; padding:0; color:var(--hev-tx2); font-size:13px; font-weight:700; letter-spacing:.01em; }
.hev-sec-ico { flex:0 0 18px; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.hev-help { display:block; margin-top:6px; color:var(--hev-tx2); font-size:12.5px; line-height:1.55; }
/* 입력 칸: 회색 칸(흰 카드 위) */
.hev-input, .hev-write select, .hev-write textarea, .hev-write input[type=text], .hev-write input[type=number], .hev-write input[type=date], .hev-write input[type=email], .hev-write input[type=password] {
    max-width:100%; min-height:44px; padding:10px 14px; border:0; border-radius:12px; background:var(--hev-group); color:var(--hev-tx); font:inherit; font-size:15px;
}
.hev-write select { padding-right:36px; appearance:none; -webkit-appearance:none; background:var(--hev-group) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236e6e73' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>") no-repeat right 14px center; cursor:pointer; }
.hev-input.wide { width:100%; }
.hev-input.small { width:160px; }
.hev-input.mono { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:14px; }
.hev-write :is(.hev-input,select,textarea,input):focus { outline:none; box-shadow:0 0 0 2px var(--hev-main); background-color:var(--hev-surface); }
.hev-write input[type=file] { width:100%; min-height:auto; padding:8px; border:1px dashed rgba(60,60,67,.25); border-radius:12px; background:#fafafa; font-size:14px; }
.hev-write input[type=file]::file-selector-button { margin-right:12px; padding:8px 16px; border:0; border-radius:999px; background:var(--hev-soft); color:var(--hev-tx); font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.hev-write input[type=file] + .hev-input { width:100%; margin-top:8px; }
.hev-write input[type=checkbox] { width:20px; height:20px; margin:0 6px 0 0; vertical-align:-4px; accent-color:var(--hev-main); }
.hev-write td > label { display:inline-flex; align-items:center; gap:4px; min-height:44px; font-size:15px; cursor:pointer; }
.hev-cta-fields { display:grid; gap:10px; margin-top:10px; }
.hev-cta-fields[hidden] { display:none; }
.hev-cta-fields label { display:grid; gap:6px; color:var(--hev-tx2); font-size:13px; font-weight:600; }
.hev-file-row { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.hev-file-row .hev-input { flex:1; }
.hev-file-cur { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin-top:8px; font-size:13px; }
.hev-file-cur a { color:var(--hev-tx); text-decoration:underline; text-underline-offset:2px; }
/* 안내 상자: 노란 경고 대신 흰 카드 안 회색 상자 + 아이콘 */
.hev-write-note { display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border-radius:12px; background:#fff7e8; color:#7a4a00; font-size:13px; line-height:1.55; }
.hev-write-note svg { flex:0 0 18px; width:18px; height:18px; margin-top:1px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.hev-write-note a { color:inherit; font-weight:600; text-decoration:underline; text-underline-offset:2px; }
/* 작은 추가 버튼(＋ 강조 문구, ＋ 상품) */
.hev-write .hcs-addbar button, .hev-write .hcs-small-add { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 14px; border:0 !important; border-radius:999px; background:var(--hev-soft); color:var(--hev-tx); font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.hev-write .hcs-addbar button:hover, .hev-write .hcs-small-add:hover { background:var(--hev-soft2); }
/* 시술 상품·구조 편집 카드: 흰 카드 위라 회색 카드로 */
.hev-write :is(.care-product-edit,.hcs-card,.hcs-row) { border:0 !important; border-radius:14px !important; background:var(--hev-group) !important; box-shadow:none !important; }
.hev-write :is(.care-product-edit,.hcs-card,.hcs-row):focus-within { box-shadow:0 0 0 2px var(--hev-main) !important; }
.hev-write :is(.care-product-edit,.hcs-card,.hcs-row) :is(input,textarea,select) { background-color:var(--hev-surface); }
.hev-write .care-product-edit button { border:0 !important; background:var(--hev-surface) !important; color:var(--hev-tx) !important; border-radius:50% !important; }
.hev-write .care-product-edit-head strong { color:var(--hev-tx) !important; }
/* 저장 막대: 아래 고정 유리 막대 */
.hev-write-actions { position:sticky; bottom:0; z-index:5; display:flex; justify-content:flex-end; gap:8px; margin:24px calc(-1 * var(--hev-w-px)) calc(-1 * var(--hev-w-pb)); padding:14px var(--hev-w-px) calc(14px + var(--qtab-space,0px) + env(safe-area-inset-bottom,0px)); border-radius:0 0 24px 24px; background:color-mix(in srgb,var(--hev-group) 86%,transparent); -webkit-backdrop-filter:blur(20px) saturate(180%); backdrop-filter:blur(20px) saturate(180%); }
.hev-btn-submit, .hev-btn-cancel { display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:0 32px; border:0; border-radius:25px; font:inherit; font-size:16px; font-weight:700; text-decoration:none; cursor:pointer; }
.hev-btn-submit { background:var(--hev-main); color:var(--hev-on); }
.hev-btn-cancel { background:var(--hev-soft); color:var(--hev-tx); }
.hev-btn-submit:active, .hev-btn-cancel:active { transform:scale(.98); }
@media (max-width:768px) {
    .hev-write { --hev-w-pt:20px; --hev-w-px:16px; --hev-w-pb:24px; margin:0 auto; border-radius:0; }
    .hev-form-tbl tr { grid-template-columns:minmax(0,1fr); padding:12px 16px; gap:8px; }
    .hev-form-tbl th { padding-top:0; }
    .hev-form-tbl tr + tr:not(.hev-section)::before { left:16px; }
    .hev-input.small { width:min(160px,100%); }
    .hev-write-actions { padding-top:12px; padding-bottom:calc(12px + var(--qtab-space,0px) + env(safe-area-inset-bottom,0px)); border-radius:0; }
    .hev-btn-submit, .hev-btn-cancel { flex:1 1 0; padding:0 16px; }
    .hev-btn-submit { order:2; }
}
@media (prefers-reduced-motion:reduce) { .hev-btn-submit:active, .hev-btn-cancel:active { transform:none; } }

/* ===== 태블릿·휴대폰 ===== */
@media (max-width:900px){
    .hev-body { grid-template-columns:minmax(0,1fr); gap:16px; }
    .hev-cart-side { position:static; }
    .hev-cart-list { max-height:40vh; }
    .hev-view-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
    .hev-view-side { position:static; }
    /* 시안 ② 상세: 제목 바로 아래 가격·옵션, 아래 고정 막대 [담기][예약하기], 본문은 그 뒤 */
    .hev-view-grid:not(.hev-view-grid--content-only) { display:flex; flex-direction:column; }
    .hev-view-grid:not(.hev-view-grid--content-only) > .hev-view-main { display:contents; }
    .hev-view-grid:not(.hev-view-grid--content-only) > .hev-view-main > * { order:1; }
    .hev-view-grid:not(.hev-view-grid--content-only) > .hev-view-main > .hev-view-content { order:3; }
    .hev-view-grid:not(.hev-view-grid--content-only) > .hev-view-side { order:2; }
    .hev-view-side .hev-buy-card { padding:0; background:none; }
    .hev-view-side .hev-buy-title { display:none; }
    .hev-buy-actions { position:fixed; right:12px; bottom:calc(12px + var(--qtab-space,0px) + env(safe-area-inset-bottom,0px)); left:12px; z-index:900; margin:0; padding:8px; border-radius:34px; background:color-mix(in srgb,#fff 82%,transparent); -webkit-backdrop-filter:blur(20px) saturate(180%); backdrop-filter:blur(20px) saturate(180%); box-shadow:0 8px 28px rgba(0,0,0,.14); }
    .hev-buy-actions :is(.hev-buy-add,.hev-buy-cta) { min-height:48px; }
    .hev-view:has(.hev-buy-actions) { padding-bottom:96px; }
}
@media (max-width:768px){
    .hev-wrap { margin:12px auto; padding:14px 16px 18px; }
    .hev-admin-bar { margin-bottom:12px; padding:8px 10px; }
    .hev-admin-bar .hev-admin-btn:last-of-type { margin-left:0; }
    .hev-cats { margin-bottom:12px; }
    .hev-cat { min-height:34px; padding:0 14px; }
    .hev-toolbar { gap:10px; margin-bottom:12px; }
    .hev-title { width:100%; font-size:22px; }
    .hev-toolbar-right { width:100%; }
    .hev-search { flex:1 1 auto; min-width:0; }
    .hev-search input[type="text"] { flex:1; min-width:0; font-size:16px; }
    /* 목록: 사진 · 글 · 가격, 담기·예약은 아래 줄 */
    .hev-row { flex-wrap:wrap; align-items:flex-start; gap:12px; padding:14px; }
    .hev-row + .hev-row::before { left:14px; }
    .hev-row-thumb { flex-basis:88px; width:88px; height:88px; border-radius:12px; }
    .hev-row-body { flex:1 1 calc(100% - 100px); }
    .hev-row-title { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:var(--hev-o-title-size,15px); }
    .hev-row-note { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:var(--hev-o-body-size,13px); }
    .hev-row-right { flex:1 1 100%; flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; min-width:0; padding-left:100px; text-align:left; }
    .hev-row-price { font-size:16px; }
    .hev-row-actions { margin-top:0; }
    .hev-grid, .hev-insta-grid { gap:var(--hev-o-gap,12px); }
    .hev-card-body { padding:14px; }
    .hev-insta-overlay { padding:16px; }
    .hev-insta-title { font-size:var(--hev-o-title-size,16px); }
    .hev-paging { margin:22px 0 8px; }
    .hev-view { padding:18px 16px; border-radius:16px; }
    .hev-view-head { margin-bottom:16px; }
    .hev-view-title { font-size:22px; }
    .hev-view-content { margin-top:20px; font-size:var(--hev-o-body-size,15px); line-height:var(--hev-o-lh,1.7); }
    .hev-buy-card { padding:18px; }
    .hev-buy-price-now { font-size:26px; }
}
@media (max-width:480px){
    .hev-toolbar-right { flex-direction:column; align-items:stretch; }
    .hev-search, .hev-sort { width:100%; }
    .hev-row-thumb { flex-basis:76px; width:76px; height:76px; }
    .hev-row-body { flex-basis:calc(100% - 88px); }
    .hev-row-right { padding-left:88px; }
    .hev-insta-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--hev-o-gap,8px); }
    .hev-insta-overlay { padding:12px; }
    .hev-insta-title { font-size:var(--hev-o-title-size,14px); line-height:1.3; }
    .hev-insta-note { display:none; }
    .hev-insta-price strong { font-size:14px; }
    .hev-insta-price small { display:none; }
    .hev-insta-actions { gap:4px; margin-top:8px; }
    .hev-insta-actions :is(.hev-btn-add,.hev-btn-book) { min-height:34px; padding:0 8px; font-size:12px; }
}
@media (prefers-reduced-motion:reduce){
    .hev-card, .hev-cat, .hev-btn-add, .hev-btn-book, .hev-insta-card::before, .hev-insta-overlay, .hev-text-hover .hev-grid .hev-card-body { transition:none; }
}

/* ===== 목록 옵션 줄 (event_show_options) =====
   글에 등록한 옵션을 목록에서 바로 고르게 한다. 담기는 옵션 단위(op_id).
   상자를 따로 두지 않고 보드의 가로줄·글자 크기를 그대로 따른다. */
.hev-opts { list-style:none; margin:14px 0 0; padding:0; border-top:1px solid var(--hev-line); }
.hev-opt { margin:0; border-bottom:1px solid var(--hev-line); }
.hev-opt .hev-opt-add,
.hev-opt .hev-opt-static {
  display:flex; align-items:center; flex-wrap:wrap; gap:4px 12px; width:100%;
  margin:0; padding:13px 4px; border:0; border-radius:0; background:transparent;
  color:var(--hev-tx); font-family:inherit; font-size:15px; font-weight:400; line-height:1.45;
  text-align:left; min-height:0;
}
.hev-opt .hev-opt-add { cursor:pointer; transition:background-color .18s ease; }
.hev-opt .hev-opt-add:hover { background:var(--hev-soft); }
.hev-opt .hev-opt-add:focus-visible { outline:2px solid var(--hev-main); outline-offset:-2px; }
/* 동그라미 표시 — 보드의 담기 동그라미(.hev-row-toggle)와 같은 어휘 */
.hev-opt-tg {
  flex:0 0 24px; display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:24px; border:1px solid var(--hev-line); border-radius:50%;
  color:var(--hev-tx2); transition:background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hev-opt-tg .hev-i-check { display:none; }
.hev-opt-add.added .hev-opt-tg { background:var(--hev-main); border-color:var(--hev-main); color:var(--hev-on); }
.hev-opt-add.added .hev-opt-tg .hev-i-plus { display:none; }
.hev-opt-add.added .hev-opt-tg .hev-i-check { display:block; }
.hev-opt-add.added .hev-opt-name { font-weight:600; }
.hev-opt-name { flex:1 1 auto; min-width:0; word-break:keep-all; overflow-wrap:break-word; }
.hev-opt-price { flex:0 0 auto; margin-left:auto; display:flex; align-items:baseline; gap:8px; white-space:nowrap; }
.hev-opt-price .strike { font-size:13px; color:var(--hev-tx3); text-decoration:line-through; }
.hev-opt-off { font-style:normal; font-size:15px; font-weight:700; color:var(--hev-sale); }
.hev-opt-price strong { font-size:16px; font-weight:700; }
.hev-opt-note { flex-basis:100%; padding-left:36px; font-size:13px; color:var(--hev-tx2); }
.hev-opt-static .hev-opt-note { padding-left:0; }
/* 목록형: 옵션 줄은 제목 칸을 줄이지 않도록 아래 한 줄을 다 쓴다.
   왼쪽 사진이 있는 줄에서만 사진 폭만큼 들여 쓴다. 사진이 없으면 왼쪽 끝에 맞춘다(2026-10-13). */
.hev-row:has(.hev-opts) { flex-wrap:wrap; }
.hev-row-right:has(.hev-opts) { flex:1 1 100%; min-width:0; align-items:stretch; }
.hev-row--thumb:not(.hev-row--noimg) .hev-row-right:has(.hev-opts) { margin-left:128px; }
@media (max-width:640px){
  .hev-opt .hev-opt-add, .hev-opt .hev-opt-static { padding:12px 2px; font-size:14px; }
  .hev-opt-price strong { font-size:15px; }
  .hev-opt-off { font-size:14px; }
  .hev-opt-note { padding-left:36px; font-size:12px; }
  .hev-row-right:has(.hev-opts) { margin-left:0; }
}
/* 사진도 배지도 없는 카드는 빈 회색 칸을 두지 않는다 */
.hev-card-thumb--empty { display:none; }

/* ===== 사진 보여 주는 방식(event_thumb_style) =====
   thumb  : 지금까지 모양(카드는 위 칸, 목록은 왼쪽 네모)
   banner : 글 폭을 다 쓰는 긴 직사각(비율은 --hev-banner-ratio)
   none   : 아예 그리지 않음(마크업에서 빠짐) */
.hev-card-thumb.hev-thumb--banner { aspect-ratio:var(--hev-banner-ratio,21 / 9); }
/* 가로 띠: 사진을 줄 맨 위에 칸 폭 그대로 깔고, 글과 가격은 그 아래에 둔다 */
.hev-row.hev-row--banner { flex-wrap:wrap; padding:0 0 18px; }
.hev-row-thumb.hev-thumb--banner {
  flex:1 1 100%; width:100%; height:auto; aspect-ratio:var(--hev-banner-ratio,21 / 9);
  border-radius:0; margin-bottom:16px;
}
.hev-row--banner .hev-row-body,
.hev-row--banner .hev-row-right { padding-left:18px; padding-right:18px; }
.hev-row--banner .hev-row-right:has(.hev-opts) { margin-left:0; }
/* 사진이 없는 줄은 왼쪽 빈 칸을 두지 않는다 */
.hev-row--none .hev-row-right:has(.hev-opts),
.hev-row--noimg .hev-row-right:has(.hev-opts) { margin-left:0; }
@media (max-width:640px){
  .hev-row--noimg .hev-row-right, .hev-row--none .hev-row-right { padding-left:0; }
  .hev-row--banner .hev-row-body, .hev-row--banner .hev-row-right { padding-left:16px; padding-right:16px; }
}
