:root {
  --ink: #171a2a;
  --muted: #667085;
  --purple: #7a285d;
  --purple-dark: #5c1c45;
  --purple-soft: #f5edf3;
  --line: #e8dfd3;
  --paper: #ffffff;
  --bg: #fbf8f2;
  --green: #216e45;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
.db-shell-cart[aria-current="page"] {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff !important;
}
.db-shell-cart[aria-current="page"] .db-shell-cart__count {
  background: #fff;
  color: var(--purple);
}
.cart-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 84px;
  flex: 1 0 auto;
}
.cart-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #c8dfcf;
  border-radius: 12px;
  background: #eff9f2;
  color: #245b34;
}
.cart-notice--error {
  border-color: #efc9c9;
  background: #fff3f3;
  color: #8b2727;
}
.cart-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 5px; color: var(--purple); font-size: 13px; font-weight: 800; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; }
.cart-count, .source-pill {
  display: inline-flex;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
}
.cart-count { padding: 7px 11px; }
.source-pill { padding: 3px 8px; }
.cart-trust {
  display: grid;
  margin-bottom: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 28px rgba(45, 30, 56, .04);
}
.cart-trust article {
  min-width: 0;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-trust article + article { border-left: 1px solid var(--line); }
.trust-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
}
.trust-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-trust article > span:last-child { min-width: 0; display: grid; gap: 2px; }
.cart-trust strong { font-size: 13px; line-height: 1.3; }
.cart-trust small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item, .cart-summary, .empty-cart {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 5px 22px rgba(45, 30, 56, .05);
}
.cart-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}
.product-image {
  width: 86px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 900;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-copy h2 { margin: 5px 0 3px; font-size: 17px; }
.product-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.item-actions { display: flex; align-items: center; gap: 12px; margin-top: 9px; font-size: 13px; }
.item-actions a, .link-button { color: var(--purple); font: inherit; font-weight: 750; }
.link-button { border: 0; padding: 0; background: transparent; cursor: pointer; }
.quantity-form { display: grid; gap: 5px; }
.quantity-form label { display: grid; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 750; }
.quantity-form input { width: 66px; border: 1px solid #cfc5d5; border-radius: 8px; padding: 7px; font: inherit; }
.quantity-form button { border: 0; padding: 0; background: transparent; color: var(--purple); font-size: 11px; font-weight: 750; cursor: pointer; }
.line-price { white-space: nowrap; }
.cart-summary { position: sticky; top: 98px; padding: 24px; }
.cart-summary h2 { margin: 0 0 18px; font-size: 20px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.summary-row.discount { color: var(--green); }
.summary-row.total { margin-top: 8px; padding-top: 16px; border-top: 2px solid var(--ink); font-size: 19px; }
.shipping-hint, .single-shipping { color: var(--muted); font-size: 12px; }
.shipping-hint { padding: 10px; border-radius: 9px; background: var(--purple-soft); color: var(--purple-dark); }
.checkout-trust {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #f4faf6;
  color: #245b34;
}
.checkout-trust p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.checkout-trust p span {
  width: 18px;
  height: 18px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #dcefe3;
  font-size: 11px;
  font-weight: 900;
}
.single-shipping { margin: 13px 2px 0; line-height: 1.45; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  text-decoration: none;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.button--primary {
  width: 100%;
  background: var(--purple);
  color: white;
  box-shadow: 0 10px 24px rgba(122, 40, 93, .2);
}
.button--primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 13px 28px rgba(122, 40, 93, .26);
  transform: translateY(-1px);
}
.button--disabled { opacity: .5; cursor: not-allowed; }
.empty-cart { padding: clamp(26px, 5vw, 48px); }
.empty-cart__copy { max-width: 680px; }
.empty-cart h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); }
.empty-cart p { margin: 0; color: var(--muted); }
.empty-cart__worlds {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.empty-cart__worlds a {
  min-width: 0;
  padding: 17px 18px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.empty-cart__worlds a:hover {
  border-color: #d1b8c7;
  box-shadow: 0 8px 22px rgba(122, 40, 93, .08);
  transform: translateY(-1px);
}
.empty-cart__worlds strong { font-size: 14px; }
.empty-cart__worlds span { color: var(--purple); font-size: 12px; font-weight: 750; }
.success-shell { max-width: 760px; }
.success-card {
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(45, 30, 56, .08);
}
.success-card h1 { margin-top: 4px; }
.order-facts { display: grid; gap: 10px; margin: 28px 0; }
.order-facts div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.order-facts dt { color: var(--muted); }
.order-facts dd { margin: 0; font-weight: 800; }

@media (max-width: 860px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-trust article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .cart-trust article:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .order-facts div { display: grid; gap: 3px; }
  .order-facts dd { overflow-wrap: anywhere; }
  .cart-shell { padding: 30px 14px 60px; }
  .cart-heading { align-items: start; }
  .cart-heading .eyebrow { max-width: 240px; }
  .cart-trust { grid-template-columns: 1fr; }
  .cart-trust article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .cart-item { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .product-image { width: 68px; }
  .quantity-form { grid-column: 2; display: flex; align-items: end; gap: 8px; }
  .line-price { grid-column: 3; grid-row: 1; }
  .empty-cart__worlds { grid-template-columns: 1fr; }
}
