.cart-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9f0a, #ff6a00);
  border: none;
  color: #000;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(255,159,10,0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cart-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(255,159,10,0.5);
}
.cart-fab:active {
  transform: scale(0.95);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff5252;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255,82,82,0.4);
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
  backdrop-filter: blur(4px);
}

.cart-overlay.open {
  display: block;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100%;
  background: #0d0d0d;
  border-left: 1px solid rgba(255,255,255,0.06);
  z-index: 10000;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s ease, visibility 0s linear 0.35s;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
}

.cart-panel.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.35s ease;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cart-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.cart-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.cart-close:hover {
  color: #fff;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,0.3);
}

.cart-empty i {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.cart-empty p {
  font-size: 14px;
  margin: 0;
}

.cart-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-type {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #ff9f0a;
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: #ff5252;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-total-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.cart-total-value {
  font-size: 22px;
  font-weight: 800;
  color: #ff9f0a;
}

.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff9f0a, #ff6a00);
  border: none;
  border-radius: 12px;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.3s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cart-checkout-btn:hover {
  opacity: 0.9;
}

.cart-checkout-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-clear-btn {
  width: 100%;
  padding: 10px;
  background: none;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s;
  font-family: inherit;
}

.cart-clear-btn:hover {
  border-color: rgba(255,82,82,0.3);
  color: #ff5252;
}

.cart-toast {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: rgba(0,0,0,0.9);
  border: 1px solid rgba(255,159,10,0.3);
  border-radius: 12px;
  padding: 14px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  z-index: 9997;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.cart-toast i {
  color: #ff9f0a;
  font-size: 18px;
}

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