/* ==========================================================================
   aufnaeher.de  –  Warenkorb Redesign v13
   Modernes, eigenständiges Cart-Design (Desktop + Mobile)
   Brand: Gelb #ffd22e · Rot #e1261c · Tinte #141820
   ========================================================================== */

:root {
  --kv-ink: #141820;
  --kv-ink-soft: #5b6270;
  --kv-line: #e8eaee;
  --kv-line-soft: #f0f1f4;
  --kv-bg: #f6f7f9;
  --kv-card: #ffffff;
  --kv-yellow: #ffd22e;
  --kv-yellow-deep: #f0bd00;
  --kv-red: #e1261c;
  --kv-red-deep: #b8160f;
  --kv-radius: 18px;
  --kv-radius-sm: 12px;
  --kv-shadow: 0 18px 44px rgba(20, 24, 32, .08);
  --kv-shadow-sm: 0 6px 18px rgba(20, 24, 32, .06);
}

/* ---------- Seitengerüst ---------- */
body.woocommerce-cart {
  background: var(--kv-bg);
  color: var(--kv-ink);
  -webkit-font-smoothing: antialiased;
}

body.woocommerce-cart .site-main,
body.woocommerce-cart .elementor-location-single,
body.woocommerce-cart .elementor-widget-theme-post-content {
  overflow: visible;
}

body.woocommerce-cart .elementor-widget-theme-post-content > .woocommerce {
  max-width: 1220px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

body.woocommerce-cart .woocommerce-breadcrumb {
  max-width: 1220px;
  margin: 26px auto 6px;
  padding: 0 20px;
  color: var(--kv-ink-soft);
  font-size: 13px;
  letter-spacing: .01em;
}

body.woocommerce-cart .woocommerce-breadcrumb a {
  color: var(--kv-ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 210, 46, .85);
}

body.woocommerce-cart h1.entry-title,
body.woocommerce-cart .page-header h1 {
  max-width: 1220px;
  margin: 14px auto 26px;
  padding: 0 20px;
  color: #0e1218;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -.02em;
}

/* ---------- Hinweis-Boxen ---------- */
body.woocommerce-cart .woocommerce-notices-wrapper {
  max-width: 1220px;
  margin: 0 auto 20px;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 16px 20px;
  border: 1px solid var(--kv-line);
  border-left: 4px solid var(--kv-yellow);
  border-radius: var(--kv-radius-sm);
  background: var(--kv-card);
  box-shadow: var(--kv-shadow-sm);
  color: var(--kv-ink);
  font-size: 15px;
  line-height: 1.5;
}

body.woocommerce-cart .woocommerce-error {
  border-left-color: var(--kv-red);
}

body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-info::before,
body.woocommerce-cart .woocommerce-error::before {
  display: none;
}

body.woocommerce-cart .woocommerce-message .button,
body.woocommerce-cart .woocommerce-info .button {
  margin-left: auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--kv-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================================
   GRID:  Artikel  +  klebrige Bestellübersicht
   ========================================================================== */
@media (min-width: 981px) {
  body.woocommerce-cart .woocommerce-cart-form {
    float: none;
    width: 100%;
  }

  body.woocommerce-cart .elementor-widget-theme-post-content > .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: "items summary";
    gap: 32px;
    align-items: start;
  }

  body.woocommerce-cart .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
  }

  body.woocommerce-cart form.woocommerce-cart-form {
    grid-area: items;
    min-width: 0;
  }

  body.woocommerce-cart .cart-collaterals {
    grid-area: summary;
    width: 100% !important;
    float: none !important;
    position: sticky;
    top: 24px;
  }

  body.woocommerce-cart .cart-collaterals .cross-sells {
    width: 100%;
  }
}

/* ==========================================================================
   ARTIKEL-LISTE  (Tabelle -> Cards)
   Thumbnail ist ABSOLUT positioniert -> kann von langen Optionstexten
   niemals überlappt werden.
   ========================================================================== */
