/* ============================================================
   LYO URBAN BOX — SYSTEME DE PANIER FLOTTANT — STYLES
   ============================================================ */

.ucart-root {
  --ucart-orange: var(--orange, #E8761A);
  --ucart-red:    var(--red, #D63218);
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
}

/* ── BOUTON PANIER FLOTTANT ── */
.ucart-fab {
  position: fixed;
  bottom: 168px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fbfafa;
  border: 2px solid var(--ucart-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 9996;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: transform .22s ease, box-shadow .22s ease;
}
.ucart-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.ucart-fab-icon { line-height: 1; }

.ucart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ucart-orange), var(--ucart-red));
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  display: none;
}

@keyframes ucart-pulse-anim {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.25); }
  55%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.ucart-fab.ucart-pulse { animation: ucart-pulse-anim .5s ease; }

/* ── GHOST FLYING +1 ── */
.ucart-flying-ghost {
  position: fixed;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ucart-orange), var(--ucart-red));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  z-index: 10001;
  pointer-events: none;
  transition: transform .6s cubic-bezier(.3,.8,.4,1), opacity .6s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}

/* ── Feedback bouton "->" cliqué ── */
.product-arrow.ucart-added {
  background: linear-gradient(135deg, var(--ucart-orange), var(--ucart-red)) !important;
  color: #fff !important;
  border-color: transparent !important;
  transform: scale(1.15);
}

/* ── OVERLAY ── */
.ucart-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,.5);
  backdrop-filter: blur(4px);
  z-index: 9997;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.ucart-overlay.ucart-show { opacity: 1; visibility: visible; }

/* ── PANNEAU LATERAL ── */
.ucart-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 92vw);
  height: 100%;
  background: #fff;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 50px rgba(0,0,0,.25);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.3,.8,.4,1);
}
.ucart-panel.ucart-show { transform: translateX(0); }

.ucart-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 22px;
  background: linear-gradient(135deg, var(--ucart-orange), var(--ucart-red));
  flex-shrink: 0;
}
.ucart-panel-header h3 {
  color: #fff;
  font-family: 'Bangers', 'Barlow Condensed', cursive;
  font-size: 1.4rem;
  letter-spacing: 1.5px;
  margin: 0;
}
.ucart-panel-header h3 span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.85;
}
.ucart-panel-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: none; color: #fff; font-size: 1.05rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.ucart-panel-close:hover { background: rgba(255,255,255,.32); }

.ucart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* ── ETAT VIDE ── */
.ucart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
.ucart-empty-icon { font-size: 3.5rem; margin-bottom: 14px; opacity: 0.4; }
.ucart-empty p {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  color: #555; margin-bottom: 6px;
}
.ucart-empty span { font-size: 0.85rem; color: #aaa; }

/* ── ITEM PANIER ── */
.ucart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 10px;
  border-bottom: 1px solid #f0f0f0;
}
.ucart-item-img {
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}
.ucart-item-img-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.ucart-item-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.92rem;
  color: #1a1a1a; line-height: 1.3; margin-bottom: 4px;
}
.ucart-item-price {
  font-size: 0.78rem; color: #888; margin-bottom: 8px;
}
.ucart-item-controls {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.ucart-qty-btn {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  color: #333;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.ucart-qty-btn:hover { background: #fff0e6; border-color: var(--ucart-orange); }
.ucart-qty-val {
  min-width: 22px; text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.85rem;
}
.ucart-remove-btn {
  margin-left: 8px;
  background: none; border: none;
  color: var(--ucart-red);
  font-size: 0.74rem;
  text-decoration: underline;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
}
.ucart-item-subtotal {
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  color: var(--ucart-orange);
  white-space: nowrap;
  text-align: right;
}
.ucart-item-subtotal small { font-size: 0.6rem; font-family: 'Barlow', sans-serif; }

/* ── FOOTER PANNEAU ── */
.ucart-panel-footer {
  padding: 18px 22px 22px;
  border-top: 1px solid #eee;
  flex-shrink: 0;
  background: #fafafa;
}
.ucart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}
.ucart-total-row span:first-child {
  font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; color: #888;
}
.ucart-total-row span:last-child {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem; color: var(--ucart-orange);
}

.ucart-checkout-btn {
  width: 100%; padding: 15px;
  border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--ucart-orange), var(--ucart-red));
  color: #fff;
  font-family: 'Bangers', 'Barlow Condensed', cursive;
  font-size: 1.15rem; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(232,118,26,.3);
  transition: transform .2s, box-shadow .2s;
  margin-bottom: 10px;
}
.ucart-checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232,118,26,.4); }

.ucart-clear-btn {
  width: 100%; padding: 10px;
  background: none; border: 1.5px solid #e0e0e0;
  border-radius: 10px; cursor: pointer; color: #999;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem; letter-spacing: 0.5px;
  transition: all .2s;
}
.ucart-clear-btn:hover { border-color: var(--ucart-red); color: var(--ucart-red); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .ucart-fab { bottom: 152px; right: 16px; width: 50px; height: 50px; font-size: 1.3rem; }
  .ucart-panel { width: 100vw; }
}
