/* c:\Users\nevio\OneDrive\Dokumente\vscode\GitHub\Maios\cart.css */
:root {
  --cart-spacing-xs: 0.5rem;
  --cart-spacing-sm: 1rem;
  --cart-spacing-md: 1.5rem;
  --cart-spacing-lg: 2rem;
  --cart-spacing-xl: 3rem;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  font-size: clamp(0.95rem, 2vw, 1rem);
  line-height: 1.6;
}

/* Mobile Navigation Fix */
@media (max-width: 768px) {
  body {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .navbar {
    padding: 0.75rem 0 !important;
    margin: 0 !important;
  }
  
  .container.mt-2,
  .container.mt-3,
  .container.mt-4 {
    margin-top: 0 !important;
    padding-top: 1rem !important;
  }
  
  main {
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Warenkorb Navbar Brand - größeres Maios Logo */
.navbar-brand {
  font-size: clamp(1.75rem, 4vw, 2.25rem) !important;
  font-weight: 800 !important;
  color: #000 !important;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand i {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #000 !important;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(145deg, #ffffff 0%, #f3f6fa 100%);
  border-radius: clamp(16px, 3vw, 24px);
  box-shadow: 0 8px 32px rgba(102,126,234,0.08);
}

.page-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-subtitle {
  color: #7f8c8d;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

/* --- Neues Layout: Checkout links, Artikel rechts --- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: start;
}

.cart-items-section {
  order: 2;
  background: #fff;
  border-radius: clamp(16px, 2.5vw, 20px);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1.5px solid #e3e8f0;
  transition: box-shadow 0.3s ease;
}

.cart-items-section:hover {
  box-shadow: 0 6px 32px rgba(102,126,234,0.12);
}

.checkout-section {
  order: 1;
}

@media (max-width: 900px) {
  .cart-layout {
      grid-template-columns: 1fr;
  }
  .cart-items-section, .checkout-section {
      order: unset;
  }
}

.cart-item {
  display: grid;
  grid-template-columns: clamp(80px, 15vw, 120px) 1fr auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 2px solid #f8f9fa;
  border-radius: clamp(12px, 2vw, 16px);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cart-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.cart-item:hover::before {
  transform: scaleX(1);
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: #e3f2fd;
}

.cart-item-image {
  width: clamp(80px, 15vw, 100px);
  height: clamp(80px, 15vw, 100px);
  object-fit: cover;
  object-position: center;
  border-radius: clamp(6px, 1.5vw, 8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: brightness(1.02) contrast(1.05) saturate(1.08);
}

.cart-item:hover .cart-item-image {
  transform: scale(1.05);
}

.cart-item-details h5,
.cart-item-name {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.cart-item-price {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: #27ae60;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Mengensteuerung mit Müll-Button rechts neben + */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1rem);
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  min-width: 0;
  justify-content: flex-end;
  margin-left: 0;
  border-radius: 0;
  margin-bottom: 0;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.13);
}

.quantity-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.18);
}

.quantity-btn:active {
  transform: scale(0.95) !important;
}

.quantity-display {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1rem;
}

/* Müll-Button als Teil der quantity-controls */
.quantity-controls .remove-btn {
  margin-left: clamp(0.5rem, 1vw, 0.8rem);
}

/* Müll-Button in derselben Zeile wie quantity-controls */
.cart-item .quantity-controls {
  display: flex !important;
  align-items: center !important;
  gap: clamp(0.8rem, 2vw, 1rem) !important;
  justify-content: flex-start !important;
}

/* Müll-Button wird als letztes Element in quantity-controls behandelt */
.cart-item .remove-btn {
  order: 999 !important;
  margin-left: clamp(0.5rem, 1vw, 0.8rem) !important;
  position: static !important;
  transform: none !important;
}

.remove-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: linear-gradient(145deg, #ff6b6b, #ee5a52);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.remove-btn:hover {
  background: linear-gradient(145deg, #ff5252, #f44336);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.checkout-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 2px solid #f8f9fa;
}

.checkout-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.order-summary {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(0.6rem, 1.5vw, 0.75rem) 0;
  border-bottom: 1px solid #f8f9fa;
  font-size: clamp(0.95rem, 2vw, 1rem);
}

.summary-row.total {
  font-size: clamp(1.15rem, 3vw, 1.3rem);
  font-weight: 700;
  color: #2c3e50;
  border-bottom: 3px solid #667eea;
  margin-top: clamp(0.75rem, 2vw, 1rem);
  padding-top: clamp(0.75rem, 2vw, 1rem);
}

.payment-form {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.95rem;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  background: white;
  outline: none;
}

.payment-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #f8f9fa;
}

.payment-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.checkout-btn {
  background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 15px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.checkout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.checkout-btn:hover::before {
  left: 100%;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}
.checkout-btn:active {
  transform: translateY(0);
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin: 2rem auto;
  max-width: 900px;
}

.empty-cart-icon {
  font-size: 4rem;
  color: #bdc3c7;
  margin-bottom: 1.5rem;
}

.empty-cart h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
}

.empty-cart p {
  color: #7f8c8d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.continue-shopping {
  display: inline-block;
  background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.continue-shopping:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
  text-decoration: none;
}

/* ULTIMATIVER MOBILE BILDFIX - VIEWPORT-SPEZIFISCH */
@media screen and (max-width: 768px) and (orientation: portrait),
     screen and (max-width: 1024px) and (orientation: landscape) {
/* KOPIERE EXAKT DIE ADD-ON CSS-REGELN */
.cart-item-image,
#cartDropdown .cart-item-image,
.cart-item img,
img.cart-item-image,
#cartItemsList img,
#cartContent img,
.cart-items-section img,
.cart-item > img,
.cart-item img:first-child,
img[src*="produkt"],
img[alt*="Produktbild"],
img[class*="cart"] {
  /* EXAKT WIE .addon-card-img */
  width: 56px !important;
  height: 56px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 8px !important;
  margin-right: 1.2rem !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15) !important;
  border: 2.5px solid #e3e8f0 !important;
  background: #f3f6fa !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2.1rem !important;
  color: #667eea !important;
  /* Bildqualität verbessern */
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
  /* Schärfe und Kontrast */
  filter: brightness(1.02) contrast(1.05) saturate(1.08) !important;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease !important;
  /* Zusätzliche Sichtbarkeits-Erzwingung */
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 10 !important;
}

/* HOVER-EFFEKT WIE BEI ADD-ONS */
.cart-item-image:hover,
#cartDropdown .cart-item-image:hover,
.cart-item img:hover,
img.cart-item-image:hover,
#cartItemsList img:hover,
#cartContent img:hover,
.cart-items-section img:hover {
  transform: scale(1.05) !important;
  filter: brightness(1.05) contrast(1.08) saturate(1.12) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
}

/* ERZWINGE AUCH FALLBACK-BILDER MIT PSEUDO-ELEMENT */
.cart-item::before {
  content: "📷" !important;
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  left: 20px !important;
  transform: translateY(-50%) !important;
  width: 80px !important;
  height: 80px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 8px !important;
  border: 3px solid #ffffff !important;
  z-index: 999 !important;
  font-size: 2.5rem !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4) !important;
  text-align: center !important;
  line-height: 74px !important;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
}

/* Mache cart-item relativ positioniert für absolute Positionierung */
.cart-item {
  position: relative !important;
}

/* Verstecke das ::before wenn ein echtes Bild da ist */
.cart-item:has(img)::before,
.cart-item:has(.cart-item-image)::before {
  display: none !important;
}

/* Fallback für Browser die :has() nicht unterstützen */
@supports not selector(:has(*)) {
  .cart-item img + *::before {
    display: none !important;
  }
}

/* Spezifische Fixes für verschiedene Container */
.cart-item {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  overflow: visible !important;
}

.cart-item-details {
  flex: 1 !important;
  min-width: 0 !important;
}

/* Zusätzlicher Fix für dynamisch geladene Bilder */
#cartItemsList .cart-item-image,
#cartItemsList img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 80px !important;
  height: 80px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  border: 3px solid #e3e8f0 !important;
  background: #f3f6fa !important;
  object-fit: cover !important;
  object-position: center !important;
}
}

