/* --- /assets/css/woo-loop.css --- */
/* Product cards in every loop (home grids, shop, categories, related, snapshot
   pages). Same visual language as the home category cards: light card with a
   hairline border, lift on hover, red only for price/actions. */

/* ---- Grid ---- */
.elementor-products-grid ul.products,
.woocommerce ul.products {
  align-items: stretch;
}

.elementor-products-grid ul.products::before,
.elementor-products-grid ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}

.elementor-products-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- Card ---- */
.woocommerce ul.products li.product {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  width: auto !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 12px 12px 16px !important;
  float: none !important;
  overflow: visible;
  box-sizing: border-box;
  text-align: center;
  background: var(--c-surface-raised);
  border: 1px solid var(--c-border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.woocommerce ul.products li.product:hover,
.woocommerce ul.products li.product:focus-within {
  border-color: var(--c-border);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: center;
  width: 100% !important;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

/* Image: fixed height, contained, on the media background (product photos
   have white backgrounds, so this stays light in the dark theme too). */
.woocommerce ul.products li.product a img,
.product .woocommerce-loop-product__link img,
.product img.attachment-woocommerce_thumbnail {
  display: block;
  width: 100%;
  height: 220px;
  margin: 0 auto 14px;
  padding: 8px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center center;
  background-color: var(--c-media-bg) !important;
  border-radius: 12px;
  transition: transform .3s ease;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.03); }

/* Title: max two lines, fixed height so prices line up across a row. */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  min-height: 2.5em;
  margin: 0 0 10px !important;
  padding: 0 4px;
  overflow: hidden;
  color: var(--c-ink-2) !important;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.25 !important;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color .2s ease;
}
.woocommerce ul.products li.product .woocommerce-loop-product__link:hover .woocommerce-loop-product__title {
  color: var(--c-accent) !important;
}

/* Price: current price prominent; on sale the new price is red, the old one
   muted and struck through. */
.woocommerce ul.products li.product .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px 8px;
  width: 100%;
  margin: 0;
  color: var(--c-ink-2) !important;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.woocommerce ul.products li.product .price .amount,
.woocommerce ul.products li.product .price bdi,
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
  color: inherit !important;
  font: inherit;
}
.woocommerce ul.products li.product .price del {
  order: 2;
  color: var(--c-muted) !important;
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
  text-decoration: line-through;
}
.woocommerce ul.products li.product .price ins {
  order: 1;
  color: var(--c-accent) !important;
  text-decoration: none;
  background: none;
}

/* Snapshot pages (About us) render the note inside .price: own line there too. */
.woocommerce ul.products li.product .price .ckm-price-note { flex: 0 0 100%; order: 3; }

