.cart-trigger {
  position: relative;
  background: var(--hp);
  color: #e6eef8;
  border: 1px solid var(--hl);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-trigger:hover { border-color: var(--cy); color: var(--cy); }
.cart-badge {
  background: var(--cy);
  color: #04121f;
  font: 700 12px "Chakra Petch", sans-serif;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 99px;
  display: none;
  align-items: center;
  justify-content: center;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 24, 0.65);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100dvh;
  background: var(--surf);
  color: var(--ink);
  border-left: 1px solid var(--line);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -8px 0 30px rgba(0,0,0,0.3);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--hd);
  color: #e6eef8;
  border-bottom: 1px solid var(--hl);
}
.cart-close {
  background: none;
  border: 0;
  color: #9db2c9;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-empty { text-align: center; color: var(--mut); margin-top: 40px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid var(--line);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 500; font-size: 14px; line-height: 1.3; margin-bottom: 3px; }
.cart-item-sku { font-size: 12px; color: var(--mut); }
.cart-item-price { font: 700 15px "Chakra Petch", sans-serif; color: var(--acc); margin: 4px 0; }

.cart-qty-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cart-qty-ctrl button {
  background: transparent;
  border: 0;
  color: var(--ink);
  width: 28px;
  height: 26px;
  cursor: pointer;
  font-weight: 700;
}
.cart-qty-ctrl button:hover { background: var(--line); }
.cart-qty-ctrl span { padding: 0 10px; font-size: 14px; font-weight: 500; }

.cart-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 17px;
}
.cart-wa-btn {
  width: 100%;
  text-align: center;
  background: #25d366 !important;
  color: #04121f !important;
  font-weight: 700;
}
.cart-clear {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: none;
  border: 0;
  color: var(--mut);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.cart-customer-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cart-customer-form input,
.cart-customer-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surf);
  color: var(--ink);
  font: 400 14px "IBM Plex Sans", sans-serif;
}
.cart-customer-form input:focus,
.cart-customer-form textarea:focus {
  outline: 2px solid var(--cy);
  border-color: transparent;
}
.cart-customer-form textarea {
  resize: vertical;
  min-height: 54px;
}