/* Bebelplatz Fase 21.2 — cart + mini-cart */
body.bp212-cart .woocommerce {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

body.bp212-cart .bp212-cart-intro {
  margin: 0 0 28px;
}

body.bp212-cart .bp212-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.bp212-cart .bp212-cart-intro h1,
body.bp212-cart .bp212-empty-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

body.bp212-cart .bp212-cart-intro p:last-child,
body.bp212-cart .bp212-empty-copy p:last-child {
  margin: 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.65;
}

body.bp212-cart .woocommerce-cart-form {
  width: calc(68% - 18px);
  float: left;
  margin: 0 0 40px;
}

body.bp212-cart .cart-collaterals {
  width: calc(32% - 18px);
  float: right;
  margin: 0 0 40px;
}

body.bp212-cart .woocommerce::after {
  content: "";
  display: table;
  clear: both;
}

body.bp212-cart table.shop_table {
  width: 100%;
  border: 1px solid rgba(17,17,17,.1);
  border-radius: 18px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
}

body.bp212-cart table.shop_table th,
body.bp212-cart table.shop_table td {
  border: 0;
  border-bottom: 1px solid rgba(17,17,17,.08);
  padding: 18px 14px;
  vertical-align: middle;
}

body.bp212-cart table.shop_table thead th {
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(17,17,17,.025);
}

body.bp212-cart table.shop_table tbody tr:last-child td {
  border-bottom: 0;
}

body.bp212-cart .product-thumbnail img {
  width: 76px;
  max-width: 76px;
  height: 108px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

body.bp212-cart .product-name > a {
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

body.bp212-cart .bp212-cart-author {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: .68;
}

body.bp212-cart .product-price,
body.bp212-cart .product-subtotal {
  font-weight: 800;
  white-space: nowrap;
}

body.bp212-cart .quantity {
  display: inline-flex;
}

body.bp212-cart .quantity .qty {
  width: 64px !important;
  min-width: 64px;
  height: 44px !important;
  min-height: 44px;
  margin: 0;
  border: 1px solid rgba(17,17,17,.16);
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
}

body.bp212-cart a.remove {
  display: inline-flex !important;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

body.bp212-cart .actions {
  padding: 18px !important;
}

body.bp212-cart .coupon {
  display: flex;
  gap: 10px;
  align-items: center;
}

body.bp212-cart .coupon .input-text {
  width: min(260px, 100%);
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(17,17,17,.16);
  border-radius: 8px;
}

body.bp212-cart .button,
body.bp212-cart button.button,
body.bp212-cart input.button,
body.bp212-cart a.button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

body.bp212-cart .cart_totals {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 24px;
  border: 1px solid rgba(17,17,17,.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.05);
}

body.bp212-cart .cart_totals h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

body.bp212-cart .cart_totals table {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.bp212-cart .cart_totals table th,
body.bp212-cart .cart_totals table td {
  padding: 13px 0;
  border-bottom: 1px solid rgba(17,17,17,.08);
}

body.bp212-cart .cart_totals .order-total th,
body.bp212-cart .cart_totals .order-total td {
  padding-top: 18px;
  border-bottom: 0;
  font-size: 17px;
}

body.bp212-cart .wc-proceed-to-checkout {
  padding: 18px 0 0;
}

body.bp212-cart .wc-proceed-to-checkout .checkout-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

body.bp212-cart .bp73-checkout-button {
  display: none !important;
}

body.bp212-cart .bp212-cart-confidence {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(17,17,17,.08);
}

body.bp212-cart .bp212-cart-confidence div {
  display: grid;
  gap: 3px;
}

body.bp212-cart .bp212-cart-confidence strong {
  font-size: 13px;
}

body.bp212-cart .bp212-cart-confidence span {
  font-size: 12px;
  line-height: 1.45;
  opacity: .68;
}

body.bp212-cart .woocommerce-notices-wrapper {
  margin-bottom: 20px;
}

body.bp212-cart .cart-empty,
body.bp212-cart .wc-empty-cart-message,
body.bp212-cart .return-to-shop,
body.bp212-cart .bp212-empty-copy {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body.bp212-cart .bp212-empty-copy {
  padding: 56px 20px 18px;
}

body.bp212-cart .return-to-shop {
  margin-top: 22px;
}

body.bp212-cart .return-to-shop .button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
}

/* Existing Festi / WooCart popup: keep its business logic, replace presentation. */
#festi-cart-pop-up-content {
  width: min(560px, calc(100vw - 28px)) !important;
  max-width: 560px !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.24) !important;
}

#festi-cart-pop-up-content .festi-cart-pop-up-body {
  padding: 22px !important;
}

#festi-cart-pop-up-content .festi-cart-added-to-cart-msg {
  display: block;
  margin-bottom: 16px;
  font-size: 18px !important;
  font-weight: 900 !important;
}

#festi-cart-pop-up-content .festi-cart-list {
  width: 100% !important;
}

