/* Header Counter (mobil sichtbar neben Icon; Desktop kannst du optional ausblenden) */
.ec-cart-count{
  display:inline-block;
  min-width:1.5em;
  text-align:center;
  font-weight:600;
  margin-left:.35rem;
  line-height:1;
}

/* Sticky Sidebar (Desktop) */
.ec-cart-sidebar{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow:auto;
  padding:14px;
  border-left:1px solid #e5e7eb;
  background:#fff;
}

/* Kopf / Summe */
.ec-cart-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:15px;
  padding-bottom:10px;
  border-bottom:1px solid #e5e7eb;
  margin-bottom:10px;
}

.ec-cart-empty{
  color:#6b7280;
  padding:12px 0;
}

/* Linien */
.ec-cart-lines{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ec-cart-line{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid #f1f5f9;
}

.ec-cart-line:last-child{ border-bottom:0; }

.ec-cart-line-media img{ width:64px; height:64px; object-fit:cover; border-radius:6px; }

.ec-cart-line-title{
  font-weight:600;
  color:#111827;
  text-decoration:none;
}
.ec-cart-line-title:hover{ text-decoration:underline; }

.ec-cart-line-meta{
  display:flex;
  gap:10px;
  font-size:13px;
  color:#374151;
  margin-top:4px;
}

.ec-cart-line-controls{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
}
.ec-cart-qty{
  width:80px;
  padding:6px 8px;
  border:1px solid #e5e7eb;
  border-radius:8px;
}
.ec-cart-remove{
  border:0;
  border-radius:8px;
  padding:6px 10px;
  cursor:pointer;
}
.ec-cart-remove:hover{ opacity:.85; }

/* Footer */
.ec-cart-footer{
  position:sticky;
  bottom:0;
  display:flex;
  gap:8px;
  padding-top:10px;
  background:#fff;
}

/* Responsive: Sidebar nur ab ~1024px zeigen – darunter normaler Flow */
@media (max-width: 1024px){
  .ec-cart-sidebar{
    position: static;
    height: auto;
    border-left: 0;
    padding: 10px 0 0;
  }
}

/* (Optional) Wenn der Header-Zähler nur mobil sichtbar sein soll: */
/*
@media (min-width:1025px){
  #ec-cart-count{ display:none; }
}
*/

/* === Header Cart Icon: wie die goldenen runden Icons daneben === */
a.ec-cartbtn.elementor-icon.elementor-view-stacked {
  /* Stacked-Optik wie die anderen Icons */
  background: transparent;
  border-radius: 9999px;
  padding: 0;            /* Rahmen vom Container weg */
}

a.ec-cartbtn .elementor-icon {
  background-color: #8C7D54; /* Gold-Kreis wie bei Suche/Menu */
  color: #fff;
  fill: currentColor;
  width: 44px;                 /* gleiche Größe wie deine runden Icons */
  height: 44px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

a.ec-cartbtn .elementor-icon svg {
  width: 22px;
  height: 22px;
}

/* Badge oben rechts – etwas größer, kontraststark */
.ec-cartbtn__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #111827;   /* sehr dunkles Blau/Anthrazit, gut lesbar */
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #3b3b3b; /* feiner Ring gegen dunklen Header */
}

/* Summe nur mobil unter dem Icon zeigen */
.ec-cartbtn__sum { display: none; }
@media (max-width: 1024px) {
  .ec-cartbtn { flex-direction: column; }
  .ec-cartbtn__sum {
    display: block;
    margin-top: 4px;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
    opacity: .9;
  }
}



