/* ==========================================================================
   Doncen Sidecart Drawer — Multi-Warehouse & Stock-Aware B2B Cart
   Consumes tokens.css design tokens; uses pure compositor slide + overlay
   fade, overscroll-behavior containment, and thin accessible scrollbars.
   ========================================================================== */
.dc-sidecart-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15, 23, 42, 0.36);
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 300ms;
}
.dc-sidecart-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}
.dc-sidecart-overlay[hidden] {
  display: block;
}

.dc-sidecart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  width: min(460px, 100vw);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
  background: var(--surface);
  color: var(--text-color);
  box-shadow: var(--shadow-l);
  font: 400 var(--text-s)/var(--text-line-height) var(--font-primary);
  text-align: left;
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  will-change: transform;
  transition: transform 360ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 360ms;
}
.dc-sidecart.is-open {
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}
/* Pages loading product-foundation.css (home, category, legacy listing) set html { font-size: 10px };
   normalize rem-based tokens inside the sidecart drawer back to 16px equivalents. */
head:has(link[href*="product-foundation.css"]) ~ body:not(.product-page) .dc-sidecart {
  --space-xxs: 4px;
  --space-xs: clamp(6px, 0.544rem + 0.224vw, 8px);
  --space-s: clamp(10px, 0.928rem + 0.288vw, 12px);
  --space-m: clamp(16px, 1.36rem + 0.72vw, 20px);
  --space-l: clamp(20px, 1.76rem + 0.72vw, 24px);
  --space-xxl: clamp(40px, 3.2rem + 3.2vw, 60px);
  --text-xs: 12px;
  --text-s: 14px;
  --text-m: 16px;
  --text-l: clamp(17px, 1.568rem + 0.448vw, 20px);
  --h4: clamp(14px, 1.248rem + 0.616vw, 18px);
}
.dc-sidecart *, .dc-sidecart *::before, .dc-sidecart *::after {
  box-sizing: border-box;
}
.dc-sidecart [hidden] {
  display: none !important;
}
.dc-sidecart button, .dc-sidecart input {
  font-family: inherit;
  box-shadow: none;
}
.dc-sidecart a {
  color: inherit;
  text-decoration: none;
}
.dc-sidecart :is(a, button, input):focus-visible {
  outline: var(--focus-width) var(--focus-style) var(--focus-color);
  outline-offset: var(--focus-offset);
}

/* Sticky Drawer Header */
.dc-sidecart__header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: var(--space-m) var(--space-l);
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
}
.dc-sidecart__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  min-width: 0;
}
.dc-sidecart__title h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--h4);
  font-weight: 700;
  line-height: var(--heading-line-height);
  color: var(--heading-color);
}
.dc-sidecart__count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding-inline: 7px;
  border-radius: var(--radius-pill);
  background: var(--primary-100);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
}
.dc-sidecart__wh-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
}
.dc-sidecart__close {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.dc-sidecart__close:hover {
  background: var(--surface-hover);
}
.dc-sidecart__close::before,
.dc-sidecart__close::after {
  content: '';
  position: absolute;
  width: 1.75px;
  height: 16px;
  background: var(--text-secondary);
  border-radius: 2px;
  transform: rotate(45deg);
}
.dc-sidecart__close::after {
  transform: rotate(-45deg);
}

/* Status Banner */
.dc-sidecart__status {
  flex: none;
  padding: var(--space-xs) var(--space-l);
  background: var(--danger-surface);
  color: var(--danger-text);
  border-bottom: 1px solid var(--danger-bg);
  font-size: var(--text-xs);
  font-weight: 600;
}
.dc-sidecart__status:empty {
  display: none;
}
.dc-sidecart__retry {
  margin-inline-start: var(--space-xs);
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Loading Skeleton Screen (mirrors warehouse-grouped layout) */
.dc-sidecart__skeleton {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.dc-sidecart__skeleton-body {
  flex: 1 1 auto;
  overflow: hidden;
  padding: var(--space-m) var(--space-l);
  background: var(--surface-subtle);
}
.dc-sidecart__skeleton-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  background: var(--surface);
  overflow: hidden;
}
.dc-sidecart__skeleton-wh {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-s) var(--space-m);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.dc-sidecart__skeleton-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  column-gap: var(--space-s);
  padding: var(--space-m);
  border-bottom: 1px solid var(--border-subtle);
}
.dc-sidecart__skeleton-row:last-child {
  border-bottom: 0;
}
.dc-sidecart__skeleton-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dc-sidecart__skeleton-pills {
  display: flex;
  gap: 6px;
}
.dc-sidecart__skeleton-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}
.dc-sidecart__skeleton-footer {
  flex: none;
  padding: var(--space-m) var(--space-l) calc(var(--space-m) + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
}
.dc-sidecart__skeleton-subrow {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-s);
}
.dc-skel {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xs);
  background: var(--neutral-200);
}
.dc-skel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translate3d(-100%, 0, 0);
}
@media (prefers-reduced-motion: no-preference) {
  .dc-sidecart.is-open .dc-skel::after {
    animation: dc-skel-shimmer 1.35s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
}
@keyframes dc-skel-shimmer {
  to { transform: translate3d(100%, 0, 0); }
}
.dc-skel--flag { width: 20px; height: 14px; border-radius: 2px; }
.dc-skel--wh-name { width: 120px; height: 14px; }
.dc-skel--wh-sub { width: 52px; height: 14px; margin-inline-start: auto; }
.dc-skel--thumb { width: 68px; height: 68px; border-radius: var(--radius-m); }
.dc-skel--title { width: 78%; height: 15px; }
.dc-skel--pill { width: 68px; height: 18px; border-radius: var(--radius-pill); }
.dc-skel--pill-sm { width: 56px; height: 18px; border-radius: var(--radius-pill); }
.dc-skel--qty { width: 96px; height: 30px; border-radius: var(--radius-s); }
.dc-skel--price { width: 54px; height: 16px; }
.dc-skel--label { width: 70px; height: 18px; }
.dc-skel--total { width: 82px; height: 20px; }
.dc-skel--btn { width: 100%; height: var(--btn-height); border-radius: var(--btn-radius); }

/* Empty State */
.dc-sidecart__empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  padding: var(--space-xxl) var(--space-l);
  text-align: center;
}
.dc-sidecart__empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  color: var(--text-muted);
}
.dc-sidecart__empty-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-m);
  font-weight: 700;
  color: var(--text-color);
}
.dc-sidecart__empty-sub {
  margin: 0;
  max-width: 280px;
  font-size: var(--text-s);
  color: var(--text-muted);
}
.dc-sidecart__continue {
  margin-top: var(--space-xs);
  min-height: var(--tap-target);
  padding: 0 var(--space-l);
  border: var(--border);
  border-radius: var(--btn-radius);
  background: var(--surface);
  color: var(--text-color);
  font-family: var(--font-heading);
  font-size: var(--text-s);
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.dc-sidecart__continue:hover {
  background: var(--surface-subtle);
  border-color: var(--border-dark);
}

/* Wrapper + Scrollable Body */
.dc-sidecart__wrapper {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.dc-sidecart__body {
  --scrollbar-thumb: var(--border-dark);
  --scrollbar-track: transparent;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-m) var(--space-l);
  background: var(--surface-subtle);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
@supports not (scrollbar-color: auto) {
  .dc-sidecart__body {
    scrollbar-width: auto;
  }
  .dc-sidecart__body::-webkit-scrollbar {
    width: 6px;
  }
  .dc-sidecart__body::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-pill);
  }
  .dc-sidecart__body::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}

