.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0,0,0,0.2);
  padding: 20px;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Segoe UI', sans-serif;
}
.cart-panel.visible { transform: translateX(0); }
.cart-panel.hidden { display: none; }

.cart-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 20px;
  color: #d63384;
}

.close-cart {
  background: none;
  border: none;
  font-size: 26px;
  color: #d63384;
  cursor: pointer;
}

.cart-content { flex-grow: 1; margin: 20px 0; overflow-y: auto; }

.cart-item {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.item-image {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.item-image img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.remove-item {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff;
  color: #d63384;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
}

.item-details {
  margin-left: 10px;
  flex-grow: 1;
}

.item-title {
  font-size: 15px;
  font-weight: bold;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-size { font-size: 13px; color: #999; }
.item-price { font-size: 16px; color: #d63384; font-weight: bold; margin: 5px 0; }

.qty-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: fit-content;
  padding: 2px;
}

.qty-box input {
  width: 40px;
  text-align: center;
  border: none;
  font-size: 15px;
}

.qty-btn {
  background: #ff69b4;
  color: #fff;
  border: 1px solid;
  border-radius: 5px;
  padding: 6px;
  font-size: 14px;
  cursor: pointer;
}

.adet-label { margin-left: 10px; font-size: 13px; color: #333; }

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 16px;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
  color: #000;
}

.cart-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.cart-btn {
  background: #ff69b4;
  border: none;
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.cart-btn:hover { background: #e055a5; }