body.woocommerce-cart table.shop_table.cart {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

body.woocommerce-cart table.shop_table.cart thead {
  display: none;
}

body.woocommerce-cart table.shop_table.cart tbody {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Eine Zeile = eine Card */
body.woocommerce-cart tr.woocommerce-cart-form__cart-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name  price"
    "qty   subtotal";
  align-items: start;
  gap: 16px 20px;
  min-height: 132px;
  padding: 22px 22px 22px 140px;
  border: 1px solid var(--kv-line);
  border-radius: var(--kv-radius);
  background: var(--kv-card);
  box-shadow: var(--kv-shadow-sm);
  transition: box-shadow .18s ease;
}

body.woocommerce-cart tr.woocommerce-cart-form__cart-item:hover {
  box-shadow: var(--kv-shadow);
}

body.woocommerce-cart tr.woocommerce-cart-form__cart-item td {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

body.woocommerce-cart tr.woocommerce-cart-form__cart-item td::before {
  display: none !important;
}

/* Thumbnail – absolut, fixe Box oben links */
body.woocommerce-cart td.product-thumbnail {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 96px;
  height: 96px;
}

body.woocommerce-cart td.product-thumbnail a,
body.woocommerce-cart td.product-thumbnail img {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0;
  border-radius: var(--kv-radius-sm);
  object-fit: cover;
}

body.woocommerce-cart td.product-thumbnail img {
  border: 1px solid var(--kv-line-soft);
  background: #fafbfc;
}

/* Entfernen – absolut oben rechts */
body.woocommerce-cart td.product-remove {
  position: absolute;
  top: 14px;
  right: 14px;
}

body.woocommerce-cart td.product-remove a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--kv-line-soft) !important;
  color: var(--kv-ink-soft) !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

body.woocommerce-cart td.product-remove a.remove:hover {
  background: var(--kv-red) !important;
  color: #fff !important;
  transform: rotate(90deg);
}

/* Name */
body.woocommerce-cart td.product-name {
  grid-area: name;
  min-width: 0;
  padding-right: 28px !important;
  overflow-wrap: anywhere;
}

body.woocommerce-cart td.product-name > a {
  display: inline-block;
  color: var(--kv-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

body.woocommerce-cart td.product-name > a:hover {
  color: var(--kv-red);
}

/* "Edit options" Link vom TM Extra Product Options Plugin -> entfernen */
body.woocommerce-cart td.product-name .tm-cart-edit-options,
body.woocommerce-cart .tm-cart-edit-options,
body.woocommerce-cart a.tm-cart-edit-options {
  display: none !important;
}

/* ---------- Optionen / Varianten sauber & eingerückt ---------- */
body.woocommerce-cart td.product-name dl.variation,
body.woocommerce-cart td.product-name .wc-item-meta,
body.woocommerce-cart td.product-name .tm-cart-item-options,
body.woocommerce-cart td.product-name .tminfo {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--kv-ink-soft);
}

/* Floats des Plugins/WooCommerce killen – Ursache der Überlappung */
body.woocommerce-cart td.product-name dl.variation,
body.woocommerce-cart td.product-name dl.variation *,
body.woocommerce-cart td.product-name .wc-item-meta,
body.woocommerce-cart td.product-name .wc-item-meta *,
body.woocommerce-cart td.product-name .tm-cart-item-options,
body.woocommerce-cart td.product-name .tm-cart-item-options * {
  float: none !important;
  clear: none !important;
}

/* Jede Option als eigene Zeile */
body.woocommerce-cart td.product-name dl.variation dt,
body.woocommerce-cart td.product-name .wc-item-meta li {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  width: auto;
}

body.woocommerce-cart td.product-name dl.variation dd {
  display: block;
  margin: 0 0 2px;
  padding: 0;
}

body.woocommerce-cart td.product-name dl.variation dd p,
body.woocommerce-cart td.product-name .wc-item-meta-value p {
  display: inline;
  margin: 0;
}

/* Label / Wert (Standard-Meta) */
body.woocommerce-cart td.product-name dl.variation dt,
body.woocommerce-cart td.product-name .wc-item-meta-label {
  font-weight: 800;
  color: var(--kv-ink);
}

/* TM EPO Label / Wert -> Label fett inline, Wert daneben */
body.woocommerce-cart td.product-name .tm-epo-cart-option-label,
body.woocommerce-cart td.product-name .tc-epo-cart-option-label {
  display: inline;
  margin: 0 6px 0 0;
  font-weight: 800;
  color: var(--kv-ink);
}

body.woocommerce-cart td.product-name .tm-epo-cart-option-value,
body.woocommerce-cart td.product-name .tc-epo-cart-option-value {
  display: inline;
  margin: 0;
  color: var(--kv-ink-soft);
}

body.woocommerce-cart td.product-name .tm-cart-row,
body.woocommerce-cart td.product-name .tc-row,
body.woocommerce-cart td.product-name .tc-epo-cart-no-value,
body.woocommerce-cart td.product-name .tc-epo-cart-no-label {
  display: block;
  margin: 4px 0 0;
}

/* Einzelpreis */
body.woocommerce-cart td.product-price {
  grid-area: price;
  align-self: start;
  text-align: right;
  color: var(--kv-ink-soft);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Menge */
body.woocommerce-cart td.product-quantity {
  grid-area: qty;
  align-self: end;
}

body.woocommerce-cart td.product-quantity .quantity {
  display: inline-flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--kv-line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

body.woocommerce-cart td.product-quantity .quantity input.qty {
  width: 58px;
  height: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--kv-ink);
  -moz-appearance: textfield;
}

body.woocommerce-cart td.product-quantity .quantity input.qty::-webkit-outer-spin-button,
body.woocommerce-cart td.product-quantity .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* nicht editierbare Menge (z.B. fixe Stückzahl) */
body.woocommerce-cart td.product-quantity > .qty,
body.woocommerce-cart td.product-quantity .quantity:not(:has(input)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 56px;
  padding: 0 16px;
  border: 1px solid var(--kv-line);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  color: var(--kv-ink);
}

body.woocommerce-cart td.product-quantity .quantity .plus,
body.woocommerce-cart td.product-quantity .quantity .minus,
body.woocommerce-cart td.product-quantity .quantity button {
  width: 42px;
  height: 100%;
  border: 0;
  background: var(--kv-line-soft);
  color: var(--kv-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}

body.woocommerce-cart td.product-quantity .quantity .plus:hover,
body.woocommerce-cart td.product-quantity .quantity .minus:hover,
body.woocommerce-cart td.product-quantity .quantity button:hover {
  background: var(--kv-yellow);
}

/* Zwischensumme */
body.woocommerce-cart td.product-subtotal {
  grid-area: subtotal;
  align-self: end;
  text-align: right;
  font-size: 19px;
  font-weight: 850;
  color: var(--kv-ink);
  white-space: nowrap;
}

/* ---------- Aktionszeile (Gutschein / Aktualisieren) ---------- */
body.woocommerce-cart tr td.actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 18px 20px !important;
  border: 1px solid var(--kv-line);
  border-radius: var(--kv-radius);
  background: var(--kv-card);
  box-shadow: var(--kv-shadow-sm);
}

body.woocommerce-cart tr:has(> td.actions) {
  display: block;
  min-height: 0;
}

body.woocommerce-cart td.actions .coupon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 1 1 280px;
}

body.woocommerce-cart td.actions .coupon label {
  display: none;
}

body.woocommerce-cart td.actions .coupon input#coupon_code {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--kv-line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--kv-ink);
}

body.woocommerce-cart td.actions .coupon input#coupon_code:focus {
  outline: none;
  border-color: var(--kv-yellow-deep);
  box-shadow: 0 0 0 3px rgba(255, 210, 46, .35);
}

