/*
 * fx 템플릿 목록(templates) - 화면 전용 부품(접두사 fx-tpl-). 공통 부품(fx-button·fx-pill·fx-panel·fx-empty·fx-wrap·fx-sec)은 components.css 것을 쓰고,
 * 여기서는 이 화면에만 있는 모양과, 숏코드가 그린 목록(.fx-tpl 안)의 겉을 입힌다. 색은 --fx-* 토큰만, 움직임은 transform·opacity 만.
 * 순서: 1 머리 -> 2 목록 래퍼(업종 칩·카드 그리드·살아 있는 썸네일) -> 3 화면 벽 -> 4 곧 열리는 업종·신청 카드(폼 포함) -> 5 마지막 CTA -> 6 반응형 -> 7 reduced-motion
 */

/* ===== 1. 머리 ===== */
.fx-tpl-head{background:var(--fx-s0);padding:clamp(120px,14vw,168px) 0 clamp(40px,5vw,64px)}
.fx-tpl-head__cat{margin-bottom:20px}
.fx-tpl-h1{font-size:clamp(34px,5.6vw,72px);line-height:1.1;font-weight:700;letter-spacing:-.03em;word-break:keep-all}
.fx-tpl-lime{color:var(--fx-brand);font-style:normal}
.fx-tpl-head__row{margin-top:28px;display:grid;gap:24px;align-items:end}
.fx-tpl-head__lead{max-width:640px;margin:0}
.fx-tpl-head__act{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
.fx-tpl-textlink,.fx-tpl-note a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--fx-fg);text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--fx-edge-strong)}
.fx-tpl-textlink:hover,.fx-tpl-note a:hover{text-decoration-color:currentColor}
.fx-tpl-note{margin-top:40px;max-width:760px;font-size:var(--fx-size-small);line-height:1.7;color:var(--fx-fg-2)}
.fx-tpl-note strong{color:var(--fx-fg);font-weight:600}
.fx-tpl-note a{min-height:0;display:inline;font-size:inherit;padding:10px 0}

/* ===== 2. 목록 ===== */
.fx-tpl-listsec{background:var(--fx-bg);padding:clamp(40px,5vw,64px) 0 clamp(72px,9vw,120px)}
.fx-tpl{--mk-bg:var(--fx-s1);position:relative}
.fx-tpl :where(.fluxshop,.fhs-shop){background:none;color:inherit;font-family:inherit;padding:0;max-width:none;margin:0}
.fx-tpl .fhs-shop-top{display:block}