/* "incl. VAT, plus shipping costs" — own line under the price, one line. */
.ckm-price-note {
  display: block !important;
  margin-top: 4px;
  color: var(--c-muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap !important;
}
.woocommerce ul.products li.product .ckm-price-note,
.woocommerce ul.products li.product .ckm-price-note * {
  white-space: nowrap !important;
}
.ckm-price-note a,
.ckm-price-note a:link,
.ckm-price-note a:visited {
  display: inline !important;
  color: inherit !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.ckm-price-note a:hover { color: var(--c-accent) !important; text-decoration: none !important; }

.woocommerce ul.products li.product .legal-price-info,
.woocommerce ul.products li.product .wc-gzd-additional-info-loop {
  margin: 0;
  color: var(--c-muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap !important;
}
.woocommerce ul.products li.product .legal-price-info {
  display: block;
  margin-top: 4px;
}
.woocommerce ul.products li.product p.wc-gzd-additional-info-loop,
.woocommerce ul.products li.product span.wc-gzd-additional-info-loop {
  display: inline !important;
}
.woocommerce ul.products li.product .wc-gzd-additional-info-loop a,
.woocommerce ul.products li.product .wc-gzd-additional-info-loop a:link,
.woocommerce ul.products li.product .wc-gzd-additional-info-loop a:visited {
  display: inline !important;
  color: inherit !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
}
.woocommerce ul.products li.product .wc-gzd-additional-info-loop a:hover {
  color: var(--c-accent) !important;
  text-decoration: none !important;
}

/* Snapshot pages may render the shipping link directly in the card. */
.woocommerce ul.products li.product > a[href*="shipping-methods"] {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  color: var(--c-muted) !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: underline !important;
}
.woocommerce ul.products li.product > a[href*="shipping-methods"]:hover {
  color: var(--c-accent) !important;
  text-decoration: none !important;
}

/* ---- Buy controls, pinned to the bottom of the card ---- */
.product .product-loop-cart {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.woocommerce ul.products li.product .product-loop-cart {
  flex-direction: column;
  align-items: stretch;
  margin-top: auto !important;
  padding-top: 14px;
}

/* Quantity stepper: outlined group, neutral; red only on hover. */
.product .loop-qty-wrapper {
  display: inline-flex;
  align-self: center;
  align-items: stretch;
  gap: 0;
  height: 38px;
  margin: 0;
  overflow: hidden;
  background: var(--c-control-bg);
  border: 1px solid var(--c-border);
  border-radius: 10px;
}
.product .loop-qty-plus,
.product .loop-qty-minus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: auto;
  padding: 0;
  color: var(--c-ink-2);
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: color .18s ease, background-color .18s ease;
}
.product .loop-qty-plus:hover,
.product .loop-qty-minus:hover {
  color: var(--c-accent);
  background: var(--c-surface);
}
.product .loop-qty-wrapper input[type=number] {
  width: 40px;
  height: auto;
  padding: 0;
  color: var(--c-ink-2);
  background: transparent;
  border: none;
  border-inline: 1px solid var(--c-border-soft);
  border-radius: 0;
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.product .loop-qty-wrapper input[type=number]::-webkit-outer-spin-button,
.product .loop-qty-wrapper input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add to cart: full width, cart icon. */
.woocommerce ul.products li.product .product-loop-cart .button,
.woocommerce ul.products li.product .product-loop-cart .add_to_cart_button,
.woocommerce ul.products li.product .button.add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px 14px !important;
  box-sizing: border-box;
  color: var(--c-primary-ink) !important;
  background-color: var(--c-primary) !important;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.woocommerce ul.products li.product .product-loop-cart .add_to_cart_button::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.25'/%3E%3Ccircle cx='18' cy='20' r='1.25'/%3E%3Cpath d='M2.5 3.5h2.2l2.15 10.2a2 2 0 0 0 1.95 1.58h8.95a2 2 0 0 0 1.93-1.48L21 8H6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.25'/%3E%3Ccircle cx='18' cy='20' r='1.25'/%3E%3Cpath d='M2.5 3.5h2.2l2.15 10.2a2 2 0 0 0 1.95 1.58h8.95a2 2 0 0 0 1.93-1.48L21 8H6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce ul.products li.product .product-loop-cart .button:hover,
.woocommerce ul.products li.product .product-loop-cart .add_to_cart_button:hover,
.woocommerce ul.products li.product .button.add_to_cart_button:hover {
  color: var(--c-primary-ink) !important;
  background-color: var(--c-primary-hover) !important;
}
.woocommerce ul.products li.product .product-loop-cart .add_to_cart_button.loading { opacity: .7; }

/* Unavailable: neutral status in the same slot and height as the button. */
.woocommerce ul.products li.product .product-loop-cart--unavailable {
  display: flex;
  justify-content: flex-end;
  min-height: 0;
}
.woocommerce ul.products li.product .ckm-loop-stock-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  box-sizing: border-box;
  color: var(--c-muted);
  background: var(--c-surface);
  border: 1px dashed var(--c-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: not-allowed;
  user-select: none;
}
.ckm-loop-stock-status__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--c-danger);
}

/* ---- Availability line (buyable cards; sold-out ones say so in the action
        area above) ---- */
.woocommerce ul.products li.product .ckm-loop-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 0;
  color: var(--c-success);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.woocommerce ul.products li.product .ckm-loop-stock--low,
.woocommerce ul.products li.product .ckm-loop-stock--backorder { color: var(--c-warning); }
.ckm-loop-stock__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ---- Sale badge ---- */
.woocommerce ul.products li.product .onsale,
.product .onsale,
span.onsale {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  right: auto;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 5px 10px;
  color: var(--c-primary-ink);
  background-color: var(--c-primary);
  border-radius: 7px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--c-primary) 30%, transparent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
}

/* Old Astra on-card bag button from snapshots; the real action is in
   .product-loop-cart. */
.woocommerce ul.products li.product > .ast-on-card-button,
.woocommerce ul.products li.product > .ast-select-options-trigger {
  display: none !important;
}

/* The side cart opens after an AJAX add, so WooCommerce's "View cart" link
   would only duplicate the confirmation. */
.woocommerce ul.products li.product .added_to_cart {
  display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .elementor-products-grid ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .elementor-products-grid ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .elementor-products-grid ul.products,
  .woocommerce ul.products {
    gap: 10px;
  }

  .woocommerce .elementor-products-grid ul.products li.product,
  .woocommerce ul.products li.product {
    padding: 8px 8px 12px !important;
    border-radius: 14px !important;
  }
  .woocommerce ul.products li.product:hover { transform: none; }

  .woocommerce ul.products li.product a img,
  .product .woocommerce-loop-product__link img,
  .product img.attachment-woocommerce_thumbnail {
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    padding: 6px;
    border-radius: 10px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 3.75em;
    margin-bottom: 8px !important;
    padding: 0;
    overflow-wrap: anywhere;
    font-size: 13.5px !important;
    -webkit-line-clamp: 3;
  }

  .woocommerce ul.products li.product .price { font-size: 16px !important; column-gap: 6px; }
  .woocommerce ul.products li.product .price del { font-size: 12.5px; }

  .ckm-price-note,
  .woocommerce ul.products li.product .legal-price-info,
  .woocommerce ul.products li.product .wc-gzd-additional-info-loop {
    width: 100%;
    min-height: 2.6em;
    font-size: 11px !important;
    overflow-wrap: normal;
    white-space: normal !important;
  }
  .woocommerce ul.products li.product .ckm-price-note,
  .woocommerce ul.products li.product .ckm-price-note *,
  .woocommerce ul.products li.product .legal-price-info *,
  .woocommerce ul.products li.product .wc-gzd-additional-info-loop * {
    white-space: normal !important;
  }

  .woocommerce ul.products li.product .product-loop-cart { gap: 8px; padding-top: 10px; }

  /* Two cards per row leave no room for a stepper next to the button; one tap
     adds one, and the quantity is changed in the cart. The field stays in the
     form (value 1), only hidden. */
  .woocommerce ul.products li.product .loop-qty-wrapper { display: none; }

  .woocommerce ul.products li.product .ckm-loop-stock { font-size: 11.5px; }

  .product .loop-qty-wrapper { align-self: stretch; height: 36px; }
  .product .loop-qty-plus,
  .product .loop-qty-minus { flex: 1 1 0; min-width: 34px; }
  .product .loop-qty-wrapper input[type=number] { flex: 1 1 0; width: 36px; font-size: 14px; }

  .woocommerce ul.products li.product .product-loop-cart .button,
  .woocommerce ul.products li.product .product-loop-cart .add_to_cart_button,
  .woocommerce ul.products li.product .button.add_to_cart_button {
    min-height: 40px;
    padding: 8px 6px !important;
    font-size: 13px;
    gap: 6px;
  }
  .woocommerce ul.products li.product .product-loop-cart .add_to_cart_button::before { flex-basis: 16px; width: 16px; height: 16px; }

  .woocommerce ul.products li.product .ckm-loop-stock-status {
    min-height: 40px;
    gap: 6px;
    padding: 8px 6px;
    font-size: 13px;
  }

  .woocommerce ul.products li.product .onsale,
  .product .onsale,
  span.onsale {
    top: 14px;
    left: 14px;
    padding: 4px 8px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .woocommerce .elementor-products-grid ul.products li.product,
  .woocommerce ul.products li.product {
    padding: 7px 7px 10px !important;
  }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px !important; }
  .ckm-price-note,
  .woocommerce ul.products li.product .legal-price-info,
  .woocommerce ul.products li.product .wc-gzd-additional-info-loop { font-size: 10.5px !important; }
  .woocommerce ul.products li.product .product-loop-cart .add_to_cart_button::before { display: none; }
  .woocommerce ul.products li.product .product-loop-cart .button,
  .woocommerce ul.products li.product .product-loop-cart .add_to_cart_button,
  .woocommerce ul.products li.product .button.add_to_cart_button { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product,
  .woocommerce ul.products li.product a img { transition: none; }
  .woocommerce ul.products li.product:hover,
  .woocommerce ul.products li.product:hover a img { transform: none; }
}

/* --- /assets/css/woo-cart.css --- */
/* ===== Cart — classic [woocommerce_cart] shortcode, themed to match the storefront.

   The cart page uses the classic shortcode (lighter than the Cart block: no React
   bundle). Scoped to `body.woocommerce-cart`; enqueued only on is_cart(). The
   free-shipping progress banner is server-rendered via woocommerce_before_cart_table
   (see inc/free-shipping-bar.php); its base styles live in cart-drawer.css. The
   short-description subtitle and the dark +/- stepper are added in inc/woocommerce.php.
   Tokens: tokens.css. Dark mode follows automatically via the token variables. */

/* ---- Page shell ---- */
body.woocommerce-cart .entry-content { display: block; }
body.woocommerce-cart #primary { margin-block: 0 !important; }
body.woocommerce-cart .woocommerce {
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
  margin-bottom: 40px;
}

/* WooCommerce-layout floats .cart_totals right at 48% at every width. Neutralise
   it globally: the two-column media query below re-places it in a fixed sidebar;
   at all narrower widths the totals sit full-width below the items. */
body.woocommerce-cart .cart-collaterals { width: 100%; }
body.woocommerce-cart .cart-collaterals .cart_totals { width: 100%; float: none; }

/* Let long product titles (e.g. German compound words) wrap so the items table
   never forces horizontal overflow on narrow / tablet widths. */
body.woocommerce-cart td.product-name > a,
body.woocommerce-cart .ckm-cart-item__desc { overflow-wrap: anywhere; }

/* Notices (errors, "coupon applied", …) sit full-width above everything. The
   "Cart updated." / "Shipping costs updated." confirmations are muted in PHP. */
body.woocommerce-cart .woocommerce-notices-wrapper { margin: 0 0 20px; }
body.woocommerce-cart .woocommerce-notices-wrapper:empty { display: none; margin: 0; }

/* ================= Two-column layout (items left, totals right) =================
   Only on wide screens: the 6-column items table + a 360px sidebar need room, so
   below 1100px the cart stacks (items full width, totals below) to stay legible on
   tablets. */
@media (min-width: 1100px) {
  body.woocommerce-cart .woocommerce {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
  }
  /* Full-width, on its own row above the two columns (flex gap handles spacing). */
  body.woocommerce-cart .woocommerce-notices-wrapper {
    flex: 0 0 100%;
    width: 100%;
    order: -1;
    margin: 0;
  }
  /* flex-basis:0 so the wide items table doesn't claim its full content width and
     push the totals sidebar onto the next row (the container is flex-wrap:wrap for
     the full-width notices row). */
  body.woocommerce-cart .woocommerce-cart-form {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
  }
  body.woocommerce-cart .cart-collaterals {
    flex: 0 0 360px;
    width: 360px;
    margin: 0;
    position: sticky;
    top: 20px;
  }
  /* WooCommerce forces .cart-collaterals children to 48%/max-width; undo it. */
  body.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
  }
}

/* ================= Line-items card ================= */
body.woocommerce-cart table.cart.woocommerce-cart-form__contents {
  width: 100%;
  margin: 0;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--c-surface-raised);
  box-shadow: 0 12px 34px rgba(17, 24, 39, .07);
}

