/* Isolated storefront enhancements; old product/cart styles are unchanged. */
.ec-shorts-open { display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;white-space:nowrap; }
.ec-shorts-open:hover { color:var(--ec-primary); }
.ec-shorts-open[hidden], .ec-short-play[hidden], .ec-has-mascot .ec-float-top[hidden] { display:none!important; }
.ec-shorts { box-sizing:border-box; width:min(490px,calc(100% - 24px)); height:min(850px,calc(100% - 24px)); height:min(850px,calc(100dvh - 24px)); max-width:none;max-height:none; padding:0; border:0; border-radius:24px; color:#fff;background:#14141c;box-shadow:0 24px 100px #0008;overflow:hidden; }
.ec-shorts[open] { display:flex;flex-direction:column; }
.ec-shorts::backdrop { background:#151322b8;backdrop-filter:blur(5px); }
.ec-shorts > header,.ec-shorts > footer {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;flex:none;background:#1b1b25;color:white; }
.ec-shorts h2 {font-size:19px;margin:0;}
.ec-shorts button {font:inherit;font-weight:700;border:0;border-radius:12px;padding:8px 12px;cursor:pointer;background:#ffffff18;color:#fff; }
.ec-shorts button:disabled {opacity:.35;cursor:default;}
.ec-shorts > header button {font-size:24px;line-height:1;}
.ec-shorts form {display:flex;gap:8px;padding:8px 12px;flex:none;}
.ec-shorts input {width:100%;min-width:0;border:1px solid #ffffff30;border-radius:12px;background:#242430;color:#fff;padding:10px;font:inherit;font-size:16px;}
.ec-shorts form button,.ec-short-info a {background:var(--ec-primary,#7757c5);color:#fff; text-decoration:none; }
.ec-shorts-status {font-size:13px;text-align:center;flex:none;padding:6px 10px;color:#ddd;}
.ec-shorts-status:empty {display:none;}
.ec-shorts-feed {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;position:relative;touch-action:pan-y;background:#0c0c11;}
.ec-shorts-feed::-webkit-scrollbar {display:none;}
.ec-short {position:relative;height:100%;min-height:100%;scroll-snap-align:start;scroll-snap-stop:always;display:flex;flex-direction:column;overflow:hidden;}
.ec-short video {width:100%;height:0;min-height:0;flex:1;object-fit:contain;background:#0c0c11;display:block;}
.ec-short-info {padding:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;background:#1c1c27;}
.ec-short-info strong {font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0;}
.ec-short-info a {flex:none;font-weight:700;font-size:13px;border-radius:12px;padding:10px 12px;}
.ec-short-play {position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);background:#30303a!important;}
.ec-shorts > footer {font-size:12px;color:#ddd;}
.ec-shorts button:focus-visible,.ec-shorts a:focus-visible,.ec-shorts input:focus-visible,.ec-shorts-open:focus-visible {outline:2px solid var(--ec-accent,#e4b7ff);outline-offset:2px;}
.ec-floating-actions.ec-has-mascot {width:112px;align-items:flex-end;box-shadow:none;background:none;gap:3px;}
.ec-has-mascot .ec-float-top {order:2;border-radius:14px!important;box-shadow:0 5px 18px #0003;}
.ec-floating-actions .ec-mascot {order:1;position:relative;display:block;width:112px;height:112px;background:none;isolation:isolate;filter:drop-shadow(0 4px 5px #0003);}
.ec-mascot-base,.ec-mascot-jacket,.ec-mascot-pants {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.ec-mascot-jacket,.ec-mascot-pants {mix-blend-mode:color;mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;-webkit-mask-repeat:no-repeat;}
.ec-mascot-jacket {background:var(--mascot-jacket);mask-image:url('../mascot/jacket.png?v=1');-webkit-mask-image:url('../mascot/jacket.png?v=1');}
.ec-mascot-pants {background:var(--mascot-pants);mask-image:url('../mascot/pants.png?v=1');-webkit-mask-image:url('../mascot/pants.png?v=1');}
.ec-mascot-logo {box-sizing:border-box;position:absolute;left:48.1%;top:56.5%;width:11%;height:8.5%;object-fit:contain;background:#fff;border-radius:18%;padding:1px;pointer-events:none;}
.ec-mascot-blank {background:var(--mascot-jacket);}
.ec-logo-motion img {animation:ec-logo-reveal 1.25s cubic-bezier(.22,.75,.3,1) both;}
@keyframes ec-logo-reveal {0% {clip-path:inset(0 100% 0 0);opacity:.45;translate:-9px 0;} 70% {clip-path:inset(0 0 0 0);opacity:1;translate:2px 0;filter:drop-shadow(0 0 9px #ffffffaa);} 100% {clip-path:inset(0 0 0 0);opacity:1;translate:0 0;filter:none;}}
@media(min-width:1051px){.head-actions:has(.ec-shorts-open){gap:12px;}.head-actions:has(.ec-shorts-open) .head-action-label{font-size:12px;}}
@media(max-width:720px){.ec-shorts{width:100%;height:100%;height:100dvh;border-radius:0;margin:0;}.ec-shorts > header{padding-top:max(10px,env(safe-area-inset-top));}.ec-shorts > footer{padding-bottom:max(10px,env(safe-area-inset-bottom));}.ec-floating-actions.ec-has-mascot{width:84px;}.ec-floating-actions .ec-mascot{width:84px;height:84px;}.head-actions:has(.ec-shorts-open){gap:6px;}.header-inner:has(.ec-shorts-open) .brand{width:100%;max-width:190px;}.header-inner:has(.ec-shorts-open) .brand img{max-width:100%;object-fit:contain;transform:scale(1.12);transform-origin:left center;}}
@media(prefers-reduced-motion:reduce){.ec-logo-motion img{animation:none;}}