/* 업종 칩 - 선택은 면(밝은 칩)으로, 색만으로 전달하지 않도록 글자 굵기도 같이 */
.fx-tpl .fhs-cat-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 32px;padding:0;border:0}
.fx-tpl .fhs-cat-tab{position:relative;flex:0 0 auto;margin:0;padding:0;cursor:pointer}
.fx-tpl .fhs-cat-tab input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}
.fx-tpl .fhs-cat-tab span{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;margin:0;border:0;border-radius:var(--fx-radius-pill);background:var(--fx-card);box-shadow:inset 0 0 0 1px var(--fx-edge-strong);color:var(--fx-fg-2);font-size:16px;font-weight:500;line-height:1;white-space:nowrap;transition:background-color .2s var(--fx-ease-std),color .2s,transform .25s var(--fx-ease-std)}
.fx-tpl .fhs-cat-tab:hover span{color:var(--fx-fg);box-shadow:inset 0 0 0 1px var(--fx-fg-3)}
.fx-tpl .fhs-cat-tab input:checked+span{background:var(--fx-t1);color:var(--fx-brand-ink);font-weight:700;box-shadow:none}
.fx-tpl .fhs-cat-tab input:focus-visible+span{outline:2px solid var(--fx-ring);outline-offset:3px}
/* 하위 분류 줄 — 상위 칩을 누르면 그 아래에 한 줄 더 나온다(loop.php 가 상위별로 그려 두고 스크립트가 보였다 감춘다) */
.fx-tpl .fhs-cat-tab.is-parent span{background:var(--fx-t1);color:var(--fx-brand-ink);font-weight:700;box-shadow:none}
.fx-tpl .fhs-cats__sub{display:flex;flex-wrap:wrap;gap:8px;margin:-16px 0 32px;padding:0}
.fx-tpl .fhs-cat-sub{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;margin:0;border:0;border-radius:var(--fx-radius-pill);background:transparent;box-shadow:inset 0 0 0 1px var(--fx-edge-strong);color:var(--fx-fg-2);font:500 14px/1 inherit;font-family:inherit;white-space:nowrap;cursor:pointer;transition:background-color .2s var(--fx-ease-std),color .2s,box-shadow .2s}
.fx-tpl .fhs-cat-sub input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}
.fx-tpl .fhs-cat-sub:hover{color:var(--fx-fg);box-shadow:inset 0 0 0 1px var(--fx-fg-3)}
.fx-tpl .fhs-cat-sub.is-active,.fx-tpl .fhs-cat-sub:has(input:checked){color:var(--fx-t1);font-weight:700;box-shadow:inset 0 0 0 1px var(--fx-t1)}
.fx-tpl .fhs-cat-sub:focus-visible,.fx-tpl .fhs-cat-sub:has(input:focus-visible){outline:2px solid var(--fx-ring);outline-offset:3px}
/* 플럭스샵 필터바(레일·검색·기능/가격/평점 칩)를 다크 화면에 맞춘다. 팝업은 플럭스샵 기본(밝은 면) 그대로 */
.fx-tpl .fhs-cats{margin:0 0 12px}
.fx-tpl .fhs-cats__rail{display:flex;flex-wrap:nowrap;gap:8px;margin:0 0 12px;padding:0 0 4px;border:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.fx-tpl .fhs-cats__rail::-webkit-scrollbar{display:none}
.fx-tpl .fhs-mf-apply [data-mf-count]:empty::before{content:"결과 보기"}
@media (max-width:768px){
  .fx-tpl .fhs-cats__rail{gap:6px}
  .fx-tpl .fhs-cats__rail .fhs-cat-tab span{min-height:40px;padding:0 14px;font-size:14px}
  .fx-tpl .fhs-cats .fhs-cats__sub .fhs-cat-sub{min-height:40px;font-size:13px}
}
.fx-tpl .fhs-cats__rail .fhs-cat-tab{position:relative;flex:0 0 auto;margin:0;padding:0;cursor:pointer}
.fx-tpl .fhs-cats__rail .fhs-cat-tab.is-active span,.fx-tpl .fhs-cats__rail .fhs-cat-tab.is-parent span{background:var(--fx-t1);color:var(--fx-s0)!important;font-weight:700;box-shadow:none}
.fx-tpl .fhs-cats .fhs-cats__sub{margin:0 0 4px}
.fx-tpl .fhs-cats .fhs-cats__sub .fhs-cat-sub{background:transparent;box-shadow:inset 0 0 0 1px var(--fx-edge-strong);color:var(--fx-fg-2);font-weight:500;border-radius:var(--fx-radius-pill);padding:0 16px}
.fx-tpl .fhs-cats .fhs-cats__sub .fhs-cat-sub.is-active{color:var(--fx-t1);font-weight:700;box-shadow:inset 0 0 0 1px var(--fx-t1)}
.fx-tpl .fhs-searchrow{margin:0 0 12px}
.fx-tpl .fhs-searchrow .fhs-fbar__search{background:var(--fx-card);box-shadow:inset 0 0 0 1px var(--fx-edge-strong);border-radius:var(--fx-radius-pill);color:var(--fx-fg-2)}
.fx-tpl .fhs-searchrow .fhs-fbar__search input[type="search"]{background:transparent;color:var(--fx-fg);box-shadow:none;border:0}
.fx-tpl .fhs-searchrow .fhs-fbar__search input[type="search"]::placeholder{color:var(--fx-fg-3)}
.fx-tpl .fhs-mf-chip{background:var(--fx-card);color:var(--fx-fg-2);box-shadow:inset 0 0 0 1px var(--fx-edge-strong);border:0;min-height:44px}
.fx-tpl .fhs-mf-chip:hover{color:var(--fx-fg);box-shadow:inset 0 0 0 1px var(--fx-fg-3)}
.fx-tpl .fhs-mf-chip:focus-visible{outline:2px solid var(--fx-ring);outline-offset:3px}
.fx-tpl .fhs-mf-chip--all svg circle{fill:var(--fx-card)}

/* 그리드 - 모든 카드가 같은 크기. 모바일 1열 -> 768 2열 -> 1024+ 2열(카드가 넓어야 기기 쌍 화면이 읽힌다. 4장이면 2x2로 딱 떨어진다) */
.fx-tpl .fhs-shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,28px);margin:0;padding:0;align-items:stretch}
.fx-tpl .fhs-shop-grid>*{min-width:0}
.fx-tpl .fhs-shop-grid>.fhs-empty,.fx-tpl .fhs-shop-grid>.fs-tplempty{grid-column:1/-1}

