/* ==========================================================================
   지점별 홈페이지 · 브랜드 대문 전용 (2026-10-06)
   지점 화면(body.is-store)·브랜드 대문(body.is-gate)에서만 실린다. 지금 사이트(전환 스위치 꺼짐)에는 싣지 않는다.
   색·글꼴은 style.css 의 브랜드 변수(--primary 등)를 그대로 쓴다.
   ========================================================================== */

/* 관리자 미리보기 띠 (공개 전 지점) */
.preview-bar { position: relative; z-index: 60; padding: 8px 20px; background: #fdf6e0; border-bottom: 1px solid #e7c873; color: #6a5200; font-size: 13px; text-align: center; }

/* 지점 화면: 메뉴 "다른 지점" — PC 가로 메뉴에서는 구분선으로 살짝 떨어뜨림 */
@media (min-width: 1024px) {
    body.is-store .site-nav li:last-child a { margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
    body.is-store .site-nav a { padding-left: 7px; padding-right: 7px; }
}

/* 지점 화면: 맨 아래 "다른 지점 보기" */
.other-stores { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.other-stores .eyebrow { margin-bottom: 4px; }
.other-stores-title { font-size: 20px; margin: 0 0 14px; }
.other-store-list { display: grid; grid-template-columns: 1fr; gap: 8px; list-style: none; margin: 0; padding: 0; }
.other-store-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.other-store-list a:hover { border-color: var(--primary); }
.other-store-list strong { font-size: 16px; }
.other-store-list span { font-size: 13px; color: var(--muted); }
.other-stores .more { margin-top: 14px; }
@media (min-width: 600px) { .other-store-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .other-store-list { grid-template-columns: repeat(4, 1fr); } }

/* 지점 화면의 게시판: 지점 구분을 그누보드 검색 조건(wr_1)으로 걸기 때문에 게시판 검색창에는 지점 코드가 들어가 있다.
   검색을 하면 지점 구분이 풀리므로 검색 버튼·검색창은 숨긴다 (휴대폰 스킨 #bo_sch, PC 스킨 .btn_bo_sch / .bo_sch_wrap) */
body.is-store #bo_sch,
body.is-store .bo_sch_wrap,
body.is-store .btn_bo_user .btn_bo_sch { display: none !important; }

/* ---------------------------------------------------------------------------
   브랜드 대문 (/)
   --------------------------------------------------------------------------- */
body.page-gate .site-main { padding-bottom: 32px; }
.gate-hero { text-align: center; }
.gate-hero .hero-body { padding-top: 44px; padding-bottom: 52px; }
.gate-logo { width: 88px; height: 88px; margin: 0 auto 18px; }
.gate-hero .btn-row { justify-content: center; }
.gate-hero .hero-lead { max-width: 34em; margin: 0 auto; }
#stores, #brand, #prices { scroll-margin-top: 80px; }

.store-grid { display: grid; grid-template-columns: 1fr; gap: 14px; list-style: none; margin: 0; padding: 0; }
.store-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.store-main { display: flex; flex-direction: column; flex: 1 1 auto; color: var(--text); text-decoration: none; }
.store-media { display: block; aspect-ratio: 16 / 9; background: var(--accent-soft); overflow: hidden; }
.store-media img { width: 100%; height: 100%; object-fit: cover; }
.store-media.is-empty { display: flex; }
.store-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 6px; }
.store-body .eyebrow { margin: 0; font-size: 11px; }
.store-body .eyebrow::after { display: none; }
.store-name { font-size: 20px; font-weight: 700; }
.store-addr, .store-hours { font-size: 14px; color: var(--muted); }
.store-body .cat-more { margin-top: 6px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 10px 18px 18px; }
.store-actions .btn { gap: 6px; }
.store-card:hover { border-color: var(--primary); }

/* 브랜드 대문 가격표: 분류별 접기 (2026-10-07). 제목 줄 = 분류 · 대표 가격 · +/− */
.price-fold { margin: 0 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-fold > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.price-fold > summary::-webkit-details-marker { display: none; }
.price-fold > summary:hover { background: var(--accent-soft); }
.price-fold > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.price-fold .pf-cat { margin: 0; font-size: 17px; letter-spacing: .02em; }
.price-fold .pf-lead { font-size: 14px; color: var(--muted); }
.price-fold .pf-icon { position: relative; width: 14px; height: 14px; margin-left: auto; flex: none; }
.price-fold .pf-icon::before, .price-fold .pf-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--primary); border-radius: 1px; }
.price-fold .pf-icon::after { transform: rotate(90deg); transition: transform .15s; }
.price-fold[open] .pf-icon::after { transform: rotate(0deg); }
.price-fold[open] > summary { border-bottom: 1px solid var(--line); }
.price-fold .pf-body { padding: 4px 16px 12px; }
.price-fold .pf-body .price-table { margin-top: 8px; }
@media (min-width: 769px) { .price-fold .pf-lead { font-size: 15px; } }

.menu-list .menu-store a { font-size: 17px; font-weight: 500; color: var(--muted); }
.gate-footer .footer-stores dt a { color: var(--text); text-decoration: none; font-weight: 600; }
.gate-footer .footer-stores dd { white-space: nowrap; }
@media (min-width: 769px) { .gate-footer .footer-grid { grid-template-columns: 2fr 1.5fr 1.5fr; } }

@media (min-width: 769px) {
    .gate-hero .hero-body { padding-top: 64px; padding-bottom: 76px; }
    .gate-logo { width: 104px; height: 104px; }
    .store-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
    .store-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 디자이너 사진이 아직 없을 때 기본 이미지 (2026-10-12, HP-23) — 이름 첫 글자. 사진 파일을 넣으면 자동으로 사진으로 바뀜 */
.designer-card .designer-photo-empty { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); }
.designer-card .designer-photo-empty span { display: flex; align-items: center; justify-content: center; width: 38%; aspect-ratio: 1 / 1; border-radius: 50%; border: 1px solid var(--accent); color: var(--muted); font-size: clamp(28px, 6vw, 48px); font-weight: 600; background: var(--bg); }

/* 디자이너 카드 예약 버튼 (2026-10-15) — 첫 화면·디자이너 페이지 같은 모양: 인스타/플레이스 링크 아래 카드 폭 꽉 찬 버튼 한 줄, 글자는 줄바꿈 없이 */
.designer-card .designer-links { flex-direction: column; align-items: stretch; gap: 8px; }
.designer-card .designer-links .sns-link { align-self: flex-start; }
.designer-card .designer-book { width: 100%; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 디자이너 소개글 (2026-10-20) — 3줄 미리보기 + "소개 전체 보기"(자바스크립트 없이, 글은 처음부터 HTML 안), 경력·교육 칸 없음
   카드 높이: 접힌 상태는 같은 높이(시술 태그 자리·소개 3줄 고정), 펼친 카드만 길어짐
   (10/20 2차) assets/js/designer-cards.js 가 돌면 태그 칸 고정 높이를 풀고(.is-fit), 태그가 짧은 카드는 남는 높이만큼 소개를 더 보여 줌 — 빈 줄 없음 */
.designer-grid { align-items: start; }
.designer-card .tags { min-height: 52px; align-content: flex-start; }
.designer-intro-box { position: relative; margin-top: 10px; padding-bottom: var(--intro-rest, 0px); }
.designer-intro-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.designer-card .designer-intro { display: block; -webkit-line-clamp: unset; position: relative; height: calc(4.8em + var(--intro-extra, 0px)); overflow: hidden; margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.designer-card .designer-intro p { margin: 0 0 .7em; }
.designer-card .designer-intro ul { margin: 0 0 .7em; padding-left: 1.15em; }
.designer-card .designer-intro li { list-style: disc; margin: 0; }
.designer-card .designer-intro strong { color: var(--text); font-weight: 600; }
.designer-card .designer-intro::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6em; background: linear-gradient(rgba(255, 255, 255, 0), var(--surface)); }
.designer-intro-toggle:checked + .designer-intro { height: auto; }
.designer-intro-toggle:checked + .designer-intro::after { display: none; }
.designer-intro-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; }
.designer-intro-more::before { content: "\25B6"; font-size: 9px; }
.designer-intro-toggle:checked ~ .designer-intro-more::before { content: "\25BC"; }
.designer-intro-more .when-open, .designer-intro-toggle:checked ~ .designer-intro-more .when-closed { display: none; }
.designer-intro-toggle:checked ~ .designer-intro-more .when-open { display: inline; }
.designer-intro-toggle:focus-visible ~ .designer-intro-more { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 768px) { .designer-card .tags { min-height: 80px; } }   /* 휴대폰: 시술 태그가 3줄까지 가는 카드가 있어 3줄 자리 — 접힌 카드 높이를 맞춤 */
.designer-grid.is-fit .designer-card .tags { min-height: 0; }   /* designer-cards.js 가 돌 때: 태그는 제 높이만, 남는 높이는 소개로 */
