.cart-offcanvas-body  a {
  margin: 16px auto;
  width: min(250px, 100%) !important;
}

.cart-offcanvas-body .cart-totals .cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  line-height: 24px;
}

.cart-offcanvas {
  --bs-offcanvas-width: min(400px, 92vw);
}

.cart-offcanvas .cart-offcanvas-body {
  justify-content: space-between;
}

.cart-offcanvas a.btn-primary {
  display: block !important;
}

.cart-items-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* Item thumbnail is the first element in each row; with no explicit
   flex-direction it lands on the visual right under the site's dir="rtl". */
.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-primary);
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: var(--space-1);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-title {
  margin: 0;
  font-weight: var(--font-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-option {
  margin: 0;
}

.cart-item-price {
  margin: 0;
  font-weight: var(--font-medium);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  padding: 2px var(--space-2);
  color: var(--text-dark);
}

.cart-item-qty-btn {
  background: none;
  font-size: 16px;
  font-weight: var(--font-bold);
  line-height: 1;
  padding: var(--space-1) var(--space-2);
  cursor: pointer;
  border: 1px solid var(--border-secondary);
  border-radius: 1.6px 6px 1.6px 6px;
}

.cart-item-qty-btn:disabled {
  color: var(--text-gray);
  cursor: not-allowed;
}

.cart-item-qty-value {
  min-width: 16px;
  text-align: center;
  font-weight: var(--font-medium);
  color: var(--text-dark);
}
