/* 액자 3D 보기 (js/frame-hover-3d.js) — 정면 → 마우스를 올리면 옆으로 돌아 두께가 보인다 */
.fh3d{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:12px;background:radial-gradient(120% 90% at 50% 40%,#fbfbfb 0,#f1f1f1 70%,#ebebeb 100%);perspective:1600px;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent}
.fh3d:focus-visible{box-shadow:inset 0 0 0 3px #005dff}
.fh3d-box{position:relative;width:var(--w);height:var(--h);transform-style:preserve-3d;transform:rotateX(0) rotateY(0);transition:transform 1.1s cubic-bezier(.22,.8,.24,1);will-change:transform;backface-visibility:hidden}
.fh3d:hover .fh3d-box,.fh3d:focus-visible .fh3d-box,.fh3d.is-turned .fh3d-box{transform:rotateX(4deg) rotateY(-38deg)}
.fh3d-face{position:absolute;left:50%;top:50%;backface-visibility:hidden}
/* 앞면 — 가운데에서 두께 반만큼 앞으로 */
.fh3d-front{width:var(--w);height:var(--h);margin:calc(var(--h) / -2) 0 0 calc(var(--w) / -2);transform:translateZ(calc(var(--d) / 2));box-shadow:0 26px 34px -18px rgb(0 0 0/.42),0 4px 10px rgb(0 0 0/.08)}
.fh3d-right,.fh3d-left{width:var(--d);height:var(--h);margin:calc(var(--h) / -2) 0 0 calc(var(--d) / -2)}
.fh3d-right{transform:rotateY(90deg) translateZ(calc(var(--w) / 2))}
.fh3d-left{transform:rotateY(-90deg) translateZ(calc(var(--w) / 2))}
.fh3d-top,.fh3d-bottom{width:var(--w);height:var(--d);margin:calc(var(--d) / -2) 0 0 calc(var(--w) / -2)}
.fh3d-top{transform:rotateX(90deg) translateZ(calc(var(--h) / 2))}
.fh3d-bottom{transform:rotateX(-90deg) translateZ(calc(var(--h) / 2))}
/* 사진 자리 */
.fh3d-art{position:absolute;inset:var(--rail);display:grid;place-content:center;justify-items:center;gap:10px;background:radial-gradient(90% 70% at 30% 25%,#444 0,#333 55%,#2c2c2c 100%);box-shadow:inset 0 0 0 1px rgb(0 0 0/.25),inset 2px 2px 6px rgb(0 0 0/.45)}
.fh3d-art img{width:clamp(28px,16%,72px);height:auto;opacity:.85;filter:grayscale(1) brightness(2.2) sepia(.35)}
.fh3d-art span{font-size:clamp(9px,1.4vw,12px);letter-spacing:3px;color:#cfc6b6;opacity:.7}
.fh3d-rail{position:absolute;display:none}
.fh3d-gloss{position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,rgb(255 255 255/0) 35%,rgb(255 255 255/.10) 48%,rgb(255 255 255/0) 60%);opacity:.6;transition:opacity 1.1s,transform 1.1s}
.fh3d:hover .fh3d-gloss,.fh3d.is-turned .fh3d-gloss{opacity:1;transform:translateX(8%)}
.fh3d-hint{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);padding:6px 12px;border-radius:20px;background:rgb(255 255 255/.85);font-size:12px;color:#666;white-space:nowrap;transition:opacity .4s}
.fh3d:hover .fh3d-hint,.fh3d.is-turned .fh3d-hint{opacity:0}
@media(hover:none){.fh3d-hint::before{content:"누르면 옆면이 보여요";}.fh3d-hint{font-size:0}.fh3d-hint::before{font-size:12px}}

/* 원목 — 결이 있는 밝은 오크. 네 변을 45°로 맞물린다 */
.fh3d[data-kind=wood] .fh3d-rail,.fh3d[data-kind=wood] .fh3d-right,.fh3d[data-kind=wood] .fh3d-left,.fh3d[data-kind=wood] .fh3d-top,.fh3d[data-kind=wood] .fh3d-bottom{background:repeating-linear-gradient(var(--g),rgb(120 98 80/.20) 0 1px,transparent 1px 2px),repeating-linear-gradient(var(--g),transparent 0 2px,rgb(255 255 255/.35) 2px 3px,transparent 3px 5px),repeating-linear-gradient(var(--g),transparent 0 4px,rgb(110 88 70/.16) 4px 5px,transparent 5px 7px),linear-gradient(calc(var(--g) + 90deg),#e0d8ce,#d3c8bb 30%,#ddd4c9 55%,#cfc4b6 80%,#dad1c6)}
.fh3d[data-kind=wood] .fh3d-rail{display:block}
.fh3d[data-kind=wood] .fh3d-rail-t{--g:0deg;left:0;top:0;width:100%;height:var(--rail);clip-path:polygon(0 0,100% 0,calc(100% - var(--rail)) 100%,var(--rail) 100%);box-shadow:inset 0 -1px 0 rgb(0 0 0/.12)}
.fh3d[data-kind=wood] .fh3d-rail-b{--g:0deg;left:0;bottom:0;width:100%;height:var(--rail);clip-path:polygon(var(--rail) 0,calc(100% - var(--rail)) 0,100% 100%,0 100%);filter:brightness(.93)}
.fh3d[data-kind=wood] .fh3d-rail-l{--g:90deg;left:0;top:0;width:var(--rail);height:100%;clip-path:polygon(0 0,100% var(--rail),100% calc(100% - var(--rail)),0 100%);filter:brightness(.97)}
.fh3d[data-kind=wood] .fh3d-rail-r{--g:90deg;right:0;top:0;width:var(--rail);height:100%;clip-path:polygon(0 var(--rail),100% 0,100% 100%,0 calc(100% - var(--rail)));filter:brightness(.9)}
.fh3d[data-kind=wood] .fh3d-right,.fh3d[data-kind=wood] .fh3d-left{--g:90deg;filter:brightness(.88)}
.fh3d[data-kind=wood] .fh3d-top,.fh3d[data-kind=wood] .fh3d-bottom{--g:0deg;filter:brightness(.8)}

/* 베젤 — 얇은 검정 금속 테두리 */
.fh3d[data-kind=bezel] .fh3d-rail{display:block;background:linear-gradient(135deg,#3a3a3a,#161616 60%,#2a2a2a)}
.fh3d[data-kind=bezel] .fh3d-rail-t{left:0;top:0;width:100%;height:var(--rail)}
.fh3d[data-kind=bezel] .fh3d-rail-b{left:0;bottom:0;width:100%;height:var(--rail)}
.fh3d[data-kind=bezel] .fh3d-rail-l{left:0;top:0;width:var(--rail);height:100%}
.fh3d[data-kind=bezel] .fh3d-rail-r{right:0;top:0;width:var(--rail);height:100%}
.fh3d[data-kind=bezel] .fh3d-right,.fh3d[data-kind=bezel] .fh3d-left{background:linear-gradient(90deg,#2b2b2b,#4a4a4a 45%,#1d1d1d)}
.fh3d[data-kind=bezel] .fh3d-top,.fh3d[data-kind=bezel] .fh3d-bottom{background:linear-gradient(#3b3b3b,#191919)}

/* 디아섹 — 테두리 없는 아크릴. 옆면은 투명한 유리 결 */
.fh3d[data-kind=diasec] .fh3d-art{inset:0;box-shadow:none}
.fh3d[data-kind=diasec] .fh3d-gloss{background:linear-gradient(115deg,rgb(255 255 255/0) 30%,rgb(255 255 255/.22) 45%,rgb(255 255 255/0) 58%),linear-gradient(rgb(255 255 255/.06),rgb(255 255 255/0));opacity:.8}
.fh3d[data-kind=diasec] .fh3d-right,.fh3d[data-kind=diasec] .fh3d-left{background:linear-gradient(90deg,#b9d3d6,#e6f1f2 40%,#c4dadd 70%,#9dbcc1);box-shadow:inset 0 0 0 1px rgb(255 255 255/.6)}
.fh3d[data-kind=diasec] .fh3d-top,.fh3d[data-kind=diasec] .fh3d-bottom{background:linear-gradient(rgb(225 242 244/.95),rgb(150 190 196/.9))}

/* 움직임 줄이기(Windows 애니메이션 끄기) 설정이어도 회전은 그대로 둔다 — 끄면 정면↔옆면이 뚝 바뀐다 */

/* 가까이 보기 (썸네일 · 크게 보기) — 돌지 않고, 액자 한 부분을 크게 잡는다. 바탕은 흰 벽 */
.fh3d--detail{cursor:inherit;background:radial-gradient(120% 100% at 30% 20%,#fff 0,#f4f4f4 70%,#ececec 100%);border-radius:0}
.fh3d--detail .fh3d-box,.fh3d--detail:hover .fh3d-box{transition:none}
/* 위 왼쪽 모서리 — 비스듬히 내려다봐 앞 테두리와 왼쪽 두께가 같이 보인다 */
.fh3d--detail[data-view=corner] .fh3d-box,.fh3d--detail[data-view=corner]:hover .fh3d-box{transform:translate(40%,36%) scale(1.85) rotateX(-16deg) rotateY(28deg) rotateZ(-24deg)}
/* 아래 모서리 정면 — 꼭짓점이 아래를 향하게 45° 돌린다 */
.fh3d--detail[data-view=bottom] .fh3d-box,.fh3d--detail[data-view=bottom]:hover .fh3d-box{transform:translate(0,-50%) scale(1.8) rotateX(14deg) rotateZ(45deg)}
/* 옆면 두께 — 오른쪽 아래를 옆에서 본다 */
.fh3d--detail[data-view=side] .fh3d-box,.fh3d--detail[data-view=side]:hover .fh3d-box{transform:translate(-50%,-40%) scale(1.9) rotateY(-46deg) rotateX(4deg)}
.fh3d--detail .fh3d-front{box-shadow:18px 26px 34px -10px rgb(0 0 0/.28)}

/* 가까이 보기: 로고·글자는 빼고, 원목·베젤은 흰 매트를 둘러 테두리 모양이 또렷하게 */
.fh3d--detail .fh3d-art img,.fh3d--detail .fh3d-art span{display:none}
.fh3d--detail .fh3d-art{background:#1d1d1d}
.fh3d--detail[data-kind=wood] .fh3d-art,.fh3d--detail[data-kind=bezel] .fh3d-art{box-shadow:inset 0 0 0 calc(var(--rail) * 1.6 + 6px) #fbfbfa,inset 0 0 0 calc(var(--rail) * 1.6 + 7px) #ddd,inset 2px 2px 5px rgb(0 0 0/.3)}

/* 뒷면 — 가운데에서 두께 반만큼 뒤로, 뒤집어 붙인다. host.is-back 이면 뒤로 돌아 비스듬히 보여 준다 */
.fh3d-back{width:var(--w);height:var(--h);margin:calc(var(--h) / -2) 0 0 calc(var(--w) / -2);transform:rotateY(180deg) translateZ(calc(var(--d) / 2));background:linear-gradient(160deg,#f6f6f5,#e4e4e2 60%,#d9d9d7);box-shadow:inset 0 0 0 1px rgb(0 0 0/.06)}
.fh3d-back.has-photo{background-position:center;background-size:cover}
.fh3d-back.has-photo>*{display:none}
.fh3d:not(.fh3d--detail){touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}
.fh3d.is-dragging{cursor:grabbing}
.fh3d.is-dragging .fh3d-box{transition:none}
.fh3d.is-dragging .fh3d-hint{opacity:0}
.fh3d.is-back .fh3d-hint{opacity:0}
.fh3d-tag{position:absolute;left:50%;bottom:9%;transform:translateX(-50%);padding:3px 8px;border-radius:3px;background:#fff;box-shadow:0 1px 2px rgb(0 0 0/.15);font-size:clamp(7px,1vw,10px);letter-spacing:2px;color:#2a55c9;font-weight:700;white-space:nowrap}
/* 디아섹 뒷면 — 흰 받침판 + 가운데 알루미늄 사각 걸이틀 */
.fh3d-hanger{position:absolute;inset:24%;border:clamp(5px,1.6vw,11px) solid #c3c7cb;border-radius:3px;border-color:#d7dadd #aeb3b8 #a3a8ad #c9cdd1;box-shadow:0 3px 6px rgb(0 0 0/.22),inset 0 2px 4px rgb(0 0 0/.18)}
/* 원목·베젤 뒷면 — 크라프트지 + 위쪽 톱니 고리 */
.fh3d[data-kind=wood] .fh3d-back,.fh3d[data-kind=bezel] .fh3d-back{background:repeating-linear-gradient(90deg,rgb(120 90 50/.05) 0 2px,transparent 2px 5px),linear-gradient(160deg,#c9a77a,#b8925f)}
.fh3d[data-kind=wood] .fh3d-hanger,.fh3d[data-kind=bezel] .fh3d-hanger{inset:9% 38% auto;height:clamp(6px,1.2vw,10px);border:0;border-radius:2px;background:repeating-linear-gradient(90deg,#9aa0a6 0 3px,#d4d7da 3px 6px);box-shadow:0 1px 2px rgb(0 0 0/.3)}
/* 손님 사진 미리보기 — 꽉 채워 자른다 */
.fh3d-art.has-photo{background-position:center;background-size:cover;background-repeat:no-repeat}
.fh3d-art.has-photo img,.fh3d-art.has-photo span{display:none}

/* 유광 · 무광 — 유광은 창빛이 또렷하게 비치고, 무광은 빛이 퍼져 반사가 없다. 바꿀 때 조명이 한 번 쓸고 간다 */
.fh3d-sweep{position:absolute;inset:0;pointer-events:none;overflow:hidden;opacity:0}
.fh3d-sweep::before{content:"";position:absolute;top:-20%;bottom:-20%;left:0;width:34%;transform:translateX(-160%) skewX(-18deg)}
.fh3d.is-lit .fh3d-sweep{opacity:1}
.fh3d.is-lit .fh3d-sweep::before{animation:fh3d-sweep 1.5s cubic-bezier(.45,.05,.25,1) forwards}
@keyframes fh3d-sweep{to{transform:translateX(420%) skewX(-18deg)}}
/* 유광: 날카로운 하이라이트 + 창틀 모양 반사 */
.fh3d[data-finish=gloss] .fh3d-sweep::before{width:22%;background:linear-gradient(90deg,rgb(255 255 255/0),rgb(255 255 255/.85) 45%,rgb(255 255 255/.95) 50%,rgb(255 255 255/.85) 55%,rgb(255 255 255/0))}
.fh3d[data-finish=gloss] .fh3d-gloss{opacity:1;background:linear-gradient(118deg,rgb(255 255 255/0) 22%,rgb(255 255 255/.30) 30%,rgb(255 255 255/0) 31%,rgb(255 255 255/0) 34%,rgb(255 255 255/.18) 36%,rgb(255 255 255/0) 44%),radial-gradient(40% 30% at 22% 14%,rgb(255 255 255/.38),rgb(255 255 255/0) 70%),linear-gradient(rgb(255 255 255/.08),rgb(255 255 255/0) 40%)}
.fh3d[data-finish=gloss] .fh3d-art.has-photo{filter:saturate(1.08) contrast(1.05)}
/* 무광: 반사 없이 부드러운 빛 + 살짝 뽀얀 막 */
.fh3d[data-finish=matte] .fh3d-sweep::before{width:70%;background:radial-gradient(50% 50% at 50% 50%,rgb(255 255 255/.28),rgb(255 255 255/0) 70%);filter:blur(6px)}
.fh3d[data-finish=matte] .fh3d-gloss{opacity:1;transform:none;background:linear-gradient(160deg,rgb(255 255 255/.10),rgb(255 255 255/.04) 60%,rgb(255 255 255/.07)),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E")}
.fh3d[data-finish=matte] .fh3d-art.has-photo{filter:saturate(.94) contrast(.95) brightness(1.03)}
/* 조명이 켜질 때 벽에도 빛이 번진다 */
.fh3d::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(45% 40% at 28% 18%,rgb(255 250 235/.9),rgb(255 250 235/0) 70%);opacity:0}
.fh3d.is-lit::before{animation:fh3d-wall 1.5s ease-out}
@keyframes fh3d-wall{30%{opacity:1}to{opacity:0}}
.fh3d-finish-badge{position:absolute;left:50%;top:16px;transform:translateX(-50%);padding:6px 14px;border-radius:20px;background:rgb(17 17 17/.78);color:#fff;font-size:12px;font-weight:600;pointer-events:none;opacity:0}
.fh3d.is-lit .fh3d-finish-badge{animation:fh3d-wall 1.5s ease-out}

/* 사진 크기·위치 조절 중 — 정면 고정, 끌면 사진이 움직인다 */
.fh3d.is-editing{cursor:move;touch-action:none}
.fh3d.is-editing .fh3d-box,.fh3d.is-editing:hover .fh3d-box{transform:none!important}
.fh3d.is-editing .fh3d-gloss,.fh3d.is-editing .fh3d-hint{opacity:0}
.fh3d.is-editing .fh3d-front{outline:2px dashed rgb(0 93 255/.85);outline-offset:4px}
/* 무광 — 색감은 그대로 두고 반사만 없앤다 (뽀얀 막 · 색 보정 빼기, 2026-10-01) */
.fh3d[data-finish=matte] .fh3d-gloss{opacity:0}
.fh3d[data-finish=matte] .fh3d-art.has-photo{filter:none}
.fh3d[data-finish=matte] .fh3d-sweep::before{background:radial-gradient(50% 50% at 50% 50%,rgb(255 255 255/.12),rgb(255 255 255/0) 70%)}
/* 유광 — 줄무늬 반사 대신 은은하게 비치는 넓은 빛 한 줄기 + 위쪽 옅은 광택 (2026-10-01) */
.fh3d[data-finish=gloss] .fh3d-gloss{opacity:1;background:linear-gradient(120deg,rgb(255 255 255/0) 18%,rgb(255 255 255/.07) 32%,rgb(255 255 255/.13) 40%,rgb(255 255 255/.07) 48%,rgb(255 255 255/0) 62%),linear-gradient(180deg,rgb(255 255 255/.06),rgb(255 255 255/0) 35%)}
.fh3d[data-finish=gloss] .fh3d-art.has-photo{filter:none}
.fh3d[data-finish=gloss] .fh3d-sweep::before{width:40%;background:linear-gradient(90deg,rgb(255 255 255/0),rgb(255 255 255/.22) 50%,rgb(255 255 255/0));filter:blur(4px)}
/* 3D 칸 바탕 — 연한 파랑 (2026-10-01) */
.fh3d:not(.fh3d--detail){background:radial-gradient(120% 90% at 50% 38%,#f7faff 0,#eaf1fc 65%,#dfe9f8 100%)}

/* ── 360° 돌리기 + 각도에 맞춘 빛 (js/frame-hover-3d.js 가 --lx --lf --lb --sr --sl 을 매 프레임 넣는다) ── */
.fh3d:not(.fh3d--detail) .fh3d-box{transition:none!important}
.fh3d-front{overflow:hidden}
/* 앞면 광택 — 돌리는 방향으로 띠가 흐르고, 빛을 정면으로 받을수록 진해진다 */
.fh3d[data-finish=gloss] .fh3d-gloss{left:-60%;right:-60%;transform:translateX(calc(var(--lx,0) * -38%));opacity:calc(.15 + var(--lf,1) * .85);background:linear-gradient(115deg,rgb(255 255 255/0) 36%,rgb(255 255 255/.05) 42%,rgb(255 255 255/.16) 47%,rgb(255 255 255/.05) 52%,rgb(255 255 255/0) 58%),linear-gradient(180deg,rgb(255 255 255/.05),rgb(255 255 255/0) 30%)}
.fh3d .fh3d-art{filter:brightness(calc(.86 + var(--lf,1) * .14))}
.fh3d .fh3d-right{filter:brightness(calc(.55 + var(--sr,.5) * .6))}
.fh3d .fh3d-left{filter:brightness(calc(.55 + var(--sl,.5) * .6))}
.fh3d .fh3d-back{filter:brightness(calc(.8 + var(--lb,0) * .22))}
.fh3d.is-dragging{cursor:grabbing}

/* 디아섹 — 얇은 판. 옆면: 앞쪽은 검정(아크릴+사진), 뒤쪽은 흰 알루미늄 복합판 */
.fh3d[data-kind=diasec] .fh3d-right,.fh3d[data-kind=diasec] .fh3d-left,.fh3d[data-kind=diasec] .fh3d-top,.fh3d[data-kind=diasec] .fh3d-bottom{box-shadow:none}
.fh3d[data-kind=diasec] .fh3d-right{background:linear-gradient(to right,#2a2a2a 0,#0d0d0d 12%,#141414 44%,#bdbdbd 48%,#f2f2f0 56%,#dcdcda 100%)}
.fh3d[data-kind=diasec] .fh3d-left{background:linear-gradient(to left,#2a2a2a 0,#0d0d0d 12%,#141414 44%,#bdbdbd 48%,#f2f2f0 56%,#dcdcda 100%)}
.fh3d[data-kind=diasec] .fh3d-top{background:linear-gradient(to top,#2a2a2a 0,#0d0d0d 12%,#141414 44%,#bdbdbd 48%,#f2f2f0 56%,#dcdcda 100%)}
.fh3d[data-kind=diasec] .fh3d-bottom{background:linear-gradient(to bottom,#2a2a2a 0,#0d0d0d 12%,#141414 44%,#bdbdbd 48%,#f2f2f0 56%,#dcdcda 100%)}
.fh3d[data-kind=diasec] .fh3d-front{box-shadow:inset 0 0 0 1px rgb(255 255 255/.12),0 26px 34px -18px rgb(0 0 0/.42),0 4px 10px rgb(0 0 0/.08)}
/* 디아섹 뒷면 — 흰 판 + 가장자리를 따라 도는 알루미늄 걸이틀, 네 모서리 이음쇠 */
.fh3d[data-kind=diasec] .fh3d-back{background:linear-gradient(160deg,#f7f7f6,#ecebe9 70%,#e4e3e1);box-shadow:inset 0 0 0 1px rgb(0 0 0/.05)}
.fh3d[data-kind=diasec] .fh3d-hanger{--t:max(3px,calc(var(--w) * .013));--c:calc(var(--t) * 2.1);inset:3.6%;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 2px 2px rgb(0 0 0/.28));
  background:
    linear-gradient(#55595e,#55595e) 0 0/var(--c) var(--c) no-repeat,
    linear-gradient(#55595e,#55595e) 100% 0/var(--c) var(--c) no-repeat,
    linear-gradient(#55595e,#55595e) 0 100%/var(--c) var(--c) no-repeat,
    linear-gradient(#55595e,#55595e) 100% 100%/var(--c) var(--c) no-repeat,
    linear-gradient(#c3c6c9,#7d8287 60%,#9a9ea2) 0 0/100% var(--t) no-repeat,
    linear-gradient(#c3c6c9,#7d8287 60%,#9a9ea2) 0 100%/100% var(--t) no-repeat,
    linear-gradient(90deg,#c3c6c9,#7d8287 60%,#9a9ea2) 0 0/var(--t) 100% no-repeat,
    linear-gradient(90deg,#c3c6c9,#7d8287 60%,#9a9ea2) 100% 0/var(--t) 100% no-repeat}

/* 디아섹 걸이틀(몰딩) — 판 뒤로 튀어나온 두께. 9겹을 뒤쪽으로 쌓고, 안쪽 겹은 알루미늄 옆면 색 */
.fh3d-back{transform-style:preserve-3d}
.fh3d[data-kind=diasec] .fh3d-hanger{--mz:max(5px,calc(var(--w) * .045));transform:translateZ(calc(var(--z) * var(--mz) / 8));backface-visibility:hidden;filter:none}
.fh3d[data-kind=diasec] .fh3d-hanger:not(:last-child){
  background:
    linear-gradient(#4a4e52,#4a4e52) 0 0/var(--c) var(--c) no-repeat,
    linear-gradient(#4a4e52,#4a4e52) 100% 0/var(--c) var(--c) no-repeat,
    linear-gradient(#4a4e52,#4a4e52) 0 100%/var(--c) var(--c) no-repeat,
    linear-gradient(#4a4e52,#4a4e52) 100% 100%/var(--c) var(--c) no-repeat,
    linear-gradient(#8d9196,#8d9196) 0 0/100% var(--t) no-repeat,
    linear-gradient(#8d9196,#8d9196) 0 100%/100% var(--t) no-repeat,
    linear-gradient(#8d9196,#8d9196) 0 0/var(--t) 100% no-repeat,
    linear-gradient(#8d9196,#8d9196) 100% 0/var(--t) 100% no-repeat}
.fh3d[data-kind=diasec] .fh3d-hanger:first-child{filter:drop-shadow(0 0 3px rgb(0 0 0/.25))}
.fh3d[data-kind=wood] .fh3d-hanger:not(:first-child),.fh3d[data-kind=bezel] .fh3d-hanger:not(:first-child){display:none}

/* ── 디아섹 실물 맞춤 (사장님 실물 사진 2026-10-01) ── */
/* 사진 없을 때 앞면 — 검정 대신 투명 아크릴 */
.fh3d[data-kind=diasec] .fh3d-art:not(.has-photo){background:linear-gradient(135deg,rgb(255 255 255/.92),rgb(232 240 246/.82) 55%,rgb(214 226 236/.85));box-shadow:inset 0 0 0 1px rgb(255 255 255/.9),inset 0 0 18px rgb(150 175 195/.25)}
.fh3d[data-kind=diasec] .fh3d-art:not(.has-photo) img{filter:grayscale(1) opacity(.45)}
.fh3d[data-kind=diasec] .fh3d-art:not(.has-photo) span{color:#7f8c99;opacity:.9}
/* 옆면 — 앞 투명 아크릴 · 얇은 사진층 · 은회색 알루미늄 복합판 */
.fh3d[data-kind=diasec] .fh3d-right{background:linear-gradient(to right,#eef4f6 0,#d3dde1 30%,#3a3a3a 34%,#5b5e61 40%,#aeb2b5 46%,#cfd2d4 75%,#b9bdc0 100%)}
.fh3d[data-kind=diasec] .fh3d-left{background:linear-gradient(to left,#eef4f6 0,#d3dde1 30%,#3a3a3a 34%,#5b5e61 40%,#aeb2b5 46%,#cfd2d4 75%,#b9bdc0 100%)}
.fh3d[data-kind=diasec] .fh3d-top{background:linear-gradient(to top,#eef4f6 0,#d3dde1 30%,#3a3a3a 34%,#5b5e61 40%,#aeb2b5 46%,#cfd2d4 75%,#b9bdc0 100%)}
.fh3d[data-kind=diasec] .fh3d-bottom{background:linear-gradient(to bottom,#eef4f6 0,#d3dde1 30%,#3a3a3a 34%,#5b5e61 40%,#aeb2b5 46%,#cfd2d4 75%,#b9bdc0 100%)}
/* 뒷면 판 — 은색 알루미늄(살짝 브러시 결) */
.fh3d[data-kind=diasec] .fh3d-back{background:repeating-linear-gradient(90deg,rgb(255 255 255/.05) 0 1px,transparent 1px 3px),linear-gradient(160deg,#cfd2d4,#bfc3c6 55%,#b3b7ba);box-shadow:inset 0 0 0 1px rgb(0 0 0/.08)}
/* 걸이틀 — 은색 알루미늄 레일 + 진회색 모서리 부품, 판에서 크게 튀어나옴 */
.fh3d[data-kind=diasec] .fh3d-hanger{--t:max(5px,calc(var(--w) * .07));--c:calc(var(--t) * 1.05);--mz:max(8px,calc(var(--w) * .06));inset:8%;
  background:
    linear-gradient(#5a5e62,#4b4f53) 0 0/var(--c) var(--c) no-repeat,
    linear-gradient(#5a5e62,#4b4f53) 100% 0/var(--c) var(--c) no-repeat,
    linear-gradient(#5a5e62,#4b4f53) 0 100%/var(--c) var(--c) no-repeat,
    linear-gradient(#5a5e62,#4b4f53) 100% 100%/var(--c) var(--c) no-repeat,
    linear-gradient(#f2f4f5,#d5d8db 35%,#aeb3b7 48%,#e1e4e6 52%,#c3c7ca 100%) 0 0/100% var(--t) no-repeat,
    linear-gradient(#f2f4f5,#d5d8db 35%,#aeb3b7 48%,#e1e4e6 52%,#c3c7ca 100%) 0 100%/100% var(--t) no-repeat,
    linear-gradient(90deg,#f2f4f5,#d5d8db 35%,#aeb3b7 48%,#e1e4e6 52%,#c3c7ca 100%) 0 0/var(--t) 100% no-repeat,
    linear-gradient(90deg,#f2f4f5,#d5d8db 35%,#aeb3b7 48%,#e1e4e6 52%,#c3c7ca 100%) 100% 0/var(--t) 100% no-repeat}
.fh3d[data-kind=diasec] .fh3d-hanger:not(:last-child){
  background:
    linear-gradient(#45494d,#45494d) 0 0/var(--c) var(--c) no-repeat,
    linear-gradient(#45494d,#45494d) 100% 0/var(--c) var(--c) no-repeat,
    linear-gradient(#45494d,#45494d) 0 100%/var(--c) var(--c) no-repeat,
    linear-gradient(#45494d,#45494d) 100% 100%/var(--c) var(--c) no-repeat,
    linear-gradient(#a3a8ac,#a3a8ac) 0 0/100% var(--t) no-repeat,
    linear-gradient(#a3a8ac,#a3a8ac) 0 100%/100% var(--t) no-repeat,
    linear-gradient(#a3a8ac,#a3a8ac) 0 0/var(--t) 100% no-repeat,
    linear-gradient(#a3a8ac,#a3a8ac) 100% 0/var(--t) 100% no-repeat}
.fh3d[data-kind=diasec] .fh3d-hanger:first-child{filter:drop-shadow(0 0 4px rgb(0 0 0/.3))}

/* 디아섹 걸이틀 — 입체 상자(js buildMold). 겹쳐 쌓던 옛 틀은 숨긴다 */
.fh3d[data-kind=diasec] .fh3d-hanger{display:none}
.fh3d-mold{position:absolute;inset:0;transform-style:preserve-3d;pointer-events:none}
.fh3d-cub{position:absolute;transform-style:preserve-3d}
.fh3d-cf{position:absolute;display:block}
/* 은색 알루미늄 레일 — 윗면은 홈 한 줄, 옆면은 빛 방향 따라 밝기 */
.fh3d-cub.is-rail.is-h .fh3d-cf-cap{background:linear-gradient(#f4f6f7,#dadde0 38%,#a9aeb2 47%,#e3e6e8 53%,#c6cacd)}
.fh3d-cub.is-rail.is-v .fh3d-cf-cap{background:linear-gradient(90deg,#f4f6f7,#dadde0 38%,#a9aeb2 47%,#e3e6e8 53%,#c6cacd)}
.fh3d-cub.is-rail .fh3d-cf-n,.fh3d-cub.is-rail .fh3d-cf-s{background:linear-gradient(#9da2a6,#cfd3d6 40%,#b8bcc0)}
.fh3d-cub.is-rail .fh3d-cf-w,.fh3d-cub.is-rail .fh3d-cf-e{background:linear-gradient(90deg,#9da2a6,#cfd3d6 40%,#b8bcc0)}
.fh3d-cub.is-rail .fh3d-cf-n,.fh3d-cub.is-rail .fh3d-cf-w{filter:brightness(.92)}
/* 진회색 모서리 부품 */
.fh3d-cub.is-corner .fh3d-cf{background:#4d5155}
.fh3d-cub.is-corner .fh3d-cf-cap{background:radial-gradient(circle at 50% 50%,#5d6165 0 26%,transparent 27%),linear-gradient(135deg,#5f6367,#45494d);border-radius:2px}
.fh3d-cub.is-corner .fh3d-cf-n,.fh3d-cub.is-corner .fh3d-cf-w{background:#3f4347}
/* 판에 닿는 그림자 */
.fh3d-mold::before{content:"";position:absolute;inset:7%;box-shadow:0 0 10px rgb(0 0 0/.18);pointer-events:none}

/* 뒷면 밝기는 필터 대신 덧씌운 그림자로 — filter 를 쓰면 입체(몰딩)가 납작해진다 */
.fh3d .fh3d-back{filter:none}
.fh3d .fh3d-back::after{content:"";position:absolute;inset:0;background:rgb(0 0 0/calc((1 - var(--lb,0)) * .16));pointer-events:none}
/* 사진 자리 안내 — 'YOUR PHOTO' 대신 */
.fh3d-ph{display:grid;justify-items:center;gap:10px;padding:0 12%;text-align:center;font-size:clamp(12px,1.25vw,16px);font-weight:600;line-height:1.45;letter-spacing:-.01em;color:#6f8396}
.fh3d-ph svg{width:clamp(26px,3vw,40px);height:auto;fill:none;stroke:#8aa0b4;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.fh3d-art.has-photo .fh3d-ph,.fh3d--detail .fh3d-ph{display:none}
.fh3d:not([data-kind=diasec]) .fh3d-art:not(.has-photo) .fh3d-ph{color:#cfc6b6}
.fh3d:not([data-kind=diasec]) .fh3d-art:not(.has-photo) .fh3d-ph svg{stroke:#cfc6b6}
/* 앞면은 불투명하게(뒤 몰딩이 비치지 않게), 안내 문구는 가로로 */
.fh3d[data-kind=diasec] .fh3d-art:not(.has-photo){background:linear-gradient(135deg,#fbfdfe,#edf3f8 55%,#dfe8f0)}
.fh3d-art .fh3d-ph{width:100%;box-sizing:border-box;font-size:clamp(13px,1.3vw,17px);letter-spacing:-.01em;opacity:1;color:#6f8396;word-break:keep-all}
.fh3d:not([data-kind=diasec]) .fh3d-art .fh3d-ph{color:#cfc6b6}
.fh3d-art:not(.has-photo){grid-template-columns:100%;justify-content:stretch}
/* 뒷판 선 없애기 — 세로 결무늬 · 걸이틀 안쪽 그림자 테두리 빼고 매끈한 은색 판 */
.fh3d[data-kind=diasec] .fh3d-back{background:linear-gradient(160deg,#cfd2d4,#c2c5c8 55%,#b7bbbe);box-shadow:none}
.fh3d-mold::before{display:none}
/* 레일 윗면 가운데 홈 선 빼기 — 매끈한 은색 */
.fh3d-cub.is-rail.is-h .fh3d-cf-cap{background:linear-gradient(#f3f5f6,#e2e5e7 50%,#cdd1d4)}
.fh3d-cub.is-rail.is-v .fh3d-cf-cap{background:linear-gradient(90deg,#f3f5f6,#e2e5e7 50%,#cdd1d4)}
/* 유광 — 은은하지만 티 나게: 넓은 반사 띠 + 가는 하이라이트 + 위쪽 광택 + 가장자리 코팅감 (2026-10-01) */
.fh3d[data-finish=gloss] .fh3d-gloss{opacity:calc(.35 + var(--lf,1) * .65);background:
  linear-gradient(112deg,rgb(255 255 255/0) 30%,rgb(255 255 255/.10) 38%,rgb(255 255 255/.30) 45%,rgb(255 255 255/.10) 52%,rgb(255 255 255/0) 60%),
  linear-gradient(112deg,rgb(255 255 255/0) 61.5%,rgb(255 255 255/.32) 62.5%,rgb(255 255 255/0) 64%),
  linear-gradient(180deg,rgb(255 255 255/.16),rgb(255 255 255/0) 28%),
  radial-gradient(120% 90% at 50% 50%,rgb(255 255 255/0) 70%,rgb(255 255 255/.10) 100%)}
.fh3d[data-finish=gloss][data-kind=diasec] .fh3d-front{box-shadow:inset 0 0 0 1px rgb(255 255 255/.35),0 26px 34px -18px rgb(0 0 0/.42),0 4px 10px rgb(0 0 0/.08)}
/* 광택 띠를 판 안쪽에 — 광택 층은 판의 -60%~160% 폭이라 판은 27~73% 구간. 돌릴 때 조금만 흐르게 */
.fh3d[data-finish=gloss] .fh3d-gloss{transform:translateX(calc(var(--lx,0) * -9%));background:
  linear-gradient(112deg,rgb(255 255 255/0) 33%,rgb(255 255 255/.08) 38%,rgb(255 255 255/.26) 42%,rgb(255 255 255/.08) 46%,rgb(255 255 255/0) 51%),
  linear-gradient(112deg,rgb(255 255 255/0) 54.3%,rgb(255 255 255/.30) 55%,rgb(255 255 255/0) 56%),
  linear-gradient(180deg,rgb(255 255 255/.14),rgb(255 255 255/0) 28%)}
/* 유광 진하게 — 밝은 사진 위에서도 보이게 */
.fh3d[data-finish=gloss] .fh3d-gloss{opacity:calc(.45 + var(--lf,1) * .55);background:
  linear-gradient(112deg,rgb(255 255 255/0) 31%,rgb(255 255 255/.14) 36%,rgb(255 255 255/.48) 41%,rgb(255 255 255/.14) 46%,rgb(255 255 255/0) 51%),
  linear-gradient(112deg,rgb(255 255 255/0) 54%,rgb(255 255 255/.55) 55%,rgb(255 255 255/0) 56.4%),
  linear-gradient(180deg,rgb(255 255 255/.22),rgb(255 255 255/0) 30%),
  linear-gradient(0deg,rgb(0 0 0/.08),rgb(0 0 0/0) 25%)}

/* 탁상용 거치대 — 은색 금속(아연도금 느낌), 둥근 모서리, 테두리가 살짝 올라온 다리 */
.fh3d-leg{position:absolute;transform-style:preserve-3d;transform-origin:50% 0}
.fh3d-cub.is-stand .fh3d-cf{background:#8f9498}
.fh3d-cub.is-stand .fh3d-cf-cap{background:linear-gradient(160deg,#d9dcde,#b7bbbe 55%,#a3a8ac);border-radius:6px}
.fh3d-cub.is-legbody .fh3d-cf-cap{border-radius:10px;box-shadow:inset 0 0 0 3px rgb(255 255 255/.35),inset 0 0 0 4px rgb(0 0 0/.12)}
.fh3d-cub.is-plate .fh3d-cf-cap{border-radius:3px}
/* 사이즈 목록 묶음 제목 */
.wf-pd-ddlist li.is-group{height:34px;margin-top:4px;padding:0 14px;font-size:12px;font-weight:700;color:#005dff;cursor:default;background:none!important}
.wf-pd-ddlist li.is-group:first-child{margin-top:0}

/* ── 탁상용 실물 맞춤 (거치대 사진 2026-10-01) ── */
/* 뒷판 — 매트한 연회색 (결 없음) */
.fh3d[data-kind=diasec] .fh3d-back{background:linear-gradient(160deg,#c3c5c6,#b8babb 60%,#aeb0b1)}
/* 옆면 — 앞 투명 아크릴 · 은색 알루미늄 · 검정 심재 · 은색 알루미늄 */
.fh3d[data-kind=diasec] .fh3d-right{background:linear-gradient(to right,#e9eff1 0,#d6dfe2 22%,#c9cdd0 24%,#e1e4e6 32%,#1b1b1b 36%,#262626 78%,#d5d8da 82%,#bfc3c6 100%)}
.fh3d[data-kind=diasec] .fh3d-left{background:linear-gradient(to left,#e9eff1 0,#d6dfe2 22%,#c9cdd0 24%,#e1e4e6 32%,#1b1b1b 36%,#262626 78%,#d5d8da 82%,#bfc3c6 100%)}
.fh3d[data-kind=diasec] .fh3d-top{background:linear-gradient(to top,#e9eff1 0,#d6dfe2 22%,#c9cdd0 24%,#e1e4e6 32%,#1b1b1b 36%,#262626 78%,#d5d8da 82%,#bfc3c6 100%)}
.fh3d[data-kind=diasec] .fh3d-bottom{background:linear-gradient(to bottom,#e9eff1 0,#d6dfe2 22%,#c9cdd0 24%,#e1e4e6 32%,#1b1b1b 36%,#262626 78%,#d5d8da 82%,#bfc3c6 100%)}
/* 거치대 — 아연도금 은색(얼룩무늬), 다리는 안쪽 테두리가 올라온 둥근 직사각형 */
.fh3d-cub.is-stand .fh3d-cf{background:#9ea3a8}
.fh3d-cub.is-stand .fh3d-cf-cap{border-radius:3px;background:
  radial-gradient(40% 30% at 30% 25%,rgb(255 255 255/.35),transparent 70%),
  radial-gradient(35% 25% at 70% 70%,rgb(255 255 255/.25),transparent 70%),
  radial-gradient(30% 22% at 60% 30%,rgb(120 128 136/.25),transparent 70%),
  linear-gradient(160deg,#cfd4d8,#b4babf 55%,#a6acb2)}
.fh3d-cub.is-legbody .fh3d-cf-cap{border-radius:4px;box-shadow:inset 0 0 0 calc(var(--w) * .012) rgb(0 0 0/0),inset 0 0 0 calc(var(--w) * .014) rgb(255 255 255/.45),inset 0 0 0 calc(var(--w) * .017) rgb(80 88 96/.25)}
.fh3d-cub.is-hinge .fh3d-cf{background:#8e9398}
.fh3d-cub.is-hinge .fh3d-cf-cap{background:repeating-linear-gradient(90deg,#c3c8cc 0 22%,#8e9398 22% 26%);border-radius:2px}
/* 유광 — 참고(LUMAS)처럼 줄 없이, 넓고 흐릿한 빛 덩어리가 돌릴 때 천천히 흐른다 (2026-10-01) */
.fh3d[data-finish=gloss] .fh3d-gloss{opacity:calc(.3 + var(--lf,1) * .7);transform:translateX(calc(var(--lx,0) * -14%));background:
  radial-gradient(28% 70% at 44% 30%,rgb(255 255 255/.14),rgb(255 255 255/.05) 55%,rgb(255 255 255/0) 75%),
  radial-gradient(40% 55% at 58% 105%,rgb(255 255 255/.07),rgb(255 255 255/0) 70%)}
.fh3d[data-finish=gloss] .fh3d-sweep::before{width:60%;background:radial-gradient(50% 50% at 50% 50%,rgb(255 255 255/.16),rgb(255 255 255/0) 70%);filter:blur(10px)}
/* 거치대 다리 글자 'P&G Stand' — 뚫린 구멍처럼 뒤 판 색(회색)이 보이게 */
.fh3d-cf-cap .fh3d-standword{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(90deg);white-space:nowrap;font-family:Arial,"Helvetica Neue",sans-serif;font-weight:900;letter-spacing:.02em;color:#7d8186;text-shadow:0 -1px 0 rgb(0 0 0/.25),0 1px 0 rgb(255 255 255/.35);pointer-events:none;line-height:1}
/* 다리 앞면 — 뿌연 얼룩 줄이고 또렷한 아연 은색 */
.fh3d-cub.is-legbody .fh3d-cf-cap{background:radial-gradient(45% 30% at 35% 30%,rgb(255 255 255/.18),transparent 70%),linear-gradient(165deg,#d3d8dc,#bcc2c7 55%,#aeb4ba)}
/* 원근감 약하게 — 거치대 다리가 옆으로 퍼져 보이지 않게 (실물 뒷면 사진 기준) */
.fh3d:not(.fh3d--detail){perspective:3200px}

/* 360° 안내 — 크게, 도는 동그라미 (2026-10-01) */
.fh3d .fh3d-hint{display:flex!important;align-items:center;gap:12px;bottom:22px;padding:8px 20px 8px 8px;border-radius:40px;background:rgb(255 255 255/.94);box-shadow:0 6px 20px rgb(17 40 90/.14);font-size:15px;font-weight:700;color:#1f3b6e;letter-spacing:-.02em;transition:opacity .4s}
.fh3d:hover .fh3d-hint,.fh3d.is-turned .fh3d-hint{opacity:1}
.fh3d.is-dragging .fh3d-hint,.fh3d.is-back .fh3d-hint,.fh3d.is-editing .fh3d-hint{opacity:0}
.fh3d-spin{position:relative;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#005dff;color:#fff;font-style:normal}
.fh3d-spin svg{position:absolute;inset:4px;width:38px;height:38px;animation:fh3d-spin 2.4s linear infinite}
.fh3d-spin b{position:relative;font-size:11px;font-weight:800;letter-spacing:-.03em}
@keyframes fh3d-spin{to{transform:rotate(360deg)}}
@media(hover:none){.fh3d-hint::before{content:none!important}.fh3d .fh3d-hint{font-size:14px}}
/* 2026-10-01 주희님 요청: 손님 사진을 넣기 전에도 예시 사진(웨딩)을 기본으로 보여 주고, 가운데 안내 글자는 사진 위에 그대로 둔다 */
.fh3d .fh3d-art:not(.has-photo),.fh3d[data-kind=diasec] .fh3d-art:not(.has-photo),.fh3d--detail .fh3d-art:not(.has-photo){background:linear-gradient(rgb(10 20 35/.28),rgb(10 20 35/.28)),url("/assets/products/diasec/preview-default.jpg") center 30%/cover no-repeat}
.fh3d .fh3d-art:not(.has-photo) .fh3d-ph,.fh3d:not([data-kind=diasec]) .fh3d-art:not(.has-photo) .fh3d-ph{color:#fff!important;opacity:1!important;text-shadow:0 1px 8px rgb(0 0 0/.55),0 0 2px rgb(0 0 0/.35)}
.fh3d .fh3d-art:not(.has-photo) .fh3d-ph svg{stroke:#fff!important;filter:drop-shadow(0 1px 4px rgb(0 0 0/.4))}

/* 아이폰 사파리 — 상자(.fh3d-box) 자체에 backface-visibility:hidden 이 있으면 사파리는 3D 를 납작하게 그려
   뒷면(회색 판)과 거치대가 앞면 위로 비치고 글자가 거꾸로 보였다. 옆(90°)에서는 액자가 통째로 사라졌다 (2026-10-02).
   상자는 보이게 두고, 면(.fh3d-face)마다 뒷면 숨김을 -webkit- 까지 같이 준다. */
.fh3d-box{backface-visibility:visible!important;-webkit-backface-visibility:visible!important;-webkit-transform-style:preserve-3d}
.fh3d-face{-webkit-backface-visibility:hidden}
.fh3d-back,.fh3d-mold,.fh3d-cub,.fh3d-leg{-webkit-transform-style:preserve-3d}
.fh3d.is-face .fh3d-back{visibility:hidden}
.fh3d.is-rear .fh3d-front{visibility:hidden}
.fh3d-box>.fh3d-mold-free{position:absolute;left:50%;top:50%;right:auto;bottom:auto;width:var(--w);height:var(--h);margin:calc(var(--h) / -2) 0 0 calc(var(--w) / -2);transform:rotateY(180deg) translateZ(calc(var(--d) / 2));transform-style:preserve-3d;-webkit-transform-style:preserve-3d}
.fh3d.is-face .fh3d-box>.fh3d-mold-free{visibility:hidden}

/* 버튼 겹침 (2026-10-02) — 사진을 넣으면 '360° 끌어서 돌려 보세요' 는 감춘다.
   위쪽 '.fh3d .fh3d-hint{display:flex!important}' 가 이기고 있어서 안내가 '크기·위치 조절 · 사진 빼기' 위에 겹쳤다. */
.wf-pd-3d:has(.wf-pd-picbar:not([hidden])) .fh3d-hint{display:none!important}
.wf-pd-tool,.wf-pd-picctl button{white-space:nowrap}
.wf-pd-picbar{flex-wrap:nowrap}
/* 폰 — 안내는 처음에 잠깐 보였다가 사라진다 */
@media(max-width:760px){
  .fh3d .fh3d-hint{animation:fh3d-hint-out .5s ease 4s forwards}
  .wf-pd-picbar{bottom:12px;gap:6px}
  .wf-pd-picbar .wf-pd-tool{height:34px;padding:0 11px 0 9px;font-size:12.5px}
}
@keyframes fh3d-hint-out{to{opacity:0;visibility:hidden}}
.wf-pd-need{outline:2px solid #005dff;outline-offset:4px;border-radius:10px;transition:outline-color .3s}
.wf-pd-sheet:focus{outline:none}