/* Free Shipping Progress Banner */
.dc-sidecart__shipping {
  margin-bottom: var(--space-m);
  padding: var(--space-s) var(--space-m);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  background: var(--surface);
  font-size: var(--text-xs);
}
.dc-sidecart__shipping.is-unlocked {
  border-color: var(--success);
  background: var(--success-surface);
  color: var(--success-text);
}
.dc-sidecart__shipping p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.4;
}
.dc-sidecart__progress {
  height: 6px;
  margin-top: var(--space-xs);
  background: var(--primary-100);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.dc-sidecart__shipping.is-unlocked .dc-sidecart__progress {
  background: var(--success-bg);
}
.dc-sidecart__progress span {
  position: relative;
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
  overflow: hidden;
  transition: width 600ms var(--motion-ease);
}
.dc-sidecart__shipping.is-unlocked .dc-sidecart__progress span {
  background: var(--success);
}
.dc-sidecart__progress span::after {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 28px;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  :is(.dc-sidecart.is-open .is-building, #dc-checkout-shipping.is-building) .dc-sidecart__progress span::after {
    animation: dc-progress-flow 1.4s linear infinite;
  }
}
@keyframes dc-progress-flow {
  0% { transform: translateX(-24px); opacity: 0; }
  20% { opacity: 0.65; }
  75% { opacity: 0.8; }
  100% { transform: translateX(28px); opacity: 0; }
}

/* Multi-warehouse / backorder fulfillment notice */
.dc-sidecart__fulfillment-note {
  margin-bottom: var(--space-m);
  padding: var(--space-xs) var(--space-s);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-m);
  background: var(--primary-100);
  color: var(--primary-500);
  font-size: var(--text-xs);
  line-height: 1.45;
}