/* Erweiterte Mobile Optimierungen für Warenkorb */
@media (max-width: 768px) {
.main-container {
  padding: 1rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
}

.page-subtitle {
  font-size: 1rem;
}

.cart-layout {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.cart-items-section {
  padding: 1.5rem;
}

.checkout-section {
  padding: 1rem;
}

.cart-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 1rem !important;
  padding: 1.2rem !important;
  /* Erzwinge sichtbaren Bildbereich */
  min-height: auto !important;
  overflow: visible !important;
}

/* Oberer Bereich: Bild und Details nebeneinander */
.cart-item-top {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  width: 100% !important;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  grid-row: 1 / 3;
  /* Bildqualität für mobile Geräte */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: brightness(1.03) contrast(1.06) saturate(1.1);
}

.cart-item-details {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.cart-item-details h5 {
  font-size: 1rem !important;
  line-height: 1.4 !important;
  margin-bottom: 0.5rem !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

.cart-item-price {
  font-size: 1.1rem !important;
  margin: 0 !important;
  font-weight: 700 !important;
  color: #27ae60 !important;
}

.quantity-controls {
  justify-content: flex-start !important;
  margin: 1rem 0 0 0 !important;
  gap: 0.8rem !important; /* Kompakter Abstand auch auf Mobile */
  width: 100% !important;
}

/* Müll-Button ist jetzt Teil der quantity-controls, keine separate Positionierung */

/* Checkout-Sektion */
.checkout-section h3 {
  font-size: 1.3rem;
}

/* Stripe-Formular */
.stripe-form {
  padding: 1rem;
}

.form-group label {
  font-size: 0.9rem;
}

.stripe-element {
  padding: 0.8rem;
  font-size: 0.9rem;
}

#submit-payment {
  padding: 1rem;
  font-size: 1.1rem;
}

/* Order Summary */
.order-summary {
  padding: 1rem;
}

.summary-row {
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.summary-row.total {
  font-size: 1.1rem;
  padding: 0.8rem 0;
}

/* Payment Section */
.payment-section {
  padding: 1rem;
}

.payment-title {
  font-size: 1.2rem;
}

/* Addon Cards */
.addon-card {
  padding: 0.8rem 1rem;
  min-width: 200px;
  max-width: 100%;
}

.addon-card-img {
  width: 50px;
  height: 50px;
}

.addon-card-title {
  font-size: 1rem;
}

.addon-card-price {
  font-size: 0.9rem;
}

.addon-btn {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}
}

@media (max-width: 576px) {
.main-container {
  padding: 0.8rem;
}

/* Farbauswahl für kleinere Bildschirme */
.cart-color-option img {
  width: 70px !important;
  height: 70px !important;
}

.cart-color-label {
  font-size: 1rem !important;
}

.page-title {
  font-size: 1.8rem;
}

.cart-items-section {
  padding: 1rem;
}

.cart-item {
  padding: 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 1rem !important;
  overflow: visible !important;
}

.cart-item-top {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  width: 100% !important;
}

.cart-item-image {
  width: 70px !important;
  height: 70px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  flex-shrink: 0 !important;
  border-radius: 8px !important;
  /* Bildqualität für mobile Geräte verbessern */
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
  filter: brightness(1.03) contrast(1.06) saturate(1.1) !important;
  /* Sicherstellen, dass das Bild immer angezeigt wird */
  visibility: visible !important;
  opacity: 1 !important;
  background: #f3f6fa !important;
  border: 3px solid #e3e8f0 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

.cart-item-details {
  flex: 1 !important;
  min-width: 0 !important;
}

.cart-item-details h5 {
  font-size: 0.95rem;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.9rem;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
}

.quantity-display {
  font-size: 0.9rem;
  min-width: 35px;
}

.checkout-section {
  padding: 0.8rem;
}

.checkout-section h3 {
  font-size: 1.2rem;
}

.order-summary {
  padding: 0.8rem;
}

.summary-row {
  font-size: 0.9rem;
}

.summary-row.total {
  font-size: 1rem;
}

.payment-section {
  padding: 0.8rem;
}

.payment-title {
  font-size: 1.1rem;
}

/* Addon Cards noch kompakter */
.addon-card {
  padding: 0.6rem 0.8rem;
  min-width: 180px;
}

.addon-card-img {
  width: 40px;
  height: 40px;
}

.addon-card-title {
  font-size: 0.9rem;
}

.addon-card-price {
  font-size: 0.8rem;
}

.addon-btn {
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
}

/* Empty Cart */
.empty-cart {
  padding: 2rem 1rem;
}

.empty-cart h3 {
  font-size: 1.5rem;
}

.empty-cart p {
  font-size: 1rem;
}

.continue-shopping {
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
}
}

@media (max-width: 414px) {
.main-container {
  padding: 0.5rem;
}

/* Farbauswahl für sehr kleine Bildschirme */
.cart-color-option img {
  width: 60px !important;
  height: 60px !important;
}

.cart-color-label {
  font-size: 0.95rem !important;
}

.cart-color-options {
  gap: 1.2rem !important;
}

.page-title {
  font-size: 1.6rem;
}

.cart-items-section {
  padding: 0.8rem;
}

.cart-item {
  padding: 0.8rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.8rem !important;
  overflow: visible !important;
}

.cart-item-top {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  width: 100% !important;
}

.cart-item-image {
  width: 60px !important;
  height: 60px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  flex-shrink: 0 !important;
  border-radius: 8px !important;
  /* Bildqualität für mobile Geräte verbessern */
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
  filter: brightness(1.03) contrast(1.06) saturate(1.1) !important;
  /* Sicherstellen, dass das Bild immer angezeigt wird */
  visibility: visible !important;
  opacity: 1 !important;
  background: #f3f6fa !important;
  border: 2px solid #e3e8f0 !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12) !important;
}

.cart-item-details {
  flex: 1 !important;
  min-width: 0 !important;
}

.cart-item-details h5 {
  font-size: 0.9rem;
}

.cart-item-price {
  font-size: 0.85rem;
}

.quantity-btn {
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
}

.checkout-section {
  padding: 0.6rem;
}

.checkout-section h3 {
  font-size: 1.1rem;
}

.order-summary {
  padding: 0.6rem;
}

.summary-row {
  font-size: 0.85rem;
}

.summary-row.total {
  font-size: 0.95rem;
}

.payment-section {
  padding: 0.6rem;
}

.payment-title {
  font-size: 1rem;
}

/* Addon Cards minimal */
.addon-card {
  padding: 0.5rem 0.6rem;
  min-width: 160px;
}

.addon-card-img {
  width: 35px;
  height: 35px;
}

.addon-card-title {
  font-size: 0.8rem;
}

.addon-card-price {
  font-size: 0.75rem;
}

.addon-btn {
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
}

/* Empty Cart minimal */
.empty-cart {
  padding: 1.5rem 0.8rem;
}

.empty-cart h3 {
  font-size: 1.3rem;
}

.empty-cart p {
  font-size: 0.9rem;
}

.continue-shopping {
  padding: 0.7rem 1.2rem;
  font-size: 0.8rem;
}
}

.hover-item:hover {
  background-color: #f8f9fa !important;
}

.address-suggestion {
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.address-suggestion:hover {
  background-color: #f8f9fa;
}

.address-suggestion:last-child {
  border-bottom: none;
}

#address-suggestions {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}

.card-images img {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.card-img-static {
  height: 24px;
  border-radius: 4px;
  border: 1px solid #ddd;
  margin-right: 4px;
  margin-bottom: 4px;
}

/* Stile für die Stripe-Formular-Container */
#card-number-element,
#card-expiry-element,
#card-cvc-element {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
  height: 44px; /* Explizite Höhe, um Platz für Padding und Inhalt zu schaffen */
}

/* --- Add-on Bereich moderner und hochwertiger --- */

/* Visueller Trenner zwischen Warenkorb und Add-ons */
.addon-section-divider {
  margin: 3rem 0 2rem 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e3e8f0 20%, #667eea 50%, #e3e8f0 80%, transparent 100%);
  position: relative;
}

.addon-section-divider::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Add-ons Sektion Container */
.addon-section {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(102,126,234,0.08);
  border: 2px solid #e3e8f0;
  position: relative;
}

.addon-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px 20px 0 0;
}

/* Add-ons Sektion Header */
.addon-section-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px dashed #e3e8f0;
}

.addon-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.addon-section-title i {
  color: #667eea;
  font-size: 1.5rem;
}

.addon-section-subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin: 0;
  font-weight: 500;
}

.addon-list {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}
.addon-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(102,126,234,0.13);
  padding: 1rem 1.3rem;
  min-width: 220px;
  max-width: 420px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  border: 1.5px solid #e3e8f0;
  position: relative;
  margin: 0 auto;
}
.addon-card:hover {
  box-shadow: 0 8px 32px rgba(102,126,234,0.18);
  transform: translateY(-2px) scale(1.025);
  border-color: #764ba2;
}
.addon-card-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin-right: 1.2rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  border: 2.5px solid #e3e8f0;
  background: #f3f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: #667eea;
  /* Bildqualität verbessern */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Schärfe und Kontrast */
  filter: brightness(1.02) contrast(1.05) saturate(1.08);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.addon-card-img:hover {
  transform: scale(1.05);
  filter: brightness(1.05) contrast(1.08) saturate(1.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.addon-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.addon-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.15rem;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.addon-card-price {
  font-size: 1.08rem;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 0.1rem;
}
.addon-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.18);
  transition: box-shadow 0.2s, transform 0.2s, background 0.25s;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: 1.2rem;
}
.addon-btn i {
  font-size: 1.25rem;
  margin-right: 0.2rem;
  color: #fff;
}
.addon-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.28);
  transform: translateY(-2px) scale(1.05);
}
.addon-btn:active {
  transform: scale(0.97) !important;
}

/* --- AGB Section Styling --- */
.agb-section {
  background: #f8f9fa;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.agb-section .form-check {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.agb-section .form-check:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.agb-section .form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 0.25rem;
  cursor: pointer;
  border: 2px solid #dee2e6;
}

.agb-section .form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

.agb-section .form-check-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.agb-section .form-check-label {
  margin-left: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #495057;
  cursor: pointer;
  user-select: none;
}

.agb-section .form-check-label a {
  color: #667eea;
  text-decoration: underline;
  font-weight: 500;
}