/* Header row: light, muted uppercase labels. */
body.woocommerce-cart table.cart thead th {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: var(--c-ink-2);
  background: var(--c-surface-soft);
  border-bottom: 1px solid var(--c-border-soft);
  padding: 15px 16px;
  text-align: left;
}
body.woocommerce-cart table.cart thead th.product-price,
body.woocommerce-cart table.cart thead th.product-quantity,
body.woocommerce-cart table.cart thead th.product-subtotal { text-align: right; }

/* Item rows. */
body.woocommerce-cart table.cart tbody td {
  padding: 20px 16px;
  border-top: 1px solid var(--c-border-soft);
  vertical-align: middle;
  background: transparent;
}
body.woocommerce-cart table.cart tbody tr.cart_item:first-child td { border-top: none; }
body.woocommerce-cart table.cart tbody tr.cart_item { transition: background-color .15s ease; }
body.woocommerce-cart table.cart tbody tr.cart_item:hover { background: var(--c-surface-soft); }

/* Remove (×) — round, muted, danger on hover. */
body.woocommerce-cart td.product-remove { width: 52px; text-align: center; }
body.woocommerce-cart td.product-remove a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  color: var(--c-muted) !important;
  background: var(--c-surface) !important;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
body.woocommerce-cart td.product-remove a.remove:hover {
  background: var(--c-danger-surface) !important;
  color: var(--c-danger) !important;
}

