/* ====== WooCommerce Cart ====== */

/* ── Base Reset ───────────────────────────────────────────── */
.woocommerce-cart .woocommerce *,
.woocommerce-cart .woocommerce *::before,
.woocommerce-cart .woocommerce *::after {
  box-sizing: border-box;
}

/* ── Notices ──────────────────────────────────────────────── */
.woocommerce-cart .woocommerce .woocommerce-notices-wrapper:empty {
  display: none;
}
/* Notices: see wc-global.css */

/* ── Cart Table ───────────────────────────────────────────── */
.woocommerce-cart .woocommerce .shop_table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  background: rgb(var(--surface));
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgb(var(--raw-950) / 0.06),
    0 1px 2px rgb(var(--raw-950) / 0.04);
  table-layout: fixed;
}

/* ── Table Head ───────────────────────────────────────────── */
.woocommerce-cart .woocommerce .shop_table thead {
  background: rgb(var(--surface-dark));
}
.woocommerce-cart .woocommerce .shop_table thead th {
  padding: 1rem 1.25rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(var(--text-on-dark) / 0.7);
  text-align: left;
  border: none;
}

/* ── Table Body ───────────────────────────────────────────── */
.woocommerce-cart .woocommerce .shop_table tbody td {
  padding: 1.25rem;
  border-bottom: 1px solid rgb(var(--divider));
  vertical-align: top;
  font-size: 0.875rem;
}
.woocommerce-cart .woocommerce .shop_table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Coupon Error Notice ───────────────────────────────────── */
/* Hide inside table (JS moves it outside, prevents flash) */
.woocommerce-cart .woocommerce .coupon .coupon-error-notice {
  display: none;
}
/* Styled once moved outside table by JS */
.woocommerce-cart .woocommerce .coupon-error-notice {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: rgb(var(--state-error) / 0.08);
  border-left: 4px solid rgb(var(--state-error));
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: rgb(var(--state-error));
}

/* ── Column Widths ────────────────────────────────────────── */
.woocommerce-cart .woocommerce .product-thumbnail {
  display: none;
}
.woocommerce-cart .woocommerce .product-remove {
  width: 3.5rem;
  vertical-align: top;
  padding: 1.25rem 0.25rem 1.25rem 1rem !important;
}
.woocommerce-cart .woocommerce .product-name {
  width: auto;
}
.woocommerce-cart .woocommerce .product-price,
.woocommerce-cart .woocommerce .product-subtotal {
  vertical-align: top;
}
.woocommerce-cart .woocommerce tbody .product-quantity {
  vertical-align: top;
  padding-top: 0.75rem !important;
}
.woocommerce-cart .woocommerce .product-price {
  width: 7.5rem;
}
.woocommerce-cart .woocommerce .product-quantity {
  width: 6.5rem;
}
.woocommerce-cart .woocommerce .product-subtotal {
  width: 10.5rem;
}

/* ── Remove Button ────────────────────────────────────────── */
.woocommerce-cart .woocommerce .product-remove .remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgb(var(--raw-50));
  color: rgb(var(--raw-500)) !important;
  font-size: 1.25rem;
  font-weight: 300;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgb(var(--divider));
}
.woocommerce-cart .woocommerce .product-remove .remove:hover {
  background: rgb(var(--state-error));
  color: white !important;
  border-color: rgb(var(--state-error));
  transform: scale(1.08);
}

/* ── Product Thumbnail ────────────────────────────────────── */
.woocommerce-cart .woocommerce .product-thumbnail {
  width: 120px;
  min-width: 120px;
}
.woocommerce-cart .woocommerce .product-thumbnail a {
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgb(var(--divider));
  transition: border-color 0.2s;
}
.woocommerce-cart .woocommerce .product-thumbnail a:hover {
  border-color: rgb(var(--brand));
}
.woocommerce-cart .woocommerce .product-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}
/* VPC config image overlay */
.woocommerce-cart .woocommerce .product-thumbnail .vpc-cart-config-image {
  position: relative;
  width: 100px;
  height: 100px;
}
.woocommerce-cart .woocommerce .product-thumbnail .vpc-cart-config-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Product Name ─────────────────────────────────────────── */
.woocommerce-cart .woocommerce .product-name > a:first-child:not(.vpc-edit) {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: rgb(var(--heading));
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.375rem;
}
.woocommerce-cart
  .woocommerce
  .product-name
  > a:first-child:not(.vpc-edit):hover {
  color: rgb(var(--brand));
}