.agb-section .form-check-label a:hover {
  color: #764ba2;
  text-decoration: none;
}

.agb-section .form-text {
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.4;
  margin-top: 0.5rem;
}

.agb-section .form-text a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.agb-section .form-text a:hover {
  text-decoration: underline;
}

/* Pflichtfeld-Indikator für AGB Checkbox */
.agb-section .form-check:first-child::before {
  content: '*';
  position: absolute;
  left: 0.5rem;
  top: 1rem;
  color: #dc3545;
  font-weight: bold;
  font-size: 1.2rem;
}

.agb-section .form-check:first-child {
  position: relative;
  padding-left: 2rem;
}

/* Mobile Responsive für AGB Section */
@media (max-width: 768px) {
  .agb-section {
    padding: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .agb-section .form-check {
    padding: 0.8rem;
  }
  
  .agb-section .form-check-label {
    font-size: 0.9rem;
  }
  
  .agb-section .form-text {
    font-size: 0.8rem;
  }
}

/* --- Mobile Warenkorb-Overlay als Modal --- */
@media (max-width: 600px) {
#cartDropdown {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,32,38,0.32);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
}
#cartDropdown .cart-dropdown {
  position: relative;
  width: 95vw;
  max-width: 420px;
  min-height: 320px;
  max-height: 90vh;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(102,126,234,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
  animation: fadeInUp 0.3s;
}
#cartDropdown .cart-dropdown-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg,#667eea,#764ba2);
  color: #fff;
  border-radius: 24px 24px 0 0;
  padding: 1.2rem 1.5rem 1rem 1.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(102,126,234,0.08);
}
#cartDropdown .btn-close {
  background: #fff;
  color: #764ba2;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(102,126,234,0.10);
  border: none;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
}
#cartDropdown .cart-dropdown-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.2rem 1.5rem 1.2rem 1.5rem;
  background: #f8f9fa;
  min-height: 180px;
  max-height: 65vh;
}
#cartDropdown .cart-dropdown-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-radius: 0 0 24px 24px;
  padding: 1.2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 -2px 8px rgba(102,126,234,0.08);
  z-index: 2;
}
#cartDropdown .cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.07);
  margin-bottom: 1rem;
  padding: 1rem;
}
#cartDropdown .cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(102,126,234,0.10);
}
#cartDropdown .cart-item-details {
  flex: 1 1 auto;
  min-width: 0;
}
#cartDropdown .cart-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.2rem;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
#cartDropdown .cart-item-price {
  font-size: 0.95rem;
  color: #667eea;
  font-weight: 500;
}
#cartDropdown .quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: 0.5rem;
}
#cartDropdown .quantity-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg,#667eea,#764ba2);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(102,126,234,0.13);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#cartDropdown .quantity-btn:hover {
  background: linear-gradient(135deg,#764ba2,#667eea);
  transform: scale(1.08);
}
#cartDropdown .quantity-btn:active {
  transform: scale(0.95);
}
#cartDropdown .remove-item {
  background: linear-gradient(135deg,#ff6b6b,#ee5a52);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  box-shadow: 0 2px 8px rgba(255,107,107,0.13);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#cartDropdown .remove-item:hover {
  background: linear-gradient(135deg,#ff5252,#f44336);
  transform: scale(1.08) rotate(15deg);
}
#cartDropdown .remove-item:active {
  transform: scale(0.95) rotate(15deg);
}
#cartDropdown .empty-cart {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.07);
  padding: 2rem 1rem;
  margin: 2rem 0 1rem 0;
  text-align: center;
}
#cartDropdown .empty-cart i {
  font-size: 2.5rem;
  color: #bdc3c7;
  margin-bottom: 1rem;
}
#cartDropdown .empty-cart p {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
#cartDropdown .btn-primary, #cartDropdown .btn-outline-secondary {
  width: 100%;
  font-size: 1.1rem;
  padding: 1rem 0;
  border-radius: 12px;
  margin-bottom: 0.7rem;
}
}

/* --- Mobile App-Style für cart.html --- */
@media (max-width: 600px) {
html, body, .main-container, .cart-layout, .cart-items-section, .checkout-section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden !important;
}
.cart-layout {
  padding: 0 !important;
  margin: 0 !important;
  grid-template-columns: 1fr !important;
  gap: 0.5rem;
}
.cart-items-section, .checkout-section {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}
.cart-item, .addon-card, .addon-list, .cart-item-details, .cart-item-controls {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.form-control, .card-img-static {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
/* Add-ons Sektion mobile Anpassungen */
.addon-section {
  margin-top: 1.5rem !important;
  padding: 1.5rem 1rem !important;
  border-radius: 16px !important;
}

.addon-section-header {
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem !important;
}

.addon-section-title {
  font-size: 1.2rem !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}

.addon-section-subtitle {
  font-size: 0.9rem !important;
}

.addon-section-divider {
  margin: 2rem 0 1.5rem 0 !important;
}

.addon-card {
  flex-wrap: wrap !important;
  gap: 0.7rem !important;
  padding-left: 0.7rem !important;
  padding-right: 0.7rem !important;
}
.addon-card-img {
  min-width: 48px !important;
  max-width: 56px !important;
}
.cart-item {
  flex-wrap: wrap !important;
  gap: 0.7rem !important;
  padding-left: 0.7rem !important;
  padding-right: 0.7rem !important;
}
body {
  background: #f5f7fa;
}
.main-container {
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -2px 24px rgba(102,126,234,0.10);
  margin: 0;
  padding: 0 0 40px 0; /* Weniger Padding unten */
  min-height: 100vh;
  max-width: 100vw;
}
/* Entfernte mobile Styles für .page-header, .page-title, .page-subtitle */
.cart-layout {
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0 0.5rem;
}
.cart-items-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.07);
  padding: 1rem 0.5rem 1rem 0.5rem;
  margin-bottom: 1rem;
}
.cart-item {
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(102,126,234,0.07);
  margin-bottom: 0.7rem;
  padding: 0.7rem;
  gap: 0.7rem;
}
.cart-item-image {
  width: 56px !important;
  height: 56px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  flex-shrink: 0 !important;
  /* Bildqualität für mobile Geräte verbessern */
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
  filter: brightness(1.03) contrast(1.06) saturate(1.1) !important;
  /* Sicherstellen, dass das Bild immer angezeigt wird */
  visibility: visible !important;
  opacity: 1 !important;
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}
.cart-item-details h5 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.cart-item-price {
  font-size: 0.95rem;
  color: #667eea;
  font-weight: 600;
}
.quantity-controls {
  gap: 0.5rem;
}
.quantity-btn {
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  border-radius: 50%;
}
.remove-btn {
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-left: 0.3rem;
}
.checkout-section {
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 12px rgba(102,126,234,0.08);
  padding: 1rem 0.5rem 1rem 0.5rem;
  /* Entfernt: position: fixed; left; right; bottom; width; max-width; */
  margin: 0;
}
.checkout-title {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}
.order-summary {
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}
.summary-row {
  font-size: 0.98rem;
  padding: 0.3rem 0;
}
.summary-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  border-bottom: 2px solid #667eea;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}
.checkout-btn {
  width: 100%;
  font-size: 1.15rem;
  padding: 1.1rem 0;
  border-radius: 14px;
  margin-top: 0.7rem;
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 18px rgba(102,126,234,0.13);
}
.empty-cart {
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.07);
  padding: 2rem 1rem;
  margin: 2rem 0 1rem 0;
  text-align: center;
  background: #fff;
}
.empty-cart-icon {
  font-size: 2.2rem;
  color: #bdc3c7;
  margin-bottom: 1rem;
}
.continue-shopping {
  width: 100%;
  font-size: 1.1rem;
  padding: 1rem 0;
  border-radius: 12px;
  margin-top: 1.2rem;
  display: block;
}
}

@media (max-width: 600px) {
/* Kreditkarten-Logos nebeneinander */
.card-images .d-flex {
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  justify-content: flex-start !important;
  align-items: center !important;
}
.card-img-static {
  width: 48px !important;
  max-width: 60px !important;
  min-width: 36px !important;
  height: 28px !important;
  object-fit: contain !important;
  margin: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}
/* +3 Button immer sichtbar, nicht überdeckt */
.card-images .btn {
  display: inline-block !important;
  vertical-align: middle !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  position: static !important;
  z-index: 2 !important;
}
/* Mülleimer-Button zentriert zu Mengensteuerung */
.cart-item {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.7rem !important;
  padding-left: 0.7rem !important;
  padding-right: 0.7rem !important;
}
.cart-item-controls {
  display: flex !important;
  align-items: center !important;
  gap: 0.7rem !important;
  width: 100%;
  justify-content: flex-start !important;
}
.remove-btn {
  align-self: center !important;
  margin-left: 0.7rem !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  vertical-align: middle !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
}

@media (max-width: 600px) {
/* Karten-Dropdown immer sichtbar und nicht überdeckt */
#card-dropdown {
  z-index: 10000 !important;
  max-width: 90vw !important;
  left: 0 !important;
  right: auto !important;
  overflow-x: auto !important;
  position: absolute !important;
  top: 110% !important;
  min-width: 160px !important;
  background: #fff !important;
}

/* Mengensteuerung und Mülleimer-Button in einer Linie */
.cart-item-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 0.7rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.quantity-controls {
  display: flex !important;
  align-items: center !important;
  gap: 0.7rem !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.remove-btn {
  align-self: center !important;
  margin-left: 0.7rem !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  vertical-align: middle !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}
}

/* Verhindere horizontales Scrollen */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .container {
      padding-left: 10px;
      padding-right: 10px;
      width: 100%;
      max-width: 100%;
  }
  
  .row {
      margin-left: -5px;
      margin-right: -5px;
  }
  
  .col, [class*="col-"] {
      padding-left: 5px;
      padding-right: 5px;
  }
  
  /* Warenkorb-spezifische Anpassungen */
  .cart-item {
      margin-left: 0;
      margin-right: 0;
      padding: 10px;
  }
  
  .cart-item-image {
      max-width: 80px;
  }
  
  .cart-item-details {
      padding-right: 5px;
  }
  
  .cart-item-controls {
      flex-wrap: nowrap;
  }
  
  /* Text-Overflow */
  .cart-item-name,
  .cart-item-price,
  .btn {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }
}