/* Thumbnail — contained on white, framed, rounded. */
body.woocommerce-cart td.product-thumbnail { width: 104px; }
body.woocommerce-cart td.product-thumbnail img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: var(--c-media-bg);
  border: 1px solid var(--c-border-soft);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, .04);
}

/* Product name + short-description subtitle. */
body.woocommerce-cart td.product-name > a {
  font-weight: var(--fw-bold);
  color: var(--c-ink-2);
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
}
body.woocommerce-cart td.product-name > a:hover { color: var(--c-accent); }
body.woocommerce-cart .ckm-cart-item__desc {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.woocommerce-cart .ckm-cart-item__desc p { margin: 0; }
body.woocommerce-cart td.product-name .variation,
body.woocommerce-cart td.product-name dl.variation {
  color: var(--c-muted);
  font-size: 13px;
  margin-top: 6px;
}

/* Unit price + line subtotal. */
body.woocommerce-cart td.product-price { text-align: right; white-space: nowrap; color: var(--c-body); font-size: 15px; }
body.woocommerce-cart td.product-subtotal { text-align: right; white-space: nowrap; }
body.woocommerce-cart td.product-subtotal .amount,
body.woocommerce-cart td.product-subtotal bdi {
  font-weight: var(--fw-bold);
  color: var(--c-ink-2);
  font-size: 17px;
}

/* Quantity stepper — same outlined group as the product-card stepper. */
body.woocommerce-cart td.product-quantity { text-align: right; }
body.woocommerce-cart td.product-quantity .quantity {
  display: inline-flex;
  align-items: stretch;
  width: 122px;
  max-width: 122px;
  overflow: hidden;
  background: var(--c-control-bg);
  border: 1px solid var(--c-border);
  border-radius: 10px;
}
body.woocommerce-cart .ckm-qty-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--c-ink-2);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
body.woocommerce-cart .ckm-qty-btn:hover { color: var(--c-accent); background: var(--c-surface); }
/* Number box between the buttons, separated by hairlines. */
body.woocommerce-cart td.product-quantity .quantity input.qty {
  flex: 1 1 auto;
  width: 50px;
  min-width: 0;
  height: 38px;
  border: 0;
  border-inline: 1px solid var(--c-border-soft);
  border-radius: 0;
  background: transparent;
  color: var(--c-ink-2);
  font-weight: var(--fw-semibold);
  font-size: 15px;
  text-align: center;
  -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;
}
/* Fixed-quantity items (no stepper) keep a plain, rounded box. */
body.woocommerce-cart td.product-quantity .quantity:not(:has(.ckm-qty-btn)) {
  width: auto;
}
body.woocommerce-cart td.product-quantity .quantity:not(:has(.ckm-qty-btn)) input.qty {
  width: 64px;
  border-inline: 0;
}

