/* HANGR Rack for WooCommerce */
.hangr-rack{
  --hangr-ease:cubic-bezier(.2,.8,.2,1);
  --hangr-muted:#8a8884; --hangr-line:#dedcd7;
  position:relative; width:100%; background:var(--hangr-bg,#f3f2ef); color:var(--hangr-ink,#121212);
  direction:ltr; overflow:hidden; -webkit-font-smoothing:antialiased; white-space:normal; word-break:normal; text-align:start;
}
.hangr-rack *,.hangr-rack *::before,.hangr-rack *::after{box-sizing:border-box}
.hangr-rack button{all:unset;box-sizing:border-box;cursor:pointer;font-family:inherit}
.hangr-rack button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.hangr-rack img{max-width:none;max-height:none;border:0;box-shadow:none;margin:0;padding:0}
.hangr-rack h3{margin:0;padding:0;border:0}

.hangr-rack .hangr-stage{position:relative;height:var(--hangr-h,86vh);min-height:540px;overflow:hidden;touch-action:pan-y;transition:height .9s var(--hangr-ease)}
.hangr-rack:not(.hangr-detail) .hangr-stage{min-height:0}

.hangr-rack .hangr-rail{position:absolute;left:50%;height:7px;border-radius:4px;transform:translateX(calc(-50% + var(--hangr-pan,0px)));z-index:1;
  background:linear-gradient(180deg,#fafafa 0%,#c9c9c9 45%,#8f8f8f 70%,#d6d6d6 100%);
  box-shadow:0 6px 10px rgba(0,0,0,.08);transition:opacity .7s var(--hangr-ease),transform .9s var(--hangr-ease)}
.hangr-rack .hangr-rail::before,.hangr-rack .hangr-rail::after{content:"";position:absolute;top:-4px;width:10px;height:15px;border-radius:3px;background:linear-gradient(90deg,#9a9a9a,#e6e6e6,#9a9a9a)}
.hangr-rack .hangr-rail::before{left:-6px}
.hangr-rack .hangr-rail::after{right:-6px}
.hangr-rack .hangr-floor{position:absolute;left:50%;transform:translateX(calc(-50% + var(--hangr-pan,0px)));height:40px;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.09),transparent);pointer-events:none;transition:opacity .6s}
.hangr-rack.hangr-detail .hangr-rail{opacity:0;transform:translateX(-50%) scaleX(.4)}
.hangr-rack.hangr-detail .hangr-floor{opacity:0}

.hangr-rack .hangr-item{position:absolute;left:0;top:0;transform-origin:50% 0;will-change:transform;
  transition:transform 1s var(--hangr-ease),opacity .8s var(--hangr-ease),filter .8s var(--hangr-ease)}
.hangr-rack .hangr-drop{width:100%;height:100%;transform:translateY(-120vh);transition:transform 1.1s cubic-bezier(.34,1.35,.5,1)}
.hangr-rack .hangr-item.hangr-in .hangr-drop{transform:none}
.hangr-rack .hangr-swing{width:100%;height:100%;transform-origin:50% 3%;perspective:1400px}
.hangr-rack .hangr-flip{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform 1s var(--hangr-ease)}
.hangr-rack .hangr-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.hangr-rack .hangr-face.back{transform:rotateY(180deg)}
.hangr-rack .hangr-hanger{position:absolute;left:0;top:0;width:100%;height:auto;display:block}
.hangr-rack .hangr-face img{position:absolute;left:3%;width:94%;top:14%;height:86%;object-fit:contain;object-position:50% 0;
  user-select:none;-webkit-user-drag:none;pointer-events:none;filter:drop-shadow(0 14px 14px rgba(0,0,0,.16))}
.hangr-rack.hangr-nohanger .hangr-face img{top:2%;height:98%}
/* photo mode: product photos with a background (model shots etc.) hang as cards */
.hangr-rack .hangr-item.hangr-card .hangr-face img{object-fit:cover;object-position:50% 18%;top:15%;height:auto;aspect-ratio:var(--hangr-ar,.66);left:5%;width:90%;border-radius:var(--hangr-radius,2px);filter:none;
  box-shadow:0 22px 34px -14px rgba(0,0,0,.28),0 2px 6px rgba(0,0,0,.08);background:#f1efec}
.hangr-rack.hangr-nohanger .hangr-item.hangr-card .hangr-face img{top:3%;height:97%}
.hangr-rack.hangr-dragging .hangr-item{transition:opacity .8s var(--hangr-ease),filter .8s var(--hangr-ease)}
.hangr-rack.hangr-dragging .hangr-rail,.hangr-rack.hangr-dragging .hangr-floor{transition:none}

.hangr-rack .hangr-caption{position:absolute;left:0;right:0;text-align:center;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--hangr-muted);transition:opacity .4s;padding:0 16px}
.hangr-rack .hangr-caption strong{color:var(--hangr-ink,#121212);font-weight:600}
.hangr-rack.hangr-detail .hangr-caption{opacity:0}

.hangr-rack .hangr-info{position:absolute;left:50%;bottom:clamp(14px,3vh,34px);width:min(440px,92%);transform:translateX(-50%);text-align:center;z-index:150;pointer-events:none}
.hangr-rack .hangr-info>*{opacity:0;transform:translateY(16px);transition:opacity .5s var(--hangr-ease),transform .6s var(--hangr-ease)}
.hangr-rack.hangr-detail .hangr-info{pointer-events:auto}
.hangr-rack.hangr-detail .hangr-info>*{opacity:1;transform:none}
.hangr-rack.hangr-detail .hangr-info>*:nth-child(2){transition-delay:.06s}
.hangr-rack.hangr-detail .hangr-info>*:nth-child(3){transition-delay:.12s}
.hangr-rack.hangr-detail .hangr-info>*:nth-child(4){transition-delay:.18s}
.hangr-rack.hangr-detail .hangr-info>*:nth-child(5){transition-delay:.24s}
.hangr-rack .hangr-info.hangr-swap>*{opacity:0!important;transform:translateY(8px)!important;transition-duration:.18s!important;transition-delay:0s!important}
.hangr-rack .hangr-name{font-size:22px!important;font-weight:400!important;letter-spacing:.08em;text-transform:uppercase;line-height:1.3!important;color:var(--hangr-ink,#121212)!important}
.hangr-rack .hangr-price{font-size:14px;color:var(--hangr-muted);margin-top:4px}
.hangr-rack .hangr-price del{opacity:.6;margin-inline-end:6px}
.hangr-rack .hangr-price ins{text-decoration:none;color:var(--hangr-ink,#121212);font-weight:600}
.hangr-rack .hangr-price .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}

.hangr-rack .hangr-toggle-wrap{margin-top:14px}
.hangr-rack .hangr-toggle{position:relative;display:inline-flex;padding:3px;border:1px solid var(--hangr-line);border-radius:20px;background:#fff}
.hangr-rack .hangr-toggle button{position:relative;z-index:1;font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;padding:6px 16px;border-radius:16px;transition:color .3s;min-width:64px;text-align:center}
.hangr-rack .hangr-toggle button.on{color:#fff}
.hangr-rack .hangr-toggle i{position:absolute;top:3px;bottom:3px;inset-inline-start:3px;width:calc(50% - 3px);border-radius:16px;background:var(--hangr-ink,#121212);transition:transform .45s var(--hangr-ease)}
.hangr-rack .hangr-toggle.is-back i{transform:translateX(100%)}
.hangr-rack [dir=rtl] .hangr-toggle.is-back i{transform:translateX(-100%)}
.hangr-rack.hangr-noback .hangr-toggle-wrap{visibility:hidden;height:0;margin:0}

.hangr-rack .hangr-sizes{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:14px}
.hangr-rack .hangr-sizes:empty{display:none}
.hangr-rack .hangr-sizes button{min-width:38px;height:30px;padding:0 10px;display:inline-grid;place-items:center;border:1px solid var(--hangr-line);border-radius:15px;font-size:11px;font-weight:500;background:#fff;transition:all .25s}
.hangr-rack .hangr-sizes button:hover{border-color:var(--hangr-ink,#121212)}
.hangr-rack .hangr-sizes button.on{background:var(--hangr-ink,#121212);color:#fff;border-color:var(--hangr-ink,#121212)}
.hangr-rack .hangr-sizes button[disabled]{opacity:.35;text-decoration:line-through;cursor:not-allowed}
.hangr-rack .hangr-shake{animation:hangr-shake .45s}
@keyframes hangr-shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}

.hangr-rack .hangr-cta{margin-top:14px;display:flex;flex-direction:column;align-items:center;gap:10px}
.hangr-rack .hangr-add{width:min(300px,80vw);height:44px;display:grid!important;place-items:center;border-radius:22px;background:var(--hangr-ink,#121212);color:#fff;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;transition:transform .2s,opacity .3s}
.hangr-rack .hangr-add:active{transform:scale(.97)}
.hangr-rack .hangr-add.is-loading{opacity:.6;pointer-events:none}
.hangr-rack .hangr-add[disabled]{opacity:.4;cursor:not-allowed}
.hangr-rack .hangr-link{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--hangr-muted)!important;text-decoration:underline!important;text-underline-offset:3px}
.hangr-rack .hangr-msg{font-size:12px;color:#c0392b;min-height:0}

.hangr-rack .hangr-arrow,.hangr-rack .hangr-back{position:absolute!important;z-index:160;opacity:0;pointer-events:none;transition:opacity .5s var(--hangr-ease)}
.hangr-rack.hangr-detail .hangr-arrow,.hangr-rack.hangr-detail .hangr-back{opacity:1;pointer-events:auto}
.hangr-rack .hangr-arrow{top:34%;width:46px;height:46px;border-radius:50%;border:1px solid var(--hangr-line);background:rgba(255,255,255,.75);backdrop-filter:blur(8px);display:grid!important;place-items:center;font-size:18px}
.hangr-rack .hangr-arrow:hover{background:#fff}
.hangr-rack .hangr-prev{left:clamp(10px,4vw,48px)}
.hangr-rack .hangr-next{right:clamp(10px,4vw,48px)}
.hangr-rack .hangr-back{top:16px;left:clamp(16px,3vw,36px);font-size:11px;letter-spacing:.14em;text-transform:uppercase;display:flex!important;gap:8px;align-items:center}

/* global (appended to body) */
.hangr-cursor{position:fixed;left:0;top:0;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:#121212;color:#fff;pointer-events:none;z-index:99999;opacity:0;
  display:grid;place-items:center;font:600 0/1 system-ui,sans-serif;letter-spacing:.12em;transition:width .35s,height .35s,margin .35s,font-size .2s,opacity .3s}
.hangr-cursor.on{opacity:1}
.hangr-cursor.big{width:64px;height:64px;margin:-32px 0 0 -32px;font-size:9px}
@media (pointer:coarse){.hangr-cursor{display:none}}
.hangr-toast{position:fixed;top:24px;right:24px;z-index:99998;background:#fff;color:#121212;border:1px solid #dedcd7;border-radius:14px;padding:12px 16px;font-size:13px;box-shadow:0 12px 30px rgba(0,0,0,.1);transform:translateY(-12px);opacity:0;transition:all .45s cubic-bezier(.2,.8,.2,1);pointer-events:none;max-width:80vw}
.hangr-toast.show{opacity:1;transform:none}
.hangr-toast b{display:block;margin-bottom:2px}
.hangr-toast a{pointer-events:auto;color:inherit;text-decoration:underline}
.hangr-flyer{position:fixed;left:0;top:0;z-index:99997;pointer-events:none;width:64px;height:96px}
.hangr-flyer img{width:100%;height:100%;object-fit:contain}

@media (max-width:640px){ .hangr-rack .hangr-stage{height:min(var(--hangr-h,86vh),680px)} .hangr-rack .hangr-arrow{top:28%;width:40px;height:40px} }
@media (prefers-reduced-motion:reduce){ .hangr-item,.hangr-flip,.hangr-drop{transition-duration:.01s!important} }

/* header (eyebrow + title) */
.hangr-rack .hangr-head{text-align:center;padding:clamp(36px,6vw,64px) 16px 0}
.hangr-rack .hangr-eyebrow{font-size:11px;letter-spacing:.32em;text-transform:uppercase;color:var(--hangr-accent,#9b7b5c);margin-bottom:10px}
.hangr-rack .hangr-title{margin:0!important;font-size:clamp(24px,3.2vw,34px)!important;font-weight:400!important;letter-spacing:.08em;text-transform:uppercase;line-height:1.2!important;color:var(--hangr-ink,#121212)!important}
.hangr-rack .hangr-head + .hangr-stage{margin-top:0}
/* rail variants */
.hangr-rack.hangr-rail-dark .hangr-rail{height:4px;background:linear-gradient(180deg,#4a4a4a,#111 60%,#2a2a2a);box-shadow:0 4px 8px rgba(0,0,0,.12)}
.hangr-rack.hangr-rail-dark .hangr-rail::before,.hangr-rack.hangr-rail-dark .hangr-rail::after{top:-4px;width:8px;height:12px;background:#111}
.hangr-rack.hangr-rail-gold .hangr-rail{height:5px;background:linear-gradient(180deg,#f3e2b8,#c9a45c 50%,#8e6d2f);box-shadow:0 4px 8px rgba(0,0,0,.1)}
.hangr-rack.hangr-rail-gold .hangr-rail::before,.hangr-rack.hangr-rail-gold .hangr-rail::after{background:linear-gradient(90deg,#8e6d2f,#f3e2b8,#8e6d2f)}
/* softer accents */
.hangr-rack .hangr-caption{letter-spacing:.24em}
.hangr-rack .hangr-add{border-radius:var(--hangr-radius,2px);letter-spacing:.24em;font-weight:500}
.hangr-rack .hangr-sizes button{border-radius:var(--hangr-radius,2px);min-width:42px}
.hangr-rack .hangr-link{color:var(--hangr-accent,#9b7b5c)!important}

/* full width breakout */
.hangr-rack.hangr-full{position:relative;margin-left:0!important;margin-right:0!important}

/* hardening against theme / editor styles */
.hangr-rack .hangr-info,.hangr-rack .hangr-info *{margin:0;line-height:1.35;white-space:normal}
.hangr-rack .hangr-info{display:flex;flex-direction:column;align-items:center;gap:0}
.hangr-rack .hangr-price{margin-top:6px}
/* image thumbnails (all product images) */
.hangr-rack .hangr-thumbs{display:flex;justify-content:center;gap:8px;margin-top:14px!important;flex-wrap:wrap;max-width:100%}
.hangr-rack .hangr-thumbs:empty{display:none}
.hangr-rack .hangr-thumbs button{width:40px;height:54px;border-radius:var(--hangr-radius,2px);overflow:hidden;border:1px solid transparent;padding:2px;opacity:.55;transition:opacity .3s,border-color .3s,transform .3s}
.hangr-rack .hangr-thumbs button:hover{opacity:.9}
.hangr-rack .hangr-thumbs button.on{opacity:1;border-color:var(--hangr-ink,#121212);transform:translateY(-2px)}
.hangr-rack .hangr-thumbs img{width:100%;height:100%;object-fit:cover;display:block;border-radius:1px}
.hangr-rack .hangr-sizes{margin-top:14px!important}
.hangr-rack .hangr-cta{margin-top:16px!important;width:100%}
@media (max-width:640px){
  .hangr-rack .hangr-thumbs button{width:34px;height:46px}
  .hangr-rack .hangr-name{font-size:19px!important}
}

/* add-on forms bridge */
.hangr-frame{position:fixed!important;left:-12000px!important;top:0!important;width:1024px!important;height:900px!important;border:0!important;opacity:0!important;pointer-events:none!important;visibility:hidden}
.hangr-rack .hangr-loading{display:inline-block;width:42px;height:30px;border-radius:var(--hangr-radius,2px);background:linear-gradient(90deg,#eee 0%,#f7f7f7 50%,#eee 100%);background-size:200% 100%;animation:hangr-shimmer 1.1s linear infinite}
@keyframes hangr-shimmer{to{background-position:-200% 0}}
.hangr-rack .hangr-msg a{color:inherit;text-decoration:underline}

/* sizes & details from the short description */
.hangr-rack .hangr-desc{margin-top:12px;width:min(360px,100%);text-align:start;font-size:13px;line-height:1.8;color:var(--hangr-muted)}
.hangr-rack .hangr-desc summary{cursor:pointer;list-style:none;text-align:center;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--hangr-ink,#121212);text-decoration:underline;text-underline-offset:3px}
.hangr-rack .hangr-desc summary::-webkit-details-marker{display:none}
.hangr-rack .hangr-desc-body{margin-top:10px;max-height:140px;overflow:auto;padding:10px 12px;background:rgba(0,0,0,.03);border-radius:var(--hangr-radius,2px)}
.hangr-rack .hangr-desc-body table{width:100%;border-collapse:collapse;font-size:12px}
.hangr-rack .hangr-desc-body td,.hangr-rack .hangr-desc-body th{border-bottom:1px solid rgba(0,0,0,.08);padding:4px 6px;text-align:center}
.hangr-rack .hangr-desc-body ul{margin:0;padding-inline-start:18px}

/* made-to-measure */
.hangr-rack .hangr-tailor{display:inline-block;font-size:12px;padding:6px 12px;border-radius:20px;background:rgba(0,0,0,.05);color:var(--hangr-ink,#121212)}
.hangr-sheet{position:fixed;inset:0;z-index:100000;pointer-events:none;font-family:inherit;color:#111;text-align:start}
.hangr-sheet *{box-sizing:border-box}
.hangr-sheet .hs-back{position:absolute;inset:0;background:rgba(20,15,15,.38);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);opacity:0;transition:opacity .35s}
.hangr-sheet .hs-card{position:absolute;left:50%;top:50%;width:min(620px,94vw);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:24px 24px 18px;
  box-shadow:0 30px 80px rgba(0,0,0,.25);transform:translate(-50%,-46%);opacity:0;transition:transform .45s cubic-bezier(.2,.8,.2,1),opacity .35s}
.hangr-sheet.open{pointer-events:auto}
.hangr-sheet.open .hs-back{opacity:1}
.hangr-sheet.open .hs-card{transform:translate(-50%,-50%);opacity:1}
.hangr-sheet .hs-x{all:unset;position:absolute;top:12px;inset-inline-end:14px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;cursor:pointer;color:#666}
.hangr-sheet .hs-x:hover{background:#f3f3f3}
.hangr-sheet .hs-prod{display:flex;gap:12px;align-items:center;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid #ececec}
.hangr-sheet .hs-prod img{width:46px;height:60px;object-fit:cover;border-radius:6px;margin:0;max-width:none}
.hangr-sheet .hs-prod b{display:block;font-size:15px;font-weight:600}
.hangr-sheet .hs-prod span{font-size:13px;color:#777}
.hangr-sheet h4{margin:0 0 4px!important;font-size:15px!important;font-weight:600!important;color:#111!important;font-family:inherit!important;text-transform:none!important;letter-spacing:0!important}
.hangr-sheet .hs-note{margin:0 0 16px;font-size:12px;color:#9a9a9a}
.hangr-sheet .hs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 14px}
.hangr-sheet .hs-f{display:flex;flex-direction:column;gap:6px;margin:0;font-weight:400}
.hangr-sheet .hs-f.hs-wide{grid-column:1/-1}
.hangr-sheet .hs-f span{font-size:12px;color:#6e6e6e;line-height:1.35;min-height:32px;display:flex;align-items:flex-end}
.hangr-sheet .hs-f input,.hangr-sheet .hs-f select,.hangr-sheet .hs-f textarea{width:100%!important;height:44px!important;margin:0!important;padding:8px 10px!important;border:1px solid #ddd!important;border-radius:6px!important;
  font:inherit!important;font-size:15px!important;color:#111!important;background:#fff!important;box-shadow:none!important;text-align:inherit}
.hangr-sheet .hs-f textarea{height:auto!important}
.hangr-sheet .hs-f input:focus,.hangr-sheet .hs-f select:focus,.hangr-sheet .hs-f textarea:focus{outline:none;border-color:#111!important}
.hangr-sheet .hs-f.bad input,.hangr-sheet .hs-f.bad select{border-color:#c0392b!important;background:#fff6f5!important}
.hangr-sheet .hs-err{min-height:20px;margin:10px 0 4px;font-size:12.5px;color:#c0392b}
.hangr-sheet .hs-ok{all:unset;box-sizing:border-box;display:grid;place-items:center;width:100%;height:50px;border-radius:8px;background:#111;color:#fff;font-size:14px;font-weight:600;cursor:pointer;letter-spacing:.04em}
.hangr-sheet .hs-ok:active{transform:scale(.99)}
.hangr-sheet .hs-save{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:12px;font-size:12px;color:#777;cursor:pointer}
.hangr-sheet .hs-save input{margin:0;width:auto;height:auto}
@media (max-width:640px){
  .hangr-sheet .hs-card{left:0;right:0;top:auto;bottom:0;width:100%;max-height:88vh;border-radius:18px 18px 0 0;padding:20px 16px calc(16px + env(safe-area-inset-bottom));transform:translateY(100%);opacity:1}
  .hangr-sheet.open .hs-card{transform:translateY(0)}
  .hangr-sheet .hs-grid{grid-template-columns:repeat(2,1fr);gap:12px}
}