/* Noch engere Abstände für sehr kleine Bildschirme */
@media (max-width: 320px) {
  .container {
      padding-left: 8px;
      padding-right: 8px;
  }
  
  .cart-item {
      padding: 8px;
  }
  
  .cart-item-image {
      max-width: 60px;
  }
}

@media (max-width: 600px) {
#cartDropdown .empty-cart {
  padding: 2.2rem 1rem 1.2rem 1rem;
  margin: 2rem 0 1rem 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.10);
  text-align: center;
}
#cartDropdown .empty-cart h6 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #5a5a5a;
  margin-bottom: 1.1rem;
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}
#cartDropdown .empty-cart .cart-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(102,126,234,0.06);
  margin-bottom: 1.1rem;
  padding: 1.1rem 0.7rem 1.1rem 0.7rem;
  border: none;
  border-bottom: 1px solid #ececec;
  position: relative;
}
#cartDropdown .empty-cart .cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0.2rem;
}
#cartDropdown .empty-cart .cart-item-image {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f6fa;
  box-shadow: 0 2px 8px rgba(102,126,234,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #222;
  font-weight: 700;
}
#cartDropdown .empty-cart .cart-item-details {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
#cartDropdown .empty-cart .cart-item-name {
  font-size: 1.08rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.2rem;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
#cartDropdown .empty-cart .cart-item-price {
  font-size: 1.08rem;
  color: #667eea;
  font-weight: 700;
  margin-bottom: 0.1rem;
}
#cartDropdown .empty-cart .cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
}
#cartDropdown .empty-cart .quantity-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg,#007AFF,#667eea);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,122,255,0.18);
  transition: background 0.2s, transform 0.2s;
  margin: 0;
  padding: 0;
}
#cartDropdown .empty-cart .quantity-btn:hover {
  background: linear-gradient(135deg,#667eea,#007AFF);
  transform: scale(1.10);
}
}

/* Größere Mengen- und Entfernen-Buttons im Warenkorb */
.cart-item .quantity-btn, .cart-item .remove-btn {
width: 28px !important;
height: 28px !important;
min-width: 28px !important;
min-height: 28px !important;
font-size: 0.85rem !important;
border-radius: 50% !important;
margin: 0 0.2rem !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
line-height: 1 !important;
background: #fff !important;
background-image: none !important;
box-shadow: none !important;
border: 1.5px solid #ddd !important;
color: #222 !important;
transition: background 0.2s, color 0.2s;
}
.cart-item .quantity-btn i, .cart-item .remove-btn i {
font-size: 0.85rem !important;
color: #212529 !important;
line-height: 1 !important;
}
.cart-item .remove-btn i {
color: #ff4d4f !important;
}
.cart-item .quantity-btn:hover, .cart-item .remove-btn:hover {
background: #f0f0f0 !important;
color: #007bff !important;
}
.cart-item .remove-btn:hover i {
color: #fff !important;
}
.cart-item .remove-btn:hover {
background: #ff4d4f !important;
border-color: #ff4d4f !important;
}

/* Extra große + und - Buttons im Warenkorb (cart-dropdown) */
#cartDropdown .quantity-btn {
width: 90px !important;
height: 90px !important;
min-width: 90px !important;
min-height: 90px !important;
font-size: 3.2rem !important;
border-radius: 50% !important;
margin: 0 1rem !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
line-height: 1 !important;
}

/* Extra große +, - und x Buttons im Warenkorb (cart-dropdown) */
#cartDropdown .quantity-btn, #cartDropdown .remove-item {
width: 100px !important;
height: 100px !important;
min-width: 100px !important;
min-height: 100px !important;
font-size: 3.5rem !important;
border-radius: 50% !important;
margin: 0 1.2rem !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
line-height: 1 !important;
}
#cartDropdown .remove-item {
color: #ff4d4f !important;
background: #fff !important;
border: 2.5px solid #ffb3b3 !important;
font-size: 3.5rem !important;
margin-left: 1.5rem !important;
transition: background 0.2s, color 0.2s;
}
#cartDropdown .remove-item:hover {
background: #ffb3b3 !important;
color: #fff !important;
}

/* Extra große +, -, x Buttons im Warenkorb (Dropdown & cart.html) */
.cart-item .quantity-btn, .cart-item .remove-btn,
#cartDropdown .quantity-btn, #cartDropdown .remove-item {
width: 64px !important;
height: 64px !important;
min-width: 64px !important;
min-height: 64px !important;
font-size: 2.2rem !important;
border-radius: 50% !important;
margin: 0 0.7rem !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
line-height: 1 !important;
}
.cart-item .remove-btn, #cartDropdown .remove-item {
color: #ff4d4f !important;
background: #fff !important;
border: 2px solid #ffb3b3 !important;
font-size: 2.2rem !important;
margin-left: 1rem !important;
transition: background 0.2s, color 0.2s;
}
.cart-item .remove-btn:hover, #cartDropdown .remove-item:hover {
background: #ffb3b3 !important;
color: #fff !important;
}

#cartDropdown .quantity-btn, #cartDropdown .remove-item {
width: 80px !important;
height: 80px !important;
min-width: 80px !important;
min-height: 80px !important;
font-size: 2.8rem !important;
border-radius: 50% !important;
margin: 0 1.2rem !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
line-height: 1 !important;
}
#cartDropdown .remove-item {
color: #ff4d4f !important;
background: #fff !important;
border: 2.5px solid #ffb3b3 !important;
font-size: 2.8rem !important;
margin-left: 1.5rem !important;
transition: background 0.2s, color 0.2s;
}
#cartDropdown .remove-item:hover {
background: #ffb3b3 !important;
color: #fff !important;
}

.cart-item .quantity-controls .quantity-btn,
.cart-item button.quantity-btn,
.cart-item button.remove-btn {
width: 32px !important;
height: 32px !important;
min-width: 32px !important;
min-height: 32px !important;
max-width: 32px !important;
max-height: 32px !important;
padding: 0 !important;
font-size: 1rem !important;
border-radius: 50% !important;
margin: 0 0.25rem !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
line-height: 1 !important;
transform: none !important;
box-shadow: none !important;
}

.cart-item .quantity-controls .quantity-btn i,
.cart-item button.quantity-btn i,
.cart-item button.remove-btn i {
font-size: 1rem !important;
width: auto !important;
height: auto !important;
min-width: 0 !important;
min-height: 0 !important;
padding: 0 !important;
margin: 0 !important;
}

.cart-item .quantity-controls {
gap: 0.25rem !important;
padding: 0 !important;
margin: 0 !important;
}

@media (max-width: 600px) {
.cart-item .quantity-controls .quantity-btn,
.cart-item button.quantity-btn,
.cart-item button.remove-btn {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  padding: 0 !important;
  font-size: 0.9rem !important;
  border-radius: 8px !important;
  margin: 0 0.2rem !important;
}

.cart-item .quantity-controls .quantity-btn i,
.cart-item button.quantity-btn i,
.cart-item button.remove-btn i {
  font-size: 0.9rem !important;
}

.cart-item .quantity-controls {
  gap: 0.2rem !important;
}
}

#cartDropdown .cart-item-controls {
display: flex;
align-items: center;
gap: 0.5rem;
margin-left: auto;
pointer-events: auto;
z-index: 10;
position: relative;
}

#cartDropdown .quantity-controls {
display: flex;
align-items: center;
gap: 0.7rem;
margin-left: 0.5rem;
pointer-events: auto;
}

/* Mobile-specific improvements for cart dropdown buttons */
@media (max-width: 600px) {
#cartDropdown .quantity-btn,
#cartDropdown .remove-item {
  min-width: 44px;
  min-height: 44px;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 10;
}

#cartDropdown .quantity-btn:active,
#cartDropdown .remove-item:active {
  transform: scale(0.9);
  transition: transform 0.1s ease;
}

#cartDropdown .cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
  pointer-events: auto;
  z-index: 10;
  position: relative;
  padding: 0.5rem;
}

#cartDropdown .quantity-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 0.5rem;
  pointer-events: auto;
}

#cartDropdown .quantity-display {
  font-size: 1.1rem;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}
}/* ===== CART.HTML BUTTON POSITION FIX ===== */