/* ---- Actions row: coupon only (quantities auto-update; the update button is
   hidden and triggered by assets/js/cart-page.js). ---- */
body.woocommerce-cart td.actions {
  padding: 16px;
  background: var(--c-surface-soft);
  border-top: 1px solid var(--c-border-soft);
}
/* "Update cart" removed from view — cart updates automatically. */
body.woocommerce-cart td.actions button[name="update_cart"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
body.woocommerce-cart td.actions .coupon {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
}
body.woocommerce-cart td.actions .coupon .input-text {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-control-bg);
  color: var(--c-ink-2);
  font-size: 15px;
}
body.woocommerce-cart td.actions .coupon .button {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--c-ink-2);
  font-weight: var(--fw-semibold);
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
/* Secondary action: outlined; red on hover. */
body.woocommerce-cart td.actions .coupon .button:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-ink); }

/* ================= Cart totals card ================= */
body.woocommerce-cart .cart_totals {
  background: var(--c-surface-raised);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  box-shadow: 0 14px 34px rgba(17, 24, 39, .08);
  padding: 24px 26px;
}
body.woocommerce-cart .cart_totals > h2 {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--c-ink-2);
  margin: 0 0 6px;
}
body.woocommerce-cart .cart_totals table {
  width: 100%;
  margin: 0;
  border: none;
  border-collapse: collapse;
}
body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
  padding: 14px 0;
  border: none;
  border-top: 1px solid var(--c-border-soft);
  text-align: left;
  vertical-align: top;
  background: transparent;
}
body.woocommerce-cart .cart_totals table th {
  font-weight: var(--fw-medium);
  color: var(--c-ink-2);
  font-size: 15px;
}
body.woocommerce-cart .cart_totals table td {
  text-align: right;
  font-weight: var(--fw-semibold);
  color: var(--c-ink-2);
  font-size: 15px;
  white-space: nowrap;
}
/* Shipping row: method label + radio list. */
body.woocommerce-cart .cart_totals .shipping ul#shipping_method {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.woocommerce-cart .cart_totals .shipping ul#shipping_method li { margin: 0 0 4px; }
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination {
  color: var(--c-muted);
  font-size: 13px;
  font-weight: var(--fw-regular);
  white-space: normal;
}
/* ---- Shipping calculator ("Change address" / Adresse ändern) ---- */
body.woocommerce-cart .cart_totals .shipping td { overflow: visible; }
/* "Adresse ändern" aligns right (with the totals values); the expanded form
   below is left-aligned via .shipping-calculator-form. */
