﻿  .icon-wrap {
    position: relative; width: 106px; height: 106px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
  }
  

    svg.basket-svg { position: relative; }
  
  /* circle sits centred on the top-right corner of the basket body */
  .badge-circle {
    position: absolute;
    top: 25px; right: 25px;
    width: 20px; height: 20px; border-radius: 50%;
    pointer-events: none;
    transform-origin: center center;
  }

  .badge-circle > b{
    display: block;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; line-height: 1;
    color: #fff;
    font-family: var(--font-sans, system-ui, sans-serif);
    pointer-events: none;
    box-sizing: border-box;
    transform-origin: center center;
  }

  .badge-circle > b.hasItems{ background: var(--primary); }

  .badge-circle.visible { opacity: 1; transform: scale(1); }

  @keyframes popIn {
    0%   { transform: scale(0); opacity: 0; }
    55%  { transform: scale(1.5); opacity: 1; }
    75%  { transform: scale(0.88); }
    100% { transform: scale(1); opacity: 1; }
  }
  @keyframes shake {
    0%,100% { transform: rotate(0deg); }
    25%      { transform: rotate(-3deg); }
    75%      { transform: rotate(3deg); }
  }
  @keyframes dotPop {
    0%   { transform: translate(var(--tx0), var(--ty0)) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx1), var(--ty1)) scale(0.2); opacity: 0; }
  }
  @keyframes floatUp {
    0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-28px); opacity: 0; }
  }

  .badge-circle.pop { animation: popIn 0.38s cubic-bezier(0.34,1.56,0.64,1) forwards; }
  .icon-wrap.shake  { animation: shake 0.3s ease; }

  /* particles originate from badge-circle centre: top:18px right:4px → ~top:28px from top, ~14px from right */
  .dot {
    position: absolute;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--primary); pointer-events: none;
    opacity: 0;
    top: 0; right: 0;
  }
  .dot.go { animation: dotPop 1s ease-out forwards; }

  .float-label {
    position: absolute; bottom: 50%; left: 50%;
    transform: translateX(-50%);
    font-size: 11px; font-weight: 600;
    color: initial; white-space: nowrap;
    opacity: 0; pointer-events: none;
  }
  .float-label.go { animation: floatUp 1s ease forwards; }

@media (max-width: 767px){

  .badge-circle {
        position: absolute;
        top: 28px;
        right: 35px;
        width: 14px;
        height: 14px;
    }

}