body.woocommerce-cart td.actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-width: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--kv-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}

body.woocommerce-cart td.actions button:hover {
  background: #000;
  transform: translateY(-1px);
}

body.woocommerce-cart td.actions button[name="apply_coupon"] {
  background: var(--kv-yellow);
  color: var(--kv-ink);
}

body.woocommerce-cart td.actions button[name="apply_coupon"]:hover {
  background: var(--kv-yellow-deep);
}

body.woocommerce-cart td.actions button[name="update_cart"]:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

body.woocommerce-cart td.actions .kv-cart-action-icon {
  font-size: 18px;
  line-height: 1;
}

/* "Warenkorb leeren" */
body.woocommerce-cart td.actions a.button[name="empty_cart"],
body.woocommerce-cart td.actions a.button.empty-cart,
body.woocommerce-cart td.actions a[href*="empty-cart"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-left: auto;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--kv-ink);
  border: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background .15s ease;
}

body.woocommerce-cart td.actions a[href*="empty-cart"]:hover {
  background: var(--kv-red);
}

/* ==========================================================================
   BESTELLÜBERSICHT
   ========================================================================== */
body.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100% !important;
  float: none !important;
  padding: 26px 24px 28px;
  border: 1px solid var(--kv-line);
  border-radius: var(--kv-radius);
  background: var(--kv-card);
  box-shadow: var(--kv-shadow);
}