body.woocommerce-cart .woocommerce-shipping-calculator { margin-top: 8px; text-align: right; }
body.woocommerce-cart .shipping-calculator-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-accent);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
body.woocommerce-cart .shipping-calculator-button:hover { text-decoration: underline; }
body.woocommerce-cart .shipping-calculator-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--c-border-soft);
  text-align: left;
}
body.woocommerce-cart .shipping-calculator-form .form-row,
body.woocommerce-cart .shipping-calculator-form > p { margin: 0 0 12px; }
body.woocommerce-cart .shipping-calculator-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--c-ink-2);
  text-align: left;
}
body.woocommerce-cart .shipping-calculator-form span { display: block; }
body.woocommerce-cart .shipping-calculator-form input.input-text,
body.woocommerce-cart .shipping-calculator-form select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-control-bg);
  color: var(--c-ink-2);
  font-size: 14px;
  line-height: normal;
}
/* select2 (country/state enhancer), if active. */
body.woocommerce-cart .shipping-calculator-form .select2-container { width: 100% !important; }
body.woocommerce-cart .shipping-calculator-form .select2-container .select2-selection--single {
  height: 42px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-control-bg);
  display: flex;
  align-items: center;
}
body.woocommerce-cart .shipping-calculator-form .select2-container .select2-selection__rendered {
  padding-left: 12px;
  color: var(--c-ink-2);
  line-height: normal;
}
body.woocommerce-cart .shipping-calculator-form .select2-container .select2-selection__arrow { height: 40px; }
body.woocommerce-cart .shipping-calculator-form button[name="calc_shipping"] {
  width: 100%;
  height: 44px;
  margin-top: 2px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--c-ink-2);
  font-weight: var(--fw-semibold);
  font-size: 15px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
body.woocommerce-cart .shipping-calculator-form button[name="calc_shipping"]:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-primary-ink);
}

/* Order total — emphasised. */
body.woocommerce-cart .cart_totals .order-total th { font-weight: var(--fw-bold); font-size: 16px; }
body.woocommerce-cart .cart_totals .order-total td {
  font-weight: var(--fw-bold);
  font-size: 19px;
}
body.woocommerce-cart .cart_totals .order-total td .includes_tax,
body.woocommerce-cart .cart_totals .order-total td small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: var(--fw-regular);
  color: var(--c-muted);
}