/* Warehouse Groups */
.dc-sidecart__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}
.dc-sidecart__group {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.dc-sidecart__wh-header {
  padding: var(--space-s) var(--space-m);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.dc-sidecart__wh-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
}
.dc-sidecart__wh-title {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  min-width: 0;
  font-family: var(--font-heading);
  font-size: var(--text-s);
  color: var(--text-color);
}
.dc-sidecart__flag {
  flex: none;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}
.dc-sidecart__wh-count {
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 600;
}
.dc-sidecart__wh-subtotal {
  flex: none;
  font-family: var(--font-heading);
  font-size: var(--text-s);
  font-weight: 700;
  color: var(--text-color);
}
.dc-sidecart__wh-lead {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}

/* Individual Cart Item Rows */
.dc-sidecart__group-list {
  display: flex;
  flex-direction: column;
}
.dc-sidecart__item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  column-gap: var(--space-s);
  padding: var(--space-m);
  border-bottom: 1px solid var(--border-subtle);
  transition: opacity var(--transition-fast);
}
.dc-sidecart__item:last-child {
  border-bottom: 0;
}
.dc-sidecart__item[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
}
.dc-sidecart__image {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding: var(--space-xxs);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.dc-sidecart__image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.dc-sidecart__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.dc-sidecart__item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xs);
}
.dc-sidecart__item-title {
  font-family: var(--font-heading);
  font-size: var(--text-s);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-color);
  overflow-wrap: anywhere;
}
a.dc-sidecart__item-title:hover {
  color: var(--primary);
}
.dc-sidecart__remove {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.dc-sidecart__remove:hover {
  background: var(--danger-bg);
  color: var(--danger-text);
}

/* SKU + Stock Status Badges */
.dc-sidecart__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.dc-sidecart__sku {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.dc-sidecart__stock-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}
.dc-sidecart__stock-pill.is-stock {
  background: var(--success-bg);
  color: var(--success-text);
}
.dc-sidecart__stock-pill.is-partial,
.dc-sidecart__stock-pill.is-backorder {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.dc-sidecart__specs {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.dc-sidecart__warning {
  margin: 0;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: var(--danger-surface);
  color: var(--danger-text);
  font-size: var(--text-xs);
  line-height: 1.35;
}

/* Quantity Stepper + Line Total Row */
.dc-sidecart__item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: 2px;
}
.dc-sidecart__quantity {
  display: inline-grid;
  grid-template-columns: 30px 38px 30px;
  align-items: stretch;
  height: 32px;
  border: var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  overflow: hidden;
}
.dc-sidecart__quantity button {
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--text-color);
  font-size: var(--text-m);
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.dc-sidecart__quantity button:hover {
  background: var(--surface-hover);
  color: var(--primary);
}
.dc-sidecart__quantity input {
  width: 38px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-inline: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-color);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: center;
}
.dc-sidecart__pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  text-align: right;
}
.dc-sidecart__line-total {
  font-family: var(--font-heading);
  font-size: var(--text-s);
  font-weight: 700;
  color: var(--text-color);
  font-variant-numeric: tabular-nums;
}
.dc-sidecart__price-sub {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 2px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.dc-sidecart__regular {
  color: var(--text-muted);
}
.dc-sidecart__saving {
  color: var(--success-text);
  font-weight: 600;
}

/* Recommendations inside scroll body */
.dc-sidecart__blocks:empty {
  display: none;
}
.dc-sidecart__recommendations {
  margin-top: var(--space-m);
  font-size: var(--text-s);
}
.dc-sidecart__recommendation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.dc-sidecart__rec-nav {
  display: flex;
  gap: 4px;
}
.dc-sidecart__rec-nav button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
}
.dc-sidecart__rec-nav button:hover {
  background: var(--surface-hover);
  color: var(--primary);
}
.dc-sidecart__recommendation {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-s);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.dc-sidecart__recommendation img {
  flex: none;
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.dc-sidecart__recommendation a {
  min-width: 0;
  flex: 1;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-color);
}
.dc-sidecart__recommendation small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--primary);
}

/* Sticky Drawer Footer */
.dc-sidecart__footer {
  flex: none;
  padding: var(--space-m) var(--space-l) calc(var(--space-m) + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}
.dc-sidecart__subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: var(--text-m);
  font-weight: 700;
  color: var(--text-color);
}
.dc-sidecart__subtotal strong {
  font-size: var(--text-l);
  color: var(--text-color);
}
.dc-sidecart__footer-meta {
  margin: 0 0 var(--space-s);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.dc-sidecart__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.dc-sidecart a.dc-sidecart__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--btn-height);
  padding: 0 var(--space-l);
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--primary);
  color: var(--white);
  font-family: var(--btn-font-family);
  font-size: var(--text-m);
  font-weight: 700;
  transition: var(--btn-transition);
}
.dc-sidecart a.dc-sidecart__checkout:hover {
  background: var(--primary-300);
  color: var(--white);
}
.dc-sidecart a.dc-sidecart__viewcart {
  display: block;
  padding: 6px 0 2px;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.dc-sidecart a.dc-sidecart__viewcart:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .dc-sidecart__header,
  .dc-sidecart__body,
  .dc-sidecart__footer {
    padding-inline: var(--space-m);
  }
  .dc-sidecart__item {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: var(--space-s);
  }
  .dc-sidecart__image {
    width: 56px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-sidecart,
  .dc-sidecart.is-open,
  .dc-sidecart-overlay,
  .dc-sidecart-overlay.is-open,
  .dc-sidecart__progress span {
    transition: none;
  }
}

/* Fly-to-cart icon pill: arcs from clicked Add-to-Cart button to header cart badge. */
.dc-fly-cart {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: var(--radius-pill, 999px);
  background: var(--primary, #006bea);
  color: var(--white, #ffffff);
  box-shadow: var(--shadow-m, 0 6px 18px rgba(15, 23, 42, 0.16));
  pointer-events: none;
  will-change: transform, opacity;
}
.dc-fly-cart svg {
  width: 18px;
  height: 18px;
}
