/* ===== METFI Cart Redesign ===== */
.metfi-cart {
  max-width: 700px;
  margin: 0 auto;
  padding: 16px 20px 100px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.metfi-cart-header {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.metfi-cart-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 0;
}
.metfi-cart-title span {
  font-weight: 400;
  color: #888;
  font-size: 15px;
}
.metfi-cart-item {
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.metfi-cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}
.metfi-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.metfi-cart-item-body {
  flex: 1;
  min-width: 0;
}
.metfi-cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.metfi-cart-item-name:hover { color: #B80C09; }
.metfi-cart-item-stock {
  font-size: 11px;
  color: #2ecc71;
  margin-top: 3px;
}
.metfi-cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.metfi-cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: #B80C09;
}
.metfi-cart-item-price .regular-price {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 4px;
}
.metfi-cart-item-remove {
  background: none;
  border: none;
  color: #ccc;
  font-size: 20px;
  cursor: pointer;
  padding: 0 0 0 8px;
  line-height: 1;
  flex-shrink: 0;
  align-self: flex-start;
  text-decoration: none;
}
.metfi-cart-item-remove:hover { color: #e53935; }
.metfi-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  height: 32px;
}
.metfi-cart-qty-btn {
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: none;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  -webkit-user-select: none;
  user-select: none;
}
.metfi-cart-qty-btn:hover { background: #eee; }
.metfi-cart-qty-btn:active { background: #ddd; }
.metfi-cart-qty-value {
  width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #222;
}
.metfi-cart-qty.is-updating .metfi-cart-qty-value {
  color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%23ccc' stroke-width='3'/%3E%3Cpath d='M12 2a10 10 0 0 1 10 10' fill='none' stroke='%23B80C09' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.6s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") center no-repeat;
  background-size: 14px;
}
.metfi-cart-promo {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.metfi-cart-promo-toggle {
  color: #B80C09;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.metfi-cart-promo-form {
  display: none;
  margin-top: 8px;
}
.metfi-cart-promo-form.open { display: flex; gap: 6px; }
.metfi-cart-promo-form input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
}
.metfi-cart-promo-form button {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.metfi-cart-promo-applied {
  margin-top: 6px;
  list-style: none;
  padding: 0;
}
.metfi-cart-promo-applied li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 3px 0;
}
.metfi-cart-promo-applied .promo-name { color: #2ecc71; }
.metfi-cart-promo-applied .promo-delete {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}
.metfi-cart-promo-applied .promo-delete:hover { color: #e53935; }
.metfi-cart-promo-error {
  color: #e53935;
  font-size: 11px;
  margin-top: 4px;
  display: none;
}
.metfi-cart-promo-error.visible { display: block; }
.metfi-cart-reassurance {
  display: flex;
  justify-content: space-around;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.metfi-cart-reassurance-item {
  text-align: center;
  font-size: 9px;
  color: #666;
  line-height: 1.3;
}
.metfi-cart-reassurance-item i {
  display: block;
  font-size: 18px;
  margin-bottom: 3px;
}
.metfi-cart-totals {
  background: #fafafa;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 12px;
}
.metfi-cart-totals-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  padding: 3px 0;
}
.metfi-cart-totals-line.discount .metfi-cart-totals-value { color: #2ecc71; }
.metfi-cart-totals-line.shipping .metfi-cart-totals-value { color: #2ecc71; }
.metfi-cart-totals-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: #222;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid #ddd;
}
.metfi-cart-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  padding: 10px 16px;
}
.metfi-cart-sticky-inner {
  max-width: 700px;
  margin: 0 auto;
}
.metfi-cart-sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #B80C09;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.metfi-cart-sticky-btn:hover { background: #8B0000; color: #fff; }
.metfi-cart-sticky-btn:disabled,
.metfi-cart-sticky-btn.disabled {
  background: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}
.metfi-cart-sticky-btn i { font-size: 18px; }
.metfi-cart-sticky-help {
  text-align: center;
  font-size: 11px;
  color: #888;
  margin-top: 6px;
}
.metfi-cart-sticky-help a {
  color: #B80C09;
  text-decoration: none;
  font-weight: 600;
}
.metfi-cart-empty {
  text-align: center;
  padding: 60px 20px;
}
.metfi-cart-empty i {
  font-size: 64px;
  color: #ddd;
  display: block;
  margin-bottom: 16px;
}
.metfi-cart-empty p {
  font-size: 16px;
  color: #888;
  margin-bottom: 20px;
}
.metfi-cart-empty a {
  display: inline-block;
  background: #B80C09;
  color: #fff;
  border-radius: 8px;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
body#cart .cart-grid { display: block !important; }
body#cart .cart-grid-body,
body#cart .cart-grid-right {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
}
body#cart .card { border: none; box-shadow: none; }
body#cart .card-block { padding: 0; }
body#cart .cart-container > .card-block:first-child { display: none; }
body#cart .cart-container > hr.separator { display: none; }
.metfi-cart-item-attrs {
  font-size: 10px;
  color: #888;
  margin-top: 2px;
}
