/* Wishlist — AG Store v7 */

/* ── Title row ── */
.agp-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.agp-title-row #agp-title{flex:1;min-width:0}

/* ── Heart button ── */
.ag-wl-heart-wrap{flex-shrink:0;display:flex;align-items:center;align-self:center}
.ag-wl-heart{
  position:relative;width:40px;height:40px;margin:0;border:none;border-radius:50%;
  background:transparent;box-shadow:none;cursor:pointer;display:flex;align-items:center;
  justify-content:center;padding:0;-webkit-tap-highlight-color:transparent;
  transition:background .18s,transform .16s;
}
.ag-wl-heart:hover{background:rgba(239,68,68,.06);transform:scale(1.08)}
.ag-wl-heart:active{transform:scale(0.9)}
.ag-wl-heart:focus{outline:none}
.ag-wl-heart:focus-visible{outline:2px solid rgba(239,68,68,.4);outline-offset:3px}
.ag-wl-heart:disabled{opacity:.35;cursor:not-allowed;transform:none;background:transparent}

.ag-wl-heart svg.ag-wl-h-svg{width:26px;height:26px;display:block;overflow:visible;filter:drop-shadow(0 1px 2px rgba(0,0,0,.06))}
.ag-wl-heart .ag-wl-h-stroke{stroke:#b0b0b8;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;transition:stroke .22s,opacity .3s}
.ag-wl-heart:hover .ag-wl-h-stroke{stroke:#ef4444;opacity:.55}
.ag-wl-heart .ag-wl-h-fill{fill:#ef4444;clip-path:inset(100% 0 0 0);opacity:0;transition:clip-path .45s cubic-bezier(.33,.9,.4,1),opacity .3s}

.ag-wl-heart.is-on .ag-wl-h-stroke{stroke:#ef4444;opacity:0}
.ag-wl-heart.is-on .ag-wl-h-fill{clip-path:inset(0 0 0 0);opacity:1}

.ag-wl-heart.is-on.ag-wl-animate{animation:agWlPop .5s cubic-bezier(.34,1.5,.64,1)}
.ag-wl-heart.is-on.ag-wl-animate .ag-wl-h-fill{animation:agWlUp .5s cubic-bezier(.22,.68,.35,1) forwards}
@keyframes agWlPop{0%{transform:scale(1)}28%{transform:scale(1.28)}55%{transform:scale(.9)}78%{transform:scale(1.06)}100%{transform:scale(1)}}
@keyframes agWlUp{0%{clip-path:inset(100% 0 0 0);opacity:.5}50%{clip-path:inset(18% 0 0 0);opacity:1}100%{clip-path:inset(0 0 0 0);opacity:1}}

.ag-wl-heart .ag-wl-burst{position:absolute;inset:-6px;pointer-events:none}
.ag-wl-burst circle{fill:#ef4444;opacity:0}
.ag-wl-heart.is-on.ag-wl-animate .ag-wl-burst circle{animation:agWlDot .5s cubic-bezier(.2,.7,.35,1) forwards}
.ag-wl-burst circle:nth-child(2){animation-delay:.04s!important}
.ag-wl-burst circle:nth-child(3){animation-delay:.07s!important}
.ag-wl-burst circle:nth-child(4){animation-delay:.03s!important}
.ag-wl-burst circle:nth-child(5){animation-delay:.06s!important}
.ag-wl-burst circle:nth-child(6){animation-delay:.05s!important}
@keyframes agWlDot{0%{opacity:1;r:1.5}100%{opacity:0;r:0;transform:translate(var(--dx),var(--dy))}}

.ag-wl-heart.is-busy{pointer-events:none}

/* ── FAB hidden ── */
#ag-wl-fab.ag-wl-fab{display:none!important}

/* ── Badge ── */
.ag-wl-dd-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:20px;padding:0 6px;border-radius:999px;
  background:#ef4444;color:#fff;font:700 11px/20px Inter,system-ui,sans-serif;
  margin-left:auto;box-sizing:border-box;letter-spacing:-.01em;
  box-shadow:0 1px 4px rgba(239,68,68,.25);
}
.ag-wl-dd-badge:empty,.ag-wl-dd-badge[data-count="0"]{display:none}

/* ── Panel ── */
.ag-wl-ov{
  position:fixed;inset:0;background:rgba(0,0,0,.32);
  backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
  z-index:2147483641;opacity:0;visibility:hidden;
  transition:opacity .22s,visibility .22s;
}
.ag-wl-ov.on{opacity:1;visibility:visible}
.ag-wl-panel{
  position:fixed;top:0;right:0;width:100%;max-width:420px;height:100%;
  background:#f8fafc;z-index:2147483642;transform:translateX(100%);
  transition:transform .3s cubic-bezier(.32,.72,0,1);
  display:flex;flex-direction:column;box-shadow:-10px 0 40px rgba(0,0,0,.08);
}
.ag-wl-ov.on .ag-wl-panel{transform:translateX(0)}
@media(max-width:520px){.ag-wl-panel{max-width:100%}}

.ag-wl-ph{
  flex-shrink:0;padding:20px 22px 16px;background:#fff;
  border-bottom:1px solid #f1f5f9;display:flex;align-items:flex-start;
  justify-content:space-between;gap:12px;
}
.ag-wl-pt{margin:0;font:700 20px/1.2 Inter,system-ui,sans-serif;color:#0f172a;letter-spacing:-.02em}
.ag-wl-ps{margin:3px 0 0;font:400 13px/1.4 Inter,system-ui,sans-serif;color:#64748b}
.ag-wl-x{
  width:34px;height:34px;border:none;border-radius:50%;background:#f1f5f9;
  cursor:pointer;font-size:0;color:#475569;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s;
}
.ag-wl-x:hover{background:#e2e8f0;color:#0f172a}
.ag-wl-x svg{width:14px;height:14px}

/* Card list */
.ag-wl-scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px 14px 32px}
.ag-wl-empty{text-align:center;padding:56px 24px;font:400 14px/1.6 Inter,system-ui,sans-serif;color:#94a3b8}
.ag-wl-empty svg{display:block;margin:0 auto 14px;opacity:.3}

.ag-wl-card{
  display:flex;gap:12px;padding:12px 14px;border:1px solid #f1f5f9;border-radius:14px;
  margin-bottom:8px;background:#fff;transition:opacity .22s,transform .22s,box-shadow .18s,border-color .18s;
}
.ag-wl-card:hover{border-color:#e2e8f0;box-shadow:0 2px 12px rgba(0,0,0,.04)}
.ag-wl-card.removing{opacity:0;transform:translateX(40px)}
.ag-wl-card-img{width:72px;height:72px;object-fit:contain;border-radius:10px;background:#f8fafc;flex-shrink:0;border:1px solid #f1f5f9}
.ag-wl-card-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ag-wl-card-name{font:600 13.5px/1.35 Inter,system-ui,sans-serif;color:#0f172a;text-decoration:none;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ag-wl-card-name:hover{color:#0171e3}
.ag-wl-meta{font:400 11px/1.4 Inter,system-ui,sans-serif;color:#94a3b8}
.ag-wl-prices{display:flex;gap:6px 10px;align-items:baseline;margin-top:1px}
.ag-wl-price-now{font:800 15px/1 Inter,system-ui,sans-serif;color:#0f172a;letter-spacing:-.02em}
.ag-wl-price-was{font:500 11.5px/1 Inter,system-ui,sans-serif;color:#94a3b8;text-decoration:line-through}

.ag-wl-card-actions{display:flex;align-items:center;gap:6px;margin-top:4px}

/* Email notify toggle */
.ag-wl-mail-btn{
  display:inline-flex;align-items:center;gap:5px;padding:4px 10px 4px 7px;
  border-radius:8px;border:1px solid #e2e8f0;background:#fff;cursor:pointer;
  font:500 11px/1 Inter,system-ui,sans-serif;color:#64748b;
  transition:all .15s;white-space:nowrap;
}
.ag-wl-mail-btn svg{width:14px;height:14px;flex-shrink:0}
.ag-wl-mail-btn:hover{border-color:#bfdbfe;background:#eff6ff;color:#2563eb}
.ag-wl-mail-btn.is-on{background:#eff6ff;border-color:#93c5fd;color:#2563eb}
.ag-wl-mail-btn.is-on svg{color:#2563eb}

/* Remove */
.ag-wl-remove{
  font:500 11px Inter,system-ui,sans-serif;color:#94a3b8;border:none;background:none;
  cursor:pointer;padding:4px 6px;border-radius:6px;transition:color .15s,background .15s;
  margin-left:auto;
}
.ag-wl-remove:hover{color:#ef4444;background:#fef2f2}

/* ── Auth-gate toast ── */
.ag-wl-auth-toast{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);
  z-index:2147483644;opacity:0;visibility:hidden;
  transition:opacity .3s cubic-bezier(.4,0,.2,1),transform .3s cubic-bezier(.4,0,.2,1),visibility .3s;
  pointer-events:none;width:94%;max-width:380px;
}
.ag-wl-auth-toast.on{
  opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);pointer-events:auto;
}
.ag-wl-at-inner{
  background:#fff;border-radius:18px;
  box-shadow:0 8px 40px rgba(0,0,0,.12),0 1px 3px rgba(0,0,0,.06);
  padding:22px 22px 20px;text-align:center;position:relative;
}
.ag-wl-at-close{
  position:absolute;top:10px;right:10px;width:30px;height:30px;border:none;
  border-radius:50%;background:#f1f5f9;cursor:pointer;font:400 20px/30px sans-serif;
  color:#64748b;display:flex;align-items:center;justify-content:center;
  transition:background .15s,color .15s;
}
.ag-wl-at-close:hover{background:#e2e8f0;color:#0f172a}
.ag-wl-at-icon{margin:0 auto 12px;width:50px;height:50px;border-radius:50%;background:#fef2f2;display:flex;align-items:center;justify-content:center}
.ag-wl-at-title{margin:0 0 6px;font:700 16px/1.3 Inter,system-ui,sans-serif;color:#0f172a}
.ag-wl-at-text{margin:0 0 16px;font:400 13px/1.55 Inter,system-ui,sans-serif;color:#64748b}
.ag-wl-at-btns{display:flex;gap:8px;justify-content:center}
.ag-wl-at-btn{
  flex:1;padding:10px 0;border:none;border-radius:10px;cursor:pointer;
  font:600 13.5px/1 Inter,system-ui,sans-serif;
  transition:filter .15s,transform .1s;
  text-decoration:none;text-align:center;display:flex;align-items:center;justify-content:center;
  -webkit-tap-highlight-color:transparent;
}
.ag-wl-at-btn:active{transform:scale(.97)}
.ag-wl-at-login{background:#0071e3;color:#fff}
.ag-wl-at-login:hover{filter:brightness(1.08)}
.ag-wl-at-reg{background:#f1f5f9;color:#0f172a}
.ag-wl-at-reg:hover{background:#e2e8f0}
