/* 미림원예 Commerce Interactions — 실제 사진 탐색 · 후보 비교 · 상세 갤러리 */

body.interaction-locked{overflow:hidden}

/* 상품 카드: 한 카드에서 실제 사진을 넘겨 보며 핵심 규격을 비교한다. */
.card .card-image-link{position:absolute;inset:0;display:block}
.card .card-photo-stack{position:absolute;inset:0;display:block;background:var(--bg)}
.card .card-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.015);transition:opacity .32s ease,transform .55s cubic-bezier(.16,1,.3,1)}
.card .card-photo.is-active{opacity:1;z-index:1}
.card:hover .card-photo.is-active{transform:scale(1.045)}
.card .card-copy{display:block;min-height:126px}
.card .nm{font-size:15px;font-weight:700!important;line-height:1.45;color:var(--ink);transition:color .2s}
.card:hover .nm{color:var(--accent)}
.card .pr{font-size:17px}
.card-gallery-dots{position:absolute;left:12px;bottom:12px;z-index:3;display:flex;gap:5px;padding:6px 8px;border-radius:999px;background:rgba(8,24,15,.46);backdrop-filter:blur(9px)}
.card-gallery-dots i{width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.46);transition:width .25s,background .25s}
.card-gallery-dots i.is-active{width:16px;border-radius:4px;background:#fff}
.card .wishbtn,.card-compare{width:40px;height:40px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border:1px solid rgba(23,63,45,.14);box-shadow:0 4px 16px rgba(20,45,30,.09)}
.card-compare{position:absolute;top:55px;right:9px;z-index:4;display:grid;place-items:center;border-radius:50%;color:#3d5e4a;cursor:pointer;transition:transform .2s,background .2s,color .2s,border-color .2s}
.card-compare:hover{transform:translateY(-2px);color:var(--ink);border-color:#93aa99}
.card-compare[aria-pressed="true"],.product-compare-btn[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.card-photo-next{position:absolute;right:10px;bottom:10px;z-index:4;display:none;align-items:center;gap:5px;min-width:58px;height:40px;padding:0 10px;border:1px solid rgba(255,255,255,.56);border-radius:999px;background:rgba(10,31,19,.72);backdrop-filter:blur(10px);color:#fff;cursor:pointer}
.card-photo-next b{font-size:11px}
.card-facts{display:flex;flex-wrap:wrap;gap:5px;margin:0 2px 7px;min-height:24px}
.card-facts span{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border:1px solid #dbe5dc;border-radius:999px;background:#f5f7f2;color:#506559;font-size:11px;font-weight:750;white-space:nowrap}

/* 후보 비교 도크 */
.compare-dock{position:fixed;left:50%;bottom:18px;z-index:92;width:min(720px,calc(100vw - 32px));min-height:68px;padding:8px 8px 8px 12px;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:rgba(11,43,27,.94);backdrop-filter:blur(18px);box-shadow:0 18px 50px rgba(5,25,14,.28);color:#fff;display:flex;align-items:center;gap:12px;transform:translate(-50%,calc(100% + 36px));opacity:0;visibility:hidden;transition:transform .45s cubic-bezier(.16,1,.3,1),opacity .3s,visibility .3s}
.compare-dock.is-visible{transform:translate(-50%,0);opacity:1;visibility:visible}
.compare-dock-items{display:flex;align-items:center;gap:6px;min-width:50px}
.compare-dock-item{position:relative;width:48px;height:48px;border-radius:14px;background:#e9efe7;border:1px solid rgba(255,255,255,.22);overflow:visible;animation:comparePop .35s cubic-bezier(.16,1,.3,1)}
.compare-dock-item img{width:100%;height:100%;object-fit:cover;border-radius:13px}
.compare-dock-item button{position:absolute;right:-5px;top:-5px;width:20px;height:20px;border:0;border-radius:50%;background:#fff;color:#183f2d;font-size:14px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.18)}
@keyframes comparePop{from{opacity:0;transform:scale(.72)}to{opacity:1;transform:none}}
.compare-dock-copy{min-width:0;flex:1}
.compare-dock-copy strong,.compare-dock-copy span{display:block}.compare-dock-copy strong{font-size:14px}.compare-dock-copy span{margin-top:1px;font-size:11px;color:rgba(255,255,255,.62)}
.compare-dock-open{min-width:126px;min-height:50px;padding:0 18px;border:0;border-radius:16px;background:#d0ed77;color:#173f2d;font-size:14px;font-weight:850;cursor:pointer;transition:transform .2s,background .2s}
.compare-dock-open:hover:not(:disabled){transform:translateY(-2px);background:#dcf58e}
.compare-dock-open:disabled{background:rgba(255,255,255,.11);color:rgba(255,255,255,.48);cursor:default}

/* 비교 패널 */
.compare-backdrop{position:fixed;inset:0;z-index:150;background:rgba(6,18,11,.62);backdrop-filter:blur(8px);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.compare-backdrop.is-open{opacity:1;visibility:visible}
.compare-panel{position:fixed;left:50%;top:50%;z-index:151;width:min(1180px,calc(100vw - 48px));max-height:min(860px,calc(100dvh - 48px));display:flex;flex-direction:column;border-radius:28px;background:#f7f8f3;box-shadow:0 30px 100px rgba(0,0,0,.32);overflow:hidden;opacity:0;visibility:hidden;transform:translate(-50%,-46%) scale(.98);transition:opacity .35s,transform .45s cubic-bezier(.16,1,.3,1),visibility .35s}
.compare-panel.is-open{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1)}
.compare-panel-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px;border-bottom:1px solid #dce5dc;background:#fff}
.compare-panel-head small{display:block;margin-bottom:4px;color:#68796f;font-size:11px;font-weight:850;letter-spacing:.12em}
.compare-panel-head h2{font-size:28px;letter-spacing:-.045em}.compare-panel-head p{margin-top:4px;color:#66776d;font-size:14px}
.compare-panel-close{flex:0 0 46px;width:46px;height:46px;border:1px solid #d9e2da;border-radius:50%;background:#f5f7f3;color:#173f2d;font-size:25px;cursor:pointer}
.compare-panel-body{overflow:auto;padding:22px 28px 30px;overscroll-behavior:contain}
.compare-loading{display:grid;place-items:center;min-height:320px;color:#68776e;font-size:14px}
.compare-table{width:100%;min-width:760px;border-collapse:separate;border-spacing:0;table-layout:fixed}
.compare-table th,.compare-table td{border-right:1px solid #dfe6df;border-bottom:1px solid #dfe6df;padding:17px 18px;text-align:left;vertical-align:top;background:#fff}
.compare-table tr>*:first-child{position:sticky;left:0;z-index:2;width:145px;background:#f0f4ed;color:#52675a;font-size:12px;font-weight:850}
.compare-table thead th{padding-top:0;border-top:1px solid #dfe6df}.compare-table thead th:first-child{z-index:3;padding-top:17px;border-left:1px solid #dfe6df;border-radius:18px 0 0 0}
.compare-table thead th:last-child{border-radius:0 18px 0 0}
.compare-table tbody tr:last-child>*:first-child{border-radius:0 0 0 18px}.compare-table tbody tr:last-child>*:last-child{border-radius:0 0 18px 0}
.compare-product{position:relative;min-height:238px;padding-top:18px!important}
.compare-product-remove{position:absolute;right:12px;top:10px;width:34px;height:34px;border:1px solid #d9e2da;border-radius:50%;background:#fff;color:#56675d;cursor:pointer;font-size:17px}
.compare-product img{width:100%;height:145px;object-fit:cover;border-radius:14px;background:#edf1ea}
.compare-product .compare-category{display:block;margin-top:12px;color:#77847d;font-size:11px;font-weight:750}
.compare-product h3{margin-top:4px;min-height:44px;font-size:15px;line-height:1.42;letter-spacing:-.02em}
.compare-table td{font-size:14px;line-height:1.55;color:#2f4d3d}.compare-table td strong{font-size:16px;color:#173f2d}.compare-table td small{display:block;margin-top:4px;color:#748179;font-size:11px}
.compare-option-list{display:grid;gap:5px}.compare-option-list span{font-size:12px;line-height:1.45;color:#53675b}
.compare-product-link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;margin-top:12px;padding:0 16px;border-radius:999px;background:#173f2d;color:#fff;font-size:13px;font-weight:800}

/* 상품 상세 사진 탐색 */
.gallery-stage{position:relative;width:100%;padding:0;border:0;border-radius:var(--r-xl);background:var(--bg);overflow:hidden;cursor:zoom-in;text-align:left}
.gallery-stage .main{transition:opacity .18s,transform .5s cubic-bezier(.16,1,.3,1)}
.gallery-stage:hover .main{transform:scale(1.018)}
.gallery-stage .main.is-switching{opacity:.35}
.gallery-open-label{position:absolute;right:14px;bottom:14px;display:flex;align-items:center;gap:7px;min-height:42px;padding:0 13px;border:1px solid rgba(255,255,255,.65);border-radius:999px;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);color:#173f2d;box-shadow:0 5px 18px rgba(20,45,30,.12)}
.gallery-open-label b{font-size:12px}
.pd .thumbs{align-items:center}.pd .gallery-thumb{width:66px;height:66px;padding:0;border:1.5px solid transparent;border-radius:11px;background:transparent;cursor:pointer;overflow:hidden;transition:border-color .2s,transform .2s}
.pd .gallery-thumb:hover{transform:translateY(-2px)}.pd .gallery-thumb.is-active{border-color:#173f2d}
.pd .gallery-thumb img{width:100%;height:100%;border:0;border-radius:9px;object-fit:cover}
.product-price-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.product-action-buttons{display:flex;align-items:center;gap:7px}
.product-compare-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#173f2d;font-size:13px;font-weight:750;cursor:pointer}
.product-gallery-backdrop{position:fixed;inset:0;z-index:170;background:rgba(2,12,7,.94);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.product-gallery-backdrop.is-open{opacity:1;visibility:visible}
.product-gallery-dialog{position:fixed;inset:0;z-index:171;display:grid;grid-template-rows:auto 1fr auto;color:#fff;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.product-gallery-dialog.is-open{opacity:1;visibility:visible}
.product-gallery-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 24px}.product-gallery-head strong{font-size:14px;max-width:70vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-gallery-head span{margin-left:auto;color:rgba(255,255,255,.58);font-size:12px}
.product-gallery-close{width:46px;height:46px;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:26px;cursor:pointer}
.product-gallery-stage{position:relative;display:grid;place-items:center;min-height:0;padding:12px 88px;overflow:hidden;touch-action:pan-y}
.product-gallery-image{max-width:min(1120px,100%);max-height:calc(100dvh - 190px);object-fit:contain;filter:drop-shadow(0 26px 50px rgba(0,0,0,.34));user-select:none;transition:opacity .18s,transform .35s}
.product-gallery-image.is-switching{opacity:.22;transform:scale(.975)}
.product-gallery-nav{position:absolute;top:50%;width:52px;height:52px;margin-top:-26px;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:rgba(255,255,255,.1);backdrop-filter:blur(8px);color:#fff;font-size:28px;cursor:pointer}.product-gallery-prev{left:24px}.product-gallery-next{right:24px}
.product-gallery-thumbs{display:flex;justify-content:center;gap:8px;padding:10px 24px 18px;overflow-x:auto}.product-gallery-thumbs button{flex:0 0 58px;width:58px;height:58px;padding:0;border:1.5px solid transparent;border-radius:10px;background:transparent;overflow:hidden;cursor:pointer;opacity:.55}.product-gallery-thumbs button.is-active{border-color:#d0ed77;opacity:1}.product-gallery-thumbs img{width:100%;height:100%;object-fit:cover}

/* 메인: 실제 판매 상품을 장면처럼 넘겨 보는 스크롤 쇼케이스 */
.commerce-scroll-story{--story-progress:0;--story-x:0px;--story-y:0px;position:relative;height:300vh;margin:86px 0 92px}
.commerce-story-sticky{position:sticky;top:88px;min-height:650px;height:calc(100vh - 108px);max-height:820px;display:grid;grid-template-rows:auto 1fr;gap:22px}
.commerce-story-head{display:flex;align-items:end;justify-content:space-between;gap:30px;padding:0 4px}
.commerce-story-eye{display:block;margin-bottom:9px;color:#7b8d82;font-size:10px;font-weight:850;letter-spacing:.18em}
.commerce-story-head h2{font-size:clamp(32px,3.3vw,52px);line-height:1.01;letter-spacing:-.055em}
.commerce-story-head p{padding-bottom:3px;color:#718178;font-size:14px;line-height:1.65;text-align:right}
.commerce-story-stage{position:relative;min-height:0;border-radius:34px;background:#092d1e;box-shadow:0 30px 80px rgba(16,51,34,.16);overflow:hidden;isolation:isolate}
.commerce-story-stage:before{content:"";position:absolute;inset:0;z-index:0;background:radial-gradient(circle at 76% 28%,rgba(201,230,130,.14),transparent 29%),linear-gradient(130deg,#08291b 0%,#123f2a 55%,#0d3424 100%)}
.commerce-story-stage:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(5,26,17,.94) 0%,rgba(5,26,17,.72) 34%,rgba(5,26,17,.04) 64%),linear-gradient(0deg,rgba(3,19,12,.25),transparent 45%)}
.commerce-story-scene{position:absolute;inset:0;z-index:1;display:grid;grid-template-columns:minmax(330px,42%) 1fr;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .72s ease,visibility .72s}
.commerce-story-scene.is-active{z-index:2;opacity:1;visibility:visible;pointer-events:auto}
.commerce-story-media{grid-column:2;position:relative;overflow:hidden}
.commerce-story-media img{width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.92) contrast(1.03);transform:translate3d(var(--story-x),var(--story-y),0) scale(1.075);transition:transform 1.1s cubic-bezier(.16,1,.3,1),filter .5s}
.commerce-story-scene.is-active .commerce-story-media img{transform:translate3d(var(--story-x),var(--story-y),0) scale(1.015)}
.commerce-story-copy{grid-column:1;grid-row:1;align-self:end;position:relative;z-index:5;padding:46px 34px 48px 46px;color:#fff}
.commerce-story-number{display:block;margin-bottom:24px;color:#cae47e;font-size:11px;font-weight:850;letter-spacing:.18em}
.commerce-story-category{display:block;margin-bottom:13px;color:rgba(255,255,255,.58);font-size:11px;font-weight:800;letter-spacing:.06em}
.commerce-story-copy p{margin-bottom:7px;color:#cae47e;font-size:14px;font-weight:750}
.commerce-story-copy h3{max-width:12em;font-size:clamp(28px,3.15vw,48px);line-height:1.08;letter-spacing:-.055em;text-wrap:balance}
.commerce-story-facts{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:21px}
.commerce-story-facts strong{font-size:15px}.commerce-story-facts span{padding:5px 8px;border:1px solid rgba(255,255,255,.19);border-radius:999px;color:rgba(255,255,255,.68);font-size:10px;font-weight:750}
.commerce-story-copy a{display:inline-flex;align-items:center;gap:18px;min-height:48px;margin-top:27px;padding:0 18px;border-radius:999px;background:#fff;color:#143d2c;font-size:13px;font-weight:850;transition:gap .25s,background .25s,transform .25s}
.commerce-story-copy a:hover{gap:25px;background:#d9f08c;transform:translateY(-2px)}
.commerce-story-rail{position:absolute;right:20px;top:50%;z-index:6;display:grid;gap:7px;transform:translateY(-50%)}
.commerce-story-rail button{display:flex;align-items:center;justify-content:flex-end;width:62px;height:30px;padding:0;border:0;background:transparent;color:rgba(255,255,255,.44);cursor:pointer;font-size:10px;font-weight:850;letter-spacing:.1em}
.commerce-story-rail button:before{content:"";width:17px;height:1px;margin-right:8px;background:currentColor;transition:width .28s,background .28s}
.commerce-story-rail button.is-active{color:#d7ef8b}.commerce-story-rail button.is-active:before{width:31px}
.commerce-story-progress{position:absolute;left:0;right:0;bottom:0;z-index:6;height:3px;background:rgba(255,255,255,.12)}
.commerce-story-progress i{display:block;width:calc(var(--story-progress) * 100%);height:100%;background:#d7ef8b;transition:width .08s linear}

@media(hover:none),(pointer:coarse){.card-photo-next{display:flex}.card-gallery-dots{display:none}}
@media(max-width:860px){
  .card .wishbtn,.card-compare{width:44px;height:44px}.card-compare{top:59px}.card-photo-next{height:44px}
  .card .nm{font-size:14px}.card .pr{font-size:16px}.card .card-copy{min-height:134px}.card-facts{gap:4px}.card-facts span{font-size:10.5px;padding:0 7px}
  .compare-dock{bottom:154px;width:calc(100vw - 20px);min-height:64px;border-radius:20px;padding-left:9px}.compare-dock-item{width:42px;height:42px;border-radius:12px}.compare-dock-item img{border-radius:11px}.compare-dock-copy span{display:none}.compare-dock-open{min-width:106px;min-height:48px;padding:0 13px}
  .compare-panel{left:0;right:0;top:auto;bottom:0;width:100%;max-height:92dvh;border-radius:24px 24px 0 0;transform:translateY(102%);transition:transform .45s cubic-bezier(.16,1,.3,1),visibility .35s}.compare-panel.is-open{transform:none}.compare-panel-head{padding:19px 18px}.compare-panel-head h2{font-size:23px}.compare-panel-head p{font-size:13px}.compare-panel-body{padding:14px 0 24px}.compare-table{min-width:690px}.compare-table tr>*:first-child{width:112px}.compare-table th,.compare-table td{padding:14px}.compare-product{min-height:222px}.compare-product img{height:132px}
  .gallery-open-label{min-height:44px}.product-price-actions{align-items:flex-end}.product-action-buttons{gap:5px}.product-compare-btn{min-height:44px;padding:0 12px}.product-action-buttons .wishbtn{min-height:44px!important;padding:9px 12px!important}
  .product-gallery-head{padding:12px 14px}.product-gallery-stage{padding:10px 8px 68px}.product-gallery-image{max-height:calc(100dvh - 170px)}.product-gallery-nav{top:auto;bottom:10px;width:48px;height:48px}.product-gallery-prev{left:calc(50% - 56px)}.product-gallery-next{right:calc(50% - 56px)}.product-gallery-thumbs{display:none}
  .commerce-scroll-story{height:auto;margin:64px 0 72px}.commerce-story-sticky{position:relative;top:auto;height:auto;min-height:0;max-height:none;display:block}.commerce-story-head{align-items:start;margin-bottom:20px}.commerce-story-head h2{font-size:34px}.commerce-story-head p{font-size:12px;text-align:left}.commerce-story-stage{display:grid;gap:10px;padding:10px;border-radius:25px;background:#0b3021;box-shadow:none;overflow:visible}.commerce-story-stage:after,.commerce-story-progress,.commerce-story-rail{display:none}.commerce-story-scene{position:relative;inset:auto;display:grid;grid-template-columns:1fr;min-height:0;border-radius:19px;background:#103825;overflow:hidden;opacity:1;visibility:visible;pointer-events:auto}.commerce-story-media{grid-column:1;grid-row:1;height:62vw;max-height:410px}.commerce-story-media img,.commerce-story-scene.is-active .commerce-story-media img{transform:none}.commerce-story-scene:after{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(0deg,rgba(4,25,16,.96) 0%,rgba(4,25,16,.54) 42%,transparent 70%);pointer-events:none}.commerce-story-copy{grid-column:1;grid-row:1;align-self:end;padding:25px 22px 24px}.commerce-story-number{margin-bottom:9px}.commerce-story-category{margin-bottom:7px}.commerce-story-copy h3{font-size:27px;max-width:16em}.commerce-story-facts{margin-top:12px}.commerce-story-copy a{min-height:44px;margin-top:17px}.commerce-story-scene:not(.is-active){opacity:1;visibility:visible}
}
@media(max-width:390px){.compare-dock-copy strong{font-size:12px}.compare-dock-open{min-width:94px;font-size:12px}.compare-dock-items{gap:4px}.compare-dock-item{width:38px;height:38px}.product-action-buttons span{display:none}}
@media(prefers-reduced-motion:reduce){.card .card-photo,.compare-dock,.compare-panel,.compare-backdrop,.product-gallery-backdrop,.product-gallery-dialog,.product-gallery-image,.gallery-stage .main,.commerce-story-scene,.commerce-story-media img,.commerce-story-progress i{transition:none!important;animation:none!important}.commerce-scroll-story{height:auto}.commerce-story-sticky{position:relative;top:auto;height:auto;max-height:none}.commerce-story-stage{display:grid;gap:10px;padding:10px;overflow:visible}.commerce-story-scene{position:relative;inset:auto;min-height:480px;opacity:1;visibility:visible;pointer-events:auto}.commerce-story-progress,.commerce-story-rail{display:none}}