#festi-cart-pop-up-content .festi-cart-item td {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  vertical-align: middle;
}

#festi-cart-pop-up-content .festi-cart-product-img img {
  width: 58px !important;
  height: 82px !important;
  object-fit: cover;
  border-radius: 6px;
}

#festi-cart-pop-up-content .festi-cart-title {
  font-weight: 800 !important;
  line-height: 1.35;
}

#festi-cart-pop-up-content .festi-cart-remove-product,
#festi-cart-pop-up-content .festi-cart-closed,
#festi-cart-pop-up-content .festi-cart-view-cart,
#festi-cart-pop-up-content .festi-cart-checkout,
#festi-cart-pop-up-content .festi-cart-continue-shopping {
  min-height: 44px;
}

#festi-cart-pop-up-content .festi-cart-view-cart,
#festi-cart-pop-up-content .festi-cart-checkout,
#festi-cart-pop-up-content .festi-cart-continue-shopping {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  padding: 0 16px !important;
}

#festi-cart-pop-up-content .festi-cart-closed {
  display: inline-flex !important;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-cart-ajax {
  min-width: 28px;
  min-height: 28px;
}

@media (max-width: 900px) {
  body.bp212-cart .woocommerce-cart-form,
  body.bp212-cart .cart-collaterals {
    float: none;
    width: 100%;
  }

  body.bp212-cart .cart-collaterals {
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  body.bp212-cart .woocommerce {
    padding: 34px 16px 60px;
  }

  body.bp212-cart table.shop_table,
  body.bp212-cart table.shop_table tbody,
  body.bp212-cart table.shop_table tr,
  body.bp212-cart table.shop_table td {
    display: block;
    width: 100%;
  }

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

  body.bp212-cart table.shop_table tr.cart_item {
    position: relative;
    padding: 18px;
    border-bottom: 1px solid rgba(17,17,17,.1);
  }

  body.bp212-cart table.shop_table tr.cart_item td {
    display: grid;
    grid-template-columns: minmax(100px, 42%) 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border: 0;
    text-align: right !important;
  }

  body.bp212-cart table.shop_table tr.cart_item td::before {
    content: attr(data-title);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    opacity: .58;
  }

  body.bp212-cart table.shop_table tr.cart_item .product-remove {
    position: absolute;
    top: 14px;
    right: 14px;
    display: block;
    width: 44px;
    padding: 0;
  }

  body.bp212-cart table.shop_table tr.cart_item .product-remove::before,
  body.bp212-cart table.shop_table tr.cart_item .product-thumbnail::before {
    content: none;
  }

  body.bp212-cart table.shop_table tr.cart_item .product-thumbnail {
    display: block;
    padding-right: 56px;
    text-align: left !important;
  }

  body.bp212-cart .product-thumbnail img {
    width: 82px;
    max-width: 82px;
    height: 116px;
  }

  body.bp212-cart table.shop_table tr.cart_item .product-name {
    display: block;
    text-align: left !important;
  }

  body.bp212-cart table.shop_table tr.cart_item .product-name::before {
    content: none;
  }

  body.bp212-cart .actions {
    display: block !important;
    padding: 16px !important;
  }

  body.bp212-cart .coupon {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 12px;
  }

  body.bp212-cart .coupon .input-text,
  body.bp212-cart .coupon .button,
  body.bp212-cart .actions > .button {
    width: 100% !important;
  }

  body.bp212-cart .cart_totals {
    padding: 20px;
  }

  #festi-cart-pop-up-content .festi-cart-buttons {
    display: grid !important;
    gap: 10px;
  }

  #festi-cart-pop-up-content .festi-cart-view-cart,
  #festi-cart-pop-up-content .festi-cart-checkout {
    width: 100% !important;
  }
}