/* ── VPC Edit Button ──────────────────────────────────────── */
.woocommerce-cart .woocommerce .product-name .vpc-edit {
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgb(var(--brand-text));
  background: rgb(var(--raw-100));
  border: 1px solid rgb(var(--raw-200));
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 0.25rem;
}
/* Hide the duplicate edit button at the bottom */
.woocommerce-cart .woocommerce .product-name > .vpc-edit:last-child {
  display: none;
}
/* First edit button: show as block below product title */
.woocommerce-cart .woocommerce .product-name > a.vpc-edit.show_if_admin {
  display: inline-flex !important;
}
.woocommerce-cart .woocommerce .product-name .vpc-edit:hover {
  background: rgb(var(--brand));
  color: white;
  border-color: rgb(var(--brand));
}

/* ── VPC Config Details ────────────────────────────────────── */
.woocommerce-cart .woocommerce .get_vpc_data {
  margin: 0;
  padding: 0;
  margin-top: 1rem;
  border: 1px solid rgb(var(--divider));
  border-radius: 0.5rem;
  overflow: hidden;
  background: rgb(var(--surface-alt));
}

/* Main config preview image — full width on top */
.woocommerce-cart .woocommerce .get_vpc_data > .vpc-cart-config-image {
  position: relative;
  max-width: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgb(var(--divider));
  background: rgb(var(--surface));
}
.woocommerce-cart .woocommerce .get_vpc_data > .vpc-cart-config-image img {
  display: block;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Options container */
.woocommerce-cart .woocommerce .vpc-cart-options-container {
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: inherit;
}

/* Individual config rows — grid: text left, image right */
.woocommerce-cart .woocommerce .debe_order_view_component_block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 0.75rem;
  align-items: center;
  padding: 0.375rem 0;
  margin: 0;
  border: none;
  border-bottom: 1px solid rgb(var(--divider));
}
.woocommerce-cart .woocommerce .debe_order_view_component_block:last-child {
  border-bottom: none;
}
.woocommerce-cart .woocommerce .debe_order_view_component_block br {
  display: none;
}

/* Config label */
.woocommerce-cart .woocommerce .component_block_name {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.5;
  color: rgb(var(--text-subtle));
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.125rem;
  grid-column: 1;
}

/* Config value */
.woocommerce-cart .woocommerce .component_block_value {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgb(var(--text));
  grid-column: 1;
}

