/* ============ PAGE TRANSITION ============ */
.pt {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  background: var(--orange); color: #0b0b0d;
}
.pt__mark { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: clamp(36px, 6vw, 72px); letter-spacing: .02em; }
.pt__ball {
  width: .9em; height: .9em; border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 46%, #0b0b0d 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, #0b0b0d 46% 54%, transparent 54%),
    #fff;
  animation: spin 1.2s linear infinite;
}

/* ============ QTY STEPPER ============ */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; height: 56px; }
.qty button { width: 48px; height: 100%; font-size: 20px; color: var(--ink); border-radius: 99px; transition: background .2s; }
.qty button:hover { background: rgba(255,255,255,.07); }
.qty span, .qty output { min-width: 32px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; display: inline-block; }
.qty--sm { height: 36px; }
.qty--sm button { width: 34px; font-size: 16px; }

/* ============ CART DRAWER ============ */
.drawer { position: fixed; inset: 0; z-index: 85; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(5,5,7,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(460px, calc(100% - 20px));
  display: flex; flex-direction: column; border-radius: 28px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  transform: translateX(calc(100% + 20px)); transition: transform .7s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 14px; }
.drawer__head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; }
.drawer__head sup { font-family: var(--body); font-size: 14px; color: var(--orange); font-weight: 800; margin-left: 4px; }
.drawer__close { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: transform .4s var(--ease), background .3s; }
.drawer__close:hover { transform: rotate(90deg); background: rgba(255,255,255,.07); }
.drawer__perk { margin: 0 24px 8px; padding: 10px 14px; border-radius: 14px; background: rgba(255,106,19,.12); color: var(--orange-2); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.drawer__perk .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.drawer__items { list-style: none; margin: 0; padding: 4px 24px; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.drawer__empty { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--muted); }
.drawer.is-empty .drawer__empty { display: flex; }
.drawer.is-empty .drawer__items, .drawer.is-empty .drawer__foot { display: none; }
.drawer__empty-ball { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb47a, transparent 40%), linear-gradient(90deg, transparent 47%, #1a0d05 47% 53%, transparent 53%), linear-gradient(0deg, transparent 47%, #1a0d05 47% 53%, transparent 53%), var(--orange); animation: bounce .6s cubic-bezier(.5,0,.5,1) infinite alternate; }
.drawer__empty p { margin: 8px 0 4px; font-size: 17px; }
.drawer__foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--bg-3); }
.drawer__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.drawer__row--save { color: var(--orange-2); font-size: 14px; font-weight: 700; }
.drawer__row--total span { color: var(--muted); }
.drawer__row--total b { font-family: var(--display); font-weight: 400; font-size: 34px; }
.drawer__checkout { width: 100%; justify-content: center; margin-top: 8px; }
.drawer__note { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.drawer__note a { color: var(--ink); text-decoration: underline; }

.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.line__img { width: 76px; height: 76px; border-radius: 16px; background: #fff; overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.line__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line__title { font-family: var(--display); font-size: 19px; text-transform: uppercase; line-height: 1.1; }
.line__variant { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.line__side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.line__side b { font-family: var(--display); font-weight: 400; font-size: 21px; }
.line__side s { font-size: 13px; color: var(--muted); }
.line__remove { margin-top: auto; font-size: 12px; color: var(--muted); text-decoration: underline; }
.line__remove:hover { color: var(--orange); }

/* Image qui vole jusqu'au panier */
.fly { position: fixed; z-index: 96; pointer-events: none; object-fit: contain; border-radius: 50%; background: #fff; padding: 8px; box-shadow: 0 20px 50px -10px rgba(255,106,19,.7); }
