.cart-bubble {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 300; display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 12px; border-radius: 50px;
  background: var(--ink); color: #fff; box-shadow: 0 8px 35px #171b1c30;
  text-decoration: none; font-size: 14px; transition: transform 180ms ease;
}
.cart-bubble:hover { transform: translateY(-3px); }
.cart-bubble-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); }
.cart-bubble strong, .cart-bubble small { display: block; line-height: 1.4; }
.cart-bubble small { font-size: 11px; color: #d4d9dc; }
.cart-bubble > b { padding-left: 14px; border-left: 1px solid #ffffff40; white-space: nowrap; }
.cart-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0;
  width: min(500px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100vw;
  border: 0; background: var(--paper); color: var(--ink);
  box-shadow: -12px 0 50px #171b1c26; overflow: hidden;
}
.cart-drawer[open] { display: flex; flex-direction: column; }
.cart-drawer::backdrop { background: #171b1c80; backdrop-filter: blur(3px); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px; border-bottom: 1px solid var(--line); }
.cart-drawer-head .eyebrow { font-size: 10px; letter-spacing: 1.5px; }
.cart-drawer-head h2 { font-size: 32px; line-height: 1.1; margin: 7px 0 0; }
.cart-drawer [data-cart-content] { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-bottom: var(--toast-space, 0px); }
.cart-drawer-empty { padding: 50px 28px; text-align: center; }
.cart-drawer-empty > span { display: block; margin-bottom: 24px; }
.cart-drawer-empty h3 { font-size: 26px; }
.cart-drawer-empty p { margin: 18px 0 28px; color: var(--muted); }
.cart-drawer-items { padding: 0 24px; }
.drawer-model { padding: 24px 0; border-bottom: 1px solid var(--line); }
.drawer-model-heading { display: flex; align-items: start; gap: 16px; justify-content: space-between; }
.drawer-model-heading h3 { font: 600 15px/1.5 Body, sans-serif; margin: 0; }
.drawer-model-heading b { font-size: 13px; white-space: nowrap; padding-top: 2px; }
.drawer-minimum { margin: 8px 0 20px; color: #176847; font-size: 12px; }
.drawer-minimum.is-short { color: #865500; }
.drawer-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; }
.drawer-item > img { width: 56px; height: 70px; object-fit: contain; background: #fff; border-radius: 8px; }
.drawer-item-info { min-width: 0; font-size: 13px; }
.drawer-item-info > p { margin: 4px 0; color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.drawer-line-total { font-size: 13px; white-space: nowrap; }
.drawer-item-controls, .drawer-item-controls form { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.drawer-item-controls { margin-top: 10px; }
.drawer-item-controls input { width: 62px; min-height: 40px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; }
.drawer-save, .drawer-remove { min-height: 40px; padding: 6px 8px; cursor: pointer; font: inherit; font-size: 12px; }
.drawer-save { border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.drawer-remove { background: transparent; border: 0; color: var(--muted); text-decoration: underline; }
.drawer-add-color, .drawer-full-cart { display: inline-block; font-size: 12px; text-underline-offset: 4px; margin-top: 12px; }
.cart-drawer-footer { padding: 20px 24px max(24px, env(safe-area-inset-bottom)); background: #eeefeb; }
.drawer-estimate { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.drawer-estimate > strong { font-size: 26px; }
.drawer-estimate small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.drawer-price-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 14px 0; }
.drawer-checkout-note, [data-drawer-unsaved] { color: #865500; font-size: 13px; margin: 0 0 16px; }
.cart-drawer-footer button:disabled, .cart-drawer-footer [aria-disabled="true"] { opacity: .65; cursor: not-allowed; }
.drawer-full-cart { display: block; text-align: center; }
.cart-drawer-open { overflow: hidden; }
.cart-drawer .oa-toast-region { bottom: max(20px, env(safe-area-inset-bottom)); max-height: 40dvh; overflow-y: auto; }
@media (max-width: 600px) {
  .cart-bubble { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); gap: 10px; padding-right: 16px; }
  .cart-drawer-head { padding: 20px 16px; }
  .cart-drawer-items { padding: 0 16px; }
  .cart-drawer-footer { padding-inline: 16px; }
  .drawer-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; }
  .drawer-item > img { width: 44px; height: 58px; }
  .cart-drawer-head h2 { font-size: 28px; }
  body { padding-bottom: 95px; }
  .page-product .mobile-purchase { bottom: 86px; }
}
@media (prefers-reduced-motion: reduce) { .cart-bubble { transition: none; } }