/* 카드 */
.fx-tpl .fhs-mcard{position:relative;display:flex;flex-direction:column;margin:0;padding:0;border:0;border-radius:var(--fx-radius-l);background:var(--fx-card);box-shadow:inset 0 0 0 1px var(--fx-edge-ink);overflow:hidden;transition:transform var(--fx-time-mid) var(--fx-ease-out),box-shadow var(--fx-time-mid) var(--fx-ease-std)}
.fx-tpl .fhs-mcard:hover{transform:translateY(-4px);box-shadow:inset 0 0 0 1px var(--fx-edge-strong),var(--fx-shadow-s)}
.fx-tpl .fhs-mcard__thumb{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 auto;margin:0;padding:0;border-radius:0;background:var(--fx-s1);overflow:hidden}
.fx-tpl .fhs-mcard__thumb.fxh-mock-host{aspect-ratio:auto!important;height:auto!important;padding:0!important}
.fx-tpl .fhs-mcard__thumb:not(.fxh-mock-host){aspect-ratio:16/10;display:block}
.fx-tpl .fhs-mcard__thumb:not(.fxh-mock-host) img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform 1.6s var(--fx-ease-std)}
.fx-tpl .fhs-mcard__thumb:focus-visible{outline:2px solid var(--fx-ring);outline-offset:-4px}