body.woocommerce-cart .cart_totals h2 {
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--kv-line-soft);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.01em;
  color: var(--kv-ink);
}

body.woocommerce-cart .cart_totals table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}

body.woocommerce-cart .cart_totals table tr {
  border: 0;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--kv-line-soft);
  background: none;
  font-size: 15px;
  vertical-align: top;
}

body.woocommerce-cart .cart_totals table th {
  text-align: left;
  font-weight: 600;
  color: var(--kv-ink-soft);
}

body.woocommerce-cart .cart_totals table td {
  text-align: right;
  font-weight: 700;
  color: var(--kv-ink);
}

body.woocommerce-cart .cart_totals .cart-discount th,
body.woocommerce-cart .cart_totals .cart-discount td {
  color: var(--kv-red);
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
  padding-top: 18px;
  border-bottom: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--kv-ink);
}

body.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount {
  font-size: 24px;
}

body.woocommerce-cart .cart_totals .includes_tax,
body.woocommerce-cart .cart_totals small,
body.woocommerce-cart .cart_totals .tax_label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--kv-ink-soft);
}

body.woocommerce-cart .cart_totals .shipping-calculator-button {
  color: var(--kv-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-methods {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-methods li {
  margin: 6px 0;
  text-align: left;
}

body.woocommerce-cart .cart_totals .shipping-calculator-form p {
  margin: 8px 0;
}

body.woocommerce-cart .cart_totals .shipping-calculator-form .input-text,
body.woocommerce-cart .cart_totals .shipping-calculator-form select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--kv-line);
  border-radius: 10px;
  font-size: 14px;
}

/* ---------- Checkout-Button ---------- */
body.woocommerce-cart .wc-proceed-to-checkout {
  margin-top: 22px;
  padding: 0;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 18px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd836 0%, var(--kv-yellow-deep) 100%);
  color: #1a1407;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(240, 189, 0, .35);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::after {
  content: "\2192";
  font-size: 19px;
  font-weight: 900;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 18px 38px rgba(240, 189, 0, .45);
}

body.woocommerce-cart .cart_totals::after {
  content: "\1F512  Sichere SSL-verschl\00FCsselte Bezahlung";
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kv-ink-soft);
}

body.woocommerce-cart .wc-gzd-additional-info,
body.woocommerce-cart .cart_totals .wc-gzd-additional-info,
body.woocommerce-cart .product-name .wc-gzd-product-name-left {
  font-size: 12px;
  font-weight: 500;
  color: var(--kv-ink-soft);
}

/* ==========================================================================
   CROSS-SELLS
   ========================================================================== */
body.woocommerce-cart .cross-sells {
  margin-top: 48px;
}

body.woocommerce-cart .cross-sells > h2 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 850;
  color: var(--kv-ink);
}

body.woocommerce-cart .cross-sells ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-cart .cross-sells ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 16px;
  border: 1px solid var(--kv-line);
  border-radius: var(--kv-radius-sm);
  background: var(--kv-card);
  text-align: center;
}

body.woocommerce-cart .cross-sells ul.products li.product img {
  border-radius: 10px;
  margin-bottom: 10px;
}

body.woocommerce-cart .cross-sells ul.products li.product .button {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--kv-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================================
   LEERER WARENKORB
   ========================================================================== */
body.woocommerce-cart .elementor-widget-theme-post-content > .woocommerce:has(.cart-empty) {
  display: block;
  max-width: 640px;
}

body.woocommerce-cart .cart-empty.woocommerce-info {
  position: relative;
  margin: 30px auto 24px;
  padding: 70px 30px 34px;
  border: 1px solid var(--kv-line);
  border-left: 1px solid var(--kv-line);
  border-radius: var(--kv-radius);
  background: var(--kv-card);
  box-shadow: var(--kv-shadow);
  text-align: center;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  color: var(--kv-ink);
}

body.woocommerce-cart .cart-empty.woocommerce-info::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--kv-yellow);
  box-shadow: inset 0 0 0 11px #fff3b5, 0 8px 18px rgba(199, 157, 0, .22);
}