/* ================= Proceed to checkout ================= */
body.woocommerce-cart .wc-proceed-to-checkout { padding: 18px 0 0; }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--c-primary);
  color: var(--c-primary-ink);
  border: none;
  border-radius: var(--r-btn);
  font-weight: var(--fw-bold);
  font-size: 16px;
  padding: 15px 20px;
  text-decoration: none;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c-primary) 22%, transparent);
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--c-primary-hover);
  color: var(--c-primary-ink);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--c-accent) 22%, transparent);
  transform: translateY(-1px);
}

/* ================= Empty cart ================= */
body.woocommerce-cart .cart-empty.woocommerce-info {
  background: var(--c-info-surface);
  border: 1px solid var(--c-info-border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  color: var(--c-ink-2);
}
body.woocommerce-cart .return-to-shop { margin-top: 18px; }
body.woocommerce-cart .return-to-shop .button {
  display: inline-block;
  background: var(--c-primary);
  color: var(--c-primary-ink);
  border-radius: var(--r-btn);
  font-weight: var(--fw-bold);
  padding: 13px 22px;
  text-decoration: none;
}

/* ================= Responsive: stack the table into cards ================= */
@media (max-width: 767px) {
  body.woocommerce-cart table.cart thead { display: none; }
  body.woocommerce-cart table.cart,
  body.woocommerce-cart table.cart tbody { display: block; width: 100%; }
  body.woocommerce-cart table.cart tbody tr.cart_item {
    display: grid;
    grid-template-columns: 84px 1fr;
    grid-template-areas:
      "thumb name"
      "thumb price"
      "qty   subtotal";
    gap: 6px 14px;
    position: relative;
    padding: 18px 16px 18px;
    border-top: 1px solid var(--c-border-soft);
  }
  body.woocommerce-cart table.cart tbody tr.cart_item:first-child { border-top: none; }
  body.woocommerce-cart table.cart tbody td {
    display: block;
    padding: 0;
    border: none;
  }
  body.woocommerce-cart td.product-thumbnail { grid-area: thumb; width: 84px; }
  body.woocommerce-cart td.product-name { grid-area: name; }
  body.woocommerce-cart td.product-price { grid-area: price; text-align: left; }
  body.woocommerce-cart td.product-price::before,
  body.woocommerce-cart td.product-subtotal::before {
    content: attr(data-title) ": ";
    color: var(--c-muted);
    font-size: 13px;
    font-weight: var(--fw-medium);
  }
  body.woocommerce-cart td.product-quantity { grid-area: qty; text-align: left; margin-top: 8px; }
  body.woocommerce-cart td.product-subtotal { grid-area: subtotal; text-align: right; align-self: center; margin-top: 8px; }
  body.woocommerce-cart td.product-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
  }
  /* The coupon "actions" row is its own (non-item) row. Selector kept as specific
     as the generic `table.cart tbody td { padding:0 }` rule so the padding wins. */
  body.woocommerce-cart table.cart tbody tr:not(.cart_item) { display: block; }
  body.woocommerce-cart table.cart tbody td.actions {
    display: block;
    padding: 16px;
    background: var(--c-surface-soft);
    border-top: 1px solid var(--c-border-soft);
  }
  body.woocommerce-cart td.actions .coupon {
    flex-wrap: wrap;
    max-width: none;
  }
  body.woocommerce-cart td.actions .coupon .input-text { flex: 1 1 160px; }
  body.woocommerce-cart td.actions .coupon .button { flex: 1 1 auto; }

  /* Full-width totals card. WooCommerce-layout floats .cart_totals right at 48%;
     its mobile reset lived in woocommerce-smallscreen, which we drop on the cart,
     so re-assert full width here. */
  body.woocommerce-cart .cart-collaterals { margin-top: 24px; width: 100%; }
  body.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100%;
    float: none;
  }
  body.woocommerce-cart .cart_totals table th,
  body.woocommerce-cart .cart_totals table td { white-space: normal; }
  body.woocommerce-cart .cart_totals .order-total td,
  body.woocommerce-cart .cart_totals .cart-subtotal td { white-space: nowrap; }
}