/* 기기 쌍 - 숏코드가 그린 목업(.fxh-mock)을 어두운 무대로. 화면 창을 낮춰(16:8) 아래쪽을 숨겨 두고 호버하면 위로 스크롤한다(transform 만) */
.fx-tpl .fxh-mock{--mk-bezel:#2a2a30;background:var(--fx-s1);aspect-ratio:16/11}
.fx-tpl .fxh-mock__pc>.fxh-mock__screen{aspect-ratio:16/8;border-color:var(--mk-bezel);background:var(--fx-s2)}
.fx-tpl .fxh-mock .fxh-mock__pc .fxh-mock__img{height:auto;object-fit:fill;transform:translateY(0)!important;transition:transform 2.2s cubic-bezier(.45,.05,.2,1);will-change:auto}
.fx-tpl .fxh-mock__stand{background:#34343b}
.fx-tpl .fxh-mock__phone{box-shadow:0 0 0 max(1px,.25cqw) #4a4a52,0 1.5cqw 4cqw rgba(0,0,0,.5)}

/* 하트 - 터치 44px */
.fx-tpl .fhs-mcard__actions{position:absolute;z-index:2;left:12px;top:12px;right:auto;bottom:auto;display:flex;gap:6px;opacity:1;transform:none}
.fx-tpl .fhs-mcard__thumb.fxh-mock-host .fhs-mcard__actions{left:12px;top:12px}
.fx-tpl .fhs-mcard__heart{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:rgba(10,10,11,.72);color:var(--fx-t1);box-shadow:inset 0 0 0 1px var(--fx-edge-ink-strong);backdrop-filter:blur(6px);transition:background-color .2s,color .2s}
.fx-tpl .fhs-mcard__heart svg{width:20px;height:20px}
.fx-tpl .fhs-mcard__heart:hover{background:var(--fx-t1);color:var(--fx-brand-ink)}
.fx-tpl .fhs-mcard__heart.active{color:var(--fx-brand)}
.fx-tpl .fhs-mcard__heart.active svg{fill:currentColor}
.fx-tpl .fhs-mcard__heart:focus-visible{outline:2px solid var(--fx-ring);outline-offset:2px}
.fx-tpl .fhs-mcard__badge{position:absolute;z-index:2;right:12px;top:12px;left:auto;padding:4px 10px;border-radius:var(--fx-radius-pill);background:var(--fx-t1);color:var(--fx-brand-ink);font-size:var(--fx-size-min);font-weight:700}

/* 본문 */
.fx-tpl .fhs-mcard__body{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto;align-content:start;flex:1 1 auto;gap:2px 16px;align-items:center;padding:20px 22px 22px;background:var(--fx-card)}
.fx-tpl .fhs-mcard__brand{grid-column:1/-1;margin:0;font-size:var(--fx-size-small);color:var(--fx-fg-3)!important}
.fx-tpl .fhs-mcard__name{grid-column:1;margin:0;font-size:clamp(18px,1.6vw,22px);font-weight:700;line-height:1.3;letter-spacing:-.02em;color:var(--fx-fg)}
.fx-tpl .fhs-mcard__name a{display:flex;align-items:center;min-height:44px;color:var(--fx-fg)!important;text-decoration:none;-webkit-line-clamp:unset}
.fx-tpl .fhs-mcard__name a:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--fx-edge-strong)}
.fx-tpl .fhs-mcard__name a:focus-visible{outline:2px solid var(--fx-ring);outline-offset:2px;border-radius:4px}
.fx-tpl .fhs-mcard__cat{grid-column:1;grid-row:3;margin:0;font-size:var(--fx-size-small);color:var(--fx-fg-2)}
.fx-tpl .fhs-mcard__price{grid-column:2;grid-row:2/4;margin:0;text-align:right;font-variant-numeric:tabular-nums;color:var(--fx-fg)}
.fx-tpl .fhs-mcard__cur{font-size:clamp(18px,1.5vw,20px);font-weight:700;color:var(--fx-fg)}
.fx-tpl .fhs-mcard__cur--inquiry{font-size:16px;color:var(--fx-fg-2)}
.fx-tpl .fhs-mcard__discount{margin-right:6px;font-weight:700;color:var(--fx-brand)}
.fx-tpl .fhs-mcard__cycle{font-size:var(--fx-size-small);color:var(--fx-fg-2)}
.fx-tpl .fhs-mcard__meta{grid-column:1/-1;margin:0;font-size:var(--fx-size-small);color:var(--fx-fg-2)}
.fx-tpl .fhs-mcard__meta.is-empty{display:none}
.fx-tpl .fhs-mcard__likes.is-hidden{display:none}
.fx-tpl .fhs-mcard__cta{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.fx-tpl .fhs-mcard__cta--single{grid-template-columns:1fr}
.fx-tpl .fhs-mcard__cta a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border-radius:var(--fx-radius-pill);font-size:15px;font-weight:700;line-height:1;white-space:nowrap;text-decoration:none;transition:background-color .2s,color .2s,box-shadow .2s}
.fx-tpl .fhs-mcard__cta-demo{box-shadow:inset 0 0 0 1px var(--fx-edge-strong);color:var(--fx-fg)}
.fx-tpl .fhs-mcard__cta-demo:hover{box-shadow:inset 0 0 0 1px var(--fx-fg)}
.fx-tpl .fhs-mcard__cta-start{background:var(--fx-t1);color:var(--fx-brand-ink)}
.fx-tpl .fhs-mcard__cta-start:hover{background:var(--fx-brand)}
.fx-tpl .fhs-mcard__cta a:focus-visible{outline:2px solid var(--fx-ring);outline-offset:2px}

/* 호버(마우스) - 화면이 위로 스크롤. 터치 기기는 정지, 탭하면 상세로 열린다 */
@media (hover:hover) and (pointer:fine){
  .fx-tpl .fhs-mcard:hover .fxh-mock__pc .fxh-mock__img,.fx-tpl .fhs-mcard:focus-within .fxh-mock__pc .fxh-mock__img{transform:translateY(-16%)!important}
  .fx-tpl .fhs-mcard:hover .fhs-mcard__thumb:not(.fxh-mock-host) img{transform:scale(1.04)}
}

/* 목록 맨 끝 「내 업종 요청하기」 카드 — 카드 그리드의 마지막 칸. 점선 테두리 + 라임 버튼으로 행동을 부른다 */
.fx-tpl .fhs-reqcard{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;min-height:280px;padding:32px 28px;border-radius:var(--fx-radius-l);background:var(--fx-s2);box-shadow:inset 0 0 0 1px var(--fx-edge-ink-strong);color:var(--fx-t1)}
.fx-tpl .fhs-reqcard__k{margin:0;font-size:var(--fx-size-small);font-weight:600;letter-spacing:.02em;color:var(--fx-brand)}
.fx-tpl .fhs-reqcard__t{margin:0;font-size:var(--fx-size-h3);font-weight:700;line-height:1.3;color:var(--fx-t1);word-break:keep-all}
.fx-tpl .fhs-reqcard__d{margin:0;font-size:var(--fx-size-body);line-height:1.6;color:var(--fx-t2);word-break:keep-all}
.fx-tpl .fhs-reqcard__btn{display:inline-flex;align-items:center;gap:8px;min-height:48px;margin-top:8px;padding:0 24px;border-radius:var(--fx-radius-pill);background:var(--fx-brand);color:var(--fx-brand-ink);font-size:16px;font-weight:700;text-decoration:none;transition:background .2s ease,transform .2s ease}
.fx-tpl .fhs-reqcard__btn:hover{background:var(--fx-brand-hover);transform:translateY(-2px)}
.fx-tpl .fhs-reqcard__btn:focus-visible{outline:2px solid var(--fx-ring);outline-offset:3px}

/* 빈 결과 */
.fx-tpl .fs-tplempty,.fx-tpl .fhs-empty{padding:48px 24px;border-radius:var(--fx-radius-l);background:var(--fx-card);box-shadow:inset 0 0 0 1px var(--fx-edge-ink);text-align:center;color:var(--fx-fg-2)}
.fx-tpl .fs-tplempty__t,.fx-tpl .fhs-empty__title{margin:0 0 8px;font-size:22px;font-weight:700;color:var(--fx-fg)}
.fx-tpl .fs-tplempty__d,.fx-tpl .fhs-empty__desc{margin:0 0 20px;font-size:17px;line-height:1.6}
.fx-tpl .fs-tplempty .fs-btn{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 30px;border-radius:var(--fx-radius-pill);background:var(--fx-brand);color:var(--fx-brand-ink);font-size:18px;font-weight:700;text-decoration:none}
.fx-tpl .fhs-empty svg{display:none}

/* 페이지 이동 */
.fx-tpl .fluxshop-pagination,.fx-tpl .fhs-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:40px}
.fx-tpl .fluxshop-pagination a,.fx-tpl .fluxshop-pagination span,.fx-tpl .fhs-pagination a,.fx-tpl .fhs-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;border-radius:var(--fx-radius-pill);background:var(--fx-card);color:var(--fx-fg-2);box-shadow:inset 0 0 0 1px var(--fx-edge-ink);text-decoration:none}
.fx-tpl .fluxshop-pagination .current,.fx-tpl .fhs-pagination .current,.fx-tpl .fhs-pagination .is-active{background:var(--fx-t1);color:var(--fx-brand-ink);font-weight:700}
.fx-tpl .fhs-filter-loading{background:rgba(10,10,11,.5)}

