Badge In den Warenkorb
Badge In den Warenkorb: CSS-Card. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.
New
Linen weekender bag
$120 $150
CSS
.card-020 {
width: 240px;
background: #fff;
border-radius: 14px;
overflow: hidden;
font-family: system-ui,sans-serif;
color: #111;
box-shadow: 0 1px 3px rgba(0,0,0,.08);
transition: transform .2s,box-shadow .2s
}
.card-020:hover {
transform: translateY(-3px);
box-shadow: 0 12px 28px rgba(0,0,0,.12)
}
.card-020__img {
position: relative;
height: 200px;
background: linear-gradient(160deg,#e7e5e4,#a8a29e)
}
.card-020__img span {
position: absolute;
top: 10px;
left: 10px;
padding: 3px 8px;
border-radius: 6px;
background: #111;
color: #fff;
font-size: 11px;
font-weight: 700;
text-transform: uppercase
}
.card-020__body {
padding: 14px 16px 16px
}
.card-020 h3 {
margin: 0 0 6px;
font-size: 15px;
font-weight: 600
}
.card-020__price {
margin: 0 0 12px;
font-size: 16px;
font-weight: 700
}
.card-020__price s {
margin-left: 6px;
font-size: 13px;
font-weight: 400;
color: #999
}
.card-020 button {
width: 100%;
padding: 9px;
border: 1px solid #111;
border-radius: 8px;
background: #fff;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background .15s,color .15s
}
.card-020 button:hover {
background: #111;
color: #fff
}
.card-020 :is(a,button,input,select,textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
HTML
<article class="card-020">
<div class="card-020__img"><span>New</span></div>
<div class="card-020__body">
<h3>Linen weekender bag</h3>
<p class="card-020__price">$120 <s>$150</s></p>
<button>Add to cart</button>
</div>
</article>Prompt
Erstelle eine 240px Produkt-Card: weiß, 14px Radius, Schatten 0 1px 3px rgba(0,0,0,.08), der beim Hover mit 3px Anhebung auf 0 12px 28px rgba(0,0,0,.12) wächst. Bildbereich 200px mit einem 160deg Stein-Gradient #e7e5e4 zu #a8a29e und einem schwarzen "NEW" Badge (11px Versalien, 6px Radius) oben links. Body: 15px semibold Produktname, 16px fetter Preis "$120" mit durchgestrichenem "$150" in #999 und ein umrandeter "Add to cart" Button in voller Breite, der sich beim Hover schwarz mit weißem Text füllt.