/* ═══════════════════════════════════════════
   PANIER LATÉRAL — O'SMASH BURGER
   ═══════════════════════════════════════════ */

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background: white;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: right 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar-header {
  padding: 25px;
  background: #1a1a1a;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #c8102e;
  flex-shrink: 0;
}

.cart-sidebar-header h2 {
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 22px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 1px;
}

.cart-sidebar-header h2 i {
  width: 24px;
  height: 24px;
}

.cart-sidebar-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.2s;
}

.cart-sidebar-close:hover {
  background: #c8102e;
  transform: rotate(90deg);
}

.cart-sidebar-close i {
  width: 20px;
  height: 20px;
}

.cart-sidebar-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 25px;
  text-align: center;
}

.cart-empty-icon {
  width: 64px;
  height: 64px;
  color: #ccc;
  margin-bottom: 20px;
  stroke-width: 1.5;
}

.cart-empty h3 {
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 22px;
  color: #1a1a1a;
  margin: 0 0 10px;
}

.cart-empty p {
  color: #5f5e5a;
  margin: 0 0 25px;
  font-size: 14px;
}

.btn-cart-cta {
  display: inline-block;
  padding: 14px 30px;
  background: #c8102e;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.btn-cart-cta:hover {
  background: #ed1c24;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.4);
}

.cart-items {
  padding: 20px 25px;
  flex: 1;
}

.cart-item {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cart-item-info {
  flex: 1;
  padding-right: 8px;
}

.cart-item-info h4 {
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 17px;
  color: #1a1a1a;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}

.cart-item-mods {
  font-size: 12px;
  margin: 3px 0;
  line-height: 1.4;
}

.cart-item-removed {
  color: #c8102e;
  font-weight: 500;
}

.cart-item-extras {
  color: #2d9d3f;
  font-weight: 500;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #c8102e;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  background: rgba(200, 16, 46, 0.1);
}

.cart-item-remove i {
  width: 18px;
  height: 18px;
}

.cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e0e0e0;
  padding-top: 12px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: 8px;
  padding: 4px;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: white;
  border: 1.5px solid #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-item-qty button:hover {
  background: #c8102e;
  border-color: #c8102e;
  color: white;
}

.cart-item-qty button i {
  width: 14px;
  height: 14px;
}

.cart-item-qty span {
  font-weight: 700;
  font-size: 15px;
  min-width: 20px;
  text-align: center;
}

.cart-item-price {
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 18px;
  color: #c8102e;
}

.cart-footer {
  border-top: 2px solid #f0f0f0;
  padding: 20px 25px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 16px;
  color: #1a1a1a;
}

.cart-subtotal-row strong {
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  color: #c8102e;
}

.btn-clear-cart {
  background: none;
  border: 1.5px solid #ccc;
  color: #5f5e5a;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-clear-cart:hover {
  background: #fee;
  border-color: #c8102e;
  color: #c8102e;
}

.btn-clear-cart i {
  width: 14px;
  height: 14px;
}

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px;
  background: #c8102e;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  font-family: var(--font-titre, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.btn-checkout:hover {
  background: #ed1c24;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.4);
}

.btn-checkout i {
  width: 20px;
  height: 20px;
}

.btn-continue {
  background: none;
  border: none;
  color: #5f5e5a;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.btn-continue:hover {
  color: #1a1a1a;
}

.cart-icon {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #c8102e;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(200, 16, 46, 0.4);
}

.cart-badge--bounce {
  animation: cart-badge-pop 0.4s ease;
}

@keyframes cart-badge-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

.header__cart i[data-lucide] {
  width: 28px;
  height: 28px;
}

@media (max-width: 480px) {
  .cart-sidebar {
    max-width: 100%;
  }

  .cart-sidebar-header {
    padding: 20px;
  }

  .cart-items {
    padding: 15px 20px;
  }

  .cart-footer {
    padding: 15px 20px;
  }
}