/* 준비 중 업종 안내(숏코드 밖) */
.fx-tpl-missing{display:grid;gap:32px;align-items:start}
.fx-tpl-missing__t h2{font-size:clamp(28px,3.6vw,48px);line-height:1.2;font-weight:700;letter-spacing:-.025em;word-break:keep-all}
.fx-tpl-missing__t .fx-lead{margin:16px 0 28px;max-width:560px}
.fx-tpl-empty{max-width:720px;margin:0 auto}

/* 플러그인이 body 끝에 붙이는 장바구니 서랍(닫혀 있음)의 개수 글자 - 최소 13px */
[data-fx-screen="templates"] #fhs-cart-drawer .fhs-cart-drawer__count,[data-fx-screen="templates"] #fhs-cart-drawer.fx-ui .fhs-cart-drawer__count{font-size:13px}

/* ===== 3. 화면 벽 ===== */
.fx-tpl-wallsec{background:var(--fx-s0);overflow:hidden;padding:clamp(72px,9vw,128px) 0 clamp(56px,7vw,96px)}
.fx-tpl-wallsec__head h2{font-size:clamp(32px,4.8vw,60px);line-height:1.15;font-weight:700;letter-spacing:-.025em;word-break:keep-all}
.fx-tpl-wallsec__head .fx-lead{margin-top:16px;max-width:560px}
.fx-tpl-wall{display:grid;gap:14px;width:200%;margin:clamp(40px,6vw,72px) 0 0 -50%;transform:rotateX(14deg) rotateZ(-5deg);transform-origin:50% 30%}
.fx-tpl-wall__row{display:grid;grid-template-columns:repeat(var(--fx-cols,4),calc((100% - 42px) / 4));justify-content:center;gap:14px;transform:translateX(calc(var(--fx-tx,0) * 1px))}
.fx-tpl-wall__row:nth-child(even){transform:translateX(calc(var(--fx-tx,0) * -1px))}
.fx-tpl-wall__item{list-style:none;aspect-ratio:16/10;border-radius:var(--fx-radius-m);overflow:hidden;background:var(--fx-s2);box-shadow:inset 0 0 0 1px var(--fx-edge-ink-strong),0 24px 40px -20px rgba(0,0,0,.8)}
.fx-tpl-wall__item img{width:100%;height:100%;object-fit:cover;object-position:top}
.fx-tpl-wall__item{position:relative}
.fx-tpl-wall__badge{position:absolute;left:10px;top:10px;display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 8px;border-radius:999px;background:rgba(10,10,11,.86);color:var(--fx-t1);font-size:12px;font-weight:600;line-height:1.3;letter-spacing:-.01em;white-space:nowrap;box-shadow:inset 0 0 0 1px var(--fx-edge-ink-strong)}
.fx-tpl-wall__badge::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--fx-brand)}