body.woocommerce-cart .return-to-shop {
  margin: 0 auto 70px;
  text-align: center;
}

body.woocommerce-cart .return-to-shop .button,
body.woocommerce-cart .kv-cart-empty-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 6px;
  padding: 15px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd836 0%, var(--kv-yellow-deep) 100%);
  color: #1a1407;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(240, 189, 0, .32);
  transition: transform .14s ease;
}

body.woocommerce-cart .kv-cart-empty-actions {
  text-align: center;
  margin: 0 auto 70px;
}

body.woocommerce-cart .kv-cart-empty-actions__secondary {
  background: #fff !important;
  color: var(--kv-ink) !important;
  border: 1px solid var(--kv-line);
  box-shadow: none !important;
}

body.woocommerce-cart .return-to-shop .button:hover,
body.woocommerce-cart .kv-cart-empty-actions .button:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   TABLET
   ========================================================================== */
@media (max-width: 980px) {
  body.woocommerce-cart .elementor-widget-theme-post-content > .woocommerce {
    margin-bottom: 60px;
  }

  body.woocommerce-cart .cart-collaterals,
  body.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
  }

  body.woocommerce-cart .cart-collaterals {
    margin-top: 22px;
  }
}

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 600px) {
  body.woocommerce-cart .elementor-widget-theme-post-content > .woocommerce {
    padding: 0 14px;
    margin-bottom: 48px;
  }

  body.woocommerce-cart h1.entry-title,
  body.woocommerce-cart .page-header h1 {
    padding: 0 14px;
    margin: 10px auto 18px;
    font-size: clamp(26px, 8vw, 34px);
  }

  body.woocommerce-cart .woocommerce-breadcrumb {
    padding: 0 14px;
  }

  /* Artikel-Card: Thumb bleibt absolut, kompakter */
  body.woocommerce-cart tr.woocommerce-cart-form__cart-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name name"
      "qty  subtotal";
    gap: 14px 12px;
    min-height: 96px;
    padding: 16px 16px 18px 92px;
  }

  body.woocommerce-cart td.product-thumbnail,
  body.woocommerce-cart td.product-thumbnail a,
  body.woocommerce-cart td.product-thumbnail img {
    top: 16px;
    left: 16px;
    width: 64px;
    height: 64px;
  }

  body.woocommerce-cart td.product-name {
    padding-right: 30px !important;
  }

  body.woocommerce-cart td.product-name > a {
    font-size: 15px;
  }

  /* Einzelpreis als kleine Zeile unter dem Namen */
  body.woocommerce-cart td.product-price {
    grid-area: name;
    text-align: left;
    margin-top: 8px;
    font-size: 13px;
  }

  body.woocommerce-cart td.product-price::before {
    content: "Einzelpreis: ";
    color: var(--kv-ink-soft);
    font-weight: 600;
  }

  body.woocommerce-cart td.product-quantity {
    grid-area: qty;
    align-self: center;
  }

  body.woocommerce-cart td.product-subtotal {
    grid-area: subtotal;
    align-self: center;
    font-size: 18px;
  }

  body.woocommerce-cart tr td.actions {
    flex-direction: column;
    align-items: stretch;
    padding: 16px !important;
  }

  body.woocommerce-cart td.actions .coupon {
    flex: 1 1 auto;
    width: 100%;
  }

  body.woocommerce-cart td.actions button[name="update_cart"] {
    width: 100%;
  }

  body.woocommerce-cart td.actions a[href*="empty-cart"] {
    width: 100%;
    margin: 4px 0 0;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    padding: 22px 18px 24px;
    border-radius: 16px;
  }

  body.woocommerce-cart .cart_totals .order-total th,
  body.woocommerce-cart .cart_totals .order-total td {
    font-size: 19px;
  }

  body.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount {
    font-size: 21px;
  }

  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    padding: 17px 20px;
    font-size: 16px;
  }

  body.woocommerce-cart .cross-sells ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 380px) {
  body.woocommerce-cart tr.woocommerce-cart-form__cart-item {
    padding-left: 86px;
  }

  body.woocommerce-cart td.product-thumbnail,
  body.woocommerce-cart td.product-thumbnail a,
  body.woocommerce-cart td.product-thumbnail img {
    width: 58px;
    height: 58px;
  }
}