/* Hauptcontainer für Cart Items - bessere Aufteilung */
.cart-item {
display: grid !important;
grid-template-columns: 100px 1fr auto !important; /* Bild, Details, Steuerung+Müll */
gap: 20px !important;
align-items: center !important;
padding: 20px !important;
}

/* Produktdetails - mehr Platz links */
.cart-item-details {
grid-column: 2 !important;
padding-right: 30px !important;
min-width: 200px !important;
}

.cart-item-details h5,
.cart-item-name {
white-space: normal !important;
overflow: visible !important;
word-wrap: break-word !important;
margin-bottom: 8px !important;
max-width: 100% !important;
}

/* Quantity Controls - weiter rechts positioniert */
.quantity-controls {
grid-column: 3 !important;
display: flex !important;
align-items: center !important;
gap: 12px !important;
margin-left: auto !important;
padding-left: 20px !important;
white-space: nowrap !important;
min-width: 150px !important;
justify-content: flex-end !important;
}

/* Buttons selbst */
.quantity-controls .quantity-btn {
width: 36px !important;
height: 36px !important;
min-width: 36px !important;
border-radius: 50% !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
flex-shrink: 0 !important;
}

/* Quantity Display */
.quantity-controls .quantity-display {
min-width: 30px !important;
text-align: center !important;
font-weight: 600 !important;
font-size: 16px !important;
}

/* Remove Button auch rechts */
.cart-item .remove-btn {
margin-left: 15px !important;
flex-shrink: 0 !important;
}

/* Mobile Responsive - bei kleinen Bildschirmen */
@media (max-width: 768px) {
.cart-items-section {
  padding: 1rem !important;
  margin: 0 0.5rem !important;
  border-radius: 16px !important;
}

.cart-item {
  grid-template-columns: 80px 1fr !important;
  grid-template-rows: auto auto !important;
  padding: 15px !important;
  margin-bottom: 15px !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.cart-item-details {
  grid-column: 2 !important;
  grid-row: 1 !important;
  padding-right: 10px !important;
}

.cart-item-details h3 {
  font-size: 16px !important;
  line-height: 1.3 !important;
  margin-bottom: 5px !important;
}

.cart-item-details .price {
  font-size: 18px !important;
  font-weight: bold !important;
  color: #28a745 !important;
}

.quantity-controls {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  margin-top: 15px !important;
  padding: 0 !important;
  gap: 15px !important;
}

.quantity-controls .quantity-section {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.quantity-controls .remove-btn {
  margin-left: 0 !important;
  background: #dc3545 !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  cursor: pointer !important;
}

.quantity-controls .remove-btn:hover {
  background: #c82333 !important;
}
}

/* Für sehr lange Produktnamen */
@media (min-width: 769px) and (max-width: 1200px) {
.cart-item-details {
  max-width: 350px !important;
}
}

@media (min-width: 1201px) {
.cart-item-details {
  max-width: 500px !important;
}

.quantity-controls {
  min-width: 180px !important;
}
}
/* ===== CART.HTML - PRODUKTE BESSER TRENNEN ===== */

/* Jedes Produkt mit eigenem Hintergrund und Schatten */
.cart-item {
background: #ffffff !important;
border: 1px solid #e8e8e8 !important;
border-radius: 12px !important;
margin-bottom: 16px !important;
padding: 20px !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
transition: all 0.3s ease !important;
}

/* Hover-Effekt verstärken */
.cart-item:hover {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
transform: translateY(-2px) !important;
border-color: #d0d0d0 !important;
}

/* Hintergrund für die Artikel-Liste */
#cartContent {
background: #f8f9fa !important;
padding: 20px !important;
border-radius: 16px !important;
}

/* Überschrift "Ihre Artikel" */
.cart-header,
#cartContent h2 {
margin-bottom: 24px !important;
padding-bottom: 16px !important;
border-bottom: 2px solid #e0e0e0 !important;
}

/* ===== WARENKORB DROPDOWN FIX ===== */

/* Dropdown Container */
.cart-dropdown {
position: absolute !important;
top: 100% !important;
right: 0 !important;
width: 400px !important;
max-height: 500px !important;
background: white !important;
border: 1px solid #e0e0e0 !important;
border-radius: 12px !important;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
z-index: 1050 !important;
overflow: hidden !important;
display: none;
}

.cart-dropdown.show {
display: block !important;
}

/* Dropdown Header */
.cart-dropdown-header {
padding: 16px 20px !important;
border-bottom: 1px solid #e0e0e0 !important;
background: #f8f9fa !important;
}

.cart-dropdown-header h5 {
margin: 0 !important;
font-size: 16px !important;
font-weight: 600 !important;
color: #333 !important;
}

/* Dropdown Body */
.cart-dropdown-body {
max-height: 300px !important;
overflow-y: auto !important;
padding: 12px !important;
}

/* Cart Items im Dropdown */
.cart-dropdown .cart-item {
display: flex !important;
align-items: center !important;
padding: 12px !important;
margin-bottom: 8px !important;
background: #ffffff !important;
border: 1px solid #f0f0f0 !important;
border-radius: 8px !important;
}

.cart-dropdown .cart-item:hover {
background: #f8f9fa !important;
}

/* Dropdown Footer */
.cart-dropdown-footer {
padding: 16px 20px !important;
border-top: 1px solid #e0e0e0 !important;
background: #f8f9fa !important;
}

/* Gesamt-Preis */
.cart-dropdown-total {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
margin-bottom: 12px !important;
font-weight: 600 !important;
font-size: 16px !important;
color: #333 !important;
}

/* Zur Kasse Button */
.cart-dropdown-footer .checkout-btn {
width: 100% !important;
padding: 12px 20px !important;
background: #007bff !important;
color: white !important;
border: none !important;
border-radius: 8px !important;
font-weight: 600 !important;
font-size: 14px !important;
cursor: pointer !important;
transition: all 0.3s ease !important;
margin-bottom: 10px !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
}