/* ===== 4. 곧 열리는 업종 + 맞춤 데모 신청 ===== */
.fx-tpl-soon{background:var(--fx-bg)}
.fx-tpl-soon__grid{display:grid;gap:40px;align-items:start}
.fx-tpl-soon h2{font-size:clamp(28px,3.6vw,48px);line-height:1.2;font-weight:700;letter-spacing:-.025em}
.fx-tpl-soon .fx-lead{margin-top:14px;max-width:540px}
.fx-tpl-soon__list{margin-top:28px;border-top:1px solid var(--fx-edge-strong)}
.fx-tpl-soon__row{list-style:none;display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 16px;padding:8px 0;border-bottom:1px solid var(--fx-edge)}
.fx-tpl-soon__name{font-size:19px;font-weight:600}
.fx-tpl-soon__link{grid-column:1/-1;margin-top:-2px;display:inline-flex;align-items:center;min-height:44px;color:var(--fx-fg-2);font-weight:600;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--fx-edge-strong)}
.fx-tpl-soon__link:hover{color:var(--fx-fg);text-decoration-color:currentColor}
.fx-tpl-req{background:var(--fx-card)}
.fx-tpl-req__in{padding:clamp(24px,3vw,36px)}

/* 3칸 1단계 폼(template-parts/fx/demo-form.php) - 모양은 demo.css 구획 1 과 같다 */
[data-fx-surface="dark"]{--fx-demo-line:rgba(255,255,255,.38)}
.fx-demo-form{display:flex;flex-direction:column;gap:20px;position:relative}
.fx-demo-form[hidden]{display:none}
.fx-demo-form__ttl{font-size:clamp(26px,2.6vw,32px);line-height:1.25;font-weight:700;letter-spacing:-.03em;color:var(--fx-fg)}
.fx-demo-form__ttl:focus{outline:0}
.fx-demo-form__lbl{display:block;margin-bottom:8px;font-size:14px;font-weight:600;color:var(--fx-fg)}
.fx-demo-form__input{
  display:block;width:100%;height:52px;padding:0 16px;border:0;border-radius:12px;
  background:var(--fx-card);color:var(--fx-fg);font-size:17px;line-height:1.3;
  box-shadow:inset 0 0 0 1px var(--fx-demo-line);
  transition:box-shadow var(--fx-time-fast) var(--fx-ease-std);
}
.fx-demo-form__input::placeholder{color:var(--fx-fg-3);opacity:1}
.fx-demo-form__input:hover{box-shadow:inset 0 0 0 1px var(--fx-fg-2)}
.fx-demo-d .fx-demo-form__input:focus-visible,.fx-demo-form .fx-demo-form__input:focus-visible{outline:2px solid var(--fx-ring);outline-offset:2px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--fx-fg)}
.fx-demo-form__select{
  appearance:none;-webkit-appearance:none;padding-right:44px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 7l5 5 5-5' stroke='%238c8c86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;
}
.fx-demo-form__field.is-error .fx-demo-form__input,.fx-demo-form__input[aria-invalid="true"]{box-shadow:inset 0 0 0 2px var(--fx-danger)}
.fx-demo-form__msg,.fx-demo-form__err{display:flex;gap:8px;align-items:flex-start;font-size:15px;line-height:1.5;font-weight:500;color:var(--fx-danger)}
.fx-demo-form__msg{margin-top:8px}
.fx-demo-form__msg::before,.fx-demo-form__err::before{
  content:"!";flex:none;width:18px;height:18px;margin-top:2px;border-radius:50%;
  box-shadow:inset 0 0 0 1.5px currentColor;font-size:12px;font-weight:700;line-height:18px;text-align:center;
}
.fx-demo-form__msg[hidden],.fx-demo-form__err[hidden]{display:none}
.fx-demo-form__hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

