/*!
 * UNBOX Core – story circles + story viewer.
 * Loaded in the page head, so the circles have their final size from the first paint (no layout shift).
 */

/* ---------- circles row ---------- */
.ubz-stories{color:#0a0a0a;overflow-x:clip}
.ubz-stories *{box-sizing:border-box}
.ubz-stories a{color:inherit;text-decoration:none}
.ubz-stories .w{max-width:1400px;margin:0 auto;padding:0 max(3vw,16px)}
.ubz-stories .rail{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.ubz-stories .rail::-webkit-scrollbar{display:none}
.ubz-stories .rail>*{scroll-snap-align:start;flex:none}
.ubz-stories .cats{gap:22px;padding:6px 0 8px;justify-content:flex-start;align-items:flex-start}
.ubz-stories .cats>:first-child{margin-left:auto}
.ubz-stories .cats>:last-child{margin-right:auto}
.ubz-stories .cat{width:92px;flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;-webkit-tap-highlight-color:transparent}
/* Sale circle: warm red ring, discount badge on the ring, photo of the biggest-discount product */
.ubz-stories .cat.sale i{background:linear-gradient(45deg,#ff8a00 0%,#e52e71 55%,#c8102e 100%);position:relative}
.ubz-stories .cat.sale.seen i{background:linear-gradient(45deg,#ff8a00 0%,#e52e71 55%,#c8102e 100%);opacity:.75}
.ubz-stories .cat.sale .badge{position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);padding:2px 7px;border-radius:999px;background:#c8102e;color:#fff;border:2px solid #fff;font-style:normal;font-size:10.5px;font-weight:700;letter-spacing:.02em;line-height:1.2;white-space:nowrap}
.ubz-stories .cat.sale b{color:#c8102e;font-weight:600}
.ubz-stories .cat .ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;border:3px solid #fff;background:#0a0a0a;color:#fff;font-size:15px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
/* the theme's "cf" clearfix would add an invisible spacer and push the circle down */
.ubz-stories .cat.cf::before,.ubz-stories .cat.cf::after{content:none!important;display:none!important}
.ubz-stories .cat i{width:86px;height:86px;flex:none;aspect-ratio:1/1;display:block;padding:3px;border-radius:50%;background:linear-gradient(45deg,#f9ce34 0%,#ee2a7b 50%,#6228d7 100%);transition:transform .2s;font-style:normal}
.ubz-stories .cat i img{display:block;width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:1/1;border-radius:50%;border:3px solid #fff;object-fit:cover!important;object-position:center 22%;background:#f3ede4}
.ubz-stories .sale-preview{width:100%;height:100%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr);gap:1px;overflow:hidden;border:2px solid #fff;border-radius:50%;background:#fff}
.ubz-stories .sale-preview-3{grid-template-columns:3fr 2fr;grid-template-rows:repeat(2,minmax(0,1fr))}
.ubz-stories .sale-preview-3 img:first-child{grid-row:span 2}
.ubz-stories .cat i .sale-preview img{min-width:0;min-height:0;border:0;border-radius:0;aspect-ratio:auto;object-position:center 30%}
.ubz-stories .cat:hover i{transform:scale(1.05)}
.ubz-stories .cat:active i{transform:scale(.95)}
.ubz-stories .cat.cf i{background:#1fbd5a}                 /* green "Close Friends" ring */
.ubz-stories .cat.seen i,.ubz-stories .cat.cf.seen i{background:#d9d3ca} /* viewed */
.ubz-stories .cat b{display:block;width:100%;max-width:100%;font-size:12px;font-weight:400;line-height:1.3;letter-spacing:.01em;color:#0a0a0a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ubz-shopstories{margin:0 0 18px}
.ubz-shopstories .w{padding-top:6px}
@media(max-width:860px){
	.ubz-stories .cats{gap:14px;margin:0 -16px;padding:4px 16px 6px}
	.ubz-stories .cat{width:74px}
	.ubz-stories .cat i{width:72px;height:72px;padding:2.5px}
	.ubz-stories .cat i img{border-width:2.5px}
}
@media(prefers-reduced-motion:reduce){.ubz-stories .cat i{transition:none}}

/* ---------- story viewer ---------- */
.ubz-st{position:fixed;inset:0;z-index:100000;background:#000;display:none;align-items:center;justify-content:center;touch-action:none;-webkit-user-select:none;user-select:none}
.ubz-st,.ubz-st *{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}
.ubz-st.on{display:flex}
.ubz-st .card{position:relative;width:100%;height:100%;max-width:min(480px,100vw);background:#111;overflow:hidden;transition:transform .26s cubic-bezier(.2,.8,.2,1),opacity .26s ease;will-change:transform}
@media(min-width:861px){.ubz-st{background:rgba(10,10,10,.92)}.ubz-st .card{height:min(92vh,860px);aspect-ratio:9/16;width:auto;border-radius:14px}}
.ubz-st.on .card{animation:ubzin .28s cubic-bezier(.2,.8,.2,1)}
@keyframes ubzin{from{transform:scale(.94);opacity:0}to{transform:none;opacity:1}}
.ubz-st .card.go-l{transform:translateX(-40%) scale(.9);opacity:0}
.ubz-st .card.go-r{transform:translateX(40%) scale(.9);opacity:0}

/* photos: two stacked images crossfade; each on its own layer so Safari draws the fade in one piece */
.ubz-st .media{position:absolute;inset:0;isolation:isolate;transform:translateZ(0)}
.ubz-st .media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%;display:block;opacity:0;transition:opacity .35s ease,filter .35s ease;will-change:opacity;backface-visibility:hidden;transform:translateZ(0);pointer-events:none;-webkit-user-drag:none}
.ubz-st .media img.ld{opacity:1}
.ubz-st .spin{position:absolute;top:50%;left:50%;width:34px;height:34px;margin:-17px 0 0 -17px;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:ubzspin .8s linear infinite;z-index:1}
@keyframes ubzspin{to{transform:rotate(360deg)}}
.ubz-st .shade{position:absolute;left:0;right:0;pointer-events:none}
.ubz-st .shade.t{top:0;height:140px;background:linear-gradient(rgba(0,0,0,.55),transparent)}
.ubz-st .shade.b{bottom:0;height:260px;background:linear-gradient(transparent,rgba(0,0,0,.7))}

/* progress bars + header */
.ubz-st .bars{position:absolute;top:calc(10px + env(safe-area-inset-top));left:10px;right:10px;display:flex;gap:4px;z-index:3}
.ubz-st .bars span{flex:1;height:2.5px;border-radius:2px;background:rgba(255,255,255,.35);overflow:hidden}
.ubz-st .bars i{display:block;height:100%;width:0;background:#fff}
.ubz-st .who{position:absolute;top:calc(22px + env(safe-area-inset-top));left:12px;right:56px;display:flex;align-items:center;gap:10px;z-index:3;color:#fff}
.ubz-st .who img{width:34px;height:34px;flex:none;border-radius:50%;object-fit:cover;object-position:center 22%;border:1.5px solid #fff}
.ubz-st .who b{font-size:14px;font-weight:600;letter-spacing:.01em;white-space:nowrap;line-height:1.2}
.ubz-st .who small{font-size:13px;opacity:.75;margin-left:2px;white-space:nowrap;line-height:1.2;overflow:hidden;text-overflow:ellipsis}

/* buttons: reset the theme's button styles (backgrounds, overlays, outlines) */
.ubz-st button{-webkit-appearance:none;appearance:none;font:inherit;box-shadow:none!important;text-shadow:none;transform:none}
.ubz-st button::before,.ubz-st button::after{content:none!important;display:none!important}
.ubz-st .x,.ubz-st .x:hover,.ubz-st .x:focus,.ubz-st .x:active{position:absolute;top:calc(14px + env(safe-area-inset-top));right:6px;width:48px;height:48px;padding:0;border:0!important;background:none!important;color:#fff!important;font-size:30px;line-height:1;cursor:pointer;z-index:4;outline:none}
.ubz-st .x:focus-visible{outline:2px solid rgba(255,255,255,.7)!important;outline-offset:-4px}

/* product caption + buttons */
.ubz-st .info{position:absolute;left:16px;right:16px;bottom:calc(18px + env(safe-area-inset-bottom));z-index:3;color:#fff;display:flex;flex-direction:column;gap:12px}
.ubz-st .info .ttl{margin:0;font-size:18px;font-weight:500;line-height:1.25;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.4)}
.ubz-st .info .pr{font-size:15px;opacity:.95;color:#fff}
.ubz-st .info .pr *{color:#fff!important}
.ubz-st .info .pr del{opacity:.6}
.ubz-st .ctas{display:flex;gap:8px}
.ubz-st .ctas a{flex:1;min-height:48px;padding:0 10px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;white-space:nowrap}
.ubz-st .ctas .shop{background:#fff;color:#0a0a0a!important}
.ubz-st .ctas .all{border:1px solid rgba(255,255,255,.8);color:#fff!important}

/* label on a product slide: New in / Best seller / Trending / Selling fast */
.ubz-st .info .tag{display:none;align-self:flex-start;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.92);color:#0a0a0a;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;line-height:1}
.ubz-st .info .tag.on{display:inline-block}
.ubz-st .info .tag.t-fast{background:#ee2a7b;color:#fff}
.ubz-st .info .tag.t-best{background:#f9ce34;color:#0a0a0a}
.ubz-st .info .tag.t-sale{background:#c8102e;color:#fff}
.ubz-st .info .pr del{opacity:.7;text-decoration:line-through;margin-right:6px}
.ubz-st .info .pr ins{text-decoration:none;font-weight:700;font-size:1.1em}

/* breaker slide between collections: see all / up next with a teaser */
.ubz-st.isbrk .media img{filter:blur(14px) brightness(.55);transform:translateZ(0) scale(1.12)}
.ubz-st .brk{position:absolute;left:20px;right:20px;top:50%;transform:translateY(-50%);z-index:5;display:none;flex-direction:column;align-items:stretch;gap:12px;text-align:center;color:#fff}
.ubz-st .brk .bt{margin:0 0 6px;font-size:20px;line-height:1.25;font-weight:500;color:#fff}
.ubz-st .brk .ball{min-height:50px;border-radius:999px;background:#fff;color:#0a0a0a!important;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;text-decoration:none}
.ubz-st .brk .bnext,.ubz-st .brk .bnext:hover,.ubz-st .brk .bnext:focus{display:flex;align-items:center;gap:12px;min-height:64px;padding:8px 18px 8px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.6);background:rgba(255,255,255,.12)!important;color:#fff!important;cursor:pointer;text-align:left;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);outline:none}
.ubz-st .brk .tz{width:48px;height:48px;border-radius:50%;padding:2px;background:linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7);flex:none}
.ubz-st .brk .tz img{width:100%;height:100%;border-radius:50%;border:2px solid #fff;object-fit:cover;object-position:center 22%;display:block}
.ubz-st .brk .bn{flex:1;display:flex;flex-direction:column;line-height:1.2}
.ubz-st .brk .bn small{font-size:12px;opacity:.8;letter-spacing:.08em;text-transform:uppercase}
.ubz-st .brk .bn b{font-size:17px;font-weight:600;color:#fff}
.ubz-st .brk .arr{font-size:24px;line-height:1}
.ubz-st .brk .bclose,.ubz-st .brk .bclose:hover,.ubz-st .brk .bclose:focus{min-height:48px;border-radius:999px;border:1px solid rgba(255,255,255,.6);background:none!important;color:#fff!important;font-size:14px;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;outline:none}

/* phone turned sideways: an upright 9:16 card on black, compact text */
@media (orientation:landscape) and (max-height:600px){
	.ubz-st{background:#000}
	.ubz-st .card{height:100%;width:auto;max-width:none;aspect-ratio:9/16;border-radius:0}
	.ubz-st .bars{top:6px;left:8px;right:8px}
	.ubz-st .who{top:14px;left:8px;right:44px;gap:6px}
	.ubz-st .who img{width:26px;height:26px}
	.ubz-st .who b{font-size:12px}
	.ubz-st .who small{font-size:11px;margin-left:0}
	.ubz-st .x,.ubz-st .x:hover,.ubz-st .x:focus,.ubz-st .x:active{top:4px;right:0;width:40px;height:40px;font-size:24px}
	.ubz-st .info{left:10px;right:10px;bottom:10px;gap:6px}
	.ubz-st .info .ttl{font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
	.ubz-st .info .pr{font-size:12px}
	.ubz-st .info .tag{font-size:9px;padding:4px 8px}
	.ubz-st .ctas{gap:6px}
	.ubz-st .ctas a{min-height:34px;font-size:10px;letter-spacing:.04em}
	.ubz-st .brk{left:10px;right:10px;gap:8px}
	.ubz-st .brk .bt{font-size:14px;margin:0}
	.ubz-st .brk .ball,.ubz-st .brk .bclose{min-height:36px;font-size:11px}
	.ubz-st .brk .bnext{min-height:44px;padding:4px 12px 4px 4px;gap:8px}
	.ubz-st .brk .tz{width:34px;height:34px}
	.ubz-st .brk .bn b{font-size:13px}
	.ubz-st .brk .bn small{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.ubz-st .card{transition:none;animation:none}.ubz-st .media img{transition:none}}