.cart-dropdown-footer .checkout-btn:hover {
background: #0056b3 !important;
transform: translateY(-2px) !important;
box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

/* Löschen Button - bereits zentriert */
.cart-dropdown-footer .clear-cart-btn {
width: 100% !important;
padding: 10px 20px !important;
background: white !important;
color: #dc3545 !important;
border: 2px solid #dc3545 !important;
border-radius: 8px !important;
font-weight: 600 !important;
font-size: 14px !important;
cursor: pointer !important;
transition: all 0.3s ease !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
}

.cart-dropdown-footer .clear-cart-btn:hover {
background: #dc3545 !important;
color: white !important;
transform: translateY(-2px) !important;
box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

/* Scrollbar Styling */
.cart-dropdown-body::-webkit-scrollbar {
width: 6px !important;
}

.cart-dropdown-body::-webkit-scrollbar-track {
background: #f1f1f1 !important;
border-radius: 3px !important;
}

.cart-dropdown-body::-webkit-scrollbar-thumb {
background: #888 !important;
border-radius: 3px !important;
}

.cart-dropdown-body::-webkit-scrollbar-thumb:hover {
background: #555 !important;
}

/* ===== FLÜSSIGE WARENKORB DROPDOWN ANIMATIONEN ===== */

/* Keyframes für flüssige Dropdown-Animationen */
@keyframes dropdownSlideIn {
0% {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  visibility: hidden;
}
100% {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}
}

@keyframes dropdownSlideOut {
0% {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}
100% {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  visibility: hidden;
}
}

/* Override die neuen Styles - zurück zum Original mit flüssigen Animationen */
.cart-dropdown {
position: absolute !important;
top: 100% !important;
right: 0 !important;
width: 400px !important;
max-width: 90vw !important;
background: white !important;
border: 1px solid #e0e0e0 !important;
border-radius: 12px !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
z-index: 1000 !important;
margin-top: 8px !important;
opacity: 0;
transform: translateY(-20px) scale(0.95);
visibility: hidden;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
transform-origin: top right;
backdrop-filter: blur(10px);
}

.cart-dropdown.show {
opacity: 1 !important;
transform: translateY(0) scale(1) !important;
visibility: visible !important;
animation: dropdownSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cart-dropdown.hiding {
animation: dropdownSlideOut 0.3s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

/* Mobile Responsive mit optimierten Animationen */
@media (max-width: 768px) {
.cart-dropdown {
  width: 95vw !important;
  max-width: 420px !important;
  right: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(-20px) scale(0.95) !important;
  transform-origin: center top !important;
  margin: auto !important;
}

.cart-dropdown.show {
  transform: translateX(-50%) translateY(0) scale(1) !important;
  animation: dropdownSlideInMobile 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cart-dropdown.hiding {
  animation: dropdownSlideOutMobile 0.3s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}
}

@media (max-width: 500px) {
.cart-dropdown {
  width: 100% !important;
  max-width: 100vw !important;
  right: 0 !important;
  left: 0 !important;
  transform: translateY(-20px) scale(0.95) !important;
  transform-origin: center top !important;
}

.cart-dropdown.show {
  transform: translateY(0) scale(1) !important;
}
}

/* Mobile-spezifische Keyframes */
@keyframes dropdownSlideInMobile {
0% {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px) scale(0.95);
  visibility: hidden;
}
100% {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  visibility: visible;
}
}

@keyframes dropdownSlideOutMobile {
0% {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  visibility: visible;
}
100% {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px) scale(0.95);
  visibility: hidden;
}
}

/* Body zurücksetzen */
.cart-dropdown-body {
max-height: 350px !important;
overflow-y: auto !important;
padding: 15px !important;
background: white !important;
}

/* Footer zurücksetzen */
.cart-dropdown-footer {
padding: 15px !important;
border-top: 1px solid #e0e0e0 !important;
background: white !important;
}

/* Gesamt Preis */
.cart-dropdown-total {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
margin-bottom: 15px !important;
padding: 10px 0 !important;
font-weight: 600 !important;
font-size: 18px !important;
color: #333 !important;
}

/* Zur Kasse Button - Original Style */
.cart-dropdown-footer .checkout-btn {
width: 100% !important;
padding: 12px 24px !important;
background: #007bff !important;
color: white !important;
border: none !important;
border-radius: 6px !important;
font-weight: 600 !important;
font-size: 16px !important;
cursor: pointer !important;
transition: all 0.3s ease !important;
margin-bottom: 10px !important;
text-align: center !important;
}

/* Löschen Button - Original Style */
.cart-dropdown-footer .clear-cart-btn {
width: 100% !important;
padding: 10px 20px !important;
background: white !important;
color: #dc3545 !important;
border: 2px solid #dc3545 !important;
border-radius: 6px !important;
font-weight: 600 !important;
font-size: 14px !important;
cursor: pointer !important;
transition: all 0.3s ease !important;
text-align: center !important;
}

/* ===== CART.HTML - NOCH STÄRKERE ABGRENZUNG ===== */

/* Hauptcontainer mit dunklerem Hintergrund */
#cartContent {
background: #e8ecf1 !important;
padding: 30px !important;
border-radius: 20px !important;
box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Jedes Produkt mit stärkerer Abgrenzung */
.cart-item {
background: #ffffff !important;
border: 2px solid #d4d8dd !important;
border-radius: 16px !important;
margin-bottom: 20px !important;
padding: 24px !important;
box-shadow: 
  0 4px 12px rgba(0, 0, 0, 0.08),
  0 1px 3px rgba(0, 0, 0, 0.05) !important;
transition: all 0.3s ease !important;
position: relative !important;
}

/* Farbiger Streifen links für visuelle Trennung */
.cart-item::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 4px;
background: linear-gradient(135deg, #667eea, #764ba2);
border-radius: 16px 0 0 16px;
}

/* Alternierende Farben für den Streifen */
.cart-item:nth-child(odd)::before {
background: linear-gradient(135deg, #667eea, #764ba2);
}

.cart-item:nth-child(even)::before {
background: linear-gradient(135deg, #f093fb, #f5576c);
}

.cart-item:nth-child(3n)::before {
background: linear-gradient(135deg, #4facfe, #00f2fe);
}

/* Hover-Effekt verstärkt */
.cart-item:hover {
box-shadow: 
  0 8px 24px rgba(0, 0, 0, 0.12),
  0 2px 6px rgba(0, 0, 0, 0.08) !important;
transform: translateY(-3px) !important;
border-color: #b8bcc3 !important;
background: #fafbfc !important;
}

/* Produktbild mit Rahmen */
.cart-item img {
border: 2px solid #f0f2f5 !important;
border-radius: 12px !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* Produktname hervorheben */
.cart-item-details h5,
.cart-item-name {
font-weight: 600 !important;
color: #2c3e50 !important;
font-size: 18px !important;
margin-bottom: 10px !important;
}

/* Preis hervorheben */
.cart-item .price,
.cart-item-price {
font-size: 20px !important;
font-weight: 700 !important;
color: #27ae60 !important;
background: linear-gradient(135deg, #27ae60, #2ecc71);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

/* Quantity Controls mit Hintergrund */
.cart-item .quantity-controls {
background: #f8f9fa !important;
padding: 8px 12px !important;
border-radius: 10px !important;
border: 1px solid #e0e0e0 !important;
}

/* Buttons in quantity controls */
.cart-item .quantity-btn {
background: white !important;
border: 2px solid #e0e0e0 !important;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.cart-item .quantity-btn:hover {
background: #f0f0f0 !important;
border-color: #667eea !important;
}

/* Remove button auffälliger */
.cart-item .remove-btn {
background: linear-gradient(135deg, #ff6b6b, #ff5252) !important;
color: white !important;
border: none !important;
box-shadow: 0 2px 8px rgba(255, 82, 82, 0.3) !important;
}

.cart-item .remove-btn:hover {
background: linear-gradient(135deg, #ff5252, #ff1744) !important;
box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4) !important;
transform: scale(1.05) !important;
}

/* Trennlinie zwischen Produkten (optional) */
.cart-item:not(:last-child)::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 80%;
height: 1px;
background: linear-gradient(90deg, transparent, #d0d0d0, transparent);
}
/* ===== CART.HTML - FINALE ANPASSUNGEN ===== */

/* Müll-Symbol dauerhaft sichtbar */
.cart-item .remove-btn {
display: inline-flex !important;
visibility: visible !important;
opacity: 1 !important;
background: linear-gradient(135deg, #ff6b6b, #ff5252) !important;
color: white !important;
border: none !important;
box-shadow: 0 2px 8px rgba(255, 82, 82, 0.3) !important;
width: 44px !important;
height: 44px !important;
border-radius: 50% !important;
align-items: center !important;
justify-content: center !important;
cursor: pointer !important;
transition: all 0.3s ease !important;
}

.cart-item .remove-btn:hover {
background: linear-gradient(135deg, #ff5252, #ff1744) !important;
box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4) !important;
transform: scale(1.1) !important;
}

/* Rahmen um Quantity Controls entfernen */
.cart-item .quantity-controls {
background: transparent !important;
padding: 0 !important;
border: none !important;
border-radius: 0 !important;
}

/* Quantity Buttons ohne extra Rahmen */
.cart-item .quantity-btn {
background: white !important;
border: 1px solid #e0e0e0 !important;
box-shadow: none !important;
width: 36px !important;
height: 36px !important;
border-radius: 50% !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
cursor: pointer !important;
transition: all 0.2s ease !important;
}

.cart-item .quantity-btn:hover {
background: #f8f9fa !important;
border-color: #667eea !important;
transform: scale(1.05) !important;
}

/* ===== INDEX WARENKORB DROPDOWN ANPASSUNGEN ===== */

/* Farbige Streifen bei Produkten entfernen */
.cart-dropdown .cart-item::before,
#cartDropdown .cart-item::before {
display: none !important;
}

/* Keine alternierenden Farben */
.cart-dropdown .cart-item:nth-child(odd)::before,
.cart-dropdown .cart-item:nth-child(even)::before,
.cart-dropdown .cart-item:nth-child(3n)::before,
#cartDropdown .cart-item:nth-child(odd)::before,
#cartDropdown .cart-item:nth-child(even)::before,
#cartDropdown .cart-item:nth-child(3n)::before {
display: none !important;
}

/* Cart Items im Dropdown - einfacher Style */
.cart-dropdown .cart-item,
#cartDropdown .cart-item {
display: flex !important;
align-items: center !important;
padding: 12px !important;
margin-bottom: 8px !important;
background: #ffffff !important;
border: 1px solid #f0f0f0 !important;
border-radius: 8px !important;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.cart-dropdown .cart-item:hover,
#cartDropdown .cart-item:hover {
background: #f8f9fa !important;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Buttons wieder volle Breite */
.cart-dropdown-footer .checkout-btn,
#cartDropdown .checkout-btn {
width: 100% !important;
padding: 12px 24px !important;
background: #007bff !important;
color: white !important;
border: none !important;
border-radius: 6px !important;
font-weight: 600 !important;
font-size: 16px !important;
cursor: pointer !important;
transition: all 0.3s ease !important;
margin-bottom: 10px !important;
display: block !important;
text-align: center !important;
}

.cart-dropdown-footer .checkout-btn:hover,
#cartDropdown .checkout-btn:hover {
background: #0056b3 !important;
transform: translateY(-2px) !important;
box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

.cart-dropdown-footer .clear-cart-btn,
#cartDropdown .clear-cart-btn {
width: 100% !important;
padding: 10px 20px !important;
background: white !important;
color: #dc3545 !important;
border: 2px solid #dc3545 !important;
border-radius: 6px !important;
font-weight: 600 !important;
font-size: 14px !important;
cursor: pointer !important;
transition: all 0.3s ease !important;
display: block !important;
text-align: center !important;
}

.cart-dropdown-footer .clear-cart-btn:hover,
#cartDropdown .clear-cart-btn:hover {
background: #dc3545 !important;
color: white !important;
transform: translateY(-2px) !important;
box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

/* Footer Container für Buttons */
.cart-dropdown-footer,
#cartDropdown .cart-dropdown-footer {
padding: 15px !important;
border-top: 1px solid #e0e0e0 !important;
background: white !important;
}

/* Gesamt Preis */
.cart-dropdown-total,
#cartDropdown .cart-dropdown-total {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
margin-bottom: 15px !important;
padding: 10px 0 !important;
font-weight: 600 !important;
font-size: 18px !important;
color: #333 !important;
}
/* ===== CART.HTML - MÜLL-ICON DAUERHAFT SICHTBAR ===== */

/* Müll-Button immer sichtbar, nicht nur bei Hover */
.cart-item .remove-btn,
.cart-item button.remove-btn,
.cart-item .btn-remove,
.cart-item [class*="remove"] {
display: inline-flex !important;
visibility: visible !important;
opacity: 1 !important;
position: relative !important;
}

/* Spezifisch für das Müll-Icon */
.cart-item .remove-btn {
background: linear-gradient(135deg, #ff6b6b, #ff5252) !important;
color: white !important;
border: none !important;
box-shadow: 0 2px 8px rgba(255, 82, 82, 0.3) !important;
width: 44px !important;
height: 44px !important;
border-radius: 50% !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
cursor: pointer !important;
transition: all 0.3s ease !important;
visibility: visible !important;
opacity: 1 !important;
}

/* Hover-Effekt für Müll-Button */
.cart-item .remove-btn:hover {
background: linear-gradient(135deg, #ff5252, #ff1744) !important;
box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4) !important;
transform: scale(1.1) !important;
opacity: 1 !important;
}

/* Icon im Button */
.cart-item .remove-btn i {
font-size: 18px !important;
color: white !important;
}

/* Sicherstellen, dass der Button nicht versteckt wird */
.cart-item:not(:hover) .remove-btn {
display: inline-flex !important;
visibility: visible !important;
opacity: 1 !important;
}

/* ===== FORCE SQUARE IMAGES FOR CART ITEMS ===== */
/* Überschreibt alle anderen Regeln für Ihre Artikel Bilder */
#cartItemsList .cart-item-image,
.cart-items-section .cart-item-image,
.cart-item .cart-item-image,
.cart-item img.cart-item-image {
  border-radius: 8px !important;
  width: 100px !important;
  height: 100px !important;
  object-fit: cover !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Hover-Effekt für klickbare Bilder */
.cart-item-image:hover,
.addon-card-img:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
  #cartItemsList .cart-item-image,
  .cart-items-section .cart-item-image,
  .cart-item .cart-item-image,
  .cart-item img.cart-item-image {
      border-radius: 8px !important;
      width: 70px !important;
      height: 70px !important;
  }
}

@media (max-width: 576px) {
  #cartItemsList .cart-item-image,
  .cart-items-section .cart-item-image,
  .cart-item .cart-item-image,
  .cart-item img.cart-item-image {
      border-radius: 8px !important;
      width: 60px !important;
      height: 60px !important;
  }
}

/* ===== INDEX WARENKORB DROPDOWN - BUTTONS MIT ABSTAND ===== */

/* Container für die Buttons */
.cart-dropdown-footer,
#cartDropdown .cart-dropdown-footer {
padding: 20px !important;
border-top: 1px solid #e0e0e0 !important;
background: white !important;
}

/* Zur Kasse Button - mit seitlichem Abstand */
.cart-dropdown-footer .checkout-btn,
#cartDropdown .checkout-btn,
.cart-dropdown .checkout-btn {
width: calc(100% - 40px) !important;
margin: 0 20px 10px 20px !important;
padding: 14px 24px !important;
background: linear-gradient(135deg, #667eea, #764ba2) !important;
color: white !important;
border: none !important;
border-radius: 12px !important;
font-weight: 600 !important;
font-size: 16px !important;
cursor: pointer !important;
transition: all 0.3s ease !important;
display: block !important;
text-align: center !important;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.cart-dropdown-footer .checkout-btn:hover,
#cartDropdown .checkout-btn:hover,
.cart-dropdown .checkout-btn:hover {
background: linear-gradient(135deg, #5a6fd8, #6a4190) !important;
transform: translateY(-2px) !important;
box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

/* Löschen Button - mit seitlichem Abstand */
.cart-dropdown-footer .clear-cart-btn,
#cartDropdown .clear-cart-btn,
.cart-dropdown .clear-cart-btn {
width: calc(100% - 40px) !important;
margin: 0 20px !important;
padding: 12px 20px !important;
background: #f8f9fa !important;
color: #6c757d !important;
border: none !important;
border-radius: 12px !important;
font-weight: 600 !important;
font-size: 14px !important;
cursor: pointer !important;
transition: all 0.3s ease !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
}

.cart-dropdown-footer .clear-cart-btn:hover,
#cartDropdown .clear-cart-btn:hover,
.cart-dropdown .clear-cart-btn:hover {
background: #e9ecef !important;
color: #495057 !important;
transform: translateY(-1px) !important;
}

/* Icon im Löschen Button */
.cart-dropdown-footer .clear-cart-btn i,
#cartDropdown .clear-cart-btn i,
.cart-dropdown .clear-cart-btn i {
font-size: 16px !important;
}

/* Gesamt-Preis Anzeige */
.cart-dropdown-total,
#cartDropdown .cart-dropdown-total {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
margin: 0 20px 15px 20px !important;
padding: 15px 0 !important;
font-weight: 600 !important;
font-size: 18px !important;
color: #333 !important;
border-bottom: 1px solid #e0e0e0 !important;
}

/* Mobile Anpassung */
@media (max-width: 500px) {
.cart-dropdown-footer .checkout-btn,
#cartDropdown .checkout-btn,
.cart-dropdown .checkout-btn,
.cart-dropdown-footer .clear-cart-btn,
#cartDropdown .clear-cart-btn,
.cart-dropdown .clear-cart-btn {
  width: calc(100% - 20px) !important;
  margin: 0 10px !important;
}

.cart-dropdown-footer .checkout-btn {
  margin-bottom: 10px !important;
}
}
/* === VERBESSERTE MOBILE OPTIMIERUNGEN FÜR IHRE ARTIKEL SECTION === */
/* Diese Datei optimiert die "Ihre Artikel" Section für kleinere Displays */

/* Optimierungen für Tablets und große Handys (577px - 768px) */
@media (max-width: 768px) and (min-width: 577px) {
  .cart-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    box-shadow: 0 2px 12px rgba(102,126,234,0.08) !important;
    border: 1px solid #e9ecef !important;
    margin-bottom: 1rem !important;
    min-height: auto !important;
    overflow: visible !important;
  }
  
  .cart-item-image {
    width: 75px !important;
    height: 75px !important;
    flex-shrink: 0 !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 2px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #f8f9fa !important;
    /* Verbesserte Bildqualität */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    filter: brightness(1.02) contrast(1.04) saturate(1.06) !important;
  }
  
  .cart-item-details {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.3rem !important;
  }
  
  .cart-item-details h5,
  .cart-item-name {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    margin-bottom: 0.3rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  
  .cart-item-price {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #27ae60 !important;
    margin: 0 !important;
  }
  
  .quantity-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    min-width: 120px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .quantity-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.1rem !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  
  .quantity-display {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    min-width: 25px !important;
    text-align: center !important;
    margin: 0 !important;
  }
  
  .remove-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 1rem !important;
    border-radius: 50% !important;
    margin: 0 !important;
    order: 999 !important;
  }
}

/* Optimierungen für normale Handys (415px - 576px) */
@media (max-width: 576px) and (min-width: 415px) {
  .cart-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.8rem !important;
    padding: 0.8rem !important;
    border-radius: 12px !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    box-shadow: 0 2px 10px rgba(102,126,234,0.06) !important;
    border: 1px solid #e9ecef !important;
    margin-bottom: 0.8rem !important;
    min-height: auto !important;
    overflow: visible !important;
  }
  
  .cart-item-image {
    width: 65px !important;
    height: 65px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 1.5px solid #e9ecef !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #f8f9fa !important;
    /* Verbesserte Bildqualität */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    filter: brightness(1.02) contrast(1.04) saturate(1.06) !important;
  }
  
  .cart-item-details {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.2rem !important;
  }
  
  .cart-item-details h5,
  .cart-item-name {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    margin-bottom: 0.2rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  
  .cart-item-price {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #27ae60 !important;
    margin: 0 !important;
  }
  
  .quantity-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    min-width: 110px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .quantity-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 1rem !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  
  .quantity-display {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    min-width: 20px !important;
    text-align: center !important;
    margin: 0 !important;
  }
  
  .remove-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.9rem !important;
    border-radius: 50% !important;
    margin: 0 !important;
    order: 999 !important;
  }
}

/* Optimierungen für kleine Handys (bis 414px) */
@media (max-width: 414px) {
  .cart-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.6rem !important;
    border-radius: 10px !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    box-shadow: 0 1px 8px rgba(102,126,234,0.05) !important;
    border: 1px solid #e9ecef !important;
    margin-bottom: 0.6rem !important;
    min-height: 70px !important;
    overflow: visible !important;
  }
  
  .cart-item-image {
    width: 55px !important;
    height: 55px !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #f8f9fa !important;
    /* Verbesserte Bildqualität */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    filter: brightness(1.02) contrast(1.04) saturate(1.06) !important;
  }
  
  .cart-item-details {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.1rem !important;
    padding-right: 0.3rem !important;
  }
  
  .cart-item-details h5,
  .cart-item-name {
    font-size: 0.85rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    margin-bottom: 0.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  
  .cart-item-price {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #27ae60 !important;
    margin: 0 !important;
  }
  
  .quantity-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    min-width: 100px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .quantity-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.9rem !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  
  .quantity-display {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    min-width: 18px !important;
    text-align: center !important;
    margin: 0 !important;
  }
  
  .remove-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.8rem !important;
    border-radius: 50% !important;
    margin: 0 !important;
    order: 999 !important;
  }
}

/* Touch-freundliche Verbesserungen für alle mobilen Geräte */
@media (max-width: 768px) {
  /* Hover-Effekte für Touch-Geräte */
  .cart-item:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(102,126,234,0.12) !important;
    border-color: #dee2e6 !important;
  }
  
  .cart-item-image:hover {
    transform: scale(1.03) !important;
  }
  
  /* Touch-Feedback für Buttons */
  .quantity-btn:active {
    transform: scale(0.9) !important;
    transition: transform 0.1s ease !important;
  }
  
  .remove-btn:active {
    transform: scale(0.9) rotate(15deg) !important;
    transition: transform 0.1s ease !important;
  }
  
  /* Verbesserte Farbauswahl für Mobile */
  .cart-item-color-selection {
    margin-top: 0.8rem !important;
    padding: 0.8rem !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .cart-color-options {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  
  .cart-color-option {
    flex-shrink: 0 !important;
  }
  
  .cart-color-option img {
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
  }
  
  .cart-color-option input[type="radio"]:checked + label img {
    border-color: #667eea !important;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3) !important;
    transform: scale(1.05) !important;
  }
  
  .cart-color-label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.5rem !important;
  }
}

/* Spezielle Optimierungen für sehr kleine Bildschirme */
@media (max-width: 360px) {
  .cart-item {
    padding: 0.5rem !important;
    gap: 0.5rem !important;
    min-height: 65px !important;
  }
  
  .cart-item-image {
    width: 50px !important;
    height: 50px !important;
  }
  
  .cart-item-details h5,
  .cart-item-name {
    font-size: 0.8rem !important;
    line-height: 1.0 !important;
  }
  
  .cart-item-price {
    font-size: 0.85rem !important;
  }
  
  .quantity-controls {
    min-width: 90px !important;
    gap: 0.2rem !important;
    flex-direction: row !important;
  }
  
  .quantity-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.8rem !important;
  }
  
  .quantity-display {
    font-size: 0.75rem !important;
    min-width: 16px !important;
  }
  
  .remove-btn {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.7rem !important;
  }
}

/* Container-Optimierungen für Mobile */
@media (max-width: 768px) {
  .cart-items-section {
    padding: 1rem 0.8rem !important;
    margin: 0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(102,126,234,0.08) !important;
  }
  
  .main-container {
    padding: 0.8rem !important;
    margin: 0 !important;
  }
  
  .page-header {
    margin-bottom: 1.5rem !important;
    padding: 0 0.5rem !important;
  }
  
  .page-title {
    font-size: 1.8rem !important;
    margin-bottom: 0.3rem !important;
  }
  
  .page-subtitle {
    font-size: 0.95rem !important;
    color: #6c757d !important;
  }
  
  .cart-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 !important;
  }
}

/* Weitere Optimierungen für kleinere Bildschirme */
@media (max-width: 576px) {
  .cart-items-section {
    padding: 0.8rem 0.6rem !important;
    border-radius: 14px !important;
  }
  
  .main-container {
    padding: 0.6rem !important;
  }
  
  .page-header {
    padding: 0 0.3rem !important;
    margin-bottom: 1.2rem !important;
  }
  
  .page-title {
    font-size: 1.6rem !important;
    margin-bottom: 0.2rem !important;
  }
  
  .page-subtitle {
    font-size: 0.9rem !important;
  }
  
  .cart-layout {
    gap: 0.8rem !important;
  }
}

@media (max-width: 414px) {
  .cart-items-section {
    padding: 0.6rem 0.4rem !important;
    border-radius: 12px !important;
  }
  
  .main-container {
    padding: 0.4rem !important;
  }
  
  .page-header {
    padding: 0 0.2rem !important;
    margin-bottom: 1rem !important;
  }
  
  .page-title {
    font-size: 1.4rem !important;
    margin-bottom: 0.1rem !important;
  }
  
  .page-subtitle {
    font-size: 0.85rem !important;
  }
  
  .cart-layout {
    gap: 0.6rem !important;
  }
}

/* ========================================
   CART COLOR SELECTION SCROLLBAR STYLES
   Genau wie bundle-images-final.js
   ======================================== */

/* Farbauswahl Container - wie bundle-images-final.js */
.cart-item-color-selection {
    display: flex !important;
    gap: 6px !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    padding: 5px 0 15px 0 !important;
    margin: 8px 0 !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 400px !important;
    width: 100% !important;
    scrollbar-width: auto !important;
    scrollbar-color: #E91E63 #f1f1f1 !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* Scrollbar Styles - wie bundle-images-final.js */
.cart-item-color-selection::-webkit-scrollbar {
    height: 12px !important;
    width: 12px !important;
    display: block !important;
    -webkit-appearance: none !important;
}

.cart-item-color-selection::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
}

.cart-item-color-selection::-webkit-scrollbar-thumb {
    background: #E91E63 !important;
    border-radius: 6px !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.cart-item-color-selection::-webkit-scrollbar-thumb:hover {
    background: #c2185b !important;
}

.cart-item-color-selection::-webkit-scrollbar-corner {
    background: #f1f1f1 !important;
}

/* Farboptionen - wie bundle-images-final.js */
.cart-color-option {
    position: relative !important;
    border: 3px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    background: white !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
    flex-shrink: 0 !important;
    min-width: 80px !important;
    width: 80px !important;
    max-width: 80px !important;
}

.cart-color-option:hover {
    border-color: #E91E6380 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(233,30,99,0.2) !important;
}

.cart-color-option.selected,
.cart-color-option input:checked + label {
    border-color: #E91E63 !important;
    box-shadow: 0 4px 12px rgba(233,30,99,0.4) !important;
}

/* Farbbilder - wie bundle-images-final.js */
.cart-item-color-selection img,
.cart-color-option img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    display: block !important;
}

.cart-color-option:hover img {
    transform: scale(1.05) !important;
}

/* Stelle sicher, dass Farbbilder nicht umbrechen */
.cart-item-color-selection > * {
    flex-shrink: 0;
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
    /* Müllbutton neben Plus-Button positionieren */
    .quantity-controls {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }
    
    .quantity-controls .remove-btn {
        margin-left: 4px !important;
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
        position: static !important;
        transform: none !important;
    }
    
    .quantity-btn {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
    }
    
    .quantity-display {
        min-width: 30px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }
    
    /* Verbesserte Farbauswahl auf Mobile */
    .cart-item-color-selection {
        background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%) !important;
        border: 2px solid #f48fb1 !important;
        box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15) !important;
        padding: 14px !important;
        border-radius: 14px !important;
        margin: 12px -12px !important;
        gap: 10px !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        width: calc(100% + 24px) !important;
        max-width: calc(100% + 24px) !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .cart-color-options-scroll {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 8px !important;
    }
    
    /* Scrollbar-Styling für Farbauswahl */
    .cart-color-options-scroll::-webkit-scrollbar {
        height: 8px !important;
        display: block !important;
    }
    
    .cart-color-options-scroll::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.3) !important;
        border-radius: 4px !important;
    }
    
    .cart-color-options-scroll::-webkit-scrollbar-thumb {
        background: #E91E63 !important;
        border-radius: 4px !important;
    }
    
    /* Cart-Item als Column-Layout für volle Breite */
    .cart-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 12px !important;
    }
    
    /* Obere Zeile mit Bild, Name, Buttons als Row */
    .cart-item > div:first-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    /* Farbauswahl nutzt volle Breite */
    .cart-item > .cart-item-color-selection {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Entferne nur die Pfeile */
    .cart-color-arrow-left,
    .cart-color-arrow-right,
    .cart-item-color-selection .arrow {
        display: none !important;
    }
    
    .cart-item-color-selection .color-selection-header,
    .cart-color-main-label {
        color: #880e4f !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    
.cart-item-color-selection > *,
.cart-color-option {
background: white !important;
border: 2px solid #e0e0e0 !important;
border-radius: 10px !important;
padding: 6px !important;
flex-shrink: 0;
min-width: 80px !important;
width: 80px !important;
max-width: 80px !important;
transition: all 0.3s ease !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
}
    
.cart-color-option.selected {
border-color: #E91E63 !important;
background: linear-gradient(135deg, #fff 0%, #fce4ec 100%) !important;
box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15) !important;
transform: scale(1.05) !important;
}
        transform: scale(1.05) !important;
    }
    
    .cart-item-color-selection img,
    .cart-color-option img {
        width: 68px !important;
        height: 68px !important;
        border-radius: 8px !important;
        object-fit: cover !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.12) !important;
        border: 1px solid #f0f0f0 !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .cart-color-name {
        font-size: 12px !important;
        color: #2c3e50 !important;
        font-weight: 500 !important;
        margin-top: 4px !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .cart-item-color-selection {
        max-width: 250px;
        gap: 3px;
    }
    
    .cart-item-color-selection > *,
    .cart-color-option {
        min-width: 60px;
        width: 60px;
        max-width: 60px;
    }
    
    .cart-item-color-selection img,
    .cart-color-option img {
        width: 54px;
        height: 54px;
    }
}