.fx-demo-form__go,.fx-demo-form__ghost{
  display:flex;align-items:center;justify-content:center;gap:10px;width:100%;
  border-radius:12px;font-size:17px;font-weight:700;letter-spacing:-.01em;line-height:1;text-align:center;cursor:pointer;
  transition:transform var(--fx-time-fast) var(--fx-ease-std),box-shadow var(--fx-time-fast) var(--fx-ease-std),background-color var(--fx-time-fast) var(--fx-ease-std);
}
.fx-demo-form__go{min-height:56px;background:var(--fx-brand);color:var(--fx-brand-ink)}
.fx-demo-form__go:hover{transform:translateY(-2px);background:var(--fx-brand-hover);box-shadow:0 12px 24px -12px rgba(17,17,17,.5)}
.fx-demo-form__go:active{transform:none;background:var(--fx-brand-deep)}
.fx-demo-form__go[disabled]{opacity:.55;cursor:progress;transform:none;box-shadow:none}
.fx-demo-form__go[hidden],.fx-demo-form__ghost[hidden]{display:none}
.fx-demo-form__ghost{min-height:52px;padding:0 20px;box-shadow:inset 0 0 0 1px var(--fx-demo-line);color:var(--fx-fg)}
.fx-demo-form__ghost:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px var(--fx-fg)}
.fx-demo-d .fx-demo-form__go:focus-visible,.fx-demo-d .fx-demo-form__ghost:focus-visible,.fx-demo-form .fx-demo-form__go:focus-visible{border-radius:12px}

/* ===== 5. 마지막 CTA ===== */
.fx-tpl-end{background:var(--fx-s0);padding:clamp(88px,11vw,152px) 0}
.fx-tpl-end h2{font-size:clamp(40px,8vw,104px);line-height:1.08;font-weight:700;letter-spacing:-.035em;word-break:keep-all}
.fx-tpl-end__d{margin-top:24px;max-width:560px}
.fx-tpl-end__act{margin-top:32px}
.fx-tpl-end .fx-button{min-height:64px;padding:0 38px;font-size:20px}

/* ===== 6. 반응형 (모바일 먼저 -> 위로 올라가며 넓힘) ===== */
@media (max-width:767px){
  .fx-tpl .fhs-shop-grid{grid-template-columns:1fr}
  .fx-tpl .fhs-cat-tabs{gap:6px}
  .fx-tpl .fhs-cat-tab span{padding:0 16px}
  .fx-tpl-head__act .fx-button,.fx-tpl-end .fx-button{width:100%}
  .fx-tpl-wall{width:240%;margin-left:-70%}
  .fx-demo-form__go,.fx-demo-form__ghost{min-height:48px;font-size:15px}
  .fx-tpl-head__act .fx-button,.fx-tpl-end .fx-button{min-height:48px;font-size:15px}
}
@media (min-width:1024px){
  .fx-tpl-head__row{grid-template-columns:7fr 5fr}
  .fx-tpl-head__act{justify-content:flex-end}
  .fx-tpl-missing,.fx-tpl-soon__grid{grid-template-columns:6fr 5fr;gap:64px}
}

/* ===== 7. reduced-motion: 최종 상태로 정지 ===== */
@media (prefers-reduced-motion:reduce){
  .fx-tpl .fhs-mcard,.fx-tpl .fhs-mcard:hover{transition:none;transform:none}
  .fx-tpl .fxh-mock .fxh-mock__pc .fxh-mock__img{transition:none}
  .fx-tpl .fhs-mcard:hover .fxh-mock__pc .fxh-mock__img,.fx-tpl .fhs-mcard:focus-within .fxh-mock__pc .fxh-mock__img{transform:translateY(0)!important}
  .fx-tpl .fhs-mcard__thumb:not(.fxh-mock-host) img,.fx-tpl .fhs-mcard:hover .fhs-mcard__thumb:not(.fxh-mock-host) img{transition:none;transform:none}
  .fx-tpl-wall,.fx-tpl-wall__row,.fx-tpl-wall__row:nth-child(even){transform:none}
  .fx-tpl-wall{width:100%;margin-left:0}
}

/* S2 tiers — 갤러리 카드 업종 시작가 */
.fx-tpl .fhs-mcard__cur--from{font-variant-numeric:tabular-nums}
