/* Playful Sell screen (core/playful.js, Settings > Appearance > Playful). EulClavie colours:
   navy #0F2739 / #1F456A, orange #F05A28, cream #FBF8F5, Outfit + DM Sans.
   Everything is scoped to `.sell.pl` (the screen), `body.pl-sell` / `.pl-fx` / `.pl-done` (layers and
   sheets) or `.sell-theme-seg` / `.pl-today` (only created in a Playful store), so Default is untouched.
   Motion: transform / opacity only, short, never in the way of the next tap. */

/* ---- Playful | Default switch (Playful stores only) ---- */
.sell-theme-seg{position:relative;display:inline-flex;align-items:center;gap:2px;height:44px;padding:3px;border:1px solid var(--line);border-radius:999px;background:#fff;flex:none}
.sell-theme-seg>button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 13px;border-radius:999px;font-family:var(--display);font-weight:600;font-size:13.5px;color:var(--body);transition:background .15s,color .15s;white-space:nowrap}
.sell-theme-seg>button svg{flex:none}
.sell-theme-seg>button:hover{color:var(--navy-d)}
.sell-theme-seg>button.on{background:var(--navy-d);color:#fff}
.sell-theme-seg>button.on[data-theme="playful"]{background:var(--orange);color:#fff}
.sell-theme-seg>button:focus-visible{outline:2px solid var(--orange);outline-offset:1px}
@media (max-width:860px){
  .sell-head .sell-theme-seg{order:2;height:40px;padding:2px}
  .sell-theme-seg>button{height:34px;padding:0 10px;gap:4px;font-size:12.5px}
}
@media (max-width:400px){ .sell-theme-seg>button svg{display:none} .sell-theme-seg>button{padding:0 9px} }

/* ---- Today bar ---- */
.pl-today{display:flex;align-items:center;gap:12px;min-height:46px;padding:6px 14px 6px 6px;border-radius:999px;background:linear-gradient(90deg,#0F2739 0%,#1F456A 100%);color:#fff;position:relative;min-width:0;box-shadow:0 4px 14px rgba(15,39,57,.18)}
.pl-today.hidden{display:none}
.pl-badge{width:36px;height:36px;border-radius:50%;flex:none;background-color:#fff;background-repeat:no-repeat;background-size:118%;background-position:50% 50%;border:2px solid #F05A28;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.pl-today-info{display:flex;align-items:baseline;gap:8px;min-width:0;white-space:nowrap}
.pl-today-lbl{font-family:var(--display);font-weight:700;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#FFB396}
.pl-today-val{font-family:var(--display);font-weight:800;font-size:19px;color:#fff;font-variant-numeric:tabular-nums}
.pl-today-count{font-size:12.5px;color:rgba(255,255,255,.72)}
.pl-goal{display:flex;align-items:center;gap:10px;flex:1;min-width:0;justify-content:flex-end}
.pl-goal.hidden{display:none}
.pl-goal-track{position:relative;flex:1;max-width:260px;height:12px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);overflow:hidden}
.pl-goal-fill{position:absolute;inset:0;transform-origin:left center;transform:scaleX(0);border-radius:999px;background:repeating-linear-gradient(-45deg,#F05A28 0 8px,#FF7B4E 8px 16px);transition:transform .45s cubic-bezier(.2,.8,.3,1)}
.pl-goal-txt{font-size:12.5px;font-weight:700;color:rgba(255,255,255,.85);white-space:nowrap;font-variant-numeric:tabular-nums}
.pl-today.hit .pl-goal-fill{background:repeating-linear-gradient(-45deg,#1D9E6C 0 8px,#33B884 8px 16px)}
.pl-today.hit .pl-goal-txt{color:#7FE0B5}
.pl-goal-set{margin-left:auto;font-size:12.5px;font-weight:700;color:#FFB396;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.pl-goal-set.hidden{display:none}
.pl-goal-tag{position:absolute;right:14px;top:-12px;padding:3px 10px;border-radius:999px;background:var(--ok);color:#fff;font-family:var(--display);font-weight:600;font-size:12px;animation:pl-tag 2.6s ease both;pointer-events:none}
@keyframes pl-tag{0%{opacity:0;transform:translateY(6px) scale(.9)}10%{opacity:1;transform:none}85%{opacity:1}100%{opacity:0;transform:translateY(-4px)}}
.pl-hop{animation:pl-hop .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes pl-hop{0%{transform:none}35%{transform:translateY(-7px) rotate(-12deg) scale(1.08)}65%{transform:translateY(0) rotate(8deg)}100%{transform:none}}
.pl-today.pl-cheer{animation:pl-cheer .5s ease}
@keyframes pl-cheer{40%{transform:scale(1.02)}}
@media (max-width:860px){
  .pl-today{min-height:42px;gap:8px;padding:4px 12px 4px 4px}
  .pl-badge{width:32px;height:32px}
  .pl-today-val{font-size:17px}
  .pl-today-lbl{display:none}
  .pl-goal-txt{display:none}
  .pl-goal-track{max-width:none;min-width:50px}
}

/* ---- tiles ---- */
.sell.pl .sell-grid{gap:12px}
.sell.pl .sell-tile{position:relative;min-height:96px;padding:12px 12px 11px 14px;border:1.5px solid #E9DFD5;border-radius:18px;background:linear-gradient(180deg,#fff 0%,#FBF8F5 100%);
  box-shadow:0 3px 0 #E3D6C9,0 6px 14px rgba(15,39,57,.05);transition:transform .14s cubic-bezier(.3,1.5,.5,1),box-shadow .14s,border-color .14s;-webkit-tap-highlight-color:transparent}
.sell.pl .sell-tile::after{content:"";position:absolute;left:12px;top:12px;width:8px;height:8px;border-radius:50%;background:var(--accent,var(--orange))}
.sell.pl .sell-tile.low{--accent:var(--danger)}
.sell.pl .sell-tile .sell-tile-name{padding:0 50px 0 14px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25;font-family:var(--display);font-weight:600;font-size:14.5px;color:var(--navy-d)}
.sell.pl .sell-tile .sell-tile-price{font-size:17px;color:var(--navy)}
.sell.pl .sell-tile:hover{border-color:#F5A988;box-shadow:0 3px 0 #F5A988,0 8px 20px rgba(240,90,40,.14)}
.sell.pl .sell-tile:active{transform:translateY(2px) scale(.965,.95);box-shadow:0 1px 0 #E3D6C9,0 2px 6px rgba(15,39,57,.05);transition-duration:.05s}
.sell.pl .sell-tile.out{box-shadow:none;filter:grayscale(.6)}
.sell.pl .sell-tile.out:active{transform:none}
.pl-art{position:absolute;right:8px;top:8px;width:48px;height:48px;border-radius:50%;background:color-mix(in srgb,var(--accent,#F05A28) 12%,#FBF8F5);display:flex;align-items:center;justify-content:center;pointer-events:none}
.pl-art-b{display:block;width:46px;height:46px;transform-origin:50% 90%;will-change:transform}
.pl-art svg{display:block}
.pl-steam{position:absolute;inset:2px;opacity:0;will-change:transform,opacity}
.sell.pl .pl-art-b{animation:pl-bob 3.6s ease-in-out infinite}
.sell.pl .pl-steam{animation:pl-steam 2.8s ease-out infinite}
.sell.pl .sell-tile:nth-child(3n+2) .pl-art-b{animation-delay:-1.2s}
.sell.pl .sell-tile:nth-child(3n+3) .pl-art-b{animation-delay:-2.4s}
.sell.pl .sell-tile:nth-child(2n) .pl-steam{animation-delay:-1.4s}
.sell.pl .sell-tile:nth-child(n+31) .pl-art-b,.sell.pl .sell-tile:nth-child(n+31) .pl-steam{animation:none}
.sell.pl .sell-tile.out .pl-art-b,.sell.pl .sell-tile.out .pl-steam{animation:none}
.sell.pl .sell-tile:active .pl-art-b{animation:none;transform:scale(1.12) rotate(-6deg)}
@keyframes pl-bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-2.5px) rotate(-2deg)}}
@keyframes pl-steam{0%{opacity:0;transform:translateY(4px) scaleY(.8)}30%{opacity:.9}100%{opacity:0;transform:translateY(-7px) scaleY(1.05)}}
@media (max-width:860px){
  .sell.pl .sell-grid{gap:9px}
  .sell.pl .sell-tile{min-height:92px;border-radius:16px}
  .pl-art{width:42px;height:42px;right:6px;top:6px}
  .pl-art-b,.pl-art .pl-art-b svg,.pl-steam svg{width:40px;height:40px}
  .sell.pl .sell-tile .sell-tile-name{padding-right:38px;font-size:13.5px}
}

/* ---- category chips ---- */
.sell.pl .sell-chip{height:38px;padding:0 14px 0 12px;gap:7px;border:1.5px solid #E9DFD5;background:#fff;font-family:var(--display);font-weight:600;font-size:13.5px;color:var(--navy-d);transition:background .15s,border-color .15s,transform .12s}
.sell.pl .sell-chip:not(.on):hover{border-color:#F5A988;background:#FDF3EE}
.sell.pl .chip.sell-chip.on{background:var(--navy-d);border-color:var(--navy-d);color:#fff}
.sell.pl .sell-chip:active{transform:scale(.96)}
.pl-chip-ic{display:inline-flex;width:20px;height:20px;flex:none}
.pl-chip-ic svg{display:block}
.sell.pl .chip.sell-chip.on .pl-chip-ic{background:#fff;border-radius:50%}

/* ---- cart ---- */
.sell.pl .sell-cart{border-radius:20px}
.sell.pl .sell-line.just-added{animation:pl-line-in .3s cubic-bezier(.2,.9,.3,1.2)}
@keyframes pl-line-in{from{transform:translateX(10px);opacity:.4}to{transform:none;opacity:1}}
.sell.pl .sell-qty-pill{background:var(--orange-tint);color:#B8401A}
.sell.pl .sell-total-val{display:inline-block}
.pl-bump{animation:pl-bump .34s cubic-bezier(.3,1.8,.5,1)}
@keyframes pl-bump{0%{transform:scale(1)}40%{transform:scale(1.28)}100%{transform:scale(1)}}
.sell.pl .sell-bar.pl-bump{animation:pl-bar-bump .32s cubic-bezier(.3,1.6,.5,1)}
@keyframes pl-bar-bump{0%{transform:none}40%{transform:translateY(-3px) scale(1.03)}100%{transform:none}}
.pl-tick{animation:pl-tick .3s ease-out}
@keyframes pl-tick{0%{transform:translateY(0)}35%{transform:translateY(-3px)}100%{transform:none}}
.sell.pl .sell-complete{border-radius:16px;box-shadow:0 4px 0 #B8401A;transition:transform .1s,box-shadow .1s}
.sell.pl .sell-complete:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #B8401A}
.sell.pl .sell-complete:disabled{box-shadow:none}

/* ---- effects layer (tokens, burst, +₱) ---- */
.pl-fx{position:fixed;inset:0;pointer-events:none;z-index:150;overflow:hidden;contain:strict}
.pl-token{position:absolute;width:40px;height:40px;border-radius:50%;background:#fff;box-shadow:0 4px 12px rgba(15,39,57,.22);display:flex;align-items:center;justify-content:center;will-change:transform,opacity}
.pl-burst{position:absolute;width:0;height:0}
.pl-fx svg{max-width:none}
.pl-particle{position:absolute;left:0;top:0;display:block;width:max-content;opacity:0;will-change:transform,opacity}
.pl-particle svg{display:block;filter:drop-shadow(0 2px 2px rgba(15,39,57,.18))}
.pl-plus{position:absolute;left:0;top:0;opacity:0;font-family:var(--display);font-weight:800;font-size:26px;color:var(--orange);white-space:nowrap;-webkit-text-stroke:1px #fff;text-shadow:0 2px 0 #fff,0 3px 10px rgba(15,39,57,.2);will-change:transform,opacity}

/* ---- Sale complete / Tab settled: the EulClavie badge + a receipt that slides out ---- */
.pl-done .modal-body{position:relative;padding-top:40px;overflow:visible}
.pl-done-badge{position:absolute;left:50%;top:-30px;width:68px;height:68px;margin-left:-34px;border-radius:50%;background-color:#fff;background-repeat:no-repeat;background-size:118%;background-position:50% 50%;border:3px solid #F05A28;box-shadow:0 6px 18px rgba(15,39,57,.22);animation:pl-badge-in .5s cubic-bezier(.3,1.6,.5,1) both;z-index:2}
@keyframes pl-badge-in{0%{opacity:0;transform:translateY(16px) scale(.6)}60%{opacity:1;transform:translateY(-6px) scale(1.06) rotate(-10deg)}100%{transform:none}}
.pl-done .sell-done{position:relative;padding:18px 18px 22px;background:#FFFDFB;border:1px solid #E9DFD5;border-radius:10px 10px 0 0;
  -webkit-mask:linear-gradient(#000,#000) top/100% calc(100% - 8px) no-repeat,conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/16px 8px repeat-x;
  mask:linear-gradient(#000,#000) top/100% calc(100% - 8px) no-repeat,conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/16px 8px repeat-x;
  animation:pl-receipt .38s cubic-bezier(.2,.8,.3,1) both}
@keyframes pl-receipt{from{transform:translateY(-14px) scaleY(.92);opacity:0}to{transform:none;opacity:1}}
.pl-done .sell-done-ref{font-family:var(--display);color:var(--orange)}
.pl-done .sell-done-row{border-top:1px dashed #E3D6C9}

/* ---- reduced motion: no movement at all ---- */
@media (prefers-reduced-motion: reduce){
  .sell.pl *,.sell.pl *::before,.sell.pl *::after,.pl-today,.pl-today *,.pl-done *,.pl-fx *{animation:none!important;transition:none!important}
  .sell.pl .sell-tile:active{transform:none}
  .pl-steam{opacity:.7}
}

/* ---- Settings > Appearance ---- */
.set-appearance .set-goal-row{display:flex;align-items:center;gap:8px;max-width:360px}
.set-appearance .set-goal-peso{font-family:var(--display);font-weight:700;color:var(--body)}
.set-appearance .set-goal-row .input{flex:1;min-width:0}
