# Warenkorb-Zeile (C 024)

Kategorie: Cards  
Tags: product, cart-item, horizontal, quantity, light  
Seite: https://designforai.dev/de/snippet/card-024

## Prompt

Erstelle eine 460px Warenkorb-Zeilen-Card: vierspaltiges Grid (72px Bild, flexible Info, Mengen-Stepper, Preis), 16px Gap, 12px Padding, weiß, 1px #ececec Rahmen, 12px Radius. Das Bild ist ein 72px Quadrat mit 10px Radius und einem 135deg Gradient #fde68a zu #b45309. Info: 15px Name und 12px #888 Variantentext. Stepper: eine umrandete #ddd Gruppe aus "−", Anzahl, "+" (28px Buttons auf #fafafa, Hover #eee). Rechts ein 16px fetter Preis.

## HTML

```html
<article class="card-024">
  <div class="card-024__img"></div>
  <div class="card-024__info"><h3>Oak desk lamp</h3><p>Warm white, dimmable</p></div>
  <div class="card-024__qty"><button>−</button><span>1</span><button>+</button></div>
  <strong>$85</strong>
</article>
```

## CSS

```css
.card-024 {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 16px;
  align-items: center;
  width: 460px;
  padding: 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  font-family: system-ui,sans-serif;
  color: #222
}
.card-024__img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg,#fde68a,#b45309)
}
.card-024 h3 {
  margin: 0;
  font-size: 15px
}
.card-024 p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #888
}
.card-024__qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden
}
.card-024__qty button {
  width: 28px;
  height: 28px;
  border: 0;
  background: #fafafa;
  cursor: pointer;
  font-size: 14px
}
.card-024__qty button:hover {
  background: #eee
}
.card-024__qty span {
  width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 600
}
.card-024 strong {
  font-size: 16px
}
.card-024 :is(a,button,input,select,textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
```
