table.shop_table thead * {
  background-color: black !important;
  color: white !important;
}

.shop_table.cart thead th {
  color: white !important;
}

#clear-cart-btn {
  background-color: black !important;

  color: white !important;
  border: none !important;
}

/* WooCommerce Warenkorb - Mobile Darstellung */
/* Vorschlag C: Minimalistisch horizontal */
/* Breakpoint nach Bedarf anpassen */

@media (max-width: 768px) {
  /* Tabellen-Header ausblenden */
  .shop_table thead {
    display: none !important;
  }

  /* Tabelle als Block */
  .shop_table,
  .shop_table tbody {
    display: block !important;
    width: 100% !important;
  }

  /* PRODUKT / ANZAHL Labels ausblenden */
  .product-name::before,
  .product-quantity::before,
  [data-title="Produkt"]::before,
  [data-title="Anzahl"]::before,
  td[data-title]::before {
    display: none !important;
    content: none !important;
  }

  /* Produkt-Zeile als Flexbox-Row */
  .cart_item,
  tr.cart_item {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding: 10px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #eee !important;
    gap: 10px !important;
    position: relative !important;
    min-height: 60px !important;
  }

  /* Alle TD als Flex-Items */
  .cart_item td,
  tr.cart_item td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
  }

  /* Bild: links, klein */
  .product-thumbnail,
  td.product-thumbnail {
    flex: 0 0 50px !important;
    width: 50px !important;
    order: 1 !important;
  }

  .product-thumbnail a {
    display: block !important;
  }

  .product-thumbnail img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
  }

  /* Name: Mitte */
  .product-name,
  td.product-name {
    flex: 1 1 auto !important;
    order: 2 !important;
    min-width: 0 !important;
  }

  .product-name a {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-decoration: none !important;
    display: block !important;
  }

  .product-name div {
    font-size: 11px !important;
    color: #888 !important;
  }

  /* Menge: rechts neben Name */
  .product-quantity,
  td.product-quantity {
    flex: 0 0 auto !important;
    order: 3 !important;
  }

  .quantity-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
  }

  .quantity-btn,
  button.quantity-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
    padding: 0 !important;
    line-height: 26px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    border: 1px solid #ccc !important;
    background: #f5f5f5 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
  }

  .qty,
  input.qty,
  input[type="number"].qty {
    width: 36px !important;
    height: 28px !important;
    font-size: 13px !important;
    padding: 2px !important;
    text-align: center !important;
    min-width: 36px !important;
    max-width: 36px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    -moz-appearance: textfield !important;
  }

  .qty::-webkit-inner-spin-button,
  .qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
  }

  /* X-Button: rechts */
  .product-remove,
  td.product-remove {
    flex: 0 0 24px !important;
    order: 4 !important;
    text-align: center !important;
  }

  .product-remove a.remove,
  a.remove {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 14px !important;
    color: #999 !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    background: #eee !important;
  }
}