/* Config swatch image — right column, spanning rows */
.woocommerce-cart .woocommerce .component_block_image {
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.woocommerce-cart .woocommerce .component_block_image img {
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgb(var(--divider));
  object-fit: cover;
}

/* Config price badge — own line, left column */
.woocommerce-cart .woocommerce .component_block_price {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgb(var(--brand-text));
  background: rgb(var(--raw-100));
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  width: fit-content;
  grid-column: 1;
}

/* ── Price ─────────────────────────────────────────────────── */
.woocommerce-cart .woocommerce .product-price,
.woocommerce-cart .woocommerce .product-subtotal {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: rgb(var(--heading));
  white-space: nowrap;
}

/* ── Quantity Input ────────────────────────────────────────── */
.woocommerce-cart .woocommerce .quantity .qty {
  width: 3.5rem;
  padding: 0.375rem 0.25rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  color: rgb(var(--input-text));
  background: rgb(var(--input-bg));
  border: 1px solid rgb(var(--input-border));
  border-radius: 0.5rem;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  appearance: textfield;
  -moz-appearance: textfield;
}
.woocommerce-cart .woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce-cart .woocommerce .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.woocommerce-cart .woocommerce .quantity .qty:focus {
  border-color: rgb(var(--input-border-focus));
  box-shadow: 0 0 0 3px rgb(var(--input-ring-focus) / 0.1);
}

/* ── Actions Row (Coupon + Update) ────────────────────────── */
.woocommerce-cart .woocommerce .actions {
  padding: 1.25rem !important;
  background: rgb(var(--surface));
  border-top: 1px solid rgb(var(--divider));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.woocommerce-cart .woocommerce .coupon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.woocommerce-cart .woocommerce .coupon .input-text {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  padding: 0.75rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgb(var(--input-text));
  background: rgb(var(--input-bg));
  border: 1px solid rgb(var(--input-border));
  border-radius: 0.5rem;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.woocommerce-cart .woocommerce .coupon .input-text::placeholder {
  color: rgb(var(--input-placeholder));
  font-weight: 300;
}
.woocommerce-cart .woocommerce .coupon .input-text:focus {
  border-color: rgb(var(--input-border-focus));
  box-shadow: 0 0 0 3px rgb(var(--input-ring-focus) / 0.1);
}

/* ── Shared Button Style ──────────────────────────────────── */
.woocommerce-cart .woocommerce .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

/* Coupon apply button */
.woocommerce-cart .woocommerce .coupon .button {
  background: rgb(var(--btn-secondary-bg));
  color: rgb(var(--btn-secondary-text));
  border-color: rgb(var(--btn-secondary-bg));
}
.woocommerce-cart .woocommerce .coupon .button:hover {
  background: rgb(var(--btn-secondary-bg-hover));
  border-color: rgb(var(--btn-secondary-bg-hover));
  transform: translateY(-1px);
}

/* Update cart button */
.woocommerce-cart .woocommerce .actions > .button[name='update_cart'] {
  background: transparent;
  color: rgb(var(--btn-outline-text));
  border-color: rgb(var(--btn-outline-border));
  margin-left: auto;
}
.woocommerce-cart
  .woocommerce
  .actions
  > .button[name='update_cart']:hover:not(:disabled) {
  background: rgb(var(--btn-outline-bg-hover));
  color: rgb(var(--btn-outline-text-hover));
  border-color: rgb(var(--btn-outline-bg-hover));
}
.woocommerce-cart .woocommerce .actions > .button[name='update_cart']:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Cart Collaterals (Summary Sidebar) ───────────────────── */
.woocommerce-cart .woocommerce .cart-collaterals {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}
.woocommerce-cart .woocommerce .cart_totals {
  width: 100%;
  max-width: 480px;
  background: rgb(var(--surface));
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow:
    0 1px 3px rgb(var(--raw-950) / 0.06),
    0 1px 2px rgb(var(--raw-950) / 0.04);
  border: 1px solid rgb(var(--divider));
}
@media (max-width: 979px) {
  .woocommerce-cart .woocommerce .cart-collaterals {
    justify-content: stretch;
  }
  .woocommerce-cart .woocommerce .cart_totals {
    max-width: none;
    padding: 1rem;
  }
}

/* Totals heading */
.woocommerce-cart .woocommerce .cart_totals > h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(var(--heading));
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgb(var(--brand));
}

/* Totals table */
.woocommerce-cart .woocommerce .cart_totals .shop_table {
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.woocommerce-cart .woocommerce .cart_totals .shop_table th,
.woocommerce-cart .woocommerce .cart_totals .shop_table td {
  padding: 0.875rem 0;
  border-bottom: 1px solid rgb(var(--divider));
  font-size: 0.875rem;
  background: transparent;
}
.woocommerce-cart .woocommerce .cart_totals .shop_table th {
  font-weight: 500;
  color: rgb(var(--text-subtle));
  text-align: left;
  width: 40%;
}
.woocommerce-cart .woocommerce .cart_totals .shop_table td {
  text-align: right;
  font-weight: 500;
  color: rgb(var(--text));
}

/* Shipping section */
.woocommerce-cart .woocommerce .woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-cart .woocommerce .woocommerce-shipping-methods li {
  list-style-type: none;
}
.woocommerce-cart .woocommerce .woocommerce-shipping-methods li::before {
  display: none;
}
.woocommerce-cart .woocommerce .woocommerce-shipping-methods li label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgb(var(--text));
}
.woocommerce-cart .woocommerce .woocommerce-shipping-destination {
  font-size: 0.75rem;
  color: rgb(var(--text-muted));
  margin-top: 0.5rem;
}
.woocommerce-cart .woocommerce .shipping-calculator-button {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(var(--link));
  text-decoration: none;
  transition: color 0.2s;
}
.woocommerce-cart .woocommerce .shipping-calculator-button:hover {
  color: rgb(var(--link-hover));
}

/* Shipping calculator form */
.woocommerce-cart .woocommerce .shipping-calculator-form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(var(--divider));
}
.woocommerce-cart .woocommerce .shipping-calculator-form .form-row {
  margin-bottom: 0.75rem;
}
.woocommerce-cart .woocommerce .shipping-calculator-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(var(--label-text));
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.woocommerce-cart .woocommerce .shipping-calculator-form .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: rgb(var(--text-muted));
}
.woocommerce-cart .woocommerce .shipping-calculator-form .required {
  color: rgb(var(--label-required));
}
.woocommerce-cart .woocommerce .shipping-calculator-form select,
.woocommerce-cart .woocommerce .shipping-calculator-form .input-text {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgb(var(--input-text));
  background: rgb(var(--input-bg));
  border: 1px solid rgb(var(--input-border));
  border-radius: 0.375rem;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.woocommerce-cart .woocommerce .shipping-calculator-form select:focus,
.woocommerce-cart .woocommerce .shipping-calculator-form .input-text:focus {
  border-color: rgb(var(--input-border-focus));
  box-shadow: 0 0 0 3px rgb(var(--input-ring-focus) / 0.1);
}
.woocommerce-cart .woocommerce .shipping-calculator-form select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23cc4700' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
.woocommerce-cart .woocommerce .shipping-calculator-form .button {
  background: rgb(var(--btn-secondary-bg));
  color: rgb(var(--btn-secondary-text));
  border-color: rgb(var(--btn-secondary-bg));
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
}
.woocommerce-cart .woocommerce .shipping-calculator-form .button:hover {
  background: rgb(var(--btn-secondary-bg-hover));
  border-color: rgb(var(--btn-secondary-bg-hover));
}

/* ── Order Total ──────────────────────────────────────────── */
.woocommerce-cart .woocommerce .order-total th,
.woocommerce-cart .woocommerce .order-total td {
  padding-top: 1.25rem !important;
  border-bottom: none !important;
  border-top: 2px solid rgb(var(--heading));
}
.woocommerce-cart .woocommerce .order-total td {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  color: rgb(var(--heading)) !important;
}
.woocommerce-cart .woocommerce .order-total .includes_tax {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.6875rem !important;
  font-weight: 400 !important;
  color: rgb(var(--text-muted)) !important;
  margin-top: 0.125rem;
}

/* ── Payment Info + Checkout Button ───────────────────────── */
.woocommerce-cart .woocommerce .wc-proceed-to-checkout {
  margin-top: 1.5rem;
}
.woocommerce-cart .woocommerce .infotext_zahlung_zur_kasse {
  text-align: center;
  margin-bottom: 1.25rem;
}
.woocommerce-cart .woocommerce .infotext_zahlung_zur_kasse p {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgb(var(--text-subtle));
  margin: 0;
}
.woocommerce-cart .woocommerce .infotext_zahlung_zur_kasse strong {
  font-weight: 600;
  color: rgb(var(--text));
}
.woocommerce-cart .woocommerce .infotext_zahlung_zur_kasse img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.woocommerce-cart .woocommerce .infotext_zahlung_zur_kasse img:hover {
  opacity: 1;
}

/* Checkout CTA */
.woocommerce-cart .woocommerce .checkout-button {
  display: block;
  width: 100%;
  padding: 1.125rem 2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgb(var(--btn-bg));
  color: rgb(var(--btn-text)) !important;
  border: 1px solid rgb(var(--btn-bg));
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.woocommerce-cart .woocommerce .checkout-button:hover {
  background: rgb(var(--btn-bg-hover));
  border-color: rgb(var(--btn-bg-hover));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgb(var(--btn-shadow) / 0.3);
}

/* ── Responsive: Mobile Cart ──────────────────────────────── */
@media (max-width: 979px) {
  /* Hide table head on mobile */
  .woocommerce-cart .woocommerce .shop_table thead {
    display: none;
  }
  .woocommerce-cart .woocommerce .cart_item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgb(var(--divider));
  }
  .woocommerce-cart .woocommerce .cart_item td {
    padding: 0 !important;
    border: none !important;
  }

  /* Thumbnail: hidden */
  .woocommerce-cart .woocommerce .cart_item .product-thumbnail {
    display: none;
  }

  /* Remove: above product name, left-aligned */
  .woocommerce-cart .woocommerce .cart_item .product-remove {
    order: -1;
    align-self: flex-start;
    width: auto !important;
    margin-bottom: 0.5rem;
  }

  /* Name: full width below remove */
  .woocommerce-cart .woocommerce .cart_item .product-name {
    padding-right: 0 !important;
  }

  /* Price, Qty, Subtotal: stacked with space-between */
  .woocommerce-cart .woocommerce .cart_item .product-price,
  .woocommerce-cart .woocommerce .cart_item .product-quantity,
  .woocommerce-cart .woocommerce .cart_item .product-subtotal {
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0 !important;
    border-top: 1px solid rgb(var(--divider));
  }
  .woocommerce-cart .woocommerce .cart_item .product-price {
    margin-top: 1rem;
  }
  .woocommerce-cart .woocommerce .cart_item .product-price::before,
  .woocommerce-cart .woocommerce .cart_item .product-quantity::before,
  .woocommerce-cart .woocommerce .cart_item .product-subtotal::before {
    content: attr(data-title);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(var(--text-subtle));
  }

  /* Actions row */
  .woocommerce-cart .woocommerce .actions {
    flex-direction: column;
    align-items: stretch !important;
  }
  .woocommerce-cart .woocommerce .coupon {
    flex-direction: row;
    width: 100%;
  }
  .woocommerce-cart .woocommerce .coupon .input-text {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
  .woocommerce-cart .woocommerce .actions > .button[name='update_cart'] {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  /* VPC config image full width on mobile */
  .woocommerce-cart .woocommerce .get_vpc_data > .vpc-cart-config-image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 424px) {
  .woocommerce-cart .woocommerce .coupon {
    flex-direction: column;
  }
  .woocommerce-cart .woocommerce .coupon .input-text,
  .woocommerce-cart .woocommerce .coupon .button {
    width: 100%;
  }
  /* Config blocks: stack vertically */
  .woocommerce-cart .woocommerce .debe_order_view_component_block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .woocommerce-cart .woocommerce .component_block_image img {
    width: 3rem;
    height: 3rem;
  }
  /* Checkout CTA: full width, smaller text */
  .woocommerce-cart .woocommerce .checkout-button {
    padding: 0.875rem 0.75rem;
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
  }
}

/* ── Empty Cart ───────────────────────────────────────────── */
.woocommerce-cart .woocommerce .cart-empty {
  font-size: 0.9375rem;
  color: rgb(var(--text));
  margin-bottom: 1.5rem;
}
.woocommerce-cart .woocommerce .return-to-shop .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  background: rgb(var(--btn-bg));
  color: rgb(var(--btn-text)) !important;
}
.woocommerce-cart .woocommerce .return-to-shop .button:hover {
  background: rgb(var(--btn-bg-hover));
  transform: translateY(-1px);
}

/* ── Screen Reader Text ───────────────────────────────────── */
.woocommerce-cart .woocommerce